LCOV - code coverage report
Current view: top level - frame - FeatureStateEvent.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 6 6 100.0 %
Date: 2013-07-09 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #ifndef INCLUDED_COM_SUN_STAR_FRAME_FEATURESTATEEVENT_HPP
       2             : #define INCLUDED_COM_SUN_STAR_FRAME_FEATURESTATEEVENT_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include "com/sun/star/frame/FeatureStateEvent.hdl"
       7             : 
       8             : #include "com/sun/star/lang/EventObject.hpp"
       9             : #include "com/sun/star/util/URL.hpp"
      10             : #include "com/sun/star/uno/Any.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 frame {
      19             : 
      20       83125 : inline FeatureStateEvent::FeatureStateEvent() SAL_THROW(())
      21             :     : css::lang::EventObject()
      22             :     , FeatureURL()
      23             :     , FeatureDescriptor()
      24             :     , IsEnabled(false)
      25             :     , Requery(false)
      26       83125 :     , State()
      27             : {
      28       83125 : }
      29             : 
      30       84896 : inline FeatureStateEvent::FeatureStateEvent(const ::com::sun::star::uno::Reference< css::uno::XInterface >& Source_, const css::util::URL& FeatureURL_, const ::rtl::OUString& FeatureDescriptor_, const ::sal_Bool& IsEnabled_, const ::sal_Bool& Requery_, const ::com::sun::star::uno::Any& State_) SAL_THROW(())
      31             :     : css::lang::EventObject(Source_)
      32             :     , FeatureURL(FeatureURL_)
      33             :     , FeatureDescriptor(FeatureDescriptor_)
      34             :     , IsEnabled(IsEnabled_)
      35             :     , Requery(Requery_)
      36       84896 :     , State(State_)
      37             : {
      38       84896 : }
      39             : 
      40             : } } } }
      41             : 
      42             : namespace com { namespace sun { namespace star { namespace frame {
      43             : 
      44             : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::frame::FeatureStateEvent const *) {
      45             :     //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
      46             :     static ::typelib_TypeDescriptionReference * the_type = 0;
      47             :     if (the_type == 0) {
      48             :         ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.frame.FeatureStateEvent");
      49             :     }
      50             :     return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
      51             : }
      52             : 
      53             : } } } }
      54             : 
      55             : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::frame::FeatureStateEvent const *) SAL_THROW(()) {
      56             :     return ::cppu::UnoType< css::frame::FeatureStateEvent >::get();
      57             : }
      58             : 
      59             : #endif // INCLUDED_COM_SUN_STAR_FRAME_FEATURESTATEEVENT_HPP

Generated by: LCOV version 1.10