LibreOffice Module framework (master) 1
uielement.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/ui/XUIElement.hpp>
23#include <com/sun/star/ui/DockingArea.hpp>
24#include <com/sun/star/awt/Point.hpp>
25#include <com/sun/star/awt/Size.hpp>
26
27#include <rtl/ustring.hxx>
28#include <utility>
29#include <vcl/toolbox.hxx>
30
31namespace framework
32{
33
35{
37 m_nDockedArea( css::ui::DockingArea_DOCKINGAREA_TOP ),
38 m_bLocked( false ) {}
39
40 css::awt::Point m_aPos;
41 css::ui::DockingArea m_nDockedArea;
43};
44
46{
48 m_nLines( 1 ),
49 m_bIsHorizontal( true ) {}
50
51 css::awt::Point m_aPos;
52 css::awt::Size m_aSize;
53 ToolBox::ImplToolItems::size_type m_nLines;
55};
56
58{
59 UIElement() : m_bFloating( false ),
60 m_bVisible( true ),
61 m_bUserActive( false ),
62 m_bMasterHide( false ),
63 m_bContextSensitive( false ),
64 m_bNoClose( false ),
65 m_bStateRead( false ),
67 {}
68
69 UIElement( OUString aName,
70 OUString aType,
71 css::uno::Reference< css::ui::XUIElement > xUIElement
72 ) : m_aType(std::move( aType )),
73 m_aName(std::move( aName )),
74 m_xUIElement(std::move( xUIElement )),
75 m_bFloating( false ),
76 m_bVisible( true ),
77 m_bUserActive( false ),
78 m_bMasterHide( false ),
79 m_bContextSensitive( false ),
80 m_bNoClose( false ),
81 m_bStateRead( false ),
83
84 bool operator< ( const UIElement& aUIElement ) const;
85
86 OUString m_aType;
87 OUString m_aName;
88 OUString m_aUIName;
89 css::uno::Reference< css::ui::XUIElement > m_xUIElement;
100};
101
102typedef std::vector< UIElement > UIElementVector;
103
104} // namespace framework
105
106/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OUString aName
std::vector< UIElement > UIElementVector
Definition: uielement.hxx:102
css::ui::DockingArea m_nDockedArea
Definition: uielement.hxx:41
css::awt::Point m_aPos
Definition: uielement.hxx:40
ToolBox::ImplToolItems::size_type m_nLines
Definition: uielement.hxx:53
css::awt::Size m_aSize
Definition: uielement.hxx:52
css::awt::Point m_aPos
Definition: uielement.hxx:51
UIElement(OUString aName, OUString aType, css::uno::Reference< css::ui::XUIElement > xUIElement)
Definition: uielement.hxx:69
ButtonType m_nStyle
Definition: uielement.hxx:97
FloatingData m_aFloatingData
Definition: uielement.hxx:99
bool operator<(const UIElement &aUIElement) const
Definition: uielement.cxx:29
DockedData m_aDockedData
Definition: uielement.hxx:98
css::uno::Reference< css::ui::XUIElement > m_xUIElement
Definition: uielement.hxx:89
#define SAL_MAX_INT32
ButtonType