Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_AWT_FONTDESCRIPTOR_HPP
2 : #define INCLUDED_COM_SUN_STAR_AWT_FONTDESCRIPTOR_HPP
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/awt/FontDescriptor.hdl"
7 :
8 : #include "com/sun/star/awt/FontSlant.hpp"
9 : #include "com/sun/star/uno/Type.hxx"
10 : #include "cppu/unotype.hxx"
11 : #include "rtl/ustring.hxx"
12 : #include "sal/types.h"
13 : #include "typelib/typeclass.h"
14 : #include "typelib/typedescription.h"
15 :
16 : namespace com { namespace sun { namespace star { namespace awt {
17 :
18 36541 : inline FontDescriptor::FontDescriptor() SAL_THROW(())
19 : : Name()
20 : , Height(0)
21 : , Width(0)
22 : , StyleName()
23 : , Family(0)
24 : , CharSet(0)
25 : , Pitch(0)
26 : , CharacterWidth(0)
27 : , Weight(0)
28 : , Slant(css::awt::FontSlant_NONE)
29 : , Underline(0)
30 : , Strikeout(0)
31 : , Orientation(0)
32 : , Kerning(false)
33 : , WordLineMode(false)
34 36541 : , Type(0)
35 : {
36 36541 : }
37 :
38 125 : inline FontDescriptor::FontDescriptor(const ::rtl::OUString& Name_, const ::sal_Int16& Height_, const ::sal_Int16& Width_, const ::rtl::OUString& StyleName_, const ::sal_Int16& Family_, const ::sal_Int16& CharSet_, const ::sal_Int16& Pitch_, const float& CharacterWidth_, const float& Weight_, const css::awt::FontSlant& Slant_, const ::sal_Int16& Underline_, const ::sal_Int16& Strikeout_, const float& Orientation_, const ::sal_Bool& Kerning_, const ::sal_Bool& WordLineMode_, const ::sal_Int16& Type_) SAL_THROW(())
39 : : Name(Name_)
40 : , Height(Height_)
41 : , Width(Width_)
42 : , StyleName(StyleName_)
43 : , Family(Family_)
44 : , CharSet(CharSet_)
45 : , Pitch(Pitch_)
46 : , CharacterWidth(CharacterWidth_)
47 : , Weight(Weight_)
48 : , Slant(Slant_)
49 : , Underline(Underline_)
50 : , Strikeout(Strikeout_)
51 : , Orientation(Orientation_)
52 : , Kerning(Kerning_)
53 : , WordLineMode(WordLineMode_)
54 125 : , Type(Type_)
55 : {
56 125 : }
57 :
58 : } } } }
59 :
60 : namespace com { namespace sun { namespace star { namespace awt {
61 :
62 41540 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::awt::FontDescriptor const *) {
63 : //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
64 : static ::typelib_TypeDescriptionReference * the_type = 0;
65 41540 : if (the_type == 0) {
66 173 : ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.awt.FontDescriptor");
67 : }
68 41540 : return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
69 : }
70 :
71 : } } } }
72 :
73 582 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::awt::FontDescriptor const *) SAL_THROW(()) {
74 582 : return ::cppu::UnoType< css::awt::FontDescriptor >::get();
75 : }
76 :
77 : #endif // INCLUDED_COM_SUN_STAR_AWT_FONTDESCRIPTOR_HPP
|