Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_RENDERING_FONTMETRICS_HPP
2 : #define INCLUDED_COM_SUN_STAR_RENDERING_FONTMETRICS_HPP
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/rendering/FontMetrics.hdl"
7 :
8 : #include "com/sun/star/uno/Type.hxx"
9 : #include "cppu/unotype.hxx"
10 : #include "sal/types.h"
11 : #include "typelib/typeclass.h"
12 : #include "typelib/typedescription.h"
13 :
14 : namespace com { namespace sun { namespace star { namespace rendering {
15 :
16 0 : inline FontMetrics::FontMetrics() SAL_THROW(())
17 : : Ascent(0)
18 : , Descent(0)
19 : , InternalLeading(0)
20 : , ExternalLeading(0)
21 : , ReferenceCharSize(0)
22 : , UnderlineOffset(0)
23 0 : , StrikeThroughOffset(0)
24 : {
25 0 : }
26 :
27 0 : inline FontMetrics::FontMetrics(const double& Ascent_, const double& Descent_, const double& InternalLeading_, const double& ExternalLeading_, const double& ReferenceCharSize_, const double& UnderlineOffset_, const double& StrikeThroughOffset_) SAL_THROW(())
28 : : Ascent(Ascent_)
29 : , Descent(Descent_)
30 : , InternalLeading(InternalLeading_)
31 : , ExternalLeading(ExternalLeading_)
32 : , ReferenceCharSize(ReferenceCharSize_)
33 : , UnderlineOffset(UnderlineOffset_)
34 0 : , StrikeThroughOffset(StrikeThroughOffset_)
35 : {
36 0 : }
37 :
38 : } } } }
39 :
40 : namespace com { namespace sun { namespace star { namespace rendering {
41 :
42 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::rendering::FontMetrics const *) {
43 : //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
44 : static ::typelib_TypeDescriptionReference * the_type = 0;
45 : if (the_type == 0) {
46 : ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.rendering.FontMetrics");
47 : }
48 : return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
49 : }
50 :
51 : } } } }
52 :
53 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::rendering::FontMetrics const *) SAL_THROW(()) {
54 : return ::cppu::UnoType< css::rendering::FontMetrics >::get();
55 : }
56 :
57 : #endif // INCLUDED_COM_SUN_STAR_RENDERING_FONTMETRICS_HPP
|