Branch data 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 : 68144 : 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(::com::sun::star::awt::FontSlant_NONE)
29 : : , Underline(0)
30 : : , Strikeout(0)
31 : : , Orientation(0)
32 : : , Kerning(false)
33 : : , WordLineMode(false)
34 : 68144 : , Type(0)
35 : : {
36 : 68144 : }
37 : :
38 : 213 : 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 ::com::sun::star::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 : 213 : , Type(Type_)
55 : : {
56 : 213 : }
57 : :
58 : : } } } }
59 : :
60 : : namespace com { namespace sun { namespace star { namespace awt {
61 : :
62 : 77924 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::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 [ + + ]: 77924 : if (the_type == 0) {
66 : 319 : ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.awt.FontDescriptor");
67 : : }
68 : 77924 : return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
69 : : }
70 : :
71 : : } } } }
72 : :
73 : 1068 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::awt::FontDescriptor const *) SAL_THROW(()) {
74 : 1068 : return ::cppu::UnoType< ::com::sun::star::awt::FontDescriptor >::get();
75 : : }
76 : :
77 : : #endif // INCLUDED_COM_SUN_STAR_AWT_FONTDESCRIPTOR_HPP
|