Branch data 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/util/URL.hpp"
9 : : #include "com/sun/star/lang/EventObject.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 : 156360 : inline FeatureStateEvent::FeatureStateEvent() SAL_THROW(())
21 : : : ::com::sun::star::lang::EventObject()
22 : : , FeatureURL()
23 : : , FeatureDescriptor()
24 : : , IsEnabled(false)
25 : : , Requery(false)
26 : 156360 : , State()
27 : : {
28 : 156360 : }
29 : :
30 : 252710 : inline FeatureStateEvent::FeatureStateEvent(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Source_, const ::com::sun::star::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 : : : ::com::sun::star::lang::EventObject(Source_)
32 : : , FeatureURL(FeatureURL_)
33 : : , FeatureDescriptor(FeatureDescriptor_)
34 : : , IsEnabled(IsEnabled_)
35 : : , Requery(Requery_)
36 : 252710 : , State(State_)
37 : : {
38 : 252710 : }
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 ::com::sun::star::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 ::com::sun::star::frame::FeatureStateEvent const *) SAL_THROW(()) {
56 : : return ::cppu::UnoType< ::com::sun::star::frame::FeatureStateEvent >::get();
57 : : }
58 : :
59 : : #endif // INCLUDED_COM_SUN_STAR_FRAME_FEATURESTATEEVENT_HPP
|