LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/workdir/unxlngi6.pro/UnoApiHeadersTarget/udkapi/normal/com/sun/star/beans - XMultiPropertySet.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 144 144 100.0 %
Date: 2013-07-09 Functions: 4 4 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #ifndef INCLUDED_COM_SUN_STAR_BEANS_XMULTIPROPERTYSET_HPP
       2             : #define INCLUDED_COM_SUN_STAR_BEANS_XMULTIPROPERTYSET_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include "com/sun/star/beans/XMultiPropertySet.hdl"
       7             : 
       8             : #include "com/sun/star/beans/PropertyVetoException.hpp"
       9             : #include "com/sun/star/beans/XPropertiesChangeListener.hpp"
      10             : #include "com/sun/star/beans/XPropertySetInfo.hpp"
      11             : #include "com/sun/star/lang/IllegalArgumentException.hpp"
      12             : #include "com/sun/star/lang/WrappedTargetException.hpp"
      13             : #include "com/sun/star/uno/RuntimeException.hpp"
      14             : #include "com/sun/star/uno/XInterface.hpp"
      15             : #include "com/sun/star/uno/Any.hxx"
      16             : #include "com/sun/star/uno/Reference.hxx"
      17             : #include "com/sun/star/uno/Sequence.hxx"
      18             : #include "com/sun/star/uno/Type.hxx"
      19             : #include "cppu/unotype.hxx"
      20             : #include "osl/mutex.hxx"
      21             : #include "rtl/ustring.hxx"
      22             : #include "rtl/instance.hxx"
      23             : 
      24             : namespace com { namespace sun { namespace star { namespace beans { namespace detail {
      25             : 
      26             : struct theXMultiPropertySetType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theXMultiPropertySetType >
      27             : {
      28         702 :     ::com::sun::star::uno::Type * operator()() const
      29             :     {
      30         702 :         ::rtl::OUString sTypeName( "com.sun.star.beans.XMultiPropertySet" );
      31             : 
      32             :         // Start inline typedescription generation
      33         702 :         typelib_InterfaceTypeDescription * pTD = 0;
      34             : 
      35             :         typelib_TypeDescriptionReference * aSuperTypes[1];
      36         702 :         aSuperTypes[0] = ::cppu::UnoType< ::com::sun::star::uno::Reference< css::uno::XInterface > >::get().getTypeLibType();
      37         702 :         typelib_TypeDescriptionReference * pMembers[6] = { 0,0,0,0,0,0 };
      38        1404 :         ::rtl::OUString sMethodName0( "com.sun.star.beans.XMultiPropertySet::getPropertySetInfo" );
      39             :         typelib_typedescriptionreference_new( &pMembers[0],
      40             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      41         702 :                                               sMethodName0.pData );
      42        1404 :         ::rtl::OUString sMethodName1( "com.sun.star.beans.XMultiPropertySet::setPropertyValues" );
      43             :         typelib_typedescriptionreference_new( &pMembers[1],
      44             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      45         702 :                                               sMethodName1.pData );
      46        1404 :         ::rtl::OUString sMethodName2( "com.sun.star.beans.XMultiPropertySet::getPropertyValues" );
      47             :         typelib_typedescriptionreference_new( &pMembers[2],
      48             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      49         702 :                                               sMethodName2.pData );
      50        1404 :         ::rtl::OUString sMethodName3( "com.sun.star.beans.XMultiPropertySet::addPropertiesChangeListener" );
      51             :         typelib_typedescriptionreference_new( &pMembers[3],
      52             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      53         702 :                                               sMethodName3.pData );
      54        1404 :         ::rtl::OUString sMethodName4( "com.sun.star.beans.XMultiPropertySet::removePropertiesChangeListener" );
      55             :         typelib_typedescriptionreference_new( &pMembers[4],
      56             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      57         702 :                                               sMethodName4.pData );
      58        1404 :         ::rtl::OUString sMethodName5( "com.sun.star.beans.XMultiPropertySet::firePropertiesChangeEvent" );
      59             :         typelib_typedescriptionreference_new( &pMembers[5],
      60             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      61         702 :                                               sMethodName5.pData );
      62             : 
      63             :         typelib_typedescription_newMIInterface(
      64             :             &pTD,
      65             :             sTypeName.pData, 0x00000000, 0x0000, 0x0000, 0x00000000, 0x00000000,
      66             :             1, aSuperTypes,
      67             :             6,
      68         702 :             pMembers );
      69             : 
      70         702 :         typelib_typedescription_register( (typelib_TypeDescription**)&pTD );
      71         702 :         typelib_typedescriptionreference_release( pMembers[0] );
      72         702 :         typelib_typedescriptionreference_release( pMembers[1] );
      73         702 :         typelib_typedescriptionreference_release( pMembers[2] );
      74         702 :         typelib_typedescriptionreference_release( pMembers[3] );
      75         702 :         typelib_typedescriptionreference_release( pMembers[4] );
      76         702 :         typelib_typedescriptionreference_release( pMembers[5] );
      77         702 :         typelib_typedescription_release( (typelib_TypeDescription*)pTD );
      78             : 
      79        1404 :         return new ::com::sun::star::uno::Type( ::com::sun::star::uno::TypeClass_INTERFACE, sTypeName ); // leaked
      80             :     }
      81             : };
      82             : 
      83             : } } } } }
      84             : 
      85             : namespace com { namespace sun { namespace star { namespace beans {
      86             : 
      87      299225 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::beans::XMultiPropertySet const *) {
      88      299225 :     const ::com::sun::star::uno::Type &rRet = *detail::theXMultiPropertySetType::get();
      89             :     // End inline typedescription generation
      90             :     static bool bInitStarted = false;
      91      299225 :     if (!bInitStarted)
      92             :     {
      93         702 :         ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
      94         702 :         if (!bInitStarted)
      95             :         {
      96             :             OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
      97         702 :             bInitStarted = true;
      98         702 :             ::cppu::UnoType< css::uno::RuntimeException >::get();
      99         702 :             ::cppu::UnoType< ::com::sun::star::uno::Reference< css::beans::XPropertySetInfo > >::get();
     100         702 :             ::cppu::UnoType< ::cppu::UnoSequenceType< ::rtl::OUString > >::get();
     101         702 :             ::cppu::UnoType< ::cppu::UnoSequenceType< ::com::sun::star::uno::Any > >::get();
     102         702 :             ::cppu::UnoType< css::beans::PropertyVetoException >::get();
     103         702 :             ::cppu::UnoType< css::lang::IllegalArgumentException >::get();
     104         702 :             ::cppu::UnoType< css::lang::WrappedTargetException >::get();
     105         702 :             ::cppu::UnoType< ::com::sun::star::uno::Reference< css::beans::XPropertiesChangeListener > >::get();
     106             : 
     107         702 :             typelib_InterfaceMethodTypeDescription * pMethod = 0;
     108             :             {
     109         702 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     110         702 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     111        1404 :                 ::rtl::OUString sReturnType0( "com.sun.star.beans.XPropertySetInfo" );
     112        1404 :                 ::rtl::OUString sMethodName0( "com.sun.star.beans.XMultiPropertySet::getPropertySetInfo" );
     113             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     114             :                     3, sal_False,
     115             :                     sMethodName0.pData,
     116             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE, sReturnType0.pData,
     117             :                     0, 0,
     118         702 :                     1, the_Exceptions );
     119        1404 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     120             :             }
     121             :             {
     122             :                 typelib_Parameter_Init aParameters[2];
     123         702 :                 ::rtl::OUString sParamName0( "aPropertyNames" );
     124        1404 :                 ::rtl::OUString sParamType0( "[]string" );
     125         702 :                 aParameters[0].pParamName = sParamName0.pData;
     126         702 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE;
     127         702 :                 aParameters[0].pTypeName = sParamType0.pData;
     128         702 :                 aParameters[0].bIn = sal_True;
     129         702 :                 aParameters[0].bOut = sal_False;
     130        1404 :                 ::rtl::OUString sParamName1( "aValues" );
     131        1404 :                 ::rtl::OUString sParamType1( "[]any" );
     132         702 :                 aParameters[1].pParamName = sParamName1.pData;
     133         702 :                 aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE;
     134         702 :                 aParameters[1].pTypeName = sParamType1.pData;
     135         702 :                 aParameters[1].bIn = sal_True;
     136         702 :                 aParameters[1].bOut = sal_False;
     137        1404 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.beans.PropertyVetoException" );
     138        1404 :                 ::rtl::OUString the_ExceptionName1( "com.sun.star.lang.IllegalArgumentException" );
     139        1404 :                 ::rtl::OUString the_ExceptionName2( "com.sun.star.lang.WrappedTargetException" );
     140        1404 :                 ::rtl::OUString the_ExceptionName3( "com.sun.star.uno.RuntimeException" );
     141         702 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData, the_ExceptionName1.pData, the_ExceptionName2.pData, the_ExceptionName3.pData };
     142        1404 :                 ::rtl::OUString sReturnType1( "void" );
     143        1404 :                 ::rtl::OUString sMethodName1( "com.sun.star.beans.XMultiPropertySet::setPropertyValues" );
     144             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     145             :                     4, sal_False,
     146             :                     sMethodName1.pData,
     147             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_VOID, sReturnType1.pData,
     148             :                     2, aParameters,
     149         702 :                     4, the_Exceptions );
     150        1404 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     151             :             }
     152             :             {
     153             :                 typelib_Parameter_Init aParameters[1];
     154         702 :                 ::rtl::OUString sParamName0( "aPropertyNames" );
     155        1404 :                 ::rtl::OUString sParamType0( "[]string" );
     156         702 :                 aParameters[0].pParamName = sParamName0.pData;
     157         702 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE;
     158         702 :                 aParameters[0].pTypeName = sParamType0.pData;
     159         702 :                 aParameters[0].bIn = sal_True;
     160         702 :                 aParameters[0].bOut = sal_False;
     161        1404 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     162         702 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     163        1404 :                 ::rtl::OUString sReturnType2( "[]any" );
     164        1404 :                 ::rtl::OUString sMethodName2( "com.sun.star.beans.XMultiPropertySet::getPropertyValues" );
     165             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     166             :                     5, sal_False,
     167             :                     sMethodName2.pData,
     168             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE, sReturnType2.pData,
     169             :                     1, aParameters,
     170         702 :                     1, the_Exceptions );
     171        1404 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     172             :             }
     173             :             {
     174             :                 typelib_Parameter_Init aParameters[2];
     175         702 :                 ::rtl::OUString sParamName0( "aPropertyNames" );
     176        1404 :                 ::rtl::OUString sParamType0( "[]string" );
     177         702 :                 aParameters[0].pParamName = sParamName0.pData;
     178         702 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE;
     179         702 :                 aParameters[0].pTypeName = sParamType0.pData;
     180         702 :                 aParameters[0].bIn = sal_True;
     181         702 :                 aParameters[0].bOut = sal_False;
     182        1404 :                 ::rtl::OUString sParamName1( "xListener" );
     183        1404 :                 ::rtl::OUString sParamType1( "com.sun.star.beans.XPropertiesChangeListener" );
     184         702 :                 aParameters[1].pParamName = sParamName1.pData;
     185         702 :                 aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE;
     186         702 :                 aParameters[1].pTypeName = sParamType1.pData;
     187         702 :                 aParameters[1].bIn = sal_True;
     188         702 :                 aParameters[1].bOut = sal_False;
     189        1404 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     190         702 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     191        1404 :                 ::rtl::OUString sReturnType3( "void" );
     192        1404 :                 ::rtl::OUString sMethodName3( "com.sun.star.beans.XMultiPropertySet::addPropertiesChangeListener" );
     193             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     194             :                     6, sal_False,
     195             :                     sMethodName3.pData,
     196             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_VOID, sReturnType3.pData,
     197             :                     2, aParameters,
     198         702 :                     1, the_Exceptions );
     199        1404 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     200             :             }
     201             :             {
     202             :                 typelib_Parameter_Init aParameters[1];
     203         702 :                 ::rtl::OUString sParamName0( "Listener" );
     204        1404 :                 ::rtl::OUString sParamType0( "com.sun.star.beans.XPropertiesChangeListener" );
     205         702 :                 aParameters[0].pParamName = sParamName0.pData;
     206         702 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE;
     207         702 :                 aParameters[0].pTypeName = sParamType0.pData;
     208         702 :                 aParameters[0].bIn = sal_True;
     209         702 :                 aParameters[0].bOut = sal_False;
     210        1404 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     211         702 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     212        1404 :                 ::rtl::OUString sReturnType4( "void" );
     213        1404 :                 ::rtl::OUString sMethodName4( "com.sun.star.beans.XMultiPropertySet::removePropertiesChangeListener" );
     214             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     215             :                     7, sal_False,
     216             :                     sMethodName4.pData,
     217             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_VOID, sReturnType4.pData,
     218             :                     1, aParameters,
     219         702 :                     1, the_Exceptions );
     220        1404 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     221             :             }
     222             :             {
     223             :                 typelib_Parameter_Init aParameters[2];
     224         702 :                 ::rtl::OUString sParamName0( "PropertyNames" );
     225        1404 :                 ::rtl::OUString sParamType0( "[]string" );
     226         702 :                 aParameters[0].pParamName = sParamName0.pData;
     227         702 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE;
     228         702 :                 aParameters[0].pTypeName = sParamType0.pData;
     229         702 :                 aParameters[0].bIn = sal_True;
     230         702 :                 aParameters[0].bOut = sal_False;
     231        1404 :                 ::rtl::OUString sParamName1( "Listener" );
     232        1404 :                 ::rtl::OUString sParamType1( "com.sun.star.beans.XPropertiesChangeListener" );
     233         702 :                 aParameters[1].pParamName = sParamName1.pData;
     234         702 :                 aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE;
     235         702 :                 aParameters[1].pTypeName = sParamType1.pData;
     236         702 :                 aParameters[1].bIn = sal_True;
     237         702 :                 aParameters[1].bOut = sal_False;
     238        1404 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     239         702 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     240        1404 :                 ::rtl::OUString sReturnType5( "void" );
     241        1404 :                 ::rtl::OUString sMethodName5( "com.sun.star.beans.XMultiPropertySet::firePropertiesChangeEvent" );
     242             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     243             :                     8, sal_False,
     244             :                     sMethodName5.pData,
     245             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_VOID, sReturnType5.pData,
     246             :                     2, aParameters,
     247         702 :                     1, the_Exceptions );
     248        1404 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     249             :             }
     250         702 :             typelib_typedescription_release( (typelib_TypeDescription*)pMethod );
     251         702 :         }
     252             :     }
     253             :     else
     254             :     {
     255             :         OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
     256             :     }
     257      299225 :     return rRet;
     258             : }
     259             : 
     260             : } } } }
     261             : 
     262      297291 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::uno::Reference< css::beans::XMultiPropertySet > const *) SAL_THROW(()) {
     263      297291 :     return ::cppu::UnoType< ::com::sun::star::uno::Reference< css::beans::XMultiPropertySet > >::get();
     264             : }
     265             : 
     266      220978 : ::com::sun::star::uno::Type const & css::beans::XMultiPropertySet::static_type(SAL_UNUSED_PARAMETER void *) {
     267      220978 :     return ::getCppuType(static_cast< ::com::sun::star::uno::Reference< css::beans::XMultiPropertySet > * >(0));
     268             : }
     269             : 
     270             : #endif // INCLUDED_COM_SUN_STAR_BEANS_XMULTIPROPERTYSET_HPP

Generated by: LCOV version 1.10