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 264 : ::com::sun::star::uno::Type * operator()() const
49 : {
50 264 : ::rtl::OUString the_name( "com.sun.star.beans.PropertyChangeEvent" );
51 264 : ::rtl::OUString the_tname0( "string" );
52 264 : ::rtl::OUString the_name0( "PropertyName" );
53 264 : ::rtl::OUString the_tname1( "boolean" );
54 264 : ::rtl::OUString the_name1( "Further" );
55 264 : ::rtl::OUString the_tname2( "long" );
56 264 : ::rtl::OUString the_name2( "PropertyHandle" );
57 264 : ::rtl::OUString the_tname3( "any" );
58 264 : ::rtl::OUString the_name3( "OldValue" );
59 264 : ::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 264 : { { typelib_TypeClass_ANY, the_tname3.pData, the_name4.pData }, false } };
66 264 : ::typelib_TypeDescription * the_newType = 0;
67 264 : ::typelib_typedescription_newStruct(&the_newType, the_name.pData, ::cppu::UnoType< css::lang::EventObject >::get().getTypeLibType(), 5, the_members);
68 264 : ::typelib_typedescription_register(&the_newType);
69 264 : ::typelib_typedescription_release(the_newType);
70 264 : 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 564 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::beans::PropertyChangeEvent const *) {
78 564 : return *detail::thePropertyChangeEventType::get();
79 : }
80 :
81 : } } } }
82 :
83 2 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::beans::PropertyChangeEvent const *) SAL_THROW(()) {
84 2 : return ::cppu::UnoType< css::beans::PropertyChangeEvent >::get();
85 : }
86 :
87 : #endif // INCLUDED_COM_SUN_STAR_BEANS_PROPERTYCHANGEEVENT_HPP
|