LCOV - code coverage report
Current view: top level - libreoffice/solver/unxlngi6.pro/inc/udkapi/com/sun/star/reflection - XIdlClass.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 219 219 100.0 %
Date: 2012-12-27 Functions: 4 4 100.0 %
Legend: Lines: hit not hit

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