LCOV - code coverage report
Current view: top level - libreoffice/workdir/unxlngi6.pro/UnoApiHeadersTarget/udkapi/comprehensive/com/sun/star/uno - Uik.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 17 17 100.0 %
Date: 2012-12-27 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #ifndef INCLUDED_COM_SUN_STAR_UNO_UIK_HPP
       2             : #define INCLUDED_COM_SUN_STAR_UNO_UIK_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include "com/sun/star/uno/Uik.hdl"
       7             : 
       8             : #include "com/sun/star/uno/Type.hxx"
       9             : #include "cppu/unotype.hxx"
      10             : #include "osl/mutex.hxx"
      11             : #include "rtl/ustring.h"
      12             : #include "rtl/ustring.hxx"
      13             : #include "rtl/instance.hxx"
      14             : #include "sal/types.h"
      15             : #include "typelib/typeclass.h"
      16             : #include "typelib/typedescription.h"
      17             : 
      18             : namespace com { namespace sun { namespace star { namespace uno {
      19             : 
      20             : inline Uik::Uik() SAL_THROW(())
      21             :     : m_Data1(0)
      22             :     , m_Data2(0)
      23             :     , m_Data3(0)
      24             :     , m_Data4(0)
      25             :     , m_Data5(0)
      26             : {
      27             : }
      28             : 
      29             : inline Uik::Uik(const ::sal_uInt32& m_Data1_, const ::sal_uInt16& m_Data2_, const ::sal_uInt16& m_Data3_, const ::sal_uInt32& m_Data4_, const ::sal_uInt32& m_Data5_) SAL_THROW(())
      30             :     : m_Data1(m_Data1_)
      31             :     , m_Data2(m_Data2_)
      32             :     , m_Data3(m_Data3_)
      33             :     , m_Data4(m_Data4_)
      34             :     , m_Data5(m_Data5_)
      35             : {
      36             : }
      37             : 
      38             : } } } }
      39             : 
      40             : namespace com { namespace sun { namespace star { namespace uno { namespace detail {
      41             : 
      42             : struct theUikType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theUikType >
      43             : {
      44          32 :     ::com::sun::star::uno::Type * operator()() const
      45             :     {
      46          32 :         ::rtl::OUString the_name( "com.sun.star.uno.Uik" );
      47          32 :         ::rtl::OUString the_tname0( "unsigned long" );
      48          32 :         ::rtl::OUString the_name0( "m_Data1" );
      49          32 :         ::rtl::OUString the_tname1( "unsigned short" );
      50          32 :         ::rtl::OUString the_name1( "m_Data2" );
      51          32 :         ::rtl::OUString the_name2( "m_Data3" );
      52          32 :         ::rtl::OUString the_name3( "m_Data4" );
      53          32 :         ::rtl::OUString the_name4( "m_Data5" );
      54             :         ::typelib_StructMember_Init the_members[] = {
      55             :             { { typelib_TypeClass_UNSIGNED_LONG, the_tname0.pData, the_name0.pData }, false },
      56             :             { { typelib_TypeClass_UNSIGNED_SHORT, the_tname1.pData, the_name1.pData }, false },
      57             :             { { typelib_TypeClass_UNSIGNED_SHORT, the_tname1.pData, the_name2.pData }, false },
      58             :             { { typelib_TypeClass_UNSIGNED_LONG, the_tname0.pData, the_name3.pData }, false },
      59          32 :             { { typelib_TypeClass_UNSIGNED_LONG, the_tname0.pData, the_name4.pData }, false } };
      60          32 :         ::typelib_TypeDescription * the_newType = 0;
      61          32 :         ::typelib_typedescription_newStruct(&the_newType, the_name.pData, 0, 5, the_members);
      62          32 :         ::typelib_typedescription_register(&the_newType);
      63          32 :         ::typelib_typedescription_release(the_newType);
      64          32 :         return new ::com::sun::star::uno::Type(::com::sun::star::uno::TypeClass_STRUCT, the_name); // leaked
      65             :     }
      66             : };
      67             : } } } } }
      68             : 
      69             : namespace com { namespace sun { namespace star { namespace uno {
      70             : 
      71          44 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::uno::Uik const *) {
      72          44 :     return *detail::theUikType::get();
      73             : }
      74             : 
      75             : } } } }
      76             : 
      77             : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::uno::Uik const *) SAL_THROW(()) {
      78             :     return ::cppu::UnoType< css::uno::Uik >::get();
      79             : }
      80             : 
      81             : #endif // INCLUDED_COM_SUN_STAR_UNO_UIK_HPP

Generated by: LCOV version 1.10