LCOV - code coverage report
Current view: top level - solver/unxlngi6.pro/inc/udkapi/com/sun/star/script - EventListener.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 7 7 100.0 %
Date: 2012-08-25 Functions: 2 2 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1 2 50.0 %

           Branch data     Line data    Source code
       1                 :            : #ifndef INCLUDED_COM_SUN_STAR_SCRIPT_EVENTLISTENER_HPP
       2                 :            : #define INCLUDED_COM_SUN_STAR_SCRIPT_EVENTLISTENER_HPP
       3                 :            : 
       4                 :            : #include "sal/config.h"
       5                 :            : 
       6                 :            : #include "com/sun/star/script/EventListener.hdl"
       7                 :            : 
       8                 :            : #include "com/sun/star/script/XAllListener.hpp"
       9                 :            : #include "com/sun/star/uno/Any.hxx"
      10                 :            : #include "com/sun/star/uno/Reference.hxx"
      11                 :            : #include "com/sun/star/uno/Type.hxx"
      12                 :            : #include "cppu/unotype.hxx"
      13                 :            : #include "rtl/ustring.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 script {
      19                 :            : 
      20                 :         30 : inline EventListener::EventListener() SAL_THROW(())
      21                 :            :     : AllListener()
      22                 :            :     , Helper()
      23                 :            :     , ListenerType()
      24                 :            :     , AddListenerParam()
      25                 :         30 :     , EventMethod()
      26                 :            : {
      27                 :         30 : }
      28                 :            : 
      29                 :            : inline EventListener::EventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::script::XAllListener >& AllListener_, const ::com::sun::star::uno::Any& Helper_, const ::rtl::OUString& ListenerType_, const ::rtl::OUString& AddListenerParam_, const ::rtl::OUString& EventMethod_) SAL_THROW(())
      30                 :            :     : AllListener(AllListener_)
      31                 :            :     , Helper(Helper_)
      32                 :            :     , ListenerType(ListenerType_)
      33                 :            :     , AddListenerParam(AddListenerParam_)
      34                 :            :     , EventMethod(EventMethod_)
      35                 :            : {
      36                 :            : }
      37                 :            : 
      38                 :            : } } } }
      39                 :            : 
      40                 :            : namespace com { namespace sun { namespace star { namespace script {
      41                 :            : 
      42                 :          6 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::script::EventListener const *) {
      43                 :            :     //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
      44                 :            :     static ::typelib_TypeDescriptionReference * the_type = 0;
      45         [ +  - ]:          6 :     if (the_type == 0) {
      46                 :          6 :         ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.script.EventListener");
      47                 :            :     }
      48                 :          6 :     return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
      49                 :            : }
      50                 :            : 
      51                 :            : } } } }
      52                 :            : 
      53                 :            : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::script::EventListener const *) SAL_THROW(()) {
      54                 :            :     return ::cppu::UnoType< ::com::sun::star::script::EventListener >::get();
      55                 :            : }
      56                 :            : 
      57                 :            : #endif // INCLUDED_COM_SUN_STAR_SCRIPT_EVENTLISTENER_HPP

Generated by: LCOV version 1.10