LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/workdir/unxlngi6.pro/UnoApiHeadersTarget/udkapi/bootstrap/com/sun/star/container - XHierarchicalNameAccess.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 58 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_CONTAINER_XHIERARCHICALNAMEACCESS_HPP
       2             : #define INCLUDED_COM_SUN_STAR_CONTAINER_XHIERARCHICALNAMEACCESS_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include "com/sun/star/container/XHierarchicalNameAccess.hdl"
       7             : 
       8             : #include "com/sun/star/container/NoSuchElementException.hpp"
       9             : #include "com/sun/star/uno/RuntimeException.hpp"
      10             : #include "com/sun/star/uno/XInterface.hpp"
      11             : #include "com/sun/star/uno/Any.hxx"
      12             : #include "com/sun/star/uno/Reference.hxx"
      13             : #include "com/sun/star/uno/Type.hxx"
      14             : #include "cppu/unotype.hxx"
      15             : #include "osl/mutex.hxx"
      16             : #include "rtl/ustring.hxx"
      17             : #include "rtl/instance.hxx"
      18             : #include "sal/types.h"
      19             : 
      20             : namespace com { namespace sun { namespace star { namespace container { namespace detail {
      21             : 
      22             : struct theXHierarchicalNameAccessType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theXHierarchicalNameAccessType >
      23             : {
      24           0 :     ::com::sun::star::uno::Type * operator()() const
      25             :     {
      26           0 :         ::rtl::OUString sTypeName( "com.sun.star.container.XHierarchicalNameAccess" );
      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::uno::XInterface > >::get().getTypeLibType();
      33           0 :         typelib_TypeDescriptionReference * pMembers[2] = { 0,0 };
      34           0 :         ::rtl::OUString sMethodName0( "com.sun.star.container.XHierarchicalNameAccess::getByHierarchicalName" );
      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.container.XHierarchicalNameAccess::hasByHierarchicalName" );
      39             :         typelib_typedescriptionreference_new( &pMembers[1],
      40             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      41           0 :                                               sMethodName1.pData );
      42             : 
      43             :         typelib_typedescription_newMIInterface(
      44             :             &pTD,
      45             :             sTypeName.pData, 0x00000000, 0x0000, 0x0000, 0x00000000, 0x00000000,
      46             :             1, aSuperTypes,
      47             :             2,
      48           0 :             pMembers );
      49             : 
      50           0 :         typelib_typedescription_register( (typelib_TypeDescription**)&pTD );
      51           0 :         typelib_typedescriptionreference_release( pMembers[0] );
      52           0 :         typelib_typedescriptionreference_release( pMembers[1] );
      53           0 :         typelib_typedescription_release( (typelib_TypeDescription*)pTD );
      54             : 
      55           0 :         return new ::com::sun::star::uno::Type( ::com::sun::star::uno::TypeClass_INTERFACE, sTypeName ); // leaked
      56             :     }
      57             : };
      58             : 
      59             : } } } } }
      60             : 
      61             : namespace com { namespace sun { namespace star { namespace container {
      62             : 
      63           0 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::container::XHierarchicalNameAccess const *) {
      64           0 :     const ::com::sun::star::uno::Type &rRet = *detail::theXHierarchicalNameAccessType::get();
      65             :     // End inline typedescription generation
      66             :     static bool bInitStarted = false;
      67           0 :     if (!bInitStarted)
      68             :     {
      69           0 :         ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
      70           0 :         if (!bInitStarted)
      71             :         {
      72             :             OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
      73           0 :             bInitStarted = true;
      74           0 :             ::cppu::UnoType< css::uno::RuntimeException >::get();
      75           0 :             ::cppu::UnoType< css::container::NoSuchElementException >::get();
      76             : 
      77           0 :             typelib_InterfaceMethodTypeDescription * pMethod = 0;
      78             :             {
      79             :                 typelib_Parameter_Init aParameters[1];
      80           0 :                 ::rtl::OUString sParamName0( "aName" );
      81           0 :                 ::rtl::OUString sParamType0( "string" );
      82           0 :                 aParameters[0].pParamName = sParamName0.pData;
      83           0 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRING;
      84           0 :                 aParameters[0].pTypeName = sParamType0.pData;
      85           0 :                 aParameters[0].bIn = sal_True;
      86           0 :                 aParameters[0].bOut = sal_False;
      87           0 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.container.NoSuchElementException" );
      88           0 :                 ::rtl::OUString the_ExceptionName1( "com.sun.star.uno.RuntimeException" );
      89           0 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData, the_ExceptionName1.pData };
      90           0 :                 ::rtl::OUString sReturnType0( "any" );
      91           0 :                 ::rtl::OUString sMethodName0( "com.sun.star.container.XHierarchicalNameAccess::getByHierarchicalName" );
      92             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
      93             :                     3, sal_False,
      94             :                     sMethodName0.pData,
      95             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_ANY, sReturnType0.pData,
      96             :                     1, aParameters,
      97           0 :                     2, the_Exceptions );
      98           0 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
      99             :             }
     100             :             {
     101             :                 typelib_Parameter_Init aParameters[1];
     102           0 :                 ::rtl::OUString sParamName0( "aName" );
     103           0 :                 ::rtl::OUString sParamType0( "string" );
     104           0 :                 aParameters[0].pParamName = sParamName0.pData;
     105           0 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRING;
     106           0 :                 aParameters[0].pTypeName = sParamType0.pData;
     107           0 :                 aParameters[0].bIn = sal_True;
     108           0 :                 aParameters[0].bOut = sal_False;
     109           0 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     110           0 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     111           0 :                 ::rtl::OUString sReturnType1( "boolean" );
     112           0 :                 ::rtl::OUString sMethodName1( "com.sun.star.container.XHierarchicalNameAccess::hasByHierarchicalName" );
     113             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     114             :                     4, sal_False,
     115             :                     sMethodName1.pData,
     116             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_BOOLEAN, sReturnType1.pData,
     117             :                     1, aParameters,
     118           0 :                     1, the_Exceptions );
     119           0 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     120             :             }
     121           0 :             typelib_typedescription_release( (typelib_TypeDescription*)pMethod );
     122           0 :         }
     123             :     }
     124             :     else
     125             :     {
     126             :         OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
     127             :     }
     128           0 :     return rRet;
     129             : }
     130             : 
     131             : } } } }
     132             : 
     133           0 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::uno::Reference< css::container::XHierarchicalNameAccess > const *) SAL_THROW(()) {
     134           0 :     return ::cppu::UnoType< ::com::sun::star::uno::Reference< css::container::XHierarchicalNameAccess > >::get();
     135             : }
     136             : 
     137           0 : ::com::sun::star::uno::Type const & css::container::XHierarchicalNameAccess::static_type(SAL_UNUSED_PARAMETER void *) {
     138           0 :     return ::getCppuType(static_cast< ::com::sun::star::uno::Reference< css::container::XHierarchicalNameAccess > * >(0));
     139             : }
     140             : 
     141             : #endif // INCLUDED_COM_SUN_STAR_CONTAINER_XHIERARCHICALNAMEACCESS_HPP

Generated by: LCOV version 1.10