LibreOffice Module extensions (master) 1
taborder.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
22#include <com/sun/star/awt/XTabControllerModel.hpp>
23#include <com/sun/star/awt/XControlContainer.hpp>
24#include <com/sun/star/uno/XComponentContext.hpp>
25
26#include <vcl/weld.hxx>
27
28namespace pcr
29{
30 //= TabOrderDialog
32 {
33 css::uno::Reference< css::awt::XTabControllerModel >
35 css::uno::Reference< css::awt::XTabControllerModel >
37 css::uno::Reference< css::awt::XControlContainer >
39 css::uno::Reference< css::uno::XComponentContext >
41
42 std::unique_ptr<weld::TreeView> m_xLB_Controls;
43 std::unique_ptr<weld::Button> m_xPB_OK;
44 std::unique_ptr<weld::Button> m_xPB_MoveUp;
45 std::unique_ptr<weld::Button> m_xPB_MoveDown;
46 std::unique_ptr<weld::Button> m_xPB_AutoOrder;
47
48 DECL_LINK( ModelHasMoved, weld::TreeView&, void );
49 DECL_LINK( MoveUpClickHdl, weld::Button&, void );
50 DECL_LINK( MoveDownClickHdl, weld::Button&, void );
51 DECL_LINK( AutoOrderClickHdl, weld::Button&, void );
52 DECL_LINK( OKClickHdl, weld::Button&, void );
53
54 void FillList();
55 void MoveSelection(int nRelPos);
56
57 public:
59 weld::Window* pParent,
60 const css::uno::Reference< css::awt::XTabControllerModel >& _rxTabModel,
61 const css::uno::Reference< css::awt::XControlContainer >& _rxControlCont,
62 const css::uno::Reference< css::uno::XComponentContext >& _rxORB
63 );
64
65 virtual ~TabOrderDialog() override;
66
67 void SetModified();
68 };
69
70
71} // namespace pcr
72
73
74/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void MoveSelection(int nRelPos)
Definition: taborder.cxx:269
DECL_LINK(AutoOrderClickHdl, weld::Button &, void)
css::uno::Reference< css::awt::XControlContainer > m_xControlContainer
Definition: taborder.hxx:38
std::unique_ptr< weld::Button > m_xPB_MoveUp
Definition: taborder.hxx:44
std::unique_ptr< weld::Button > m_xPB_OK
Definition: taborder.hxx:43
virtual ~TabOrderDialog() override
Definition: taborder.cxx:151
DECL_LINK(ModelHasMoved, weld::TreeView &, void)
TabOrderDialog(weld::Window *pParent, const css::uno::Reference< css::awt::XTabControllerModel > &_rxTabModel, const css::uno::Reference< css::awt::XControlContainer > &_rxControlCont, const css::uno::Reference< css::uno::XComponentContext > &_rxORB)
Definition: taborder.cxx:108
std::unique_ptr< weld::Button > m_xPB_MoveDown
Definition: taborder.hxx:45
std::unique_ptr< weld::TreeView > m_xLB_Controls
Definition: taborder.hxx:42
css::uno::Reference< css::uno::XComponentContext > m_xORB
Definition: taborder.hxx:40
DECL_LINK(MoveDownClickHdl, weld::Button &, void)
css::uno::Reference< css::awt::XTabControllerModel > m_xTempModel
Definition: taborder.hxx:34
DECL_LINK(MoveUpClickHdl, weld::Button &, void)
css::uno::Reference< css::awt::XTabControllerModel > m_xModel
Definition: taborder.hxx:36
std::unique_ptr< weld::Button > m_xPB_AutoOrder
Definition: taborder.hxx:46
DECL_LINK(OKClickHdl, weld::Button &, void)
a property handler for any virtual string properties
Definition: browserline.cxx:39