bump product version to 4.1.6.2
[LibreOffice.git] / extensions / source / propctrlr / taborder.hxx
blob771e1ab33b7a9407faa1b0865454e36f067e86d2
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 EXTENSIONS_SOURCE_PROPCTRLR_TABORDER_HXX
21 #define 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>
28 #include <vcl/dialog.hxx>
30 #include <vcl/button.hxx>
31 #include <vcl/lstbox.hxx>
33 #include <vcl/fixed.hxx>
35 #include <comphelper/uno3.hxx>
37 //............................................................................
38 namespace pcr
40 //............................................................................
42 //========================================================================
43 //= TabOrderListBox
44 //========================================================================
45 class TabOrderListBox : public SvTreeListBox
47 public:
48 TabOrderListBox( Window* pParent, const ResId& rResId );
49 virtual ~TabOrderListBox();
51 void MoveSelection( long nRelPos );
53 protected:
54 virtual void ModelHasMoved(SvTreeListEntry* pSource );
56 private:
57 using SvTreeListBox::MoveSelection;
61 //========================================================================
62 //= TabOrderDialog
63 //========================================================================
64 class TabOrderDialog : public ModalDialog
66 ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabControllerModel >
67 m_xTempModel;
68 ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabControllerModel >
69 m_xModel;
70 ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer >
71 m_xControlContainer;
72 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
73 m_xORB;
75 FixedText aFT_Controls;
76 TabOrderListBox aLB_Controls;
78 OKButton aPB_OK;
79 CancelButton aPB_CANCEL;
80 HelpButton aPB_HELP;
82 PushButton aPB_MoveUp;
83 PushButton aPB_MoveDown;
84 PushButton aPB_AutoOrder;
86 ImageList* pImageList;
88 DECL_LINK( MoveUpClickHdl, Button* );
89 DECL_LINK( MoveDownClickHdl, Button* );
90 DECL_LINK( AutoOrderClickHdl, Button* );
91 DECL_LINK( OKClickHdl, Button* );
93 void FillList();
94 Image GetImage(
95 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > & _rxSet
96 ) const;
98 public:
99 TabOrderDialog(
100 Window* _pParent,
101 const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabControllerModel >& _rxTabModel,
102 const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer >& _rxControlCont,
103 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB
106 virtual ~TabOrderDialog();
108 void SetModified();
111 //............................................................................
112 } // namespace pcr
113 //............................................................................
115 #endif // EXTENSIONS_SOURCE_PROPCTRLR_TABORDER_HXX
117 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */