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 INCLUDED_FRAMEWORK_INC_UIELEMENT_UIELEMENT_HXX
21 #define INCLUDED_FRAMEWORK_INC_UIELEMENT_UIELEMENT_HXX
23 #include <com/sun/star/ui/XUIElement.hpp>
24 #include <com/sun/star/ui/DockingArea.hpp>
25 #include <com/sun/star/awt/Point.hpp>
26 #include <com/sun/star/awt/Size.hpp>
28 #include <rtl/ustring.hxx>
29 #include <vcl/toolbox.hxx>
36 DockedData() : m_aPos( SAL_MAX_INT32
, SAL_MAX_INT32
),
37 m_nDockedArea( ::com::sun::star::ui::DockingArea_DOCKINGAREA_TOP
),
40 com::sun::star::awt::Point m_aPos
;
41 com::sun::star::awt::Size m_aSize
;
42 sal_Int16 m_nDockedArea
;
48 FloatingData() : m_aPos( SAL_MAX_INT32
, SAL_MAX_INT32
),
50 m_bIsHorizontal( true ) {}
52 com::sun::star::awt::Point m_aPos
;
53 com::sun::star::awt::Size m_aSize
;
60 UIElement() : m_bFloating( false ),
62 m_bUserActive( false ),
63 m_bCreateNewRowCol0( false ),
64 m_bDeactiveHide( false ),
65 m_bMasterHide( false ),
66 m_bContextSensitive( false ),
67 m_bContextActive( true ),
69 m_bSoftClose( false ),
70 m_bStateRead( false ),
71 m_nStyle( ButtonType::SYMBOLONLY
)
74 UIElement( const OUString
& rName
,
75 const OUString
& rType
,
76 const com::sun::star::uno::Reference
< ::com::sun::star::ui::XUIElement
>& rUIElement
,
77 bool bFloating
= false
80 m_xUIElement( rUIElement
),
81 m_bFloating( bFloating
),
83 m_bUserActive( false ),
84 m_bCreateNewRowCol0( false ),
85 m_bDeactiveHide( false ),
86 m_bMasterHide( false ),
87 m_bContextSensitive( false ),
88 m_bContextActive( true ),
90 m_bSoftClose( false ),
91 m_bStateRead( false ),
92 m_nStyle( ButtonType::SYMBOLONLY
) {}
94 bool operator< ( const UIElement
& aUIElement
) const;
95 UIElement
& operator=( const UIElement
& rUIElement
);
100 com::sun::star::uno::Reference
< ::com::sun::star::ui::XUIElement
> m_xUIElement
;
113 DockedData m_aDockedData
;
114 FloatingData m_aFloatingData
;
117 typedef std::vector
< UIElement
> UIElementVector
;
119 } // namespace framework
121 #endif // INCLUDED_FRAMEWORK_INC_UIELEMENT_UIELEMENT_HXX
123 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */