Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_FORMULA_SYMBOLDESCRIPTOR_HPP
2 : : #define INCLUDED_COM_SUN_STAR_FORMULA_SYMBOLDESCRIPTOR_HPP
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/formula/SymbolDescriptor.hdl"
7 : :
8 : : #include "com/sun/star/uno/Type.hxx"
9 : : #include "cppu/unotype.hxx"
10 : : #include "rtl/ustring.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 formula {
16 : :
17 : : inline SymbolDescriptor::SymbolDescriptor() SAL_THROW(())
18 : : : sName()
19 : : , sExportName()
20 : : , sSymbolSet()
21 : : , nCharacter(0)
22 : : , sFontName()
23 : : , nCharSet(0)
24 : : , nFamily(0)
25 : : , nPitch(0)
26 : : , nWeight(0)
27 : : , nItalic(0)
28 : : {
29 : : }
30 : :
31 : : inline SymbolDescriptor::SymbolDescriptor(const ::rtl::OUString& sName_, const ::rtl::OUString& sExportName_, const ::rtl::OUString& sSymbolSet_, const ::sal_Int32& nCharacter_, const ::rtl::OUString& sFontName_, const ::sal_Int16& nCharSet_, const ::sal_Int16& nFamily_, const ::sal_Int16& nPitch_, const ::sal_Int16& nWeight_, const ::sal_Int16& nItalic_) SAL_THROW(())
32 : : : sName(sName_)
33 : : , sExportName(sExportName_)
34 : : , sSymbolSet(sSymbolSet_)
35 : : , nCharacter(nCharacter_)
36 : : , sFontName(sFontName_)
37 : : , nCharSet(nCharSet_)
38 : : , nFamily(nFamily_)
39 : : , nPitch(nPitch_)
40 : : , nWeight(nWeight_)
41 : : , nItalic(nItalic_)
42 : : {
43 : : }
44 : :
45 : : } } } }
46 : :
47 : : namespace com { namespace sun { namespace star { namespace formula {
48 : :
49 : 16 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::formula::SymbolDescriptor const *) {
50 : : //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
51 : : static ::typelib_TypeDescriptionReference * the_type = 0;
52 [ + - ]: 16 : if (the_type == 0) {
53 : 16 : ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.formula.SymbolDescriptor");
54 : : }
55 : 16 : return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
56 : : }
57 : :
58 : : } } } }
59 : :
60 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::formula::SymbolDescriptor const *) SAL_THROW(()) {
61 : : return ::cppu::UnoType< ::com::sun::star::formula::SymbolDescriptor >::get();
62 : : }
63 : :
64 : : #endif // INCLUDED_COM_SUN_STAR_FORMULA_SYMBOLDESCRIPTOR_HPP
|