1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef EXTENSIONS_SOURCE_PROPCTRLR_TABORDER_HXX
29 #define EXTENSIONS_SOURCE_PROPCTRLR_TABORDER_HXX
31 #include <svtools/svtreebx.hxx>
32 #include <com/sun/star/awt/XTabControllerModel.hpp>
33 #include <com/sun/star/awt/XControlContainer.hpp>
34 #include <com/sun/star/beans/XPropertySet.hpp>
36 #ifndef _DIALOG_HXX //autogen
37 #include <vcl/dialog.hxx>
40 #ifndef _BUTTON_HXX //autogen
41 #include <vcl/button.hxx>
43 #include <vcl/lstbox.hxx>
45 #ifndef _FIXED_HXX //autogen
46 #include <vcl/fixed.hxx>
49 #ifndef _TOOLS_LIST_HXX
50 #include <tools/list.hxx>
52 #include <comphelper/uno3.hxx>
54 //............................................................................
57 //............................................................................
59 //========================================================================
61 //========================================================================
62 class TabOrderListBox
: public SvTreeListBox
65 TabOrderListBox( Window
* pParent
, const ResId
& rResId
);
66 virtual ~TabOrderListBox();
68 void MoveSelection( long nRelPos
);
71 virtual void ModelHasMoved(SvListEntry
* pSource
);
74 using SvTreeListBox::MoveSelection
;
78 //========================================================================
80 //========================================================================
81 class TabOrderDialog
: public ModalDialog
83 ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XTabControllerModel
>
85 ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XTabControllerModel
>
87 ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XControlContainer
>
89 ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>
92 FixedText aFT_Controls
;
93 TabOrderListBox aLB_Controls
;
96 CancelButton aPB_CANCEL
;
99 PushButton aPB_MoveUp
;
100 PushButton aPB_MoveDown
;
101 PushButton aPB_AutoOrder
;
103 ImageList
* pImageList
;
105 DECL_LINK( MoveUpClickHdl
, Button
* );
106 DECL_LINK( MoveDownClickHdl
, Button
* );
107 DECL_LINK( AutoOrderClickHdl
, Button
* );
108 DECL_LINK( OKClickHdl
, Button
* );
112 const ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
> & _rxSet
118 const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XTabControllerModel
>& _rxTabModel
,
119 const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XControlContainer
>& _rxControlCont
,
120 const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& _rxORB
123 virtual ~TabOrderDialog();
128 //............................................................................
130 //............................................................................
132 #endif // EXTENSIONS_SOURCE_PROPCTRLR_TABORDER_HXX