bump product version to 6.3.0.0.beta1
[LibreOffice.git] / extensions / source / propctrlr / taborder.hxx
blob5cbe5d82bb8f85047cbbb4baf6398dcfe60fd2ac
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 <com/sun/star/awt/XTabControllerModel.hpp>
24 #include <com/sun/star/awt/XControlContainer.hpp>
25 #include <com/sun/star/beans/XPropertySet.hpp>
26 #include <com/sun/star/uno/XComponentContext.hpp>
28 #include <vcl/weld.hxx>
30 namespace pcr
32 //= TabOrderDialog
33 class TabOrderDialog : public weld::GenericDialogController
35 css::uno::Reference< css::awt::XTabControllerModel >
36 m_xTempModel;
37 css::uno::Reference< css::awt::XTabControllerModel >
38 m_xModel;
39 css::uno::Reference< css::awt::XControlContainer >
40 m_xControlContainer;
41 css::uno::Reference< css::uno::XComponentContext >
42 m_xORB;
44 std::unique_ptr<weld::TreeView> m_xLB_Controls;
45 std::unique_ptr<weld::Button> m_xPB_OK;
46 std::unique_ptr<weld::Button> m_xPB_MoveUp;
47 std::unique_ptr<weld::Button> m_xPB_MoveDown;
48 std::unique_ptr<weld::Button> m_xPB_AutoOrder;
50 DECL_LINK( ModelHasMoved, weld::TreeView&, void );
51 DECL_LINK( MoveUpClickHdl, weld::Button&, void );
52 DECL_LINK( MoveDownClickHdl, weld::Button&, void );
53 DECL_LINK( AutoOrderClickHdl, weld::Button&, void );
54 DECL_LINK( OKClickHdl, weld::Button&, void );
56 void FillList();
57 void MoveSelection(int nRelPos);
59 public:
60 TabOrderDialog(
61 weld::Window* pParent,
62 const css::uno::Reference< css::awt::XTabControllerModel >& _rxTabModel,
63 const css::uno::Reference< css::awt::XControlContainer >& _rxControlCont,
64 const css::uno::Reference< css::uno::XComponentContext >& _rxORB
67 virtual ~TabOrderDialog() override;
69 void SetModified();
73 } // namespace pcr
76 #endif // INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_TABORDER_HXX
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */