23#include <unonames.hxx>
25#include <com/sun/star/beans/PropertyAttribute.hpp>
26#include <com/sun/star/drawing/FillStyle.hpp>
27#include <com/sun/star/drawing/LineStyle.hpp>
28#include <com/sun/star/drawing/LineDash.hpp>
29#include <com/sun/star/drawing/LineCap.hpp>
30#include <com/sun/star/drawing/BitmapMode.hpp>
31#include <com/sun/star/drawing/RectanglePoint.hpp>
32#include <com/sun/star/chart2/RelativePosition.hpp>
33#include <com/sun/star/chart2/XDataPointCustomLabelField.hpp>
34#include <com/sun/star/chart2/DataPointGeometry3D.hpp>
35#include <com/sun/star/chart2/DataPointLabel.hpp>
36#include <com/sun/star/chart2/Symbol.hpp>
42using ::com::sun::star::beans::Property;
48 std::vector< Property > & rOutProperties )
54 rOutProperties.emplace_back(
"Color",
57 beans::PropertyAttribute::BOUND
58 | beans::PropertyAttribute::MAYBEVOID
59 | beans::PropertyAttribute::MAYBEDEFAULT );
61 rOutProperties.emplace_back(
"FillColor",
64 beans::PropertyAttribute::BOUND
65 | beans::PropertyAttribute::MAYBEVOID
66 | beans::PropertyAttribute::MAYBEDEFAULT );
68 rOutProperties.emplace_back(
"Transparency",
71 beans::PropertyAttribute::BOUND
72 | beans::PropertyAttribute::MAYBEDEFAULT );
74 rOutProperties.emplace_back(
"FillTransparence",
77 beans::PropertyAttribute::BOUND
78 | beans::PropertyAttribute::MAYBEDEFAULT );
81 rOutProperties.emplace_back(
"FillStyle",
84 beans::PropertyAttribute::BOUND
85 | beans::PropertyAttribute::MAYBEDEFAULT );
87 rOutProperties.emplace_back(
"TransparencyGradientName",
90 beans::PropertyAttribute::BOUND
91 | beans::PropertyAttribute::MAYBEDEFAULT
92 | beans::PropertyAttribute::MAYBEVOID );
94 rOutProperties.emplace_back(
"FillTransparenceGradientName",
97 beans::PropertyAttribute::BOUND
98 | beans::PropertyAttribute::MAYBEDEFAULT
99 | beans::PropertyAttribute::MAYBEVOID );
101 rOutProperties.emplace_back(
"GradientName",
104 beans::PropertyAttribute::BOUND
105 | beans::PropertyAttribute::MAYBEDEFAULT
106 | beans::PropertyAttribute::MAYBEVOID );
108 rOutProperties.emplace_back(
"FillGradientName",
111 beans::PropertyAttribute::BOUND
112 | beans::PropertyAttribute::MAYBEDEFAULT
113 | beans::PropertyAttribute::MAYBEVOID );
115 rOutProperties.emplace_back(
"GradientStepCount",
118 beans::PropertyAttribute::BOUND
119 | beans::PropertyAttribute::MAYBEVOID );
121 rOutProperties.emplace_back(
"FillGradientStepCount",
124 beans::PropertyAttribute::BOUND
125 | beans::PropertyAttribute::MAYBEVOID );
127 rOutProperties.emplace_back(
"HatchName",
130 beans::PropertyAttribute::BOUND
131 | beans::PropertyAttribute::MAYBEDEFAULT
132 | beans::PropertyAttribute::MAYBEVOID );
134 rOutProperties.emplace_back(
"FillHatchName",
137 beans::PropertyAttribute::BOUND
138 | beans::PropertyAttribute::MAYBEDEFAULT
139 | beans::PropertyAttribute::MAYBEVOID );
141 rOutProperties.emplace_back(
"FillBitmapName",
144 beans::PropertyAttribute::BOUND
145 | beans::PropertyAttribute::MAYBEDEFAULT
146 | beans::PropertyAttribute::MAYBEVOID );
148 rOutProperties.emplace_back(
"FillBackground",
151 beans::PropertyAttribute::BOUND
152 | beans::PropertyAttribute::MAYBEDEFAULT
153 | beans::PropertyAttribute::MAYBEVOID );
156 rOutProperties.emplace_back(
"BorderColor",
159 beans::PropertyAttribute::BOUND
160 | beans::PropertyAttribute::MAYBEVOID
161 | beans::PropertyAttribute::MAYBEDEFAULT );
163 rOutProperties.emplace_back(
"BorderStyle",
166 beans::PropertyAttribute::BOUND
167 | beans::PropertyAttribute::MAYBEDEFAULT );
169 rOutProperties.emplace_back(
"BorderWidth",
172 beans::PropertyAttribute::BOUND
173 | beans::PropertyAttribute::MAYBEDEFAULT );
175 rOutProperties.emplace_back(
"BorderDashName",
178 beans::PropertyAttribute::BOUND
179 | beans::PropertyAttribute::MAYBEVOID );
181 rOutProperties.emplace_back(
"BorderTransparency",
184 beans::PropertyAttribute::BOUND
185 | beans::PropertyAttribute::MAYBEVOID );
189 rOutProperties.emplace_back(
"LineColor",
192 beans::PropertyAttribute::BOUND
193 | beans::PropertyAttribute::MAYBEVOID
194 | beans::PropertyAttribute::MAYBEDEFAULT );
196 rOutProperties.emplace_back(
"LineStyle",
199 beans::PropertyAttribute::BOUND
200 | beans::PropertyAttribute::MAYBEDEFAULT );
202 rOutProperties.emplace_back(
"LineWidth",
205 beans::PropertyAttribute::BOUND
206 | beans::PropertyAttribute::MAYBEDEFAULT );
208 rOutProperties.emplace_back(
"LineDash",
211 beans::PropertyAttribute::BOUND
212 | beans::PropertyAttribute::MAYBEVOID );
214 rOutProperties.emplace_back(
"LineDashName",
217 beans::PropertyAttribute::BOUND
218 | beans::PropertyAttribute::MAYBEVOID );
220 rOutProperties.emplace_back(
"LineTransparence",
223 beans::PropertyAttribute::BOUND
224 | beans::PropertyAttribute::MAYBEVOID );
226 rOutProperties.emplace_back(
"LineCap",
229 beans::PropertyAttribute::BOUND
230 | beans::PropertyAttribute::MAYBEDEFAULT );
234 rOutProperties.emplace_back(
"FillBitmapOffsetX",
237 beans::PropertyAttribute::BOUND
238 | beans::PropertyAttribute::MAYBEDEFAULT );
240 rOutProperties.emplace_back(
"FillBitmapOffsetY",
243 beans::PropertyAttribute::BOUND
244 | beans::PropertyAttribute::MAYBEDEFAULT );
246 rOutProperties.emplace_back(
"FillBitmapPositionOffsetX",
249 beans::PropertyAttribute::BOUND
250 | beans::PropertyAttribute::MAYBEDEFAULT );
252 rOutProperties.emplace_back(
"FillBitmapPositionOffsetY",
255 beans::PropertyAttribute::BOUND
256 | beans::PropertyAttribute::MAYBEDEFAULT );
258 rOutProperties.emplace_back(
"FillBitmapRectanglePoint",
261 beans::PropertyAttribute::BOUND
262 | beans::PropertyAttribute::MAYBEDEFAULT );
264 rOutProperties.emplace_back(
"FillBitmapLogicalSize",
267 beans::PropertyAttribute::BOUND
268 | beans::PropertyAttribute::MAYBEDEFAULT );
270 rOutProperties.emplace_back(
"FillBitmapSizeX",
273 beans::PropertyAttribute::BOUND
274 | beans::PropertyAttribute::MAYBEDEFAULT );
276 rOutProperties.emplace_back(
"FillBitmapSizeY",
279 beans::PropertyAttribute::BOUND
280 | beans::PropertyAttribute::MAYBEDEFAULT );
282 rOutProperties.emplace_back(
"FillBitmapMode",
285 beans::PropertyAttribute::BOUND
286 | beans::PropertyAttribute::MAYBEDEFAULT );
289 rOutProperties.emplace_back(
"Symbol",
292 beans::PropertyAttribute::BOUND
293 | beans::PropertyAttribute::MAYBEDEFAULT );
294 rOutProperties.emplace_back(
"Offset",
297 beans::PropertyAttribute::BOUND
298 | beans::PropertyAttribute::MAYBEDEFAULT );
299 rOutProperties.emplace_back(
"Geometry3D",
302 beans::PropertyAttribute::BOUND
303 | beans::PropertyAttribute::MAYBEDEFAULT );
308 beans::PropertyAttribute::BOUND
309 | beans::PropertyAttribute::MAYBEDEFAULT );
314 beans::PropertyAttribute::BOUND
315 | beans::PropertyAttribute::MAYBEDEFAULT );
318 rOutProperties.emplace_back(
"PercentageNumberFormat",
321 beans::PropertyAttribute::BOUND
322 | beans::PropertyAttribute::MAYBEVOID );
324 rOutProperties.emplace_back(
"LabelPlacement",
327 beans::PropertyAttribute::BOUND
328 | beans::PropertyAttribute::MAYBEVOID );
330 rOutProperties.emplace_back(
"ReferencePageSize",
333 beans::PropertyAttribute::BOUND
334 | beans::PropertyAttribute::MAYBEVOID );
336 rOutProperties.emplace_back(
"TextRotation",
339 beans::PropertyAttribute::BOUND
340 | beans::PropertyAttribute::MAYBEDEFAULT );
347 beans::PropertyAttribute::BOUND
348 | beans::PropertyAttribute::MAYBEVOID );
353 beans::PropertyAttribute::BOUND
354 | beans::PropertyAttribute::MAYBEVOID );
355 rOutProperties.emplace_back(
"ShowErrorBox",
358 beans::PropertyAttribute::BOUND
359 | beans::PropertyAttribute::MAYBEVOID );
360 rOutProperties.emplace_back(
"PercentDiagonal",
363 beans::PropertyAttribute::BOUND
364 | beans::PropertyAttribute::MAYBEVOID );
371 beans::PropertyAttribute::BOUND
372 | beans::PropertyAttribute::MAYBEDEFAULT );
374 rOutProperties.emplace_back(
"TextWordWrap",
377 beans::PropertyAttribute::BOUND
378 | beans::PropertyAttribute::MAYBEDEFAULT );
383 beans::PropertyAttribute::BOUND
384 | beans::PropertyAttribute::MAYBEDEFAULT );
389 beans::PropertyAttribute::BOUND
390 | beans::PropertyAttribute::MAYBEDEFAULT );
394 beans::PropertyAttribute::BOUND
395 | beans::PropertyAttribute::MAYBEVOID
396 | beans::PropertyAttribute::MAYBEDEFAULT );
400 beans::PropertyAttribute::BOUND
401 | beans::PropertyAttribute::MAYBEDEFAULT );
405 beans::PropertyAttribute::BOUND
406 | beans::PropertyAttribute::MAYBEVOID
407 | beans::PropertyAttribute::MAYBEDEFAULT );
411 beans::PropertyAttribute::BOUND
412 | beans::PropertyAttribute::MAYBEDEFAULT );
416 beans::PropertyAttribute::BOUND
417 | beans::PropertyAttribute::MAYBEDEFAULT );
421 beans::PropertyAttribute::BOUND
422 | beans::PropertyAttribute::MAYBEDEFAULT );
426 beans::PropertyAttribute::BOUND
427 | beans::PropertyAttribute::MAYBEVOID );
431 beans::PropertyAttribute::BOUND
432 | beans::PropertyAttribute::MAYBEVOID );
436 beans::PropertyAttribute::BOUND
437 | beans::PropertyAttribute::MAYBEDEFAULT );
441 cppu::UnoType<uno::Sequence<uno::Reference<chart2::XDataPointCustomLabelField>>>::get(),
442 beans::PropertyAttribute::BOUND
443 | beans::PropertyAttribute::MAYBEDEFAULT);
445 rOutProperties.emplace_back(
"CustomLabelPosition",
448 beans::PropertyAttribute::BOUND
449 | beans::PropertyAttribute::MAYBEVOID );
493 chart2::Symbol aSymbProp;
494 aSymbProp.Style = chart2::SymbolStyle_NONE;
495 aSymbProp.StandardSymbol = 0;
496 aSymbProp.Size = awt::Size( 250, 250 );
497 aSymbProp.BorderColor = sal_Int32(
COL_BLACK);
498 aSymbProp.FillColor = 0xee4000;
516 chart2::DataPointLabel(
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)
@ PROP_DATAPOINT_LABEL_FILL_BACKGROUND
@ PROP_DATAPOINT_LABEL_FILL_STYLE
@ PROP_DATAPOINT_FILL_STYLE
@ PROP_DATAPOINT_LABEL_BORDER_DASH
@ PROP_DATAPOINT_LABEL_BORDER_COLOR
@ PROP_DATAPOINT_TRANSPARENCY_GRADIENT_NAME
@ PROP_DATAPOINT_ERROR_BAR_Y
@ PROP_DATAPOINT_BORDER_STYLE
@ PROP_DATAPOINT_BORDER_TRANSPARENCY
@ PROP_DATAPOINT_LABEL_PLACEMENT
@ PROP_DATAPOINT_TRANSPARENCY
@ PROP_DATAPOINT_LABEL_BORDER_WIDTH
@ PROP_DATAPOINT_TEXT_ROTATION
@ PROP_DATAPOINT_TEXT_WORD_WRAP
@ PROP_DATAPOINT_CUSTOM_LABEL_FIELDS
@ PROP_DATAPOINT_LABEL_FILL_HATCH_NAME
@ PROP_DATAPOINT_ERROR_BAR_X
@ PROP_DATAPOINT_LABEL_CUSTOM_POS
@ PROP_DATAPOINT_GRADIENT_NAME
@ PROP_DATAPOINT_PERCENTAGE_NUMBER_FORMAT
@ PROP_DATAPOINT_PERCENT_DIAGONAL
@ PROP_DATAPOINT_SYMBOL_PROP
@ PROP_DATAPOINT_BORDER_DASH_NAME
@ PROP_DATAPOINT_BORDER_WIDTH
@ PROP_DATAPOINT_SHOW_ERROR_BOX
@ PROP_DATAPOINT_NUMBER_FORMAT
@ PROP_DATAPOINT_LABEL_FILL_COLOR
@ PROP_DATAPOINT_FILL_BITMAP_NAME
@ PROP_DATAPOINT_LINK_NUMBERFORMAT_TO_SOURCE
@ PROP_DATAPOINT_GRADIENT_STEPCOUNT
@ PROP_DATAPOINT_LABEL_BORDER_STYLE
@ PROP_DATAPOINT_BORDER_COLOR
@ PROP_DATAPOINT_LABEL_BORDER_TRANS
@ PROP_DATAPOINT_LABEL_SEPARATOR
@ PROP_DATAPOINT_REFERENCE_DIAGRAM_SIZE
@ PROP_DATAPOINT_HATCH_NAME
@ PROP_DATAPOINT_LABEL_BORDER_DASH_NAME
@ PROP_DATAPOINT_FILL_BACKGROUND
@ PROP_DATAPOINT_GEOMETRY3D
void AddPropertiesToVector(std::vector< css::beans::Property > &rOutProperties)
void AddDefaultsToMap(::chart::tPropertyValueMap &rOutMap)
@ PROP_FILL_BITMAP_OFFSETY
@ PROP_FILL_BITMAP_POSITION_OFFSETX
@ PROP_FILL_BITMAP_LOGICALSIZE
@ PROP_FILL_BITMAP_OFFSETX
@ PROP_FILL_BITMAP_RECTANGLEPOINT
@ PROP_FILL_BITMAP_POSITION_OFFSETY
void setPropertyValueDefault(tPropertyValueMap &rOutMap, tPropertyValueMapKey key, const Value &value)
Calls setPropertyValue() but asserts that the given property hasn't been set before.
OOO_DLLPUBLIC_CHARTTOOLS void setEmptyPropertyValueDefault(tPropertyValueMap &rOutMap, tPropertyValueMapKey key)
Calls setPropertyValueDefault() with an empty Any as value.
std::unordered_map< tPropertyValueMapKey, css::uno::Any > tPropertyValueMap
constexpr OUStringLiteral CHART_UNONAME_LABEL_BORDER_WIDTH
constexpr OUStringLiteral CHART_UNONAME_ERRORBAR_Y
constexpr OUStringLiteral CHART_UNONAME_LABEL_BORDER_TRANS
constexpr OUStringLiteral CHART_UNONAME_LINK_TO_SRC_NUMFMT
constexpr OUStringLiteral CHART_UNONAME_LABEL_BORDER_DASHNAME
constexpr OUStringLiteral CHART_UNONAME_LABEL_FILL_COLOR
constexpr OUStringLiteral CHART_UNONAME_LABEL_FILL_STYLE
constexpr OUStringLiteral CHART_UNONAME_LABEL_SEP
constexpr OUStringLiteral CHART_UNONAME_NUMFMT
constexpr OUStringLiteral CHART_UNONAME_CUSTOM_LABEL_FIELDS
constexpr OUStringLiteral CHART_UNONAME_LABEL_FILL_BACKGROUND
constexpr OUStringLiteral CHART_UNONAME_ERRORBAR_X
constexpr OUStringLiteral CHART_UNONAME_LABEL_BORDER_COLOR
constexpr OUStringLiteral CHART_UNONAME_LABEL_BORDER_STYLE
constexpr OUStringLiteral CHART_UNONAME_LABEL_FILL_HATCH_NAME
constexpr OUStringLiteral CHART_UNONAME_LABEL
constexpr OUStringLiteral CHART_UNONAME_LABEL_BORDER_DASH