LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/workdir/unxlngi6.pro/UnoApiHeadersTarget/udkapi/normal/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         217 :     ::com::sun::star::uno::Type * operator()() const
      31             :     {
      32         217 :         ::rtl::OUString sTypeName( "com.sun.star.reflection.XIdlClass" );
      33             : 
      34             :         // Start inline typedescription generation
      35         217 :         typelib_InterfaceTypeDescription * pTD = 0;
      36             : 
      37             :         typelib_TypeDescriptionReference * aSuperTypes[1];
      38         217 :         aSuperTypes[0] = ::cppu::UnoType< ::com::sun::star::uno::Reference< css::uno::XInterface > >::get().getTypeLibType();
      39         217 :         typelib_TypeDescriptionReference * pMembers[16] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 };
      40         434 :         ::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         217 :                                               sMethodName0.pData );
      44         434 :         ::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         217 :                                               sMethodName1.pData );
      48         434 :         ::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         217 :                                               sMethodName2.pData );
      52         434 :         ::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         217 :                                               sMethodName3.pData );
      56         434 :         ::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         217 :                                               sMethodName4.pData );
      60         434 :         ::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         217 :                                               sMethodName5.pData );
      64         434 :         ::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         217 :                                               sMethodName6.pData );
      68         434 :         ::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         217 :                                               sMethodName7.pData );
      72         434 :         ::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         217 :                                               sMethodName8.pData );
      76         434 :         ::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         217 :                                               sMethodName9.pData );
      80         434 :         ::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         217 :                                               sMethodName10.pData );
      84         434 :         ::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         217 :                                               sMethodName11.pData );
      88         434 :         ::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         217 :                                               sMethodName12.pData );
      92         434 :         ::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         217 :                                               sMethodName13.pData );
      96         434 :         ::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         217 :                                               sMethodName14.pData );
     100         434 :         ::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         217 :                                               sMethodName15.pData );
     104             : 
     105             :         typelib_typedescription_newMIInterface(
     106             :             &pTD,
     107             :             sTypeName.pData, 0x00000000, 0x0000, 0x0000, 0x00000000, 0x00000000,
     108             :             1, aSuperTypes,
     109             :             16,
     110         217 :             pMembers );
     111             : 
     112         217 :         typelib_typedescription_register( (typelib_TypeDescription**)&pTD );
     113         217 :         typelib_typedescriptionreference_release( pMembers[0] );
     114         217 :         typelib_typedescriptionreference_release( pMembers[1] );
     115         217 :         typelib_typedescriptionreference_release( pMembers[2] );
     116         217 :         typelib_typedescriptionreference_release( pMembers[3] );
     117         217 :         typelib_typedescriptionreference_release( pMembers[4] );
     118         217 :         typelib_typedescriptionreference_release( pMembers[5] );
     119         217 :         typelib_typedescriptionreference_release( pMembers[6] );
     120         217 :         typelib_typedescriptionreference_release( pMembers[7] );
     121         217 :         typelib_typedescriptionreference_release( pMembers[8] );
     122         217 :         typelib_typedescriptionreference_release( pMembers[9] );
     123         217 :         typelib_typedescriptionreference_release( pMembers[10] );
     124         217 :         typelib_typedescriptionreference_release( pMembers[11] );
     125         217 :         typelib_typedescriptionreference_release( pMembers[12] );
     126         217 :         typelib_typedescriptionreference_release( pMembers[13] );
     127         217 :         typelib_typedescriptionreference_release( pMembers[14] );
     128         217 :         typelib_typedescriptionreference_release( pMembers[15] );
     129         217 :         typelib_typedescription_release( (typelib_TypeDescription*)pTD );
     130             : 
     131         434 :         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       13336 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::reflection::XIdlClass const *) {
     140       13336 :     const ::com::sun::star::uno::Type &rRet = *detail::theXIdlClassType::get();
     141             :     // End inline typedescription generation
     142             :     static bool bInitStarted = false;
     143       13336 :     if (!bInitStarted)
     144             :     {
     145         217 :         ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
     146         217 :         if (!bInitStarted)
     147             :         {
     148             :             OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
     149         217 :             bInitStarted = true;
     150         217 :             ::cppu::UnoType< css::uno::RuntimeException >::get();
     151         217 :             ::cppu::UnoType< ::cppu::UnoSequenceType< ::com::sun::star::uno::Reference< css::reflection::XIdlClass > > >::get();
     152         217 :             ::cppu::UnoType< ::com::sun::star::uno::Reference< css::reflection::XIdlClass > >::get();
     153         217 :             ::cppu::UnoType< css::uno::TypeClass >::get();
     154         217 :             ::cppu::UnoType< css::uno::Uik >::get();
     155         217 :             ::cppu::UnoType< ::com::sun::star::uno::Reference< css::reflection::XIdlField > >::get();
     156         217 :             ::cppu::UnoType< ::cppu::UnoSequenceType< ::com::sun::star::uno::Reference< css::reflection::XIdlField > > >::get();
     157         217 :             ::cppu::UnoType< ::com::sun::star::uno::Reference< css::reflection::XIdlMethod > >::get();
     158         217 :             ::cppu::UnoType< ::cppu::UnoSequenceType< ::com::sun::star::uno::Reference< css::reflection::XIdlMethod > > >::get();
     159         217 :             ::cppu::UnoType< ::com::sun::star::uno::Reference< css::reflection::XIdlArray > >::get();
     160             : 
     161         217 :             typelib_InterfaceMethodTypeDescription * pMethod = 0;
     162             :             {
     163         217 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     164         217 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     165         434 :                 ::rtl::OUString sReturnType0( "[]com.sun.star.reflection.XIdlClass" );
     166         434 :                 ::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         217 :                     1, the_Exceptions );
     173         434 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     174             :             }
     175             :             {
     176             :                 typelib_Parameter_Init aParameters[1];
     177         217 :                 ::rtl::OUString sParamName0( "aName" );
     178         434 :                 ::rtl::OUString sParamType0( "string" );
     179         217 :                 aParameters[0].pParamName = sParamName0.pData;
     180         217 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRING;
     181         217 :                 aParameters[0].pTypeName = sParamType0.pData;
     182         217 :                 aParameters[0].bIn = sal_True;
     183         217 :                 aParameters[0].bOut = sal_False;
     184         434 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     185         217 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     186         434 :                 ::rtl::OUString sReturnType1( "com.sun.star.reflection.XIdlClass" );
     187         434 :                 ::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         217 :                     1, the_Exceptions );
     194         434 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     195             :             }
     196             :             {
     197             :                 typelib_Parameter_Init aParameters[1];
     198         217 :                 ::rtl::OUString sParamName0( "Type" );
     199         434 :                 ::rtl::OUString sParamType0( "com.sun.star.reflection.XIdlClass" );
     200         217 :                 aParameters[0].pParamName = sParamName0.pData;
     201         217 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE;
     202         217 :                 aParameters[0].pTypeName = sParamType0.pData;
     203         217 :                 aParameters[0].bIn = sal_True;
     204         217 :                 aParameters[0].bOut = sal_False;
     205         434 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     206         217 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     207         434 :                 ::rtl::OUString sReturnType2( "boolean" );
     208         434 :                 ::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         217 :                     1, the_Exceptions );
     215         434 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     216             :             }
     217             :             {
     218             :                 typelib_Parameter_Init aParameters[1];
     219         217 :                 ::rtl::OUString sParamName0( "xType" );
     220         434 :                 ::rtl::OUString sParamType0( "com.sun.star.reflection.XIdlClass" );
     221         217 :                 aParameters[0].pParamName = sParamName0.pData;
     222         217 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE;
     223         217 :                 aParameters[0].pTypeName = sParamType0.pData;
     224         217 :                 aParameters[0].bIn = sal_True;
     225         217 :                 aParameters[0].bOut = sal_False;
     226         434 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     227         217 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     228         434 :                 ::rtl::OUString sReturnType3( "boolean" );
     229         434 :                 ::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         217 :                     1, the_Exceptions );
     236         434 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     237             :             }
     238             :             {
     239         217 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     240         217 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     241         434 :                 ::rtl::OUString sReturnType4( "com.sun.star.uno.TypeClass" );
     242         434 :                 ::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         217 :                     1, the_Exceptions );
     249         434 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     250             :             }
     251             :             {
     252         217 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     253         217 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     254         434 :                 ::rtl::OUString sReturnType5( "string" );
     255         434 :                 ::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         217 :                     1, the_Exceptions );
     262         434 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     263             :             }
     264             :             {
     265         217 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     266         217 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     267         434 :                 ::rtl::OUString sReturnType6( "com.sun.star.uno.Uik" );
     268         434 :                 ::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         217 :                     1, the_Exceptions );
     275         434 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     276             :             }
     277             :             {
     278         217 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     279         217 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     280         434 :                 ::rtl::OUString sReturnType7( "[]com.sun.star.reflection.XIdlClass" );
     281         434 :                 ::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         217 :                     1, the_Exceptions );
     288         434 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     289             :             }
     290             :             {
     291         217 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     292         217 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     293         434 :                 ::rtl::OUString sReturnType8( "[]com.sun.star.reflection.XIdlClass" );
     294         434 :                 ::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         217 :                     1, the_Exceptions );
     301         434 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     302             :             }
     303             :             {
     304         217 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     305         217 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     306         434 :                 ::rtl::OUString sReturnType9( "com.sun.star.reflection.XIdlClass" );
     307         434 :                 ::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         217 :                     1, the_Exceptions );
     314         434 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     315             :             }
     316             :             {
     317             :                 typelib_Parameter_Init aParameters[1];
     318         217 :                 ::rtl::OUString sParamName0( "aName" );
     319         434 :                 ::rtl::OUString sParamType0( "string" );
     320         217 :                 aParameters[0].pParamName = sParamName0.pData;
     321         217 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRING;
     322         217 :                 aParameters[0].pTypeName = sParamType0.pData;
     323         217 :                 aParameters[0].bIn = sal_True;
     324         217 :                 aParameters[0].bOut = sal_False;
     325         434 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     326         217 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     327         434 :                 ::rtl::OUString sReturnType10( "com.sun.star.reflection.XIdlField" );
     328         434 :                 ::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         217 :                     1, the_Exceptions );
     335         434 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     336             :             }
     337             :             {
     338         217 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     339         217 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     340         434 :                 ::rtl::OUString sReturnType11( "[]com.sun.star.reflection.XIdlField" );
     341         434 :                 ::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         217 :                     1, the_Exceptions );
     348         434 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     349             :             }
     350             :             {
     351             :                 typelib_Parameter_Init aParameters[1];
     352         217 :                 ::rtl::OUString sParamName0( "aName" );
     353         434 :                 ::rtl::OUString sParamType0( "string" );
     354         217 :                 aParameters[0].pParamName = sParamName0.pData;
     355         217 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRING;
     356         217 :                 aParameters[0].pTypeName = sParamType0.pData;
     357         217 :                 aParameters[0].bIn = sal_True;
     358         217 :                 aParameters[0].bOut = sal_False;
     359         434 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     360         217 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     361         434 :                 ::rtl::OUString sReturnType12( "com.sun.star.reflection.XIdlMethod" );
     362         434 :                 ::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         217 :                     1, the_Exceptions );
     369         434 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     370             :             }
     371             :             {
     372         217 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     373         217 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     374         434 :                 ::rtl::OUString sReturnType13( "[]com.sun.star.reflection.XIdlMethod" );
     375         434 :                 ::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         217 :                     1, the_Exceptions );
     382         434 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     383             :             }
     384             :             {
     385         217 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     386         217 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     387         434 :                 ::rtl::OUString sReturnType14( "com.sun.star.reflection.XIdlArray" );
     388         434 :                 ::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         217 :                     1, the_Exceptions );
     395         434 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     396             :             }
     397             :             {
     398             :                 typelib_Parameter_Init aParameters[1];
     399         217 :                 ::rtl::OUString sParamName0( "obj" );
     400         434 :                 ::rtl::OUString sParamType0( "any" );
     401         217 :                 aParameters[0].pParamName = sParamName0.pData;
     402         217 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_ANY;
     403         217 :                 aParameters[0].pTypeName = sParamType0.pData;
     404         217 :                 aParameters[0].bIn = sal_False;
     405         217 :                 aParameters[0].bOut = sal_True;
     406         434 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     407         217 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     408         434 :                 ::rtl::OUString sReturnType15( "void" );
     409         434 :                 ::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         217 :                     1, the_Exceptions );
     416         434 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     417             :             }
     418         217 :             typelib_typedescription_release( (typelib_TypeDescription*)pMethod );
     419         217 :         }
     420             :     }
     421             :     else
     422             :     {
     423             :         OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
     424             :     }
     425       13336 :     return rRet;
     426             : }
     427             : 
     428             : } } } }
     429             : 
     430          83 : 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          83 :     return ::cppu::UnoType< ::com::sun::star::uno::Reference< css::reflection::XIdlClass > >::get();
     432             : }
     433             : 
     434          70 : ::com::sun::star::uno::Type const & css::reflection::XIdlClass::static_type(SAL_UNUSED_PARAMETER void *) {
     435          70 :     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