LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/workdir/unxlngi6.pro/UnoApiHeadersTarget/udkapi/normal/com/sun/star/script - AllEventObject.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 3 3 100.0 %
Date: 2013-07-09 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #ifndef INCLUDED_COM_SUN_STAR_SCRIPT_ALLEVENTOBJECT_HPP
       2             : #define INCLUDED_COM_SUN_STAR_SCRIPT_ALLEVENTOBJECT_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include "com/sun/star/script/AllEventObject.hdl"
       7             : 
       8             : #include "com/sun/star/lang/EventObject.hpp"
       9             : #include "com/sun/star/uno/Any.hxx"
      10             : #include "com/sun/star/uno/Sequence.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          47 : inline AllEventObject::AllEventObject() SAL_THROW(())
      21             :     : css::lang::EventObject()
      22             :     , Helper()
      23             :     , ListenerType()
      24             :     , MethodName()
      25          47 :     , Arguments()
      26             : {
      27          47 : }
      28             : 
      29             : inline AllEventObject::AllEventObject(const ::com::sun::star::uno::Reference< css::uno::XInterface >& Source_, const ::com::sun::star::uno::Any& Helper_, const ::com::sun::star::uno::Type& ListenerType_, const ::rtl::OUString& MethodName_, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& Arguments_) SAL_THROW(())
      30             :     : css::lang::EventObject(Source_)
      31             :     , Helper(Helper_)
      32             :     , ListenerType(ListenerType_)
      33             :     , MethodName(MethodName_)
      34             :     , Arguments(Arguments_)
      35             : {
      36             : }
      37             : 
      38             : } } } }
      39             : 
      40             : namespace com { namespace sun { namespace star { namespace script {
      41             : 
      42             : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::script::AllEventObject 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             :     if (the_type == 0) {
      46             :         ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.script.AllEventObject");
      47             :     }
      48             :     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 css::script::AllEventObject const *) SAL_THROW(()) {
      54             :     return ::cppu::UnoType< css::script::AllEventObject >::get();
      55             : }
      56             : 
      57             : #endif // INCLUDED_COM_SUN_STAR_SCRIPT_ALLEVENTOBJECT_HPP

Generated by: LCOV version 1.10