LCOV - code coverage report
Current view: top level - libreoffice/toolkit/inc/toolkit/controls - tabpagecontainer.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 6 0.0 %
Date: 2012-12-27 Functions: 0 10 0.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.10