LCOV - code coverage report
Current view: top level - toolkit/inc/toolkit/controls - tabpagecontainer.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 6 16.7 %
Date: 2012-08-25 Functions: 2 10 20.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 2 22 9.1 %

           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 2000, 2010 Oracle and/or its affiliates.
       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 TOOLKIT_TABPAGE_CONTAINER_HXX
      30                 :            : #define TOOLKIT_TABPAGE_CONTAINER_HXX
      31                 :            : 
      32                 :            : #include <com/sun/star/awt/tab/XTabPageContainer.hpp>
      33                 :            : #include <com/sun/star/awt/tab/XTabPageContainerModel.hpp>
      34                 :            : #include <com/sun/star/awt/tab/XTabPageContainerListener.hpp>
      35                 :            : #include <com/sun/star/awt/tab/XTabPage.hpp>
      36                 :            : #include <com/sun/star/awt/tab/XTabPageModel.hpp>
      37                 :            : #include <toolkit/controls/unocontrolbase.hxx>
      38                 :            : #include <toolkit/controls/unocontrolmodel.hxx>
      39                 :            : #include <toolkit/helper/servicenames.hxx>
      40                 :            : #include <cppuhelper/implbase1.hxx>
      41                 :            : #include <comphelper/sequence.hxx>
      42                 :            : #include <toolkit/controls/controlmodelcontainerbase.hxx>
      43                 :            : #include <toolkit/controls/unocontrolmodel.hxx>
      44                 :            : #include <toolkit/helper/listenermultiplexer.hxx>
      45                 :            : 
      46                 :            : using namespace ::com::sun::star::uno;
      47                 :            : //using namespace ::com::sun::star::awt;
      48                 :            : using namespace ::com::sun::star::lang;
      49                 :            : using namespace ::com::sun::star::beans;
      50                 :            : using namespace ::com::sun::star::container;
      51                 :            : 
      52                 :            : //  ------------------------------------------------------------------
      53                 :            : //  class ::com::sun::star::awt::tab::UnoControlTabPageContainerModel
      54                 :            : //  ------------------------------------------------------------------
      55                 :            : typedef ::cppu::AggImplInheritanceHelper1   <   UnoControlModel
      56                 :            :                                             ,   ::com::sun::star::awt::tab::XTabPageContainerModel
      57                 :            :                                             >   UnoControlTabPageContainerModel_Base;
      58 [ +  - ][ -  + ]:          4 : class UnoControlTabPageContainerModel : public UnoControlTabPageContainerModel_Base
      59                 :            : {
      60                 :            : private:
      61                 :            :     std::vector< ::com::sun::star::uno::Reference< ::com::sun::star::awt::tab::XTabPageModel > > m_aTabPageVector;
      62                 :            :     ContainerListenerMultiplexer        maContainerListeners;
      63                 :            : protected:
      64                 :            :     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
      65                 :            :     ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
      66                 :            :     // ::com::sun::star::beans::XMultiPropertySet
      67                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
      68                 :            : 
      69                 :            : public:
      70                 :            :     UnoControlTabPageContainerModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
      71 [ #  # ][ #  # ]:          0 :     UnoControlTabPageContainerModel( const UnoControlTabPageContainerModel& rModel ) : UnoControlTabPageContainerModel_Base( rModel ),maContainerListeners( *this ) {;}
      72                 :            : 
      73         [ #  # ]:          0 :     UnoControlModel*    Clone() const { return new UnoControlTabPageContainerModel( *this ); }
      74                 :            : 
      75                 :            :     // ::com::sun::star::io::XPersistObject
      76                 :            :     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
      77                 :            : 
      78                 :            :     // ::com::sun::star::lang::XServiceInfo
      79 [ #  # ][ #  # ]:          0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoControlTabPageContainerModel, UnoControlModel, szServiceName_UnoControlTabPageContainerModel )
      80                 :            :     // XIndexContainer
      81                 :            :     virtual void SAL_CALL insertByIndex( sal_Int32 Index, const ::com::sun::star::uno::Any& Element )
      82                 :            :              throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
      83                 :            :     virtual void SAL_CALL removeByIndex( sal_Int32 Index )
      84                 :            :              throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
      85                 :            : 
      86                 :            :          // XIndexReplace
      87                 :            :      virtual void SAL_CALL replaceByIndex( sal_Int32 Index, const ::com::sun::star::uno::Any& Element )
      88                 :            :              throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
      89                 :            : 
      90                 :            :          // XIndexAccess
      91                 :            :      virtual sal_Int32 SAL_CALL getCount() throw (::com::sun::star::uno::RuntimeException);
      92                 :            : 
      93                 :            :      virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index )
      94                 :            :              throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
      95                 :            : 
      96                 :            :          // XElementAccess
      97                 :            :      virtual ::com::sun::star::uno::Type SAL_CALL getElementType() throw (::com::sun::star::uno::RuntimeException);
      98                 :            : 
      99                 :            :     virtual sal_Bool SAL_CALL hasElements() throw (::com::sun::star::uno::RuntimeException);
     100                 :            : 
     101                 :            :     // ::com::sun::star::container::XContainer
     102                 :            :     void SAL_CALL addContainerListener( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainerListener >& xListener ) throw(::com::sun::star::uno::RuntimeException);
     103                 :            :     void SAL_CALL removeContainerListener( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainerListener >& xListener ) throw(::com::sun::star::uno::RuntimeException);
     104                 :            : };
     105                 :            : // ===================================================================
     106                 :            : // = UnoControlTabPageContainer
     107                 :            : // ===================================================================
     108                 :            : typedef ::cppu::AggImplInheritanceHelper1   <   ControlContainerBase
     109                 :            :                                             ,   ::com::sun::star::awt::tab::XTabPageContainer
     110                 :            :                                             >   UnoControlTabPageContainer_Base;
     111 [ #  # ][ #  # ]:          0 : class UnoControlTabPageContainer : public UnoControlTabPageContainer_Base
     112                 :            : {
     113                 :            : public:
     114                 :            :     UnoControlTabPageContainer( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
     115                 :            :     ::rtl::OUString             GetComponentServiceName();
     116                 :            : 
     117                 :            :     // ::com::sun::star::lang::XComponent
     118                 :            :     void SAL_CALL dispose(  ) throw(::com::sun::star::uno::RuntimeException);
     119                 :            : 
     120                 :            :     // ::com::sun::star::awt::XControl
     121                 :            :     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
     122                 :            : 
     123                 :            :     // ::com::sun::star::awt::tab::XTabPageContainer
     124                 :            :     virtual ::sal_Int16 SAL_CALL getActiveTabPageID() throw (::com::sun::star::uno::RuntimeException);
     125                 :            :     virtual void SAL_CALL setActiveTabPageID( ::sal_Int16 _activetabpageid ) throw (::com::sun::star::uno::RuntimeException);
     126                 :            :     virtual ::sal_Int32 SAL_CALL getTabPageCount(  ) throw (::com::sun::star::uno::RuntimeException);
     127                 :            :     virtual ::sal_Bool SAL_CALL isTabPageActive( ::sal_Int16 tabPageIndex ) throw (::com::sun::star::uno::RuntimeException);
     128                 :            :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::tab::XTabPage > SAL_CALL getTabPage( ::sal_Int16 tabPageIndex ) throw (::com::sun::star::uno::RuntimeException);
     129                 :            :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::tab::XTabPage > SAL_CALL getTabPageByID( ::sal_Int16 tabPageID ) throw (::com::sun::star::uno::RuntimeException);
     130                 :            :     virtual void SAL_CALL addTabPageListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::tab::XTabPageContainerListener >& listener ) throw (::com::sun::star::uno::RuntimeException);
     131                 :            :     virtual void SAL_CALL removeTabPageListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::tab::XTabPageContainerListener >& listener ) throw (::com::sun::star::uno::RuntimeException);
     132                 :            : 
     133                 :            :     virtual void SAL_CALL addControl( const ::rtl::OUString& Name, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl >& Control ) throw (::com::sun::star::uno::RuntimeException);
     134                 :            :     // ::com::sun::star::lang::XServiceInfo
     135 [ #  # ][ #  # ]:          0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoControlTabPageContainer, UnoControlBase, szServiceName_UnoControlTabPageContainer )
     136                 :            : 
     137                 :            : //  using UnoControl::getPeer;
     138                 :            : protected:
     139                 :            :     virtual void        updateFromModel();
     140                 :            : private:
     141                 :            :     TabPageListenerMultiplexer  m_aTabPageListeners;
     142                 :            : };
     143                 :            : 
     144                 :            : #endif // _TOOLKIT_TABPAGE_CONTAINER_HXX
     145                 :            : 
     146                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10