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