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

          Line data    Source code
       1             : #ifndef INCLUDED_COM_SUN_STAR_LANG_EVENTOBJECT_HPP
       2             : #define INCLUDED_COM_SUN_STAR_LANG_EVENTOBJECT_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include "com/sun/star/lang/EventObject.hdl"
       7             : 
       8             : #include "com/sun/star/uno/XInterface.hpp"
       9             : #include "com/sun/star/uno/Reference.hxx"
      10             : #include "com/sun/star/uno/Type.hxx"
      11             : #include "cppu/unotype.hxx"
      12             : #include "osl/mutex.hxx"
      13             : #include "rtl/ustring.h"
      14             : #include "rtl/ustring.hxx"
      15             : #include "rtl/instance.hxx"
      16             : #include "sal/types.h"
      17             : #include "typelib/typeclass.h"
      18             : #include "typelib/typedescription.h"
      19             : 
      20             : namespace com { namespace sun { namespace star { namespace lang {
      21             : 
      22        5310 : inline EventObject::EventObject() SAL_THROW(())
      23        5310 :     : Source()
      24             : {
      25        5310 : }
      26             : 
      27       13449 : inline EventObject::EventObject(const ::com::sun::star::uno::Reference< css::uno::XInterface >& Source_) SAL_THROW(())
      28       13449 :     : Source(Source_)
      29             : {
      30       13449 : }
      31             : 
      32             : } } } }
      33             : 
      34             : namespace com { namespace sun { namespace star { namespace lang { namespace detail {
      35             : 
      36             : struct theEventObjectType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theEventObjectType >
      37             : {
      38         266 :     ::com::sun::star::uno::Type * operator()() const
      39             :     {
      40         266 :         ::rtl::OUString the_name( "com.sun.star.lang.EventObject" );
      41         266 :         ::cppu::UnoType< ::com::sun::star::uno::Reference< css::uno::XInterface > >::get();
      42         266 :         ::rtl::OUString the_tname0( "com.sun.star.uno.XInterface" );
      43         266 :         ::rtl::OUString the_name0( "Source" );
      44             :         ::typelib_StructMember_Init the_members[] = {
      45         266 :             { { typelib_TypeClass_INTERFACE, the_tname0.pData, the_name0.pData }, false } };
      46         266 :         ::typelib_TypeDescription * the_newType = 0;
      47         266 :         ::typelib_typedescription_newStruct(&the_newType, the_name.pData, 0, 1, the_members);
      48         266 :         ::typelib_typedescription_register(&the_newType);
      49         266 :         ::typelib_typedescription_release(the_newType);
      50         266 :         return new ::com::sun::star::uno::Type(::com::sun::star::uno::TypeClass_STRUCT, the_name); // leaked
      51             :     }
      52             : };
      53             : } } } } }
      54             : 
      55             : namespace com { namespace sun { namespace star { namespace lang {
      56             : 
      57         547 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::lang::EventObject const *) {
      58         547 :     return *detail::theEventObjectType::get();
      59             : }
      60             : 
      61             : } } } }
      62             : 
      63           2 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::lang::EventObject const *) SAL_THROW(()) {
      64           2 :     return ::cppu::UnoType< css::lang::EventObject >::get();
      65             : }
      66             : 
      67             : #endif // INCLUDED_COM_SUN_STAR_LANG_EVENTOBJECT_HPP

Generated by: LCOV version 1.10