Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_CHART2_SYMBOL_HPP
2 : #define INCLUDED_COM_SUN_STAR_CHART2_SYMBOL_HPP
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/chart2/Symbol.hdl"
7 :
8 : #include "com/sun/star/awt/Size.hpp"
9 : #include "com/sun/star/chart2/SymbolStyle.hpp"
10 : #include "com/sun/star/drawing/PolyPolygonBezierCoords.hpp"
11 : #include "com/sun/star/graphic/XGraphic.hpp"
12 : #include "com/sun/star/uno/Reference.hxx"
13 : #include "com/sun/star/uno/Type.hxx"
14 : #include "cppu/unotype.hxx"
15 : #include "sal/types.h"
16 : #include "typelib/typeclass.h"
17 : #include "typelib/typedescription.h"
18 :
19 : namespace com { namespace sun { namespace star { namespace chart2 {
20 :
21 2 : inline Symbol::Symbol() SAL_THROW(())
22 : : Style(css::chart2::SymbolStyle_NONE)
23 : , PolygonCoords()
24 : , StandardSymbol(0)
25 : , Graphic()
26 : , Size()
27 : , BorderColor(0)
28 2 : , FillColor(0)
29 : {
30 2 : }
31 :
32 : inline Symbol::Symbol(const css::chart2::SymbolStyle& Style_, const css::drawing::PolyPolygonBezierCoords& PolygonCoords_, const ::sal_Int32& StandardSymbol_, const ::com::sun::star::uno::Reference< css::graphic::XGraphic >& Graphic_, const css::awt::Size& Size_, const ::sal_Int32& BorderColor_, const ::sal_Int32& FillColor_) SAL_THROW(())
33 : : Style(Style_)
34 : , PolygonCoords(PolygonCoords_)
35 : , StandardSymbol(StandardSymbol_)
36 : , Graphic(Graphic_)
37 : , Size(Size_)
38 : , BorderColor(BorderColor_)
39 : , FillColor(FillColor_)
40 : {
41 : }
42 :
43 : } } } }
44 :
45 : namespace com { namespace sun { namespace star { namespace chart2 {
46 :
47 4 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::chart2::Symbol const *) {
48 : //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
49 : static ::typelib_TypeDescriptionReference * the_type = 0;
50 4 : if (the_type == 0) {
51 2 : ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.chart2.Symbol");
52 : }
53 4 : return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
54 : }
55 :
56 : } } } }
57 :
58 2 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::chart2::Symbol const *) SAL_THROW(()) {
59 2 : return ::cppu::UnoType< css::chart2::Symbol >::get();
60 : }
61 :
62 : #endif // INCLUDED_COM_SUN_STAR_CHART2_SYMBOL_HPP
|