Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_TABLE_TABLEBORDERDISTANCES_HPP
2 : #define INCLUDED_COM_SUN_STAR_TABLE_TABLEBORDERDISTANCES_HPP
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/table/TableBorderDistances.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 table {
15 :
16 185 : inline TableBorderDistances::TableBorderDistances() SAL_THROW(())
17 : : TopDistance(0)
18 : , IsTopDistanceValid(false)
19 : , BottomDistance(0)
20 : , IsBottomDistanceValid(false)
21 : , LeftDistance(0)
22 : , IsLeftDistanceValid(false)
23 : , RightDistance(0)
24 185 : , IsRightDistanceValid(false)
25 : {
26 185 : }
27 :
28 0 : inline TableBorderDistances::TableBorderDistances(const ::sal_Int16& TopDistance_, const ::sal_Bool& IsTopDistanceValid_, const ::sal_Int16& BottomDistance_, const ::sal_Bool& IsBottomDistanceValid_, const ::sal_Int16& LeftDistance_, const ::sal_Bool& IsLeftDistanceValid_, const ::sal_Int16& RightDistance_, const ::sal_Bool& IsRightDistanceValid_) SAL_THROW(())
29 : : TopDistance(TopDistance_)
30 : , IsTopDistanceValid(IsTopDistanceValid_)
31 : , BottomDistance(BottomDistance_)
32 : , IsBottomDistanceValid(IsBottomDistanceValid_)
33 : , LeftDistance(LeftDistance_)
34 : , IsLeftDistanceValid(IsLeftDistanceValid_)
35 : , RightDistance(RightDistance_)
36 0 : , IsRightDistanceValid(IsRightDistanceValid_)
37 : {
38 0 : }
39 :
40 : } } } }
41 :
42 : namespace com { namespace sun { namespace star { namespace table {
43 :
44 195 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::table::TableBorderDistances const *) {
45 : //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
46 : static ::typelib_TypeDescriptionReference * the_type = 0;
47 195 : if (the_type == 0) {
48 21 : ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.table.TableBorderDistances");
49 : }
50 195 : return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
51 : }
52 :
53 : } } } }
54 :
55 10 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::table::TableBorderDistances const *) SAL_THROW(()) {
56 10 : return ::cppu::UnoType< css::table::TableBorderDistances >::get();
57 : }
58 :
59 : #endif // INCLUDED_COM_SUN_STAR_TABLE_TABLEBORDERDISTANCES_HPP
|