Branch data 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 "rtl/ustring.hxx"
13 : : #include "sal/types.h"
14 : : #include "typelib/typeclass.h"
15 : : #include "typelib/typedescription.h"
16 : :
17 : : namespace com { namespace sun { namespace star { namespace beans {
18 : :
19 : 34766 : inline PropertyChangeEvent::PropertyChangeEvent() SAL_THROW(())
20 : : : ::com::sun::star::lang::EventObject()
21 : : , PropertyName()
22 : : , Further(false)
23 : : , PropertyHandle(0)
24 : : , OldValue()
25 : 34766 : , NewValue()
26 : : {
27 : 34766 : }
28 : :
29 : 128 : inline PropertyChangeEvent::PropertyChangeEvent(const ::com::sun::star::uno::Reference< ::com::sun::star::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(())
30 : : : ::com::sun::star::lang::EventObject(Source_)
31 : : , PropertyName(PropertyName_)
32 : : , Further(Further_)
33 : : , PropertyHandle(PropertyHandle_)
34 : : , OldValue(OldValue_)
35 : 128 : , NewValue(NewValue_)
36 : : {
37 : 128 : }
38 : :
39 : : } } } }
40 : :
41 : : namespace com { namespace sun { namespace star { namespace beans {
42 : :
43 : 184 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::beans::PropertyChangeEvent const *) {
44 : : //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
45 : : static ::typelib_TypeDescriptionReference * the_type = 0;
46 [ + - ]: 184 : if (the_type == 0) {
47 : 184 : ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.beans.PropertyChangeEvent");
48 : : }
49 : 184 : return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
50 : : }
51 : :
52 : : } } } }
53 : :
54 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::beans::PropertyChangeEvent const *) SAL_THROW(()) {
55 : : return ::cppu::UnoType< ::com::sun::star::beans::PropertyChangeEvent >::get();
56 : : }
57 : :
58 : : #endif // INCLUDED_COM_SUN_STAR_BEANS_PROPERTYCHANGEEVENT_HPP
|