Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_AWT_WINDOWEVENT_HPP
2 : : #define INCLUDED_COM_SUN_STAR_AWT_WINDOWEVENT_HPP
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/awt/WindowEvent.hdl"
7 : :
8 : : #include "com/sun/star/lang/EventObject.hpp"
9 : : #include "com/sun/star/uno/Type.hxx"
10 : : #include "cppu/unotype.hxx"
11 : : #include "sal/types.h"
12 : : #include "typelib/typeclass.h"
13 : : #include "typelib/typedescription.h"
14 : :
15 : : namespace com { namespace sun { namespace star { namespace awt {
16 : :
17 : 41845 : inline WindowEvent::WindowEvent() SAL_THROW(())
18 : : : ::com::sun::star::lang::EventObject()
19 : : , X(0)
20 : : , Y(0)
21 : : , Width(0)
22 : : , Height(0)
23 : : , LeftInset(0)
24 : : , TopInset(0)
25 : : , RightInset(0)
26 : 41845 : , BottomInset(0)
27 : : {
28 : 41845 : }
29 : :
30 : 0 : inline WindowEvent::WindowEvent(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Source_, const ::sal_Int32& X_, const ::sal_Int32& Y_, const ::sal_Int32& Width_, const ::sal_Int32& Height_, const ::sal_Int32& LeftInset_, const ::sal_Int32& TopInset_, const ::sal_Int32& RightInset_, const ::sal_Int32& BottomInset_) SAL_THROW(())
31 : : : ::com::sun::star::lang::EventObject(Source_)
32 : : , X(X_)
33 : : , Y(Y_)
34 : : , Width(Width_)
35 : : , Height(Height_)
36 : : , LeftInset(LeftInset_)
37 : : , TopInset(TopInset_)
38 : : , RightInset(RightInset_)
39 : 0 : , BottomInset(BottomInset_)
40 : : {
41 : 0 : }
42 : :
43 : : } } } }
44 : :
45 : : namespace com { namespace sun { namespace star { namespace awt {
46 : :
47 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::awt::WindowEvent const *) {
48 : : //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
49 : : static ::typelib_TypeDescriptionReference * the_type = 0;
50 : : if (the_type == 0) {
51 : : ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.awt.WindowEvent");
52 : : }
53 : : return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
54 : : }
55 : :
56 : : } } } }
57 : :
58 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::awt::WindowEvent const *) SAL_THROW(()) {
59 : : return ::cppu::UnoType< ::com::sun::star::awt::WindowEvent >::get();
60 : : }
61 : :
62 : : #endif // INCLUDED_COM_SUN_STAR_AWT_WINDOWEVENT_HPP
|