LCOV - code coverage report
Current view: top level - 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: 2012-08-25 Functions: 4 4 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 94 186 50.5 %

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

Generated by: LCOV version 1.10