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

          Line data    Source code
       1             : #ifndef INCLUDED_COM_SUN_STAR_BEANS_PROPERTYCHANGEEVENT_HPP
       2             : #define INCLUDED_COM_SUN_STAR_BEANS_PROPERTYCHANGEEVENT_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include "com/sun/star/beans/PropertyChangeEvent.hdl"
       7             : 
       8             : #include "com/sun/star/lang/EventObject.hpp"
       9             : #include "com/sun/star/uno/Any.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 beans {
      21             : 
      22           0 : inline PropertyChangeEvent::PropertyChangeEvent() SAL_THROW(())
      23             :     : css::lang::EventObject()
      24             :     , PropertyName()
      25             :     , Further(false)
      26             :     , PropertyHandle(0)
      27             :     , OldValue()
      28           0 :     , NewValue()
      29             : {
      30           0 : }
      31             : 
      32           0 : inline PropertyChangeEvent::PropertyChangeEvent(const ::com::sun::star::uno::Reference< css::uno::XInterface >& Source_, const ::rtl::OUString& PropertyName_, const ::sal_Bool& Further_, const ::sal_Int32& PropertyHandle_, const ::com::sun::star::uno::Any& OldValue_, const ::com::sun::star::uno::Any& NewValue_) SAL_THROW(())
      33             :     : css::lang::EventObject(Source_)
      34             :     , PropertyName(PropertyName_)
      35             :     , Further(Further_)
      36             :     , PropertyHandle(PropertyHandle_)
      37             :     , OldValue(OldValue_)
      38           0 :     , NewValue(NewValue_)
      39             : {
      40           0 : }
      41             : 
      42             : } } } }
      43             : 
      44             : namespace com { namespace sun { namespace star { namespace beans { namespace detail {
      45             : 
      46             : struct thePropertyChangeEventType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, thePropertyChangeEventType >
      47             : {
      48         128 :     ::com::sun::star::uno::Type * operator()() const
      49             :     {
      50         128 :         ::rtl::OUString the_name( "com.sun.star.beans.PropertyChangeEvent" );
      51         128 :         ::rtl::OUString the_tname0( "string" );
      52         128 :         ::rtl::OUString the_name0( "PropertyName" );
      53         128 :         ::rtl::OUString the_tname1( "boolean" );
      54         128 :         ::rtl::OUString the_name1( "Further" );
      55         128 :         ::rtl::OUString the_tname2( "long" );
      56         128 :         ::rtl::OUString the_name2( "PropertyHandle" );
      57         128 :         ::rtl::OUString the_tname3( "any" );
      58         128 :         ::rtl::OUString the_name3( "OldValue" );
      59         128 :         ::rtl::OUString the_name4( "NewValue" );
      60             :         ::typelib_StructMember_Init the_members[] = {
      61             :             { { typelib_TypeClass_STRING, the_tname0.pData, the_name0.pData }, false },
      62             :             { { typelib_TypeClass_BOOLEAN, the_tname1.pData, the_name1.pData }, false },
      63             :             { { typelib_TypeClass_LONG, the_tname2.pData, the_name2.pData }, false },
      64             :             { { typelib_TypeClass_ANY, the_tname3.pData, the_name3.pData }, false },
      65         128 :             { { typelib_TypeClass_ANY, the_tname3.pData, the_name4.pData }, false } };
      66         128 :         ::typelib_TypeDescription * the_newType = 0;
      67         128 :         ::typelib_typedescription_newStruct(&the_newType, the_name.pData, ::cppu::UnoType< css::lang::EventObject >::get().getTypeLibType(), 5, the_members);
      68         128 :         ::typelib_typedescription_register(&the_newType);
      69         128 :         ::typelib_typedescription_release(the_newType);
      70         128 :         return new ::com::sun::star::uno::Type(::com::sun::star::uno::TypeClass_STRUCT, the_name); // leaked
      71             :     }
      72             : };
      73             : } } } } }
      74             : 
      75             : namespace com { namespace sun { namespace star { namespace beans {
      76             : 
      77         392 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::beans::PropertyChangeEvent const *) {
      78         392 :     return *detail::thePropertyChangeEventType::get();
      79             : }
      80             : 
      81             : } } } }
      82             : 
      83           4 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::beans::PropertyChangeEvent const *) SAL_THROW(()) {
      84           4 :     return ::cppu::UnoType< css::beans::PropertyChangeEvent >::get();
      85             : }
      86             : 
      87             : #endif // INCLUDED_COM_SUN_STAR_BEANS_PROPERTYCHANGEEVENT_HPP

Generated by: LCOV version 1.10