Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_AWT_WINDOWDESCRIPTOR_HPP
2 : : #define INCLUDED_COM_SUN_STAR_AWT_WINDOWDESCRIPTOR_HPP
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/awt/WindowDescriptor.hdl"
7 : :
8 : : #include "com/sun/star/awt/Rectangle.hpp"
9 : : #include "com/sun/star/awt/WindowClass.hpp"
10 : : #include "com/sun/star/awt/XWindowPeer.hpp"
11 : : #include "com/sun/star/uno/Reference.hxx"
12 : : #include "com/sun/star/uno/Type.hxx"
13 : : #include "cppu/unotype.hxx"
14 : : #include "rtl/ustring.hxx"
15 : : #include "sal/types.h"
16 : : #include "typelib/typeclass.h"
17 : : #include "typelib/typedescription.h"
18 : :
19 : : namespace com { namespace sun { namespace star { namespace awt {
20 : :
21 : 16380 : inline WindowDescriptor::WindowDescriptor() SAL_THROW(())
22 : : : Type(::com::sun::star::awt::WindowClass_TOP)
23 : : , WindowServiceName()
24 : : , Parent()
25 : : , ParentIndex(0)
26 : : , Bounds()
27 : 16380 : , WindowAttributes(0)
28 : : {
29 : 16380 : }
30 : :
31 : 2 : inline WindowDescriptor::WindowDescriptor(const ::com::sun::star::awt::WindowClass& Type_, const ::rtl::OUString& WindowServiceName_, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent_, const ::sal_Int16& ParentIndex_, const ::com::sun::star::awt::Rectangle& Bounds_, const ::sal_Int32& WindowAttributes_) SAL_THROW(())
32 : : : Type(Type_)
33 : : , WindowServiceName(WindowServiceName_)
34 : : , Parent(Parent_)
35 : : , ParentIndex(ParentIndex_)
36 : : , Bounds(Bounds_)
37 : 2 : , WindowAttributes(WindowAttributes_)
38 : : {
39 : 2 : }
40 : :
41 : : } } } }
42 : :
43 : : namespace com { namespace sun { namespace star { namespace awt {
44 : :
45 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::awt::WindowDescriptor const *) {
46 : : //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
47 : : static ::typelib_TypeDescriptionReference * the_type = 0;
48 : : if (the_type == 0) {
49 : : ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.awt.WindowDescriptor");
50 : : }
51 : : return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
52 : : }
53 : :
54 : : } } } }
55 : :
56 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::awt::WindowDescriptor const *) SAL_THROW(()) {
57 : : return ::cppu::UnoType< ::com::sun::star::awt::WindowDescriptor >::get();
58 : : }
59 : :
60 : : #endif // INCLUDED_COM_SUN_STAR_AWT_WINDOWDESCRIPTOR_HPP
|