bump product version to 5.0.4.1
[LibreOffice.git] / extensions / source / propctrlr / taborder.hxx
blobf56d4b45bc01ef6bc411df38bfcb7cb5de421ef6
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_TABORDER_HXX
21 #define INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_TABORDER_HXX
23 #include <svtools/treelistbox.hxx>
24 #include <com/sun/star/awt/XTabControllerModel.hpp>
25 #include <com/sun/star/awt/XControlContainer.hpp>
26 #include <com/sun/star/beans/XPropertySet.hpp>
27 #include <com/sun/star/uno/XComponentContext.hpp>
29 #include <vcl/dialog.hxx>
31 #include <vcl/button.hxx>
32 #include <vcl/lstbox.hxx>
34 #include <vcl/fixed.hxx>
36 #include <comphelper/uno3.hxx>
39 namespace pcr
44 //= TabOrderListBox
46 class TabOrderListBox : public SvTreeListBox
48 public:
49 TabOrderListBox( vcl::Window* pParent, WinBits nBits );
50 virtual ~TabOrderListBox();
52 void MoveSelection( long nRelPos );
54 protected:
55 virtual void ModelHasMoved(SvTreeListEntry* pSource ) SAL_OVERRIDE;
57 private:
58 using SvTreeListBox::MoveSelection;
63 //= TabOrderDialog
65 class TabOrderDialog : public ModalDialog
67 ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabControllerModel >
68 m_xTempModel;
69 ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabControllerModel >
70 m_xModel;
71 ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer >
72 m_xControlContainer;
73 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
74 m_xORB;
76 VclPtr<TabOrderListBox> m_pLB_Controls;
78 VclPtr<OKButton> m_pPB_OK;
80 VclPtr<PushButton> m_pPB_MoveUp;
81 VclPtr<PushButton> m_pPB_MoveDown;
82 VclPtr<PushButton> m_pPB_AutoOrder;
84 ImageList* pImageList;
86 DECL_LINK( MoveUpClickHdl, Button* );
87 DECL_LINK( MoveDownClickHdl, Button* );
88 DECL_LINK( AutoOrderClickHdl, Button* );
89 DECL_LINK( OKClickHdl, Button* );
91 void FillList();
92 Image GetImage(
93 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > & _rxSet
94 ) const;
96 public:
97 TabOrderDialog(
98 vcl::Window* _pParent,
99 const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabControllerModel >& _rxTabModel,
100 const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer >& _rxControlCont,
101 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB
104 virtual ~TabOrderDialog();
105 virtual void dispose() SAL_OVERRIDE;
107 void SetModified();
111 } // namespace pcr
114 #endif // INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_TABORDER_HXX
116 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */