LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/workdir/unxlngi6.pro/UnoApiHeadersTarget/udkapi/comprehensive/com/sun/star/reflection - XServiceTypeDescription2.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 53 0.0 %
Date: 2013-07-09 Functions: 0 4 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #ifndef INCLUDED_COM_SUN_STAR_REFLECTION_XSERVICETYPEDESCRIPTION2_HPP
       2             : #define INCLUDED_COM_SUN_STAR_REFLECTION_XSERVICETYPEDESCRIPTION2_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include "com/sun/star/reflection/XServiceTypeDescription2.hdl"
       7             : 
       8             : #include "com/sun/star/reflection/XServiceConstructorDescription.hpp"
       9             : #include "com/sun/star/reflection/XServiceTypeDescription.hpp"
      10             : #include "com/sun/star/reflection/XTypeDescription.hpp"
      11             : #include "com/sun/star/uno/RuntimeException.hpp"
      12             : #include "com/sun/star/uno/Reference.hxx"
      13             : #include "com/sun/star/uno/Sequence.hxx"
      14             : #include "com/sun/star/uno/Type.hxx"
      15             : #include "cppu/unotype.hxx"
      16             : #include "osl/mutex.hxx"
      17             : #include "rtl/instance.hxx"
      18             : #include "sal/types.h"
      19             : 
      20             : namespace com { namespace sun { namespace star { namespace reflection { namespace detail {
      21             : 
      22             : struct theXServiceTypeDescription2Type : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theXServiceTypeDescription2Type >
      23             : {
      24           0 :     ::com::sun::star::uno::Type * operator()() const
      25             :     {
      26           0 :         ::rtl::OUString sTypeName( "com.sun.star.reflection.XServiceTypeDescription2" );
      27             : 
      28             :         // Start inline typedescription generation
      29           0 :         typelib_InterfaceTypeDescription * pTD = 0;
      30             : 
      31             :         typelib_TypeDescriptionReference * aSuperTypes[1];
      32           0 :         aSuperTypes[0] = ::cppu::UnoType< ::com::sun::star::uno::Reference< css::reflection::XServiceTypeDescription > >::get().getTypeLibType();
      33           0 :         typelib_TypeDescriptionReference * pMembers[3] = { 0,0,0 };
      34           0 :         ::rtl::OUString sMethodName0( "com.sun.star.reflection.XServiceTypeDescription2::isSingleInterfaceBased" );
      35             :         typelib_typedescriptionreference_new( &pMembers[0],
      36             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      37           0 :                                               sMethodName0.pData );
      38           0 :         ::rtl::OUString sMethodName1( "com.sun.star.reflection.XServiceTypeDescription2::getInterface" );
      39             :         typelib_typedescriptionreference_new( &pMembers[1],
      40             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      41           0 :                                               sMethodName1.pData );
      42           0 :         ::rtl::OUString sMethodName2( "com.sun.star.reflection.XServiceTypeDescription2::getConstructors" );
      43             :         typelib_typedescriptionreference_new( &pMembers[2],
      44             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      45           0 :                                               sMethodName2.pData );
      46             : 
      47             :         typelib_typedescription_newMIInterface(
      48             :             &pTD,
      49             :             sTypeName.pData, 0x00000000, 0x0000, 0x0000, 0x00000000, 0x00000000,
      50             :             1, aSuperTypes,
      51             :             3,
      52           0 :             pMembers );
      53             : 
      54           0 :         typelib_typedescription_register( (typelib_TypeDescription**)&pTD );
      55           0 :         typelib_typedescriptionreference_release( pMembers[0] );
      56           0 :         typelib_typedescriptionreference_release( pMembers[1] );
      57           0 :         typelib_typedescriptionreference_release( pMembers[2] );
      58           0 :         typelib_typedescription_release( (typelib_TypeDescription*)pTD );
      59             : 
      60           0 :         return new ::com::sun::star::uno::Type( ::com::sun::star::uno::TypeClass_INTERFACE, sTypeName ); // leaked
      61             :     }
      62             : };
      63             : 
      64             : } } } } }
      65             : 
      66             : namespace com { namespace sun { namespace star { namespace reflection {
      67             : 
      68           0 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::reflection::XServiceTypeDescription2 const *) {
      69           0 :     const ::com::sun::star::uno::Type &rRet = *detail::theXServiceTypeDescription2Type::get();
      70             :     // End inline typedescription generation
      71             :     static bool bInitStarted = false;
      72           0 :     if (!bInitStarted)
      73             :     {
      74           0 :         ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
      75           0 :         if (!bInitStarted)
      76             :         {
      77             :             OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
      78           0 :             bInitStarted = true;
      79           0 :             ::cppu::UnoType< css::uno::RuntimeException >::get();
      80           0 :             ::cppu::UnoType< ::com::sun::star::uno::Reference< css::reflection::XTypeDescription > >::get();
      81           0 :             ::cppu::UnoType< ::cppu::UnoSequenceType< ::com::sun::star::uno::Reference< css::reflection::XServiceConstructorDescription > > >::get();
      82             : 
      83           0 :             typelib_InterfaceMethodTypeDescription * pMethod = 0;
      84             :             {
      85           0 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
      86           0 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
      87           0 :                 ::rtl::OUString sReturnType0( "boolean" );
      88           0 :                 ::rtl::OUString sMethodName0( "com.sun.star.reflection.XServiceTypeDescription2::isSingleInterfaceBased" );
      89             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
      90             :                     10, sal_False,
      91             :                     sMethodName0.pData,
      92             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_BOOLEAN, sReturnType0.pData,
      93             :                     0, 0,
      94           0 :                     1, the_Exceptions );
      95           0 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
      96             :             }
      97             :             {
      98           0 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
      99           0 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     100           0 :                 ::rtl::OUString sReturnType1( "com.sun.star.reflection.XTypeDescription" );
     101           0 :                 ::rtl::OUString sMethodName1( "com.sun.star.reflection.XServiceTypeDescription2::getInterface" );
     102             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     103             :                     11, sal_False,
     104             :                     sMethodName1.pData,
     105             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE, sReturnType1.pData,
     106             :                     0, 0,
     107           0 :                     1, the_Exceptions );
     108           0 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     109             :             }
     110             :             {
     111           0 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     112           0 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     113           0 :                 ::rtl::OUString sReturnType2( "[]com.sun.star.reflection.XServiceConstructorDescription" );
     114           0 :                 ::rtl::OUString sMethodName2( "com.sun.star.reflection.XServiceTypeDescription2::getConstructors" );
     115             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     116             :                     12, sal_False,
     117             :                     sMethodName2.pData,
     118             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE, sReturnType2.pData,
     119             :                     0, 0,
     120           0 :                     1, the_Exceptions );
     121           0 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     122             :             }
     123           0 :             typelib_typedescription_release( (typelib_TypeDescription*)pMethod );
     124           0 :         }
     125             :     }
     126             :     else
     127             :     {
     128             :         OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
     129             :     }
     130           0 :     return rRet;
     131             : }
     132             : 
     133             : } } } }
     134             : 
     135           0 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::uno::Reference< css::reflection::XServiceTypeDescription2 > const *) SAL_THROW(()) {
     136           0 :     return ::cppu::UnoType< ::com::sun::star::uno::Reference< css::reflection::XServiceTypeDescription2 > >::get();
     137             : }
     138             : 
     139           0 : ::com::sun::star::uno::Type const & css::reflection::XServiceTypeDescription2::static_type(SAL_UNUSED_PARAMETER void *) {
     140           0 :     return ::getCppuType(static_cast< ::com::sun::star::uno::Reference< css::reflection::XServiceTypeDescription2 > * >(0));
     141             : }
     142             : 
     143             : #endif // INCLUDED_COM_SUN_STAR_REFLECTION_XSERVICETYPEDESCRIPTION2_HPP

Generated by: LCOV version 1.10