Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_TABLE_TABLEBORDER2_HPP
2 : #define INCLUDED_COM_SUN_STAR_TABLE_TABLEBORDER2_HPP
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/table/TableBorder2.hdl"
7 :
8 : #include "com/sun/star/table/BorderLine2.hpp"
9 : #include "com/sun/star/uno/Type.hxx"
10 : #include "cppu/unotype.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 table {
16 :
17 110 : inline TableBorder2::TableBorder2() SAL_THROW(())
18 : : TopLine()
19 : , IsTopLineValid(false)
20 : , BottomLine()
21 : , IsBottomLineValid(false)
22 : , LeftLine()
23 : , IsLeftLineValid(false)
24 : , RightLine()
25 : , IsRightLineValid(false)
26 : , HorizontalLine()
27 : , IsHorizontalLineValid(false)
28 : , VerticalLine()
29 : , IsVerticalLineValid(false)
30 : , Distance(0)
31 110 : , IsDistanceValid(false)
32 : {
33 110 : }
34 :
35 : inline TableBorder2::TableBorder2(const css::table::BorderLine2& TopLine_, const ::sal_Bool& IsTopLineValid_, const css::table::BorderLine2& BottomLine_, const ::sal_Bool& IsBottomLineValid_, const css::table::BorderLine2& LeftLine_, const ::sal_Bool& IsLeftLineValid_, const css::table::BorderLine2& RightLine_, const ::sal_Bool& IsRightLineValid_, const css::table::BorderLine2& HorizontalLine_, const ::sal_Bool& IsHorizontalLineValid_, const css::table::BorderLine2& VerticalLine_, const ::sal_Bool& IsVerticalLineValid_, const ::sal_Int16& Distance_, const ::sal_Bool& IsDistanceValid_) SAL_THROW(())
36 : : TopLine(TopLine_)
37 : , IsTopLineValid(IsTopLineValid_)
38 : , BottomLine(BottomLine_)
39 : , IsBottomLineValid(IsBottomLineValid_)
40 : , LeftLine(LeftLine_)
41 : , IsLeftLineValid(IsLeftLineValid_)
42 : , RightLine(RightLine_)
43 : , IsRightLineValid(IsRightLineValid_)
44 : , HorizontalLine(HorizontalLine_)
45 : , IsHorizontalLineValid(IsHorizontalLineValid_)
46 : , VerticalLine(VerticalLine_)
47 : , IsVerticalLineValid(IsVerticalLineValid_)
48 : , Distance(Distance_)
49 : , IsDistanceValid(IsDistanceValid_)
50 : {
51 : }
52 :
53 : } } } }
54 :
55 : namespace com { namespace sun { namespace star { namespace table {
56 :
57 167 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::table::TableBorder2 const *) {
58 : //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
59 : static ::typelib_TypeDescriptionReference * the_type = 0;
60 167 : if (the_type == 0) {
61 41 : ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.table.TableBorder2");
62 : }
63 167 : return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
64 : }
65 :
66 : } } } }
67 :
68 145 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::table::TableBorder2 const *) SAL_THROW(()) {
69 145 : return ::cppu::UnoType< css::table::TableBorder2 >::get();
70 : }
71 :
72 : #endif // INCLUDED_COM_SUN_STAR_TABLE_TABLEBORDER2_HPP
|