LCOV - code coverage report
Current view: top level - libreoffice/solver/unxlngi6.pro/inc/udkapi/com/sun/star/beans - XMultiPropertySet.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 144 144 100.0 %
Date: 2012-12-27 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/XPropertiesChangeListener.hpp"
       9             : #include "com/sun/star/lang/WrappedTargetException.hpp"
      10             : #include "com/sun/star/lang/IllegalArgumentException.hpp"
      11             : #include "com/sun/star/beans/PropertyVetoException.hpp"
      12             : #include "com/sun/star/uno/RuntimeException.hpp"
      13             : #include "com/sun/star/beans/XPropertySetInfo.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         139 :     ::com::sun::star::uno::Type * operator()() const
      29             :     {
      30         139 :         ::rtl::OUString sTypeName( "com.sun.star.beans.XMultiPropertySet" );
      31             : 
      32             :         // Start inline typedescription generation
      33         139 :         typelib_InterfaceTypeDescription * pTD = 0;
      34             : 
      35             :         typelib_TypeDescriptionReference * aSuperTypes[1];
      36         139 :         aSuperTypes[0] = ::cppu::UnoType< ::com::sun::star::uno::Reference< css::uno::XInterface > >::get().getTypeLibType();
      37         139 :         typelib_TypeDescriptionReference * pMembers[6] = { 0,0,0,0,0,0 };
      38         139 :         ::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         139 :                                               sMethodName0.pData );
      42         139 :         ::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         139 :                                               sMethodName1.pData );
      46         139 :         ::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         139 :                                               sMethodName2.pData );
      50         139 :         ::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         139 :                                               sMethodName3.pData );
      54         139 :         ::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         139 :                                               sMethodName4.pData );
      58         139 :         ::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         139 :                                               sMethodName5.pData );
      62             : 
      63             :         typelib_typedescription_newMIInterface(
      64             :             &pTD,
      65             :             sTypeName.pData, 0x00000000, 0x0000, 0x0000, 0x00000000, 0x00000000,
      66             :             1, aSuperTypes,
      67             :             6,
      68         139 :             pMembers );
      69             : 
      70         139 :         typelib_typedescription_register( (typelib_TypeDescription**)&pTD );
      71         139 :         typelib_typedescriptionreference_release( pMembers[0] );
      72         139 :         typelib_typedescriptionreference_release( pMembers[1] );
      73         139 :         typelib_typedescriptionreference_release( pMembers[2] );
      74         139 :         typelib_typedescriptionreference_release( pMembers[3] );
      75         139 :         typelib_typedescriptionreference_release( pMembers[4] );
      76         139 :         typelib_typedescriptionreference_release( pMembers[5] );
      77         139 :         typelib_typedescription_release( (typelib_TypeDescription*)pTD );
      78             : 
      79         139 :         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       77600 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::beans::XMultiPropertySet const *) {
      88       77600 :     const ::com::sun::star::uno::Type &rRet = *detail::theXMultiPropertySetType::get();
      89             :     // End inline typedescription generation
      90             :     static bool bInitStarted = false;
      91       77600 :     if (!bInitStarted)
      92             :     {
      93         139 :         ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
      94         139 :         if (!bInitStarted)
      95             :         {
      96             :             OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
      97         139 :             bInitStarted = true;
      98         139 :             ::cppu::UnoType< css::uno::RuntimeException >::get();
      99         139 :             ::cppu::UnoType< ::com::sun::star::uno::Reference< css::beans::XPropertySetInfo > >::get();
     100         139 :             ::cppu::UnoType< ::cppu::UnoSequenceType< ::rtl::OUString > >::get();
     101         139 :             ::cppu::UnoType< ::cppu::UnoSequenceType< ::com::sun::star::uno::Any > >::get();
     102         139 :             ::cppu::UnoType< css::beans::PropertyVetoException >::get();
     103         139 :             ::cppu::UnoType< css::lang::IllegalArgumentException >::get();
     104         139 :             ::cppu::UnoType< css::lang::WrappedTargetException >::get();
     105         139 :             ::cppu::UnoType< ::com::sun::star::uno::Reference< css::beans::XPropertiesChangeListener > >::get();
     106             : 
     107         139 :             typelib_InterfaceMethodTypeDescription * pMethod = 0;
     108             :             {
     109         139 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     110         139 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     111         139 :                 ::rtl::OUString sReturnType0( "com.sun.star.beans.XPropertySetInfo" );
     112         139 :                 ::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         139 :                     1, the_Exceptions );
     119         139 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     120             :             }
     121             :             {
     122             :                 typelib_Parameter_Init aParameters[2];
     123         139 :                 ::rtl::OUString sParamName0( "aPropertyNames" );
     124         139 :                 ::rtl::OUString sParamType0( "[]string" );
     125         139 :                 aParameters[0].pParamName = sParamName0.pData;
     126         139 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE;
     127         139 :                 aParameters[0].pTypeName = sParamType0.pData;
     128         139 :                 aParameters[0].bIn = sal_True;
     129         139 :                 aParameters[0].bOut = sal_False;
     130         139 :                 ::rtl::OUString sParamName1( "aValues" );
     131         139 :                 ::rtl::OUString sParamType1( "[]any" );
     132         139 :                 aParameters[1].pParamName = sParamName1.pData;
     133         139 :                 aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE;
     134         139 :                 aParameters[1].pTypeName = sParamType1.pData;
     135         139 :                 aParameters[1].bIn = sal_True;
     136         139 :                 aParameters[1].bOut = sal_False;
     137         139 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.beans.PropertyVetoException" );
     138         139 :                 ::rtl::OUString the_ExceptionName1( "com.sun.star.lang.IllegalArgumentException" );
     139         139 :                 ::rtl::OUString the_ExceptionName2( "com.sun.star.lang.WrappedTargetException" );
     140         139 :                 ::rtl::OUString the_ExceptionName3( "com.sun.star.uno.RuntimeException" );
     141         139 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData, the_ExceptionName1.pData, the_ExceptionName2.pData, the_ExceptionName3.pData };
     142         139 :                 ::rtl::OUString sReturnType1( "void" );
     143         139 :                 ::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         139 :                     4, the_Exceptions );
     150         139 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     151             :             }
     152             :             {
     153             :                 typelib_Parameter_Init aParameters[1];
     154         139 :                 ::rtl::OUString sParamName0( "aPropertyNames" );
     155         139 :                 ::rtl::OUString sParamType0( "[]string" );
     156         139 :                 aParameters[0].pParamName = sParamName0.pData;
     157         139 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE;
     158         139 :                 aParameters[0].pTypeName = sParamType0.pData;
     159         139 :                 aParameters[0].bIn = sal_True;
     160         139 :                 aParameters[0].bOut = sal_False;
     161         139 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     162         139 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     163         139 :                 ::rtl::OUString sReturnType2( "[]any" );
     164         139 :                 ::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         139 :                     1, the_Exceptions );
     171         139 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     172             :             }
     173             :             {
     174             :                 typelib_Parameter_Init aParameters[2];
     175         139 :                 ::rtl::OUString sParamName0( "aPropertyNames" );
     176         139 :                 ::rtl::OUString sParamType0( "[]string" );
     177         139 :                 aParameters[0].pParamName = sParamName0.pData;
     178         139 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE;
     179         139 :                 aParameters[0].pTypeName = sParamType0.pData;
     180         139 :                 aParameters[0].bIn = sal_True;
     181         139 :                 aParameters[0].bOut = sal_False;
     182         139 :                 ::rtl::OUString sParamName1( "xListener" );
     183         139 :                 ::rtl::OUString sParamType1( "com.sun.star.beans.XPropertiesChangeListener" );
     184         139 :                 aParameters[1].pParamName = sParamName1.pData;
     185         139 :                 aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE;
     186         139 :                 aParameters[1].pTypeName = sParamType1.pData;
     187         139 :                 aParameters[1].bIn = sal_True;
     188         139 :                 aParameters[1].bOut = sal_False;
     189         139 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     190         139 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     191         139 :                 ::rtl::OUString sReturnType3( "void" );
     192         139 :                 ::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         139 :                     1, the_Exceptions );
     199         139 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     200             :             }
     201             :             {
     202             :                 typelib_Parameter_Init aParameters[1];
     203         139 :                 ::rtl::OUString sParamName0( "xListener" );
     204         139 :                 ::rtl::OUString sParamType0( "com.sun.star.beans.XPropertiesChangeListener" );
     205         139 :                 aParameters[0].pParamName = sParamName0.pData;
     206         139 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE;
     207         139 :                 aParameters[0].pTypeName = sParamType0.pData;
     208         139 :                 aParameters[0].bIn = sal_True;
     209         139 :                 aParameters[0].bOut = sal_False;
     210         139 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     211         139 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     212         139 :                 ::rtl::OUString sReturnType4( "void" );
     213         139 :                 ::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         139 :                     1, the_Exceptions );
     220         139 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     221             :             }
     222             :             {
     223             :                 typelib_Parameter_Init aParameters[2];
     224         139 :                 ::rtl::OUString sParamName0( "aPropertyNames" );
     225         139 :                 ::rtl::OUString sParamType0( "[]string" );
     226         139 :                 aParameters[0].pParamName = sParamName0.pData;
     227         139 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE;
     228         139 :                 aParameters[0].pTypeName = sParamType0.pData;
     229         139 :                 aParameters[0].bIn = sal_True;
     230         139 :                 aParameters[0].bOut = sal_False;
     231         139 :                 ::rtl::OUString sParamName1( "xListener" );
     232         139 :                 ::rtl::OUString sParamType1( "com.sun.star.beans.XPropertiesChangeListener" );
     233         139 :                 aParameters[1].pParamName = sParamName1.pData;
     234         139 :                 aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE;
     235         139 :                 aParameters[1].pTypeName = sParamType1.pData;
     236         139 :                 aParameters[1].bIn = sal_True;
     237         139 :                 aParameters[1].bOut = sal_False;
     238         139 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     239         139 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     240         139 :                 ::rtl::OUString sReturnType5( "void" );
     241         139 :                 ::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         139 :                     1, the_Exceptions );
     248         139 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     249             :             }
     250         139 :             typelib_typedescription_release( (typelib_TypeDescription*)pMethod );
     251         139 :         }
     252             :     }
     253             :     else
     254             :     {
     255             :         OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
     256             :     }
     257       77600 :     return rRet;
     258             : }
     259             : 
     260             : } } } }
     261             : 
     262       76934 : 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       76934 :     return ::cppu::UnoType< ::com::sun::star::uno::Reference< css::beans::XMultiPropertySet > >::get();
     264             : }
     265             : 
     266       68188 : ::com::sun::star::uno::Type const & css::beans::XMultiPropertySet::static_type(SAL_UNUSED_PARAMETER void *) {
     267       68188 :     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