1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 //............................................................................
40 //............................................................................
42 //========================================================================
44 //========================================================================
45 class TabOrderListBox
: public SvTreeListBox
48 TabOrderListBox( Window
* pParent
, const ResId
& rResId
);
49 virtual ~TabOrderListBox();
51 void MoveSelection( long nRelPos
);
54 virtual void ModelHasMoved(SvTreeListEntry
* pSource
);
57 using SvTreeListBox::MoveSelection
;
61 //========================================================================
63 //========================================================================
64 class TabOrderDialog
: public ModalDialog
66 ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XTabControllerModel
>
68 ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XTabControllerModel
>
70 ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XControlContainer
>
72 ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>
75 FixedText aFT_Controls
;
76 TabOrderListBox aLB_Controls
;
79 CancelButton aPB_CANCEL
;
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
* );
95 const ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
> & _rxSet
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();
111 //............................................................................
113 //............................................................................
115 #endif // EXTENSIONS_SOURCE_PROPCTRLR_TABORDER_HXX
117 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */