LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/workdir/unxlngi6.pro/UnoApiHeadersTarget/udkapi/comprehensive/com/sun/star/reflection - XIdlClass.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 219 219 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_REFLECTION_XIDLCLASS_HPP
       2             : #define INCLUDED_COM_SUN_STAR_REFLECTION_XIDLCLASS_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include "com/sun/star/reflection/XIdlClass.hdl"
       7             : 
       8             : #include "com/sun/star/reflection/XIdlArray.hpp"
       9             : #include "com/sun/star/reflection/XIdlClass.hpp"
      10             : #include "com/sun/star/reflection/XIdlField.hpp"
      11             : #include "com/sun/star/reflection/XIdlMethod.hpp"
      12             : #include "com/sun/star/uno/RuntimeException.hpp"
      13             : #include "com/sun/star/uno/TypeClass.hpp"
      14             : #include "com/sun/star/uno/Uik.hpp"
      15             : #include "com/sun/star/uno/XInterface.hpp"
      16             : #include "com/sun/star/uno/Any.hxx"
      17             : #include "com/sun/star/uno/Reference.hxx"
      18             : #include "com/sun/star/uno/Sequence.hxx"
      19             : #include "com/sun/star/uno/Type.hxx"
      20             : #include "cppu/unotype.hxx"
      21             : #include "osl/mutex.hxx"
      22             : #include "rtl/ustring.hxx"
      23             : #include "rtl/instance.hxx"
      24             : #include "sal/types.h"
      25             : 
      26             : namespace com { namespace sun { namespace star { namespace reflection { namespace detail {
      27             : 
      28             : struct theXIdlClassType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theXIdlClassType >
      29             : {
      30          56 :     ::com::sun::star::uno::Type * operator()() const
      31             :     {
      32          56 :         ::rtl::OUString sTypeName( "com.sun.star.reflection.XIdlClass" );
      33             : 
      34             :         // Start inline typedescription generation
      35          56 :         typelib_InterfaceTypeDescription * pTD = 0;
      36             : 
      37             :         typelib_TypeDescriptionReference * aSuperTypes[1];
      38          56 :         aSuperTypes[0] = ::cppu::UnoType< ::com::sun::star::uno::Reference< css::uno::XInterface > >::get().getTypeLibType();
      39          56 :         typelib_TypeDescriptionReference * pMembers[16] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 };
      40         112 :         ::rtl::OUString sMethodName0( "com.sun.star.reflection.XIdlClass::getClasses" );
      41             :         typelib_typedescriptionreference_new( &pMembers[0],
      42             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      43          56 :                                               sMethodName0.pData );
      44         112 :         ::rtl::OUString sMethodName1( "com.sun.star.reflection.XIdlClass::getClass" );
      45             :         typelib_typedescriptionreference_new( &pMembers[1],
      46             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      47          56 :                                               sMethodName1.pData );
      48         112 :         ::rtl::OUString sMethodName2( "com.sun.star.reflection.XIdlClass::equals" );
      49             :         typelib_typedescriptionreference_new( &pMembers[2],
      50             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      51          56 :                                               sMethodName2.pData );
      52         112 :         ::rtl::OUString sMethodName3( "com.sun.star.reflection.XIdlClass::isAssignableFrom" );
      53             :         typelib_typedescriptionreference_new( &pMembers[3],
      54             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      55          56 :                                               sMethodName3.pData );
      56         112 :         ::rtl::OUString sMethodName4( "com.sun.star.reflection.XIdlClass::getTypeClass" );
      57             :         typelib_typedescriptionreference_new( &pMembers[4],
      58             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      59          56 :                                               sMethodName4.pData );
      60         112 :         ::rtl::OUString sMethodName5( "com.sun.star.reflection.XIdlClass::getName" );
      61             :         typelib_typedescriptionreference_new( &pMembers[5],
      62             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      63          56 :                                               sMethodName5.pData );
      64         112 :         ::rtl::OUString sMethodName6( "com.sun.star.reflection.XIdlClass::getUik" );
      65             :         typelib_typedescriptionreference_new( &pMembers[6],
      66             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      67          56 :                                               sMethodName6.pData );
      68         112 :         ::rtl::OUString sMethodName7( "com.sun.star.reflection.XIdlClass::getSuperclasses" );
      69             :         typelib_typedescriptionreference_new( &pMembers[7],
      70             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      71          56 :                                               sMethodName7.pData );
      72         112 :         ::rtl::OUString sMethodName8( "com.sun.star.reflection.XIdlClass::getInterfaces" );
      73             :         typelib_typedescriptionreference_new( &pMembers[8],
      74             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      75          56 :                                               sMethodName8.pData );
      76         112 :         ::rtl::OUString sMethodName9( "com.sun.star.reflection.XIdlClass::getComponentType" );
      77             :         typelib_typedescriptionreference_new( &pMembers[9],
      78             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      79          56 :                                               sMethodName9.pData );
      80         112 :         ::rtl::OUString sMethodName10( "com.sun.star.reflection.XIdlClass::getField" );
      81             :         typelib_typedescriptionreference_new( &pMembers[10],
      82             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      83          56 :                                               sMethodName10.pData );
      84         112 :         ::rtl::OUString sMethodName11( "com.sun.star.reflection.XIdlClass::getFields" );
      85             :         typelib_typedescriptionreference_new( &pMembers[11],
      86             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      87          56 :                                               sMethodName11.pData );
      88         112 :         ::rtl::OUString sMethodName12( "com.sun.star.reflection.XIdlClass::getMethod" );
      89             :         typelib_typedescriptionreference_new( &pMembers[12],
      90             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      91          56 :                                               sMethodName12.pData );
      92         112 :         ::rtl::OUString sMethodName13( "com.sun.star.reflection.XIdlClass::getMethods" );
      93             :         typelib_typedescriptionreference_new( &pMembers[13],
      94             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      95          56 :                                               sMethodName13.pData );
      96         112 :         ::rtl::OUString sMethodName14( "com.sun.star.reflection.XIdlClass::getArray" );
      97             :         typelib_typedescriptionreference_new( &pMembers[14],
      98             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      99          56 :                                               sMethodName14.pData );
     100         112 :         ::rtl::OUString sMethodName15( "com.sun.star.reflection.XIdlClass::createObject" );
     101             :         typelib_typedescriptionreference_new( &pMembers[15],
     102             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
     103          56 :                                               sMethodName15.pData );
     104             : 
     105             :         typelib_typedescription_newMIInterface(
     106             :             &pTD,
     107             :             sTypeName.pData, 0x00000000, 0x0000, 0x0000, 0x00000000, 0x00000000,
     108             :             1, aSuperTypes,
     109             :             16,
     110          56 :             pMembers );
     111             : 
     112          56 :         typelib_typedescription_register( (typelib_TypeDescription**)&pTD );
     113          56 :         typelib_typedescriptionreference_release( pMembers[0] );
     114          56 :         typelib_typedescriptionreference_release( pMembers[1] );
     115          56 :         typelib_typedescriptionreference_release( pMembers[2] );
     116          56 :         typelib_typedescriptionreference_release( pMembers[3] );
     117          56 :         typelib_typedescriptionreference_release( pMembers[4] );
     118          56 :         typelib_typedescriptionreference_release( pMembers[5] );
     119          56 :         typelib_typedescriptionreference_release( pMembers[6] );
     120          56 :         typelib_typedescriptionreference_release( pMembers[7] );
     121          56 :         typelib_typedescriptionreference_release( pMembers[8] );
     122          56 :         typelib_typedescriptionreference_release( pMembers[9] );
     123          56 :         typelib_typedescriptionreference_release( pMembers[10] );
     124          56 :         typelib_typedescriptionreference_release( pMembers[11] );
     125          56 :         typelib_typedescriptionreference_release( pMembers[12] );
     126          56 :         typelib_typedescriptionreference_release( pMembers[13] );
     127          56 :         typelib_typedescriptionreference_release( pMembers[14] );
     128          56 :         typelib_typedescriptionreference_release( pMembers[15] );
     129          56 :         typelib_typedescription_release( (typelib_TypeDescription*)pTD );
     130             : 
     131         112 :         return new ::com::sun::star::uno::Type( ::com::sun::star::uno::TypeClass_INTERFACE, sTypeName ); // leaked
     132             :     }
     133             : };
     134             : 
     135             : } } } } }
     136             : 
     137             : namespace com { namespace sun { namespace star { namespace reflection {
     138             : 
     139        4297 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::reflection::XIdlClass const *) {
     140        4297 :     const ::com::sun::star::uno::Type &rRet = *detail::theXIdlClassType::get();
     141             :     // End inline typedescription generation
     142             :     static bool bInitStarted = false;
     143        4297 :     if (!bInitStarted)
     144             :     {
     145          56 :         ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
     146          56 :         if (!bInitStarted)
     147             :         {
     148             :             OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
     149          56 :             bInitStarted = true;
     150          56 :             ::cppu::UnoType< css::uno::RuntimeException >::get();
     151          56 :             ::cppu::UnoType< ::cppu::UnoSequenceType< ::com::sun::star::uno::Reference< css::reflection::XIdlClass > > >::get();
     152          56 :             ::cppu::UnoType< ::com::sun::star::uno::Reference< css::reflection::XIdlClass > >::get();
     153          56 :             ::cppu::UnoType< css::uno::TypeClass >::get();
     154          56 :             ::cppu::UnoType< css::uno::Uik >::get();
     155          56 :             ::cppu::UnoType< ::com::sun::star::uno::Reference< css::reflection::XIdlField > >::get();
     156          56 :             ::cppu::UnoType< ::cppu::UnoSequenceType< ::com::sun::star::uno::Reference< css::reflection::XIdlField > > >::get();
     157          56 :             ::cppu::UnoType< ::com::sun::star::uno::Reference< css::reflection::XIdlMethod > >::get();
     158          56 :             ::cppu::UnoType< ::cppu::UnoSequenceType< ::com::sun::star::uno::Reference< css::reflection::XIdlMethod > > >::get();
     159          56 :             ::cppu::UnoType< ::com::sun::star::uno::Reference< css::reflection::XIdlArray > >::get();
     160             : 
     161          56 :             typelib_InterfaceMethodTypeDescription * pMethod = 0;
     162             :             {
     163          56 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     164          56 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     165         112 :                 ::rtl::OUString sReturnType0( "[]com.sun.star.reflection.XIdlClass" );
     166         112 :                 ::rtl::OUString sMethodName0( "com.sun.star.reflection.XIdlClass::getClasses" );
     167             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     168             :                     3, sal_False,
     169             :                     sMethodName0.pData,
     170             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE, sReturnType0.pData,
     171             :                     0, 0,
     172          56 :                     1, the_Exceptions );
     173         112 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     174             :             }
     175             :             {
     176             :                 typelib_Parameter_Init aParameters[1];
     177          56 :                 ::rtl::OUString sParamName0( "aName" );
     178         112 :                 ::rtl::OUString sParamType0( "string" );
     179          56 :                 aParameters[0].pParamName = sParamName0.pData;
     180          56 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRING;
     181          56 :                 aParameters[0].pTypeName = sParamType0.pData;
     182          56 :                 aParameters[0].bIn = sal_True;
     183          56 :                 aParameters[0].bOut = sal_False;
     184         112 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     185          56 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     186         112 :                 ::rtl::OUString sReturnType1( "com.sun.star.reflection.XIdlClass" );
     187         112 :                 ::rtl::OUString sMethodName1( "com.sun.star.reflection.XIdlClass::getClass" );
     188             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     189             :                     4, sal_False,
     190             :                     sMethodName1.pData,
     191             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE, sReturnType1.pData,
     192             :                     1, aParameters,
     193          56 :                     1, the_Exceptions );
     194         112 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     195             :             }
     196             :             {
     197             :                 typelib_Parameter_Init aParameters[1];
     198          56 :                 ::rtl::OUString sParamName0( "Type" );
     199         112 :                 ::rtl::OUString sParamType0( "com.sun.star.reflection.XIdlClass" );
     200          56 :                 aParameters[0].pParamName = sParamName0.pData;
     201          56 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE;
     202          56 :                 aParameters[0].pTypeName = sParamType0.pData;
     203          56 :                 aParameters[0].bIn = sal_True;
     204          56 :                 aParameters[0].bOut = sal_False;
     205         112 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     206          56 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     207         112 :                 ::rtl::OUString sReturnType2( "boolean" );
     208         112 :                 ::rtl::OUString sMethodName2( "com.sun.star.reflection.XIdlClass::equals" );
     209             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     210             :                     5, sal_False,
     211             :                     sMethodName2.pData,
     212             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_BOOLEAN, sReturnType2.pData,
     213             :                     1, aParameters,
     214          56 :                     1, the_Exceptions );
     215         112 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     216             :             }
     217             :             {
     218             :                 typelib_Parameter_Init aParameters[1];
     219          56 :                 ::rtl::OUString sParamName0( "xType" );
     220         112 :                 ::rtl::OUString sParamType0( "com.sun.star.reflection.XIdlClass" );
     221          56 :                 aParameters[0].pParamName = sParamName0.pData;
     222          56 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE;
     223          56 :                 aParameters[0].pTypeName = sParamType0.pData;
     224          56 :                 aParameters[0].bIn = sal_True;
     225          56 :                 aParameters[0].bOut = sal_False;
     226         112 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     227          56 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     228         112 :                 ::rtl::OUString sReturnType3( "boolean" );
     229         112 :                 ::rtl::OUString sMethodName3( "com.sun.star.reflection.XIdlClass::isAssignableFrom" );
     230             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     231             :                     6, sal_False,
     232             :                     sMethodName3.pData,
     233             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_BOOLEAN, sReturnType3.pData,
     234             :                     1, aParameters,
     235          56 :                     1, the_Exceptions );
     236         112 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     237             :             }
     238             :             {
     239          56 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     240          56 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     241         112 :                 ::rtl::OUString sReturnType4( "com.sun.star.uno.TypeClass" );
     242         112 :                 ::rtl::OUString sMethodName4( "com.sun.star.reflection.XIdlClass::getTypeClass" );
     243             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     244             :                     7, sal_False,
     245             :                     sMethodName4.pData,
     246             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_ENUM, sReturnType4.pData,
     247             :                     0, 0,
     248          56 :                     1, the_Exceptions );
     249         112 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     250             :             }
     251             :             {
     252          56 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     253          56 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     254         112 :                 ::rtl::OUString sReturnType5( "string" );
     255         112 :                 ::rtl::OUString sMethodName5( "com.sun.star.reflection.XIdlClass::getName" );
     256             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     257             :                     8, sal_False,
     258             :                     sMethodName5.pData,
     259             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRING, sReturnType5.pData,
     260             :                     0, 0,
     261          56 :                     1, the_Exceptions );
     262         112 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     263             :             }
     264             :             {
     265          56 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     266          56 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     267         112 :                 ::rtl::OUString sReturnType6( "com.sun.star.uno.Uik" );
     268         112 :                 ::rtl::OUString sMethodName6( "com.sun.star.reflection.XIdlClass::getUik" );
     269             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     270             :                     9, sal_False,
     271             :                     sMethodName6.pData,
     272             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRUCT, sReturnType6.pData,
     273             :                     0, 0,
     274          56 :                     1, the_Exceptions );
     275         112 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     276             :             }
     277             :             {
     278          56 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     279          56 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     280         112 :                 ::rtl::OUString sReturnType7( "[]com.sun.star.reflection.XIdlClass" );
     281         112 :                 ::rtl::OUString sMethodName7( "com.sun.star.reflection.XIdlClass::getSuperclasses" );
     282             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     283             :                     10, sal_False,
     284             :                     sMethodName7.pData,
     285             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE, sReturnType7.pData,
     286             :                     0, 0,
     287          56 :                     1, the_Exceptions );
     288         112 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     289             :             }
     290             :             {
     291          56 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     292          56 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     293         112 :                 ::rtl::OUString sReturnType8( "[]com.sun.star.reflection.XIdlClass" );
     294         112 :                 ::rtl::OUString sMethodName8( "com.sun.star.reflection.XIdlClass::getInterfaces" );
     295             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     296             :                     11, sal_False,
     297             :                     sMethodName8.pData,
     298             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE, sReturnType8.pData,
     299             :                     0, 0,
     300          56 :                     1, the_Exceptions );
     301         112 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     302             :             }
     303             :             {
     304          56 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     305          56 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     306         112 :                 ::rtl::OUString sReturnType9( "com.sun.star.reflection.XIdlClass" );
     307         112 :                 ::rtl::OUString sMethodName9( "com.sun.star.reflection.XIdlClass::getComponentType" );
     308             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     309             :                     12, sal_False,
     310             :                     sMethodName9.pData,
     311             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE, sReturnType9.pData,
     312             :                     0, 0,
     313          56 :                     1, the_Exceptions );
     314         112 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     315             :             }
     316             :             {
     317             :                 typelib_Parameter_Init aParameters[1];
     318          56 :                 ::rtl::OUString sParamName0( "aName" );
     319         112 :                 ::rtl::OUString sParamType0( "string" );
     320          56 :                 aParameters[0].pParamName = sParamName0.pData;
     321          56 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRING;
     322          56 :                 aParameters[0].pTypeName = sParamType0.pData;
     323          56 :                 aParameters[0].bIn = sal_True;
     324          56 :                 aParameters[0].bOut = sal_False;
     325         112 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     326          56 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     327         112 :                 ::rtl::OUString sReturnType10( "com.sun.star.reflection.XIdlField" );
     328         112 :                 ::rtl::OUString sMethodName10( "com.sun.star.reflection.XIdlClass::getField" );
     329             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     330             :                     13, sal_False,
     331             :                     sMethodName10.pData,
     332             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE, sReturnType10.pData,
     333             :                     1, aParameters,
     334          56 :                     1, the_Exceptions );
     335         112 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     336             :             }
     337             :             {
     338          56 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     339          56 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     340         112 :                 ::rtl::OUString sReturnType11( "[]com.sun.star.reflection.XIdlField" );
     341         112 :                 ::rtl::OUString sMethodName11( "com.sun.star.reflection.XIdlClass::getFields" );
     342             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     343             :                     14, sal_False,
     344             :                     sMethodName11.pData,
     345             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE, sReturnType11.pData,
     346             :                     0, 0,
     347          56 :                     1, the_Exceptions );
     348         112 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     349             :             }
     350             :             {
     351             :                 typelib_Parameter_Init aParameters[1];
     352          56 :                 ::rtl::OUString sParamName0( "aName" );
     353         112 :                 ::rtl::OUString sParamType0( "string" );
     354          56 :                 aParameters[0].pParamName = sParamName0.pData;
     355          56 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRING;
     356          56 :                 aParameters[0].pTypeName = sParamType0.pData;
     357          56 :                 aParameters[0].bIn = sal_True;
     358          56 :                 aParameters[0].bOut = sal_False;
     359         112 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     360          56 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     361         112 :                 ::rtl::OUString sReturnType12( "com.sun.star.reflection.XIdlMethod" );
     362         112 :                 ::rtl::OUString sMethodName12( "com.sun.star.reflection.XIdlClass::getMethod" );
     363             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     364             :                     15, sal_False,
     365             :                     sMethodName12.pData,
     366             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE, sReturnType12.pData,
     367             :                     1, aParameters,
     368          56 :                     1, the_Exceptions );
     369         112 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     370             :             }
     371             :             {
     372          56 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     373          56 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     374         112 :                 ::rtl::OUString sReturnType13( "[]com.sun.star.reflection.XIdlMethod" );
     375         112 :                 ::rtl::OUString sMethodName13( "com.sun.star.reflection.XIdlClass::getMethods" );
     376             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     377             :                     16, sal_False,
     378             :                     sMethodName13.pData,
     379             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE, sReturnType13.pData,
     380             :                     0, 0,
     381          56 :                     1, the_Exceptions );
     382         112 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     383             :             }
     384             :             {
     385          56 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     386          56 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     387         112 :                 ::rtl::OUString sReturnType14( "com.sun.star.reflection.XIdlArray" );
     388         112 :                 ::rtl::OUString sMethodName14( "com.sun.star.reflection.XIdlClass::getArray" );
     389             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     390             :                     17, sal_False,
     391             :                     sMethodName14.pData,
     392             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE, sReturnType14.pData,
     393             :                     0, 0,
     394          56 :                     1, the_Exceptions );
     395         112 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     396             :             }
     397             :             {
     398             :                 typelib_Parameter_Init aParameters[1];
     399          56 :                 ::rtl::OUString sParamName0( "obj" );
     400         112 :                 ::rtl::OUString sParamType0( "any" );
     401          56 :                 aParameters[0].pParamName = sParamName0.pData;
     402          56 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_ANY;
     403          56 :                 aParameters[0].pTypeName = sParamType0.pData;
     404          56 :                 aParameters[0].bIn = sal_False;
     405          56 :                 aParameters[0].bOut = sal_True;
     406         112 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     407          56 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     408         112 :                 ::rtl::OUString sReturnType15( "void" );
     409         112 :                 ::rtl::OUString sMethodName15( "com.sun.star.reflection.XIdlClass::createObject" );
     410             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     411             :                     18, sal_False,
     412             :                     sMethodName15.pData,
     413             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_VOID, sReturnType15.pData,
     414             :                     1, aParameters,
     415          56 :                     1, the_Exceptions );
     416         112 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     417             :             }
     418          56 :             typelib_typedescription_release( (typelib_TypeDescription*)pMethod );
     419          56 :         }
     420             :     }
     421             :     else
     422             :     {
     423             :         OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
     424             :     }
     425        4297 :     return rRet;
     426             : }
     427             : 
     428             : } } } }
     429             : 
     430        3894 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::uno::Reference< css::reflection::XIdlClass > const *) SAL_THROW(()) {
     431        3894 :     return ::cppu::UnoType< ::com::sun::star::uno::Reference< css::reflection::XIdlClass > >::get();
     432             : }
     433             : 
     434        3894 : ::com::sun::star::uno::Type const & css::reflection::XIdlClass::static_type(SAL_UNUSED_PARAMETER void *) {
     435        3894 :     return ::getCppuType(static_cast< ::com::sun::star::uno::Reference< css::reflection::XIdlClass > * >(0));
     436             : }
     437             : 
     438             : #endif // INCLUDED_COM_SUN_STAR_REFLECTION_XIDLCLASS_HPP

Generated by: LCOV version 1.10