21#include <com/sun/star/beans/PropertyAttribute.hpp>
22#include <com/sun/star/drawing/BitmapMode.hpp>
23#include <com/sun/star/drawing/FillStyle.hpp>
24#include <com/sun/star/drawing/RectanglePoint.hpp>
30using ::com::sun::star::beans::Property;
38void lcl_AddPropertiesToVector_without_BitmapProperties( std::vector< css::beans::Property > & rOutProperties )
40 rOutProperties.emplace_back(
"FillStyle",
43 beans::PropertyAttribute::BOUND
44 | beans::PropertyAttribute::MAYBEDEFAULT );
46 rOutProperties.emplace_back(
"FillColor",
49 beans::PropertyAttribute::BOUND
50 | beans::PropertyAttribute::MAYBEVOID
51 | beans::PropertyAttribute::MAYBEDEFAULT );
53 rOutProperties.emplace_back(
"FillTransparence",
56 beans::PropertyAttribute::BOUND
57 | beans::PropertyAttribute::MAYBEDEFAULT );
59 rOutProperties.emplace_back(
"FillTransparenceGradientName",
62 beans::PropertyAttribute::BOUND
63 | beans::PropertyAttribute::MAYBEVOID
64 | beans::PropertyAttribute::MAYBEDEFAULT );
66 rOutProperties.emplace_back(
"FillGradientName",
69 beans::PropertyAttribute::BOUND
70 | beans::PropertyAttribute::MAYBEVOID
71 | beans::PropertyAttribute::MAYBEDEFAULT );
73 rOutProperties.emplace_back(
"FillGradientStepCount",
76 beans::PropertyAttribute::BOUND
77 | beans::PropertyAttribute::MAYBEVOID );
79 rOutProperties.emplace_back(
"FillHatchName",
82 beans::PropertyAttribute::BOUND
83 | beans::PropertyAttribute::MAYBEVOID
84 | beans::PropertyAttribute::MAYBEDEFAULT );
88 rOutProperties.emplace_back(
"FillBackground",
91 beans::PropertyAttribute::BOUND
92 | beans::PropertyAttribute::MAYBEDEFAULT );
95void lcl_AddPropertiesToVector_only_BitmapProperties( std::vector< css::beans::Property > & rOutProperties )
97 rOutProperties.emplace_back(
"FillBitmapName",
100 beans::PropertyAttribute::BOUND
101 | beans::PropertyAttribute::MAYBEVOID
102 | beans::PropertyAttribute::MAYBEDEFAULT );
104 rOutProperties.emplace_back(
"FillBitmapOffsetX",
107 beans::PropertyAttribute::BOUND
108 | beans::PropertyAttribute::MAYBEDEFAULT );
110 rOutProperties.emplace_back(
"FillBitmapOffsetY",
113 beans::PropertyAttribute::BOUND
114 | beans::PropertyAttribute::MAYBEDEFAULT );
116 rOutProperties.emplace_back(
"FillBitmapPositionOffsetX",
119 beans::PropertyAttribute::BOUND
120 | beans::PropertyAttribute::MAYBEDEFAULT );
122 rOutProperties.emplace_back(
"FillBitmapPositionOffsetY",
125 beans::PropertyAttribute::BOUND
126 | beans::PropertyAttribute::MAYBEDEFAULT );
128 rOutProperties.emplace_back(
"FillBitmapRectanglePoint",
131 beans::PropertyAttribute::BOUND
132 | beans::PropertyAttribute::MAYBEDEFAULT );
134 rOutProperties.emplace_back(
"FillBitmapLogicalSize",
137 beans::PropertyAttribute::BOUND
138 | beans::PropertyAttribute::MAYBEDEFAULT );
140 rOutProperties.emplace_back(
"FillBitmapSizeX",
143 beans::PropertyAttribute::BOUND
144 | beans::PropertyAttribute::MAYBEDEFAULT );
146 rOutProperties.emplace_back(
"FillBitmapSizeY",
149 beans::PropertyAttribute::BOUND
150 | beans::PropertyAttribute::MAYBEDEFAULT );
152 rOutProperties.emplace_back(
"FillBitmapMode",
155 beans::PropertyAttribute::BOUND
156 | beans::PropertyAttribute::MAYBEDEFAULT );
159void lcl_AddDefaultsToMap_without_BitmapProperties(
168void lcl_AddDefaultsToMap_only_BitmapProperties(
186 std::vector< Property > & rOutProperties )
189 lcl_AddPropertiesToVector_without_BitmapProperties( rOutProperties );
190 lcl_AddPropertiesToVector_only_BitmapProperties( rOutProperties );
196 lcl_AddDefaultsToMap_without_BitmapProperties( rOutMap );
197 lcl_AddDefaultsToMap_only_BitmapProperties( rOutMap );
@ PROP_FILL_BITMAP_OFFSETY
@ PROP_FILL_BITMAP_POSITION_OFFSETX
@ PROP_FILL_GRADIENT_NAME
@ PROP_FILL_BITMAP_LOGICALSIZE
@ PROP_FILL_GRADIENT_STEPCOUNT
@ PROP_FILL_BITMAP_OFFSETX
@ PROP_FILL_BITMAP_RECTANGLEPOINT
@ PROP_FILL_TRANSPARENCE_GRADIENT_NAME
@ PROP_FILL_BITMAP_POSITION_OFFSETY
OOO_DLLPUBLIC_CHARTTOOLS void AddPropertiesToVector(std::vector< css::beans::Property > &rOutProperties)
OOO_DLLPUBLIC_CHARTTOOLS void AddDefaultsToMap(::chart::tPropertyValueMap &rOutMap)
void setPropertyValueDefault(tPropertyValueMap &rOutMap, tPropertyValueMapKey key, const Value &value)
Calls setPropertyValue() but asserts that the given property hasn't been set before.
std::unordered_map< tPropertyValueMapKey, css::uno::Any > tPropertyValueMap