LCOV - code coverage report
Current view: top level - framework/inc/uielement - uielement.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 10 10 100.0 %
Date: 2012-08-25 Functions: 6 6 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2008 by Sun Microsystems, Inc.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #ifndef __FRAMEWORK_LAYOUTMANAGER_UIELEMENT_HXX_
      30                 :            : #define __FRAMEWORK_LAYOUTMANAGER_UIELEMENT_HXX_
      31                 :            : 
      32                 :            : #include <com/sun/star/ui/XUIElement.hpp>
      33                 :            : #include <com/sun/star/ui/DockingArea.hpp>
      34                 :            : #include <com/sun/star/awt/Point.hpp>
      35                 :            : #include <com/sun/star/awt/Size.hpp>
      36                 :            : 
      37                 :            : #include <rtl/ustring.hxx>
      38                 :            : #include <vcl/toolbox.hxx>
      39                 :            : 
      40                 :            : namespace framework
      41                 :            : {
      42                 :            : 
      43                 :            : struct DockedData
      44                 :            : {
      45                 :      12908 :     DockedData() : m_aPos( SAL_MAX_INT32, SAL_MAX_INT32 ),
      46                 :            :                    m_nDockedArea( ::com::sun::star::ui::DockingArea_DOCKINGAREA_TOP ),
      47                 :      12908 :                    m_bLocked( false ) {}
      48                 :            : 
      49                 :            :     com::sun::star::awt::Point m_aPos;
      50                 :            :     com::sun::star::awt::Size m_aSize;
      51                 :            :     sal_Int16 m_nDockedArea;
      52                 :            :     bool      m_bLocked;
      53                 :            : };
      54                 :            : 
      55                 :            : struct FloatingData
      56                 :            : {
      57                 :      12908 :     FloatingData() : m_aPos( SAL_MAX_INT32, SAL_MAX_INT32 ),
      58                 :            :                      m_nLines( 1 ),
      59                 :      12908 :                      m_bIsHorizontal( true ) {}
      60                 :            : 
      61                 :            :     com::sun::star::awt::Point m_aPos;
      62                 :            :     com::sun::star::awt::Size m_aSize;
      63                 :            :     sal_Int16 m_nLines;
      64                 :            :     bool      m_bIsHorizontal;
      65                 :            : };
      66                 :            : 
      67                 :     482367 : struct UIElement
      68                 :            : {
      69                 :       9199 :     UIElement() : m_bFloating( false ),
      70                 :            :                   m_bVisible( true ),
      71                 :            :                   m_bUserActive( false ),
      72                 :            :                   m_bCreateNewRowCol0( false ),
      73                 :            :                   m_bDeactiveHide( false ),
      74                 :            :                   m_bMasterHide( false ),
      75                 :            :                   m_bContextSensitive( false ),
      76                 :            :                   m_bContextActive( true ),
      77                 :            :                   m_bNoClose( false ),
      78                 :            :                   m_bSoftClose( false ),
      79                 :            :                   m_bStateRead( false ),
      80                 :       9199 :                   m_nStyle( BUTTON_SYMBOL )
      81                 :       9199 :                   {}
      82                 :            : 
      83                 :       3709 :     UIElement( const rtl::OUString& rName,
      84                 :            :                const rtl::OUString& rType,
      85                 :            :                const com::sun::star::uno::Reference< ::com::sun::star::ui::XUIElement >& rUIElement,
      86                 :            :                bool bFloating = false
      87                 :            :                ) : m_aType( rType ),
      88                 :            :                    m_aName( rName ),
      89                 :            :                    m_xUIElement( rUIElement ),
      90                 :            :                    m_bFloating( bFloating ),
      91                 :            :                    m_bVisible( true ),
      92                 :            :                    m_bUserActive( false ),
      93                 :            :                    m_bCreateNewRowCol0( false ),
      94                 :            :                    m_bDeactiveHide( false ),
      95                 :            :                    m_bMasterHide( false ),
      96                 :            :                    m_bContextSensitive( false ),
      97                 :            :                    m_bContextActive( true ),
      98                 :            :                    m_bNoClose( false ),
      99                 :            :                    m_bSoftClose( false ),
     100                 :            :                    m_bStateRead( false ),
     101                 :       3709 :                    m_nStyle( BUTTON_SYMBOL ) {}
     102                 :            : 
     103                 :            :     bool operator< ( const UIElement& aUIElement ) const;
     104                 :            :     UIElement& operator=( const UIElement& rUIElement );
     105                 :            : 
     106                 :            :     rtl::OUString                                                      m_aType;
     107                 :            :     rtl::OUString                                                      m_aName;
     108                 :            :     rtl::OUString                                                      m_aUIName;
     109                 :            :     com::sun::star::uno::Reference< ::com::sun::star::ui::XUIElement > m_xUIElement;
     110                 :            :     bool                                                               m_bFloating,
     111                 :            :                                                                        m_bVisible,
     112                 :            :                                                                        m_bUserActive,
     113                 :            :                                                                        m_bCreateNewRowCol0,
     114                 :            :                                                                        m_bDeactiveHide,
     115                 :            :                                                                        m_bMasterHide,
     116                 :            :                                                                        m_bContextSensitive,
     117                 :            :                                                                        m_bContextActive;
     118                 :            :     bool                                                               m_bNoClose,
     119                 :            :                                                                        m_bSoftClose,
     120                 :            :                                                                        m_bStateRead;
     121                 :            :     sal_Int16                                                          m_nStyle;
     122                 :            :     DockedData                                                         m_aDockedData;
     123                 :            :     FloatingData                                                       m_aFloatingData;
     124                 :            : };
     125                 :            : 
     126                 :            : typedef std::vector< UIElement > UIElementVector;
     127                 :            : 
     128                 :            : } // namespace framework
     129                 :            : 
     130                 :            : #endif // __FRAMEWORK_LAYOUTMANAGER_UIELEMENT_HXX_
     131                 :            : 
     132                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10