LCOV - code coverage report
Current view: top level - framework/inc/uielement - constitemcontainer.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 2 0.0 %
Date: 2012-08-25 Functions: 0 1 0.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 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 __FRAMEWORK_UIELEMENT_CONSTITEMCONTAINER_HXX_
      30                 :            : #define __FRAMEWORK_UIELEMENT_CONSTITEMCONTAINER_HXX_
      31                 :            : 
      32                 :            : #include <threadhelp/threadhelpbase.hxx>
      33                 :            : #include <macros/generic.hxx>
      34                 :            : #include <macros/xinterface.hxx>
      35                 :            : #include <macros/xtypeprovider.hxx>
      36                 :            : 
      37                 :            : #include <com/sun/star/container/XIndexContainer.hpp>
      38                 :            : #include <com/sun/star/lang/XSingleComponentFactory.hpp>
      39                 :            : #include <com/sun/star/beans/PropertyValue.hpp>
      40                 :            : #include <com/sun/star/beans/XPropertySet.hpp>
      41                 :            : #include <com/sun/star/beans/XFastPropertySet.hpp>
      42                 :            : #include <com/sun/star/lang/XTypeProvider.hpp>
      43                 :            : #include <com/sun/star/lang/XUnoTunnel.hpp>
      44                 :            : 
      45                 :            : #include <rtl/ustring.hxx>
      46                 :            : #include <cppuhelper/weak.hxx>
      47                 :            : #include <cppuhelper/propshlp.hxx>
      48                 :            : 
      49                 :            : #include <vector>
      50                 :            : #include <fwidllapi.h>
      51                 :            : 
      52                 :            : namespace framework
      53                 :            : {
      54                 :            : 
      55                 :            : class RootItemContainer;
      56                 :            : class ItemContainer;
      57                 :            : class FWI_DLLPUBLIC ConstItemContainer :    public ::com::sun::star::lang::XTypeProvider    ,
      58                 :            :                             public com::sun::star::container::XIndexAccess  ,
      59                 :            :                             public ::com::sun::star::lang::XUnoTunnel       ,
      60                 :            :                             public ::com::sun::star::beans::XFastPropertySet,
      61                 :            :                             public ::com::sun::star::beans::XPropertySet    ,
      62                 :            :                             public ::cppu::OWeakObject
      63                 :            : {
      64                 :            :     friend class RootItemContainer;
      65                 :            :     friend class ItemContainer;
      66                 :            : 
      67                 :            :     public:
      68                 :            :         ConstItemContainer();
      69                 :            :         ConstItemContainer( const ItemContainer& rtemContainer );
      70                 :            :         ConstItemContainer( const com::sun::star::uno::Reference< com::sun::star::container::XIndexAccess >& rSourceContainer, sal_Bool bFastCopy = sal_False );
      71                 :            :         virtual ~ConstItemContainer();
      72                 :            : 
      73                 :            :         //---------------------------------------------------------------------------------------------------------
      74                 :            :         //  XInterface, XTypeProvider
      75                 :            :         //---------------------------------------------------------------------------------------------------------
      76                 :            :         FWK_DECLARE_XINTERFACE
      77                 :            :         FWK_DECLARE_XTYPEPROVIDER
      78                 :            : 
      79                 :            :         // XUnoTunnel
      80                 :            :         static const ::com::sun::star::uno::Sequence< sal_Int8 >&   GetUnoTunnelId() throw();
      81                 :            :         static ConstItemContainer*                                  GetImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxIFace ) throw();
      82                 :            :         sal_Int64                                                   SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier ) throw(::com::sun::star::uno::RuntimeException);
      83                 :            : 
      84                 :            :         // XIndexAccess
      85                 :            :         virtual sal_Int32 SAL_CALL getCount()
      86                 :            :             throw (::com::sun::star::uno::RuntimeException);
      87                 :            : 
      88                 :            :         virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index )
      89                 :            :             throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
      90                 :            : 
      91                 :            :         // XElementAccess
      92                 :          0 :         virtual ::com::sun::star::uno::Type SAL_CALL getElementType()
      93                 :            :             throw (::com::sun::star::uno::RuntimeException)
      94                 :            :         {
      95                 :          0 :             return ::getCppuType((com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >*)0);
      96                 :            :         }
      97                 :            : 
      98                 :            :         virtual sal_Bool SAL_CALL hasElements()
      99                 :            :             throw (::com::sun::star::uno::RuntimeException);
     100                 :            : 
     101                 :            :         // XPropertySet
     102                 :            :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw (::com::sun::star::uno::RuntimeException);
     103                 :            :         virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
     104                 :            :         virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
     105                 :            :         virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
     106                 :            :         virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
     107                 :            :         virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
     108                 :            :         virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
     109                 :            : 
     110                 :            :         // XFastPropertySet
     111                 :            :         virtual void SAL_CALL setFastPropertyValue( sal_Int32 nHandle, const ::com::sun::star::uno::Any& aValue ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
     112                 :            :         virtual ::com::sun::star::uno::Any SAL_CALL getFastPropertyValue( sal_Int32 nHandle ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
     113                 :            : 
     114                 :            :     private:
     115                 :            :         ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
     116                 :            :         const com::sun::star::uno::Sequence< com::sun::star::beans::Property > impl_getStaticPropertyDescriptor();
     117                 :            :         static ::com::sun::star::uno::Reference < ::com::sun::star::beans::XPropertySetInfo > SAL_CALL createPropertySetInfo( ::cppu::IPropertyArrayHelper & rProperties ) SAL_THROW(());
     118                 :            : 
     119                 :            :         void copyItemContainer( const std::vector< com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > >& rSourceVector );
     120                 :            :         com::sun::star::uno::Reference< com::sun::star::container::XIndexAccess > deepCopyContainer( const com::sun::star::uno::Reference< com::sun::star::container::XIndexAccess >& rSubContainer );
     121                 :            : 
     122                 :            :         std::vector< com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > > m_aItemVector;
     123                 :            :         rtl::OUString                                                                        m_aUIName;
     124                 :            : };
     125                 :            : 
     126                 :            : }
     127                 :            : 
     128                 :            : #endif // #ifndef __FRAMEWORK_UIELEMENT_CONSTITEMCONTAINER_HXX_
     129                 :            : 
     130                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10