tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / chart2 / source / model / main / DataPointProperties.cxx
blob53f88600214f3fba997e49d70677ce234dd63be0
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include "DataPointProperties.hxx"
21 #include <LinePropertiesHelper.hxx>
22 #include <FillProperties.hxx>
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/RelativeSize.hpp>
34 #include <com/sun/star/chart2/XDataPointCustomLabelField.hpp>
35 #include <com/sun/star/chart2/DataPointGeometry3D.hpp>
36 #include <com/sun/star/chart2/DataPointLabel.hpp>
37 #include <com/sun/star/chart2/Symbol.hpp>
39 #include <tools/color.hxx>
41 using namespace ::com::sun::star;
43 using ::com::sun::star::beans::Property;
45 namespace chart
48 void DataPointProperties::AddPropertiesToVector(
49 std::vector< Property > & rOutProperties )
51 // DataPointProperties
53 // Common
55 rOutProperties.emplace_back( "Color",
56 PROP_DATAPOINT_COLOR,
57 cppu::UnoType<sal_Int32>::get(),
58 beans::PropertyAttribute::BOUND
59 | beans::PropertyAttribute::MAYBEVOID // "maybe auto"
60 | beans::PropertyAttribute::MAYBEDEFAULT );
62 rOutProperties.emplace_back( "FillColor",
63 PROP_DATAPOINT_COLOR,
64 cppu::UnoType<sal_Int32>::get(),
65 beans::PropertyAttribute::BOUND
66 | beans::PropertyAttribute::MAYBEVOID // "maybe auto"
67 | beans::PropertyAttribute::MAYBEDEFAULT );
69 rOutProperties.emplace_back( "Transparency",
70 PROP_DATAPOINT_TRANSPARENCY,
71 cppu::UnoType<sal_Int16>::get(),
72 beans::PropertyAttribute::BOUND
73 | beans::PropertyAttribute::MAYBEDEFAULT );
75 rOutProperties.emplace_back( "FillTransparence",
76 PROP_DATAPOINT_TRANSPARENCY,
77 cppu::UnoType<sal_Int16>::get(),
78 beans::PropertyAttribute::BOUND
79 | beans::PropertyAttribute::MAYBEDEFAULT );
81 // Fill Properties
82 rOutProperties.emplace_back( "FillStyle",
83 PROP_DATAPOINT_FILL_STYLE,
84 cppu::UnoType<drawing::FillStyle>::get(),
85 beans::PropertyAttribute::BOUND
86 | beans::PropertyAttribute::MAYBEDEFAULT );
88 rOutProperties.emplace_back( "TransparencyGradientName",
89 PROP_DATAPOINT_TRANSPARENCY_GRADIENT_NAME,
90 cppu::UnoType<OUString>::get(),
91 beans::PropertyAttribute::BOUND
92 | beans::PropertyAttribute::MAYBEDEFAULT
93 | beans::PropertyAttribute::MAYBEVOID );
95 rOutProperties.emplace_back( "FillTransparenceGradientName",
96 PROP_DATAPOINT_TRANSPARENCY_GRADIENT_NAME,
97 cppu::UnoType<OUString>::get(),
98 beans::PropertyAttribute::BOUND
99 | beans::PropertyAttribute::MAYBEDEFAULT
100 | beans::PropertyAttribute::MAYBEVOID );
102 rOutProperties.emplace_back( "GradientName",
103 PROP_DATAPOINT_GRADIENT_NAME,
104 cppu::UnoType<OUString>::get(),
105 beans::PropertyAttribute::BOUND
106 | beans::PropertyAttribute::MAYBEDEFAULT
107 | beans::PropertyAttribute::MAYBEVOID );
109 rOutProperties.emplace_back( "FillGradientName",
110 PROP_DATAPOINT_GRADIENT_NAME,
111 cppu::UnoType<OUString>::get(),
112 beans::PropertyAttribute::BOUND
113 | beans::PropertyAttribute::MAYBEDEFAULT
114 | beans::PropertyAttribute::MAYBEVOID );
116 rOutProperties.emplace_back( "GradientStepCount",
117 PROP_DATAPOINT_GRADIENT_STEPCOUNT,
118 cppu::UnoType<sal_Int16>::get(),
119 beans::PropertyAttribute::BOUND
120 | beans::PropertyAttribute::MAYBEVOID );
122 rOutProperties.emplace_back( "FillGradientStepCount",
123 PROP_DATAPOINT_GRADIENT_STEPCOUNT,
124 cppu::UnoType<sal_Int16>::get(),
125 beans::PropertyAttribute::BOUND
126 | beans::PropertyAttribute::MAYBEVOID );
128 rOutProperties.emplace_back( "HatchName",
129 PROP_DATAPOINT_HATCH_NAME,
130 cppu::UnoType<OUString>::get(),
131 beans::PropertyAttribute::BOUND
132 | beans::PropertyAttribute::MAYBEDEFAULT
133 | beans::PropertyAttribute::MAYBEVOID );
135 rOutProperties.emplace_back( "FillHatchName",
136 PROP_DATAPOINT_HATCH_NAME,
137 cppu::UnoType<OUString>::get(),
138 beans::PropertyAttribute::BOUND
139 | beans::PropertyAttribute::MAYBEDEFAULT
140 | beans::PropertyAttribute::MAYBEVOID );
142 rOutProperties.emplace_back( "FillBitmapName",
143 PROP_DATAPOINT_FILL_BITMAP_NAME,
144 cppu::UnoType<OUString>::get(),
145 beans::PropertyAttribute::BOUND
146 | beans::PropertyAttribute::MAYBEDEFAULT
147 | beans::PropertyAttribute::MAYBEVOID );
149 rOutProperties.emplace_back( "FillBackground",
150 PROP_DATAPOINT_FILL_BACKGROUND,
151 cppu::UnoType<bool>::get(),
152 beans::PropertyAttribute::BOUND
153 | beans::PropertyAttribute::MAYBEDEFAULT
154 | beans::PropertyAttribute::MAYBEVOID );
156 // border for filled objects
157 rOutProperties.emplace_back( "BorderColor",
158 PROP_DATAPOINT_BORDER_COLOR,
159 cppu::UnoType<sal_Int32>::get(),
160 beans::PropertyAttribute::BOUND
161 | beans::PropertyAttribute::MAYBEVOID // "maybe auto"
162 | beans::PropertyAttribute::MAYBEDEFAULT );
164 rOutProperties.emplace_back( "BorderStyle",
165 PROP_DATAPOINT_BORDER_STYLE,
166 cppu::UnoType<drawing::LineStyle>::get(),
167 beans::PropertyAttribute::BOUND
168 | beans::PropertyAttribute::MAYBEDEFAULT );
170 rOutProperties.emplace_back( "BorderWidth",
171 PROP_DATAPOINT_BORDER_WIDTH,
172 cppu::UnoType<sal_Int32>::get(),
173 beans::PropertyAttribute::BOUND
174 | beans::PropertyAttribute::MAYBEDEFAULT );
176 rOutProperties.emplace_back( "BorderDashName",
177 PROP_DATAPOINT_BORDER_DASH_NAME,
178 cppu::UnoType<OUString>::get(),
179 beans::PropertyAttribute::BOUND
180 | beans::PropertyAttribute::MAYBEVOID );
182 rOutProperties.emplace_back( "BorderTransparency",
183 PROP_DATAPOINT_BORDER_TRANSPARENCY,
184 cppu::UnoType<sal_Int16>::get(),
185 beans::PropertyAttribute::BOUND
186 | beans::PropertyAttribute::MAYBEVOID );
188 // Line Properties
190 rOutProperties.emplace_back( "LineColor",
191 PROP_DATAPOINT_BORDER_COLOR,
192 cppu::UnoType<sal_Int32>::get(),
193 beans::PropertyAttribute::BOUND
194 | beans::PropertyAttribute::MAYBEVOID
195 | beans::PropertyAttribute::MAYBEDEFAULT );
197 rOutProperties.emplace_back( "LineStyle",
198 LinePropertiesHelper::PROP_LINE_STYLE,
199 cppu::UnoType<drawing::LineStyle>::get(),
200 beans::PropertyAttribute::BOUND
201 | beans::PropertyAttribute::MAYBEDEFAULT );
203 rOutProperties.emplace_back( "LineWidth",
204 LinePropertiesHelper::PROP_LINE_WIDTH,
205 cppu::UnoType<sal_Int32>::get(),
206 beans::PropertyAttribute::BOUND
207 | beans::PropertyAttribute::MAYBEDEFAULT );
209 rOutProperties.emplace_back( "LineDash",
210 LinePropertiesHelper::PROP_LINE_DASH,
211 cppu::UnoType<drawing::LineDash>::get(),
212 beans::PropertyAttribute::BOUND
213 | beans::PropertyAttribute::MAYBEVOID );
215 rOutProperties.emplace_back( "LineDashName",
216 LinePropertiesHelper::PROP_LINE_DASH_NAME,
217 cppu::UnoType<OUString>::get(),
218 beans::PropertyAttribute::BOUND
219 | beans::PropertyAttribute::MAYBEVOID );
221 rOutProperties.emplace_back( "LineTransparence",
222 PROP_DATAPOINT_BORDER_TRANSPARENCY,
223 cppu::UnoType<sal_Int16>::get(),
224 beans::PropertyAttribute::BOUND
225 | beans::PropertyAttribute::MAYBEVOID );
227 rOutProperties.emplace_back( "LineCap",
228 ::chart::LinePropertiesHelper::PROP_LINE_CAP,
229 cppu::UnoType<drawing::LineCap>::get(),
230 beans::PropertyAttribute::BOUND
231 | beans::PropertyAttribute::MAYBEDEFAULT );
233 // FillProperties
234 // bitmap properties
235 rOutProperties.emplace_back( "FillBitmapOffsetX",
236 FillProperties::PROP_FILL_BITMAP_OFFSETX,
237 cppu::UnoType<sal_Int16>::get(),
238 beans::PropertyAttribute::BOUND
239 | beans::PropertyAttribute::MAYBEDEFAULT );
241 rOutProperties.emplace_back( "FillBitmapOffsetY",
242 FillProperties::PROP_FILL_BITMAP_OFFSETY,
243 cppu::UnoType<sal_Int16>::get(),
244 beans::PropertyAttribute::BOUND
245 | beans::PropertyAttribute::MAYBEDEFAULT );
247 rOutProperties.emplace_back( "FillBitmapPositionOffsetX",
248 FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETX,
249 cppu::UnoType<sal_Int16>::get(),
250 beans::PropertyAttribute::BOUND
251 | beans::PropertyAttribute::MAYBEDEFAULT );
253 rOutProperties.emplace_back( "FillBitmapPositionOffsetY",
254 FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETY,
255 cppu::UnoType<sal_Int16>::get(),
256 beans::PropertyAttribute::BOUND
257 | beans::PropertyAttribute::MAYBEDEFAULT );
259 rOutProperties.emplace_back( "FillBitmapRectanglePoint",
260 FillProperties::PROP_FILL_BITMAP_RECTANGLEPOINT,
261 cppu::UnoType<drawing::RectanglePoint>::get(),
262 beans::PropertyAttribute::BOUND
263 | beans::PropertyAttribute::MAYBEDEFAULT );
265 rOutProperties.emplace_back( "FillBitmapLogicalSize",
266 FillProperties::PROP_FILL_BITMAP_LOGICALSIZE,
267 cppu::UnoType<bool>::get(),
268 beans::PropertyAttribute::BOUND
269 | beans::PropertyAttribute::MAYBEDEFAULT );
271 rOutProperties.emplace_back( "FillBitmapSizeX",
272 FillProperties::PROP_FILL_BITMAP_SIZEX,
273 cppu::UnoType<sal_Int32>::get(),
274 beans::PropertyAttribute::BOUND
275 | beans::PropertyAttribute::MAYBEDEFAULT );
277 rOutProperties.emplace_back( "FillBitmapSizeY",
278 FillProperties::PROP_FILL_BITMAP_SIZEY,
279 cppu::UnoType<sal_Int32>::get(),
280 beans::PropertyAttribute::BOUND
281 | beans::PropertyAttribute::MAYBEDEFAULT );
283 rOutProperties.emplace_back( "FillBitmapMode",
284 FillProperties::PROP_FILL_BITMAP_MODE,
285 cppu::UnoType<drawing::BitmapMode>::get(),
286 beans::PropertyAttribute::BOUND
287 | beans::PropertyAttribute::MAYBEDEFAULT );
289 // others
290 rOutProperties.emplace_back( "Symbol",
291 PROP_DATAPOINT_SYMBOL_PROP,
292 cppu::UnoType<chart2::Symbol>::get(),
293 beans::PropertyAttribute::BOUND
294 | beans::PropertyAttribute::MAYBEDEFAULT );
295 rOutProperties.emplace_back( "Offset",
296 PROP_DATAPOINT_OFFSET,
297 cppu::UnoType<double>::get(),
298 beans::PropertyAttribute::BOUND
299 | beans::PropertyAttribute::MAYBEDEFAULT );
300 rOutProperties.emplace_back( "Geometry3D",
301 PROP_DATAPOINT_GEOMETRY3D,
302 cppu::UnoType<sal_Int32>::get(),
303 beans::PropertyAttribute::BOUND
304 | beans::PropertyAttribute::MAYBEDEFAULT );
306 rOutProperties.emplace_back( CHART_UNONAME_NUMFMT,
307 PROP_DATAPOINT_NUMBER_FORMAT,
308 cppu::UnoType<sal_Int32>::get(),
309 beans::PropertyAttribute::BOUND
310 | beans::PropertyAttribute::MAYBEDEFAULT );
312 rOutProperties.emplace_back( CHART_UNONAME_LINK_TO_SRC_NUMFMT,
313 PROP_DATAPOINT_LINK_NUMBERFORMAT_TO_SOURCE,
314 cppu::UnoType<bool>::get(),
315 beans::PropertyAttribute::BOUND
316 | beans::PropertyAttribute::MAYBEDEFAULT );
318 //additional 'PercentageNumberFormat'
319 rOutProperties.emplace_back( "PercentageNumberFormat",
320 PROP_DATAPOINT_PERCENTAGE_NUMBER_FORMAT,
321 cppu::UnoType<sal_Int32>::get(),
322 beans::PropertyAttribute::BOUND
323 | beans::PropertyAttribute::MAYBEVOID );
325 rOutProperties.emplace_back( "LabelPlacement",
326 PROP_DATAPOINT_LABEL_PLACEMENT,
327 cppu::UnoType<sal_Int32>::get(),
328 beans::PropertyAttribute::BOUND
329 | beans::PropertyAttribute::MAYBEVOID );
331 rOutProperties.emplace_back( "ReferencePageSize",
332 PROP_DATAPOINT_REFERENCE_DIAGRAM_SIZE,
333 cppu::UnoType<awt::Size>::get(),
334 beans::PropertyAttribute::BOUND
335 | beans::PropertyAttribute::MAYBEVOID );
337 rOutProperties.emplace_back( "TextRotation",
338 PROP_DATAPOINT_TEXT_ROTATION,
339 cppu::UnoType<double>::get(),
340 beans::PropertyAttribute::BOUND
341 | beans::PropertyAttribute::MAYBEDEFAULT );
343 rOutProperties.emplace_back( "InvertNegative",
344 PROP_DATAPOINT_INVERT_NEGATIVE,
345 cppu::UnoType<bool>::get(),
346 beans::PropertyAttribute::BOUND
347 | beans::PropertyAttribute::MAYBEDEFAULT );
349 // statistics
350 rOutProperties.emplace_back( CHART_UNONAME_ERRORBAR_X,
351 PROP_DATAPOINT_ERROR_BAR_X,
352 // XPropertySet supporting service ErrorBar
353 cppu::UnoType<beans::XPropertySet>::get(),
354 beans::PropertyAttribute::BOUND
355 | beans::PropertyAttribute::MAYBEVOID );
356 rOutProperties.emplace_back( CHART_UNONAME_ERRORBAR_Y,
357 PROP_DATAPOINT_ERROR_BAR_Y,
358 // XPropertySet supporting service ErrorBar
359 cppu::UnoType<beans::XPropertySet>::get(),
360 beans::PropertyAttribute::BOUND
361 | beans::PropertyAttribute::MAYBEVOID );
362 rOutProperties.emplace_back( "ShowErrorBox",
363 PROP_DATAPOINT_SHOW_ERROR_BOX,
364 cppu::UnoType<bool>::get(),
365 beans::PropertyAttribute::BOUND
366 | beans::PropertyAttribute::MAYBEVOID );
367 rOutProperties.emplace_back( "PercentDiagonal",
368 PROP_DATAPOINT_PERCENT_DIAGONAL,
369 cppu::UnoType<sal_Int16>::get(),
370 beans::PropertyAttribute::BOUND
371 | beans::PropertyAttribute::MAYBEVOID );
373 // Properties specific to data label.
375 rOutProperties.emplace_back( CHART_UNONAME_LABEL,
376 PROP_DATAPOINT_LABEL,
377 cppu::UnoType<chart2::DataPointLabel>::get(),
378 beans::PropertyAttribute::BOUND
379 | beans::PropertyAttribute::MAYBEDEFAULT );
381 rOutProperties.emplace_back( "TextWordWrap",
382 PROP_DATAPOINT_TEXT_WORD_WRAP,
383 cppu::UnoType<bool>::get(),
384 beans::PropertyAttribute::BOUND
385 | beans::PropertyAttribute::MAYBEDEFAULT );
387 rOutProperties.emplace_back( CHART_UNONAME_LABEL_SEP,
388 PROP_DATAPOINT_LABEL_SEPARATOR,
389 cppu::UnoType<OUString>::get(),
390 beans::PropertyAttribute::BOUND
391 | beans::PropertyAttribute::MAYBEDEFAULT );
393 rOutProperties.emplace_back( CHART_UNONAME_LABEL_BORDER_STYLE,
394 PROP_DATAPOINT_LABEL_BORDER_STYLE,
395 cppu::UnoType<drawing::LineStyle>::get(),
396 beans::PropertyAttribute::BOUND
397 | beans::PropertyAttribute::MAYBEDEFAULT );
398 rOutProperties.emplace_back( CHART_UNONAME_LABEL_BORDER_COLOR,
399 PROP_DATAPOINT_LABEL_BORDER_COLOR,
400 cppu::UnoType<sal_Int32>::get(),
401 beans::PropertyAttribute::BOUND
402 | beans::PropertyAttribute::MAYBEVOID // "maybe auto"
403 | beans::PropertyAttribute::MAYBEDEFAULT );
404 rOutProperties.emplace_back( CHART_UNONAME_LABEL_FILL_STYLE,
405 PROP_DATAPOINT_LABEL_FILL_STYLE,
406 cppu::UnoType<drawing::FillStyle>::get(),
407 beans::PropertyAttribute::BOUND
408 | beans::PropertyAttribute::MAYBEDEFAULT );
409 rOutProperties.emplace_back( CHART_UNONAME_LABEL_FILL_COLOR,
410 PROP_DATAPOINT_LABEL_FILL_COLOR,
411 cppu::UnoType<sal_Int32>::get(),
412 beans::PropertyAttribute::BOUND
413 | beans::PropertyAttribute::MAYBEVOID
414 | beans::PropertyAttribute::MAYBEDEFAULT );
415 rOutProperties.emplace_back( CHART_UNONAME_LABEL_FILL_BACKGROUND,
416 PROP_DATAPOINT_LABEL_FILL_BACKGROUND,
417 cppu::UnoType<sal_Bool>::get(),
418 beans::PropertyAttribute::BOUND
419 | beans::PropertyAttribute::MAYBEDEFAULT );
420 rOutProperties.emplace_back( CHART_UNONAME_LABEL_FILL_HATCH_NAME,
421 PROP_DATAPOINT_LABEL_FILL_HATCH_NAME,
422 cppu::UnoType<OUString>::get(),
423 beans::PropertyAttribute::BOUND
424 | beans::PropertyAttribute::MAYBEDEFAULT );
425 rOutProperties.emplace_back( CHART_UNONAME_LABEL_BORDER_WIDTH,
426 PROP_DATAPOINT_LABEL_BORDER_WIDTH,
427 cppu::UnoType<sal_Int32>::get(),
428 beans::PropertyAttribute::BOUND
429 | beans::PropertyAttribute::MAYBEDEFAULT );
430 rOutProperties.emplace_back( CHART_UNONAME_LABEL_BORDER_DASH,
431 PROP_DATAPOINT_LABEL_BORDER_DASH,
432 cppu::UnoType<drawing::LineDash>::get(),
433 beans::PropertyAttribute::BOUND
434 | beans::PropertyAttribute::MAYBEVOID );
435 rOutProperties.emplace_back( CHART_UNONAME_LABEL_BORDER_DASHNAME,
436 PROP_DATAPOINT_LABEL_BORDER_DASH_NAME,
437 cppu::UnoType<OUString>::get(),
438 beans::PropertyAttribute::BOUND
439 | beans::PropertyAttribute::MAYBEVOID );
440 rOutProperties.emplace_back( CHART_UNONAME_LABEL_BORDER_TRANS,
441 PROP_DATAPOINT_LABEL_BORDER_TRANS,
442 cppu::UnoType<sal_Int16>::get(),
443 beans::PropertyAttribute::BOUND
444 | beans::PropertyAttribute::MAYBEDEFAULT );
446 rOutProperties.emplace_back( CHART_UNONAME_CUSTOM_LABEL_FIELDS,
447 PROP_DATAPOINT_CUSTOM_LABEL_FIELDS,
448 cppu::UnoType<uno::Sequence<uno::Reference<chart2::XDataPointCustomLabelField>>>::get(),
449 beans::PropertyAttribute::BOUND
450 | beans::PropertyAttribute::MAYBEDEFAULT);
452 rOutProperties.emplace_back( "CustomLabelPosition",
453 PROP_DATAPOINT_LABEL_CUSTOM_POS,
454 cppu::UnoType<chart2::RelativePosition>::get(),
455 beans::PropertyAttribute::BOUND
456 | beans::PropertyAttribute::MAYBEVOID );
458 rOutProperties.emplace_back("CustomLabelSize", PROP_DATAPOINT_LABEL_CUSTOM_SIZE,
459 cppu::UnoType<chart2::RelativeSize>::get(),
460 beans::PropertyAttribute::BOUND
461 | beans::PropertyAttribute::MAYBEVOID);
464 void DataPointProperties::AddDefaultsToMap(
465 ::chart::tPropertyValueMap & rOutMap )
467 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_COLOR, Color(0x99, 0xcc, 0xff) ); // blue 8
468 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_TRANSPARENCY, sal_Int16(0) );
470 //fill
471 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_FILL_STYLE, drawing::FillStyle_SOLID );
472 PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_TRANSPARENCY_GRADIENT_NAME );
473 PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_GRADIENT_NAME );
474 PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_HATCH_NAME );
475 PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_FILL_BITMAP_NAME );
476 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_FILL_BACKGROUND, false );
478 //border
479 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_BORDER_COLOR, COL_BLACK );
480 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_BORDER_STYLE, drawing::LineStyle_SOLID ); // drawing::LineStyle_NONE
481 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_BORDER_WIDTH, sal_Int32(0) );
482 PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_BORDER_DASH_NAME );
483 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_BORDER_TRANSPARENCY, sal_Int16(0) );
485 //line
486 PropertyHelper::setPropertyValueDefault( rOutMap, LinePropertiesHelper::PROP_LINE_STYLE, drawing::LineStyle_SOLID );
487 PropertyHelper::setPropertyValueDefault( rOutMap, LinePropertiesHelper::PROP_LINE_WIDTH, sal_Int32(0) );
488 PropertyHelper::setPropertyValueDefault( rOutMap, LinePropertiesHelper::PROP_LINE_DASH, drawing::LineDash());
489 PropertyHelper::setEmptyPropertyValueDefault( rOutMap, LinePropertiesHelper::PROP_LINE_DASH_NAME );
490 PropertyHelper::setPropertyValueDefault( rOutMap, LinePropertiesHelper::PROP_LINE_CAP, drawing::LineCap_BUTT);
492 //fill bitmap
493 PropertyHelper::setPropertyValueDefault( rOutMap, FillProperties::PROP_FILL_BITMAP_OFFSETX, sal_Int16(0) );
494 PropertyHelper::setPropertyValueDefault( rOutMap, FillProperties::PROP_FILL_BITMAP_OFFSETY, sal_Int16(0) );
495 PropertyHelper::setPropertyValueDefault( rOutMap, FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETX, sal_Int16(0) );
496 PropertyHelper::setPropertyValueDefault( rOutMap, FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETY, sal_Int16(0) );
497 PropertyHelper::setPropertyValueDefault( rOutMap, FillProperties::PROP_FILL_BITMAP_RECTANGLEPOINT, drawing::RectanglePoint_MIDDLE_MIDDLE );
498 PropertyHelper::setPropertyValueDefault( rOutMap, FillProperties::PROP_FILL_BITMAP_LOGICALSIZE, true );
500 PropertyHelper::setPropertyValueDefault( rOutMap, FillProperties::PROP_FILL_BITMAP_SIZEX, sal_Int32(0) );
501 PropertyHelper::setPropertyValueDefault( rOutMap, FillProperties::PROP_FILL_BITMAP_SIZEY, sal_Int32(0) );
502 PropertyHelper::setPropertyValueDefault( rOutMap, FillProperties::PROP_FILL_BITMAP_MODE, drawing::BitmapMode_REPEAT );
504 //others
505 chart2::Symbol aSymbProp;
506 aSymbProp.Style = chart2::SymbolStyle_NONE;
507 aSymbProp.StandardSymbol = 0;
508 aSymbProp.Size = awt::Size( 250, 250 ); // ca. 7pt x 7pt (7pt=246.94)
509 aSymbProp.BorderColor = sal_Int32(COL_BLACK);
510 aSymbProp.FillColor = 0xee4000; // OrangeRed2
511 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_SYMBOL_PROP, aSymbProp );
513 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_OFFSET, 0.0 );
514 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_GEOMETRY3D, chart2::DataPointGeometry3D::CUBOID );
516 //@todo maybe choose a different one here -> should be dynamically that of the attached axis
517 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_ERROR_BAR_X, uno::Reference< beans::XPropertySet >());
518 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_ERROR_BAR_Y, uno::Reference< beans::XPropertySet >());
519 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_PERCENT_DIAGONAL, sal_Int16(0) );
521 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_TEXT_ROTATION, 0.0 );
522 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_INVERT_NEGATIVE, false );
524 PropertyHelper::setPropertyValueDefault(rOutMap, PROP_DATAPOINT_LINK_NUMBERFORMAT_TO_SOURCE, true);
526 // data label
527 PropertyHelper::setPropertyValueDefault(
528 rOutMap, PROP_DATAPOINT_LABEL,
529 chart2::DataPointLabel(
530 false, // ShowNumber
531 false, // ShowNumberInPercent
532 false, // ShowCategoryName
533 false, // ShowLegendSymbol
534 false, // ShowCustomLabel
535 false // ShowSeriesName
538 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_TEXT_WORD_WRAP, false );
539 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_LABEL_SEPARATOR, u" "_ustr );
540 PropertyHelper::setPropertyValueDefault(rOutMap, PROP_DATAPOINT_LABEL_BORDER_STYLE, drawing::LineStyle_NONE);
541 PropertyHelper::setEmptyPropertyValueDefault(rOutMap, PROP_DATAPOINT_LABEL_BORDER_COLOR);
542 PropertyHelper::setEmptyPropertyValueDefault(rOutMap, PROP_DATAPOINT_LABEL_FILL_STYLE);
543 PropertyHelper::setEmptyPropertyValueDefault(rOutMap, PROP_DATAPOINT_LABEL_FILL_COLOR);
544 PropertyHelper::setEmptyPropertyValueDefault(rOutMap, PROP_DATAPOINT_LABEL_FILL_BACKGROUND);
545 PropertyHelper::setEmptyPropertyValueDefault(rOutMap, PROP_DATAPOINT_LABEL_FILL_HATCH_NAME);
546 PropertyHelper::setPropertyValueDefault(rOutMap, PROP_DATAPOINT_LABEL_BORDER_WIDTH, sal_Int32(0));
547 PropertyHelper::setPropertyValueDefault(rOutMap, PROP_DATAPOINT_LABEL_BORDER_DASH, drawing::LineDash());
548 PropertyHelper::setEmptyPropertyValueDefault(rOutMap, PROP_DATAPOINT_LABEL_BORDER_DASH_NAME);
549 PropertyHelper::setPropertyValueDefault(rOutMap, PROP_DATAPOINT_LABEL_BORDER_TRANS, sal_Int16(0));
551 uno::Sequence<uno::Reference<chart2::XDataPointCustomLabelField>> aFields(0);
552 PropertyHelper::setPropertyValueDefault(rOutMap, PROP_DATAPOINT_CUSTOM_LABEL_FIELDS, aFields);
555 } // namespace chart
557 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */