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 .
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>
27 #include <rtl/ustring.hxx>
29 #include <vcl/toolbox.hxx>
36 DockedData() : m_aPos( SAL_MAX_INT32
, SAL_MAX_INT32
),
37 m_nDockedArea( css::ui::DockingArea_DOCKINGAREA_TOP
),
40 css::awt::Point m_aPos
;
41 css::ui::DockingArea m_nDockedArea
;
47 FloatingData() : m_aPos( SAL_MAX_INT32
, SAL_MAX_INT32
),
49 m_bIsHorizontal( true ) {}
51 css::awt::Point m_aPos
;
52 css::awt::Size m_aSize
;
53 ToolBox::ImplToolItems::size_type m_nLines
;
59 UIElement() : m_bFloating( false ),
61 m_bUserActive( false ),
62 m_bMasterHide( false ),
63 m_bContextSensitive( false ),
65 m_bStateRead( false ),
66 m_nStyle( ButtonType::SYMBOLONLY
)
69 UIElement( OUString aName
,
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
)),
77 m_bUserActive( false ),
78 m_bMasterHide( false ),
79 m_bContextSensitive( false ),
81 m_bStateRead( false ),
82 m_nStyle( ButtonType::SYMBOLONLY
) {}
84 bool operator< ( const UIElement
& aUIElement
) const;
89 css::uno::Reference
< css::ui::XUIElement
> m_xUIElement
;
98 DockedData m_aDockedData
;
99 FloatingData m_aFloatingData
;
102 typedef std::vector
< UIElement
> UIElementVector
;
104 } // namespace framework
106 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */