nss: upgrade to release 3.73
[LibreOffice.git] / chart2 / source / model / main / DataPointProperties.cxx
blobdcc343002ffbdd07e08fe97f087679d8d290ee1d
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/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>
38 using namespace ::com::sun::star;
40 using ::com::sun::star::beans::Property;
42 namespace chart
45 void DataPointProperties::AddPropertiesToVector(
46 std::vector< Property > & rOutProperties )
48 // DataPointProperties
50 // Common
52 rOutProperties.emplace_back( "Color",
53 PROP_DATAPOINT_COLOR,
54 cppu::UnoType<sal_Int32>::get(),
55 beans::PropertyAttribute::BOUND
56 | beans::PropertyAttribute::MAYBEVOID // "maybe auto"
57 | beans::PropertyAttribute::MAYBEDEFAULT );
59 rOutProperties.emplace_back( "FillColor",
60 PROP_DATAPOINT_COLOR,
61 cppu::UnoType<sal_Int32>::get(),
62 beans::PropertyAttribute::BOUND
63 | beans::PropertyAttribute::MAYBEVOID // "maybe auto"
64 | beans::PropertyAttribute::MAYBEDEFAULT );
66 rOutProperties.emplace_back( "Transparency",
67 PROP_DATAPOINT_TRANSPARENCY,
68 cppu::UnoType<sal_Int16>::get(),
69 beans::PropertyAttribute::BOUND
70 | beans::PropertyAttribute::MAYBEDEFAULT );
72 rOutProperties.emplace_back( "FillTransparence",
73 PROP_DATAPOINT_TRANSPARENCY,
74 cppu::UnoType<sal_Int16>::get(),
75 beans::PropertyAttribute::BOUND
76 | beans::PropertyAttribute::MAYBEDEFAULT );
78 // Fill Properties
79 rOutProperties.emplace_back( "FillStyle",
80 PROP_DATAPOINT_FILL_STYLE,
81 cppu::UnoType<drawing::FillStyle>::get(),
82 beans::PropertyAttribute::BOUND
83 | beans::PropertyAttribute::MAYBEDEFAULT );
85 rOutProperties.emplace_back( "TransparencyGradientName",
86 PROP_DATAPOINT_TRANSPARENCY_GRADIENT_NAME,
87 cppu::UnoType<OUString>::get(),
88 beans::PropertyAttribute::BOUND
89 | beans::PropertyAttribute::MAYBEDEFAULT
90 | beans::PropertyAttribute::MAYBEVOID );
92 rOutProperties.emplace_back( "FillTransparenceGradientName",
93 PROP_DATAPOINT_TRANSPARENCY_GRADIENT_NAME,
94 cppu::UnoType<OUString>::get(),
95 beans::PropertyAttribute::BOUND
96 | beans::PropertyAttribute::MAYBEDEFAULT
97 | beans::PropertyAttribute::MAYBEVOID );
99 rOutProperties.emplace_back( "GradientName",
100 PROP_DATAPOINT_GRADIENT_NAME,
101 cppu::UnoType<OUString>::get(),
102 beans::PropertyAttribute::BOUND
103 | beans::PropertyAttribute::MAYBEDEFAULT
104 | beans::PropertyAttribute::MAYBEVOID );
106 rOutProperties.emplace_back( "FillGradientName",
107 PROP_DATAPOINT_GRADIENT_NAME,
108 cppu::UnoType<OUString>::get(),
109 beans::PropertyAttribute::BOUND
110 | beans::PropertyAttribute::MAYBEDEFAULT
111 | beans::PropertyAttribute::MAYBEVOID );
113 rOutProperties.emplace_back( "GradientStepCount",
114 PROP_DATAPOINT_GRADIENT_STEPCOUNT,
115 cppu::UnoType<sal_Int16>::get(),
116 beans::PropertyAttribute::BOUND
117 | beans::PropertyAttribute::MAYBEVOID );
119 rOutProperties.emplace_back( "FillGradientStepCount",
120 PROP_DATAPOINT_GRADIENT_STEPCOUNT,
121 cppu::UnoType<sal_Int16>::get(),
122 beans::PropertyAttribute::BOUND
123 | beans::PropertyAttribute::MAYBEVOID );
125 rOutProperties.emplace_back( "HatchName",
126 PROP_DATAPOINT_HATCH_NAME,
127 cppu::UnoType<OUString>::get(),
128 beans::PropertyAttribute::BOUND
129 | beans::PropertyAttribute::MAYBEDEFAULT
130 | beans::PropertyAttribute::MAYBEVOID );
132 rOutProperties.emplace_back( "FillHatchName",
133 PROP_DATAPOINT_HATCH_NAME,
134 cppu::UnoType<OUString>::get(),
135 beans::PropertyAttribute::BOUND
136 | beans::PropertyAttribute::MAYBEDEFAULT
137 | beans::PropertyAttribute::MAYBEVOID );
139 rOutProperties.emplace_back( "FillBitmapName",
140 PROP_DATAPOINT_FILL_BITMAP_NAME,
141 cppu::UnoType<OUString>::get(),
142 beans::PropertyAttribute::BOUND
143 | beans::PropertyAttribute::MAYBEDEFAULT
144 | beans::PropertyAttribute::MAYBEVOID );
146 rOutProperties.emplace_back( "FillBackground",
147 PROP_DATAPOINT_FILL_BACKGROUND,
148 cppu::UnoType<bool>::get(),
149 beans::PropertyAttribute::BOUND
150 | beans::PropertyAttribute::MAYBEDEFAULT
151 | beans::PropertyAttribute::MAYBEVOID );
153 // border for filled objects
154 rOutProperties.emplace_back( "BorderColor",
155 PROP_DATAPOINT_BORDER_COLOR,
156 cppu::UnoType<sal_Int32>::get(),
157 beans::PropertyAttribute::BOUND
158 | beans::PropertyAttribute::MAYBEVOID // "maybe auto"
159 | beans::PropertyAttribute::MAYBEDEFAULT );
161 rOutProperties.emplace_back( "BorderStyle",
162 PROP_DATAPOINT_BORDER_STYLE,
163 cppu::UnoType<drawing::LineStyle>::get(),
164 beans::PropertyAttribute::BOUND
165 | beans::PropertyAttribute::MAYBEDEFAULT );
167 rOutProperties.emplace_back( "BorderWidth",
168 PROP_DATAPOINT_BORDER_WIDTH,
169 cppu::UnoType<sal_Int32>::get(),
170 beans::PropertyAttribute::BOUND
171 | beans::PropertyAttribute::MAYBEDEFAULT );
173 rOutProperties.emplace_back( "BorderDashName",
174 PROP_DATAPOINT_BORDER_DASH_NAME,
175 cppu::UnoType<OUString>::get(),
176 beans::PropertyAttribute::BOUND
177 | beans::PropertyAttribute::MAYBEVOID );
179 rOutProperties.emplace_back( "BorderTransparency",
180 PROP_DATAPOINT_BORDER_TRANSPARENCY,
181 cppu::UnoType<sal_Int16>::get(),
182 beans::PropertyAttribute::BOUND
183 | beans::PropertyAttribute::MAYBEVOID );
185 // Line Properties
187 rOutProperties.emplace_back( "LineColor",
188 PROP_DATAPOINT_BORDER_COLOR,
189 cppu::UnoType<sal_Int32>::get(),
190 beans::PropertyAttribute::BOUND
191 | beans::PropertyAttribute::MAYBEVOID
192 | beans::PropertyAttribute::MAYBEDEFAULT );
194 rOutProperties.emplace_back( "LineStyle",
195 LinePropertiesHelper::PROP_LINE_STYLE,
196 cppu::UnoType<drawing::LineStyle>::get(),
197 beans::PropertyAttribute::BOUND
198 | beans::PropertyAttribute::MAYBEDEFAULT );
200 rOutProperties.emplace_back( "LineWidth",
201 LinePropertiesHelper::PROP_LINE_WIDTH,
202 cppu::UnoType<sal_Int32>::get(),
203 beans::PropertyAttribute::BOUND
204 | beans::PropertyAttribute::MAYBEDEFAULT );
206 rOutProperties.emplace_back( "LineDash",
207 LinePropertiesHelper::PROP_LINE_DASH,
208 cppu::UnoType<drawing::LineDash>::get(),
209 beans::PropertyAttribute::BOUND
210 | beans::PropertyAttribute::MAYBEVOID );
212 rOutProperties.emplace_back( "LineDashName",
213 LinePropertiesHelper::PROP_LINE_DASH_NAME,
214 cppu::UnoType<OUString>::get(),
215 beans::PropertyAttribute::BOUND
216 | beans::PropertyAttribute::MAYBEVOID );
218 rOutProperties.emplace_back( "LineTransparence",
219 PROP_DATAPOINT_BORDER_TRANSPARENCY,
220 cppu::UnoType<sal_Int16>::get(),
221 beans::PropertyAttribute::BOUND
222 | beans::PropertyAttribute::MAYBEVOID );
224 rOutProperties.emplace_back( "LineCap",
225 ::chart::LinePropertiesHelper::PROP_LINE_CAP,
226 cppu::UnoType<drawing::LineCap>::get(),
227 beans::PropertyAttribute::BOUND
228 | beans::PropertyAttribute::MAYBEDEFAULT );
230 // FillProperties
231 // bitmap properties
232 rOutProperties.emplace_back( "FillBitmapOffsetX",
233 FillProperties::PROP_FILL_BITMAP_OFFSETX,
234 cppu::UnoType<sal_Int16>::get(),
235 beans::PropertyAttribute::BOUND
236 | beans::PropertyAttribute::MAYBEDEFAULT );
238 rOutProperties.emplace_back( "FillBitmapOffsetY",
239 FillProperties::PROP_FILL_BITMAP_OFFSETY,
240 cppu::UnoType<sal_Int16>::get(),
241 beans::PropertyAttribute::BOUND
242 | beans::PropertyAttribute::MAYBEDEFAULT );
244 rOutProperties.emplace_back( "FillBitmapPositionOffsetX",
245 FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETX,
246 cppu::UnoType<sal_Int16>::get(),
247 beans::PropertyAttribute::BOUND
248 | beans::PropertyAttribute::MAYBEDEFAULT );
250 rOutProperties.emplace_back( "FillBitmapPositionOffsetY",
251 FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETY,
252 cppu::UnoType<sal_Int16>::get(),
253 beans::PropertyAttribute::BOUND
254 | beans::PropertyAttribute::MAYBEDEFAULT );
256 rOutProperties.emplace_back( "FillBitmapRectanglePoint",
257 FillProperties::PROP_FILL_BITMAP_RECTANGLEPOINT,
258 cppu::UnoType<drawing::RectanglePoint>::get(),
259 beans::PropertyAttribute::BOUND
260 | beans::PropertyAttribute::MAYBEDEFAULT );
262 rOutProperties.emplace_back( "FillBitmapLogicalSize",
263 FillProperties::PROP_FILL_BITMAP_LOGICALSIZE,
264 cppu::UnoType<bool>::get(),
265 beans::PropertyAttribute::BOUND
266 | beans::PropertyAttribute::MAYBEDEFAULT );
268 rOutProperties.emplace_back( "FillBitmapSizeX",
269 FillProperties::PROP_FILL_BITMAP_SIZEX,
270 cppu::UnoType<sal_Int32>::get(),
271 beans::PropertyAttribute::BOUND
272 | beans::PropertyAttribute::MAYBEDEFAULT );
274 rOutProperties.emplace_back( "FillBitmapSizeY",
275 FillProperties::PROP_FILL_BITMAP_SIZEY,
276 cppu::UnoType<sal_Int32>::get(),
277 beans::PropertyAttribute::BOUND
278 | beans::PropertyAttribute::MAYBEDEFAULT );
280 rOutProperties.emplace_back( "FillBitmapMode",
281 FillProperties::PROP_FILL_BITMAP_MODE,
282 cppu::UnoType<drawing::BitmapMode>::get(),
283 beans::PropertyAttribute::BOUND
284 | beans::PropertyAttribute::MAYBEDEFAULT );
286 // others
287 rOutProperties.emplace_back( "Symbol",
288 PROP_DATAPOINT_SYMBOL_PROP,
289 cppu::UnoType<chart2::Symbol>::get(),
290 beans::PropertyAttribute::BOUND
291 | beans::PropertyAttribute::MAYBEDEFAULT );
292 rOutProperties.emplace_back( "Offset",
293 PROP_DATAPOINT_OFFSET,
294 cppu::UnoType<double>::get(),
295 beans::PropertyAttribute::BOUND
296 | beans::PropertyAttribute::MAYBEDEFAULT );
297 rOutProperties.emplace_back( "Geometry3D",
298 PROP_DATAPOINT_GEOMETRY3D,
299 cppu::UnoType<sal_Int32>::get(),
300 beans::PropertyAttribute::BOUND
301 | beans::PropertyAttribute::MAYBEDEFAULT );
303 rOutProperties.emplace_back( CHART_UNONAME_NUMFMT,
304 PROP_DATAPOINT_NUMBER_FORMAT,
305 cppu::UnoType<sal_Int32>::get(),
306 beans::PropertyAttribute::BOUND
307 | beans::PropertyAttribute::MAYBEDEFAULT );
309 rOutProperties.emplace_back( CHART_UNONAME_LINK_TO_SRC_NUMFMT,
310 PROP_DATAPOINT_LINK_NUMBERFORMAT_TO_SOURCE,
311 cppu::UnoType<bool>::get(),
312 beans::PropertyAttribute::BOUND
313 | beans::PropertyAttribute::MAYBEDEFAULT );
315 //additional 'PercentageNumberFormat'
316 rOutProperties.emplace_back( "PercentageNumberFormat",
317 PROP_DATAPOINT_PERCENTAGE_NUMBER_FORMAT,
318 cppu::UnoType<sal_Int32>::get(),
319 beans::PropertyAttribute::BOUND
320 | beans::PropertyAttribute::MAYBEVOID );
322 rOutProperties.emplace_back( "LabelPlacement",
323 PROP_DATAPOINT_LABEL_PLACEMENT,
324 cppu::UnoType<sal_Int32>::get(),
325 beans::PropertyAttribute::BOUND
326 | beans::PropertyAttribute::MAYBEVOID );
328 rOutProperties.emplace_back( "ReferencePageSize",
329 PROP_DATAPOINT_REFERENCE_DIAGRAM_SIZE,
330 cppu::UnoType<awt::Size>::get(),
331 beans::PropertyAttribute::BOUND
332 | beans::PropertyAttribute::MAYBEVOID );
334 rOutProperties.emplace_back( "TextRotation",
335 PROP_DATAPOINT_TEXT_ROTATION,
336 cppu::UnoType<double>::get(),
337 beans::PropertyAttribute::BOUND
338 | beans::PropertyAttribute::MAYBEDEFAULT );
340 // statistics
341 rOutProperties.emplace_back( CHART_UNONAME_ERRORBAR_X,
342 PROP_DATAPOINT_ERROR_BAR_X,
343 // XPropertySet supporting service ErrorBar
344 cppu::UnoType<beans::XPropertySet>::get(),
345 beans::PropertyAttribute::BOUND
346 | beans::PropertyAttribute::MAYBEVOID );
347 rOutProperties.emplace_back( CHART_UNONAME_ERRORBAR_Y,
348 PROP_DATAPOINT_ERROR_BAR_Y,
349 // XPropertySet supporting service ErrorBar
350 cppu::UnoType<beans::XPropertySet>::get(),
351 beans::PropertyAttribute::BOUND
352 | beans::PropertyAttribute::MAYBEVOID );
353 rOutProperties.emplace_back( "ShowErrorBox",
354 PROP_DATAPOINT_SHOW_ERROR_BOX,
355 cppu::UnoType<bool>::get(),
356 beans::PropertyAttribute::BOUND
357 | beans::PropertyAttribute::MAYBEVOID );
358 rOutProperties.emplace_back( "PercentDiagonal",
359 PROP_DATAPOINT_PERCENT_DIAGONAL,
360 cppu::UnoType<sal_Int16>::get(),
361 beans::PropertyAttribute::BOUND
362 | beans::PropertyAttribute::MAYBEVOID );
364 // Properties specific to data label.
366 rOutProperties.emplace_back( CHART_UNONAME_LABEL,
367 PROP_DATAPOINT_LABEL,
368 cppu::UnoType<chart2::DataPointLabel>::get(),
369 beans::PropertyAttribute::BOUND
370 | beans::PropertyAttribute::MAYBEDEFAULT );
372 rOutProperties.emplace_back( "TextWordWrap",
373 PROP_DATAPOINT_TEXT_WORD_WRAP,
374 cppu::UnoType<bool>::get(),
375 beans::PropertyAttribute::BOUND
376 | beans::PropertyAttribute::MAYBEDEFAULT );
378 rOutProperties.emplace_back( CHART_UNONAME_LABEL_SEP,
379 PROP_DATAPOINT_LABEL_SEPARATOR,
380 cppu::UnoType<OUString>::get(),
381 beans::PropertyAttribute::BOUND
382 | beans::PropertyAttribute::MAYBEDEFAULT );
384 rOutProperties.emplace_back( CHART_UNONAME_LABEL_BORDER_STYLE,
385 PROP_DATAPOINT_LABEL_BORDER_STYLE,
386 cppu::UnoType<drawing::LineStyle>::get(),
387 beans::PropertyAttribute::BOUND
388 | beans::PropertyAttribute::MAYBEDEFAULT );
389 rOutProperties.emplace_back( CHART_UNONAME_LABEL_BORDER_COLOR,
390 PROP_DATAPOINT_LABEL_BORDER_COLOR,
391 cppu::UnoType<sal_Int32>::get(),
392 beans::PropertyAttribute::BOUND
393 | beans::PropertyAttribute::MAYBEVOID // "maybe auto"
394 | beans::PropertyAttribute::MAYBEDEFAULT );
395 rOutProperties.emplace_back( CHART_UNONAME_LABEL_FILL_STYLE,
396 PROP_DATAPOINT_LABEL_FILL_STYLE,
397 cppu::UnoType<drawing::FillStyle>::get(),
398 beans::PropertyAttribute::BOUND
399 | beans::PropertyAttribute::MAYBEDEFAULT );
400 rOutProperties.emplace_back( CHART_UNONAME_LABEL_FILL_COLOR,
401 PROP_DATAPOINT_LABEL_FILL_COLOR,
402 cppu::UnoType<sal_Int32>::get(),
403 beans::PropertyAttribute::BOUND
404 | beans::PropertyAttribute::MAYBEVOID
405 | beans::PropertyAttribute::MAYBEDEFAULT );
406 rOutProperties.emplace_back( CHART_UNONAME_LABEL_FILL_BACKGROUND,
407 PROP_DATAPOINT_LABEL_FILL_BACKGROUND,
408 cppu::UnoType<sal_Bool>::get(),
409 beans::PropertyAttribute::BOUND
410 | beans::PropertyAttribute::MAYBEDEFAULT );
411 rOutProperties.emplace_back( CHART_UNONAME_LABEL_FILL_HATCH_NAME,
412 PROP_DATAPOINT_LABEL_FILL_HATCH_NAME,
413 cppu::UnoType<OUString>::get(),
414 beans::PropertyAttribute::BOUND
415 | beans::PropertyAttribute::MAYBEDEFAULT );
416 rOutProperties.emplace_back( CHART_UNONAME_LABEL_BORDER_WIDTH,
417 PROP_DATAPOINT_LABEL_BORDER_WIDTH,
418 cppu::UnoType<sal_Int32>::get(),
419 beans::PropertyAttribute::BOUND
420 | beans::PropertyAttribute::MAYBEDEFAULT );
421 rOutProperties.emplace_back( CHART_UNONAME_LABEL_BORDER_DASH,
422 PROP_DATAPOINT_LABEL_BORDER_DASH,
423 cppu::UnoType<drawing::LineDash>::get(),
424 beans::PropertyAttribute::BOUND
425 | beans::PropertyAttribute::MAYBEVOID );
426 rOutProperties.emplace_back( CHART_UNONAME_LABEL_BORDER_DASHNAME,
427 PROP_DATAPOINT_LABEL_BORDER_DASH_NAME,
428 cppu::UnoType<OUString>::get(),
429 beans::PropertyAttribute::BOUND
430 | beans::PropertyAttribute::MAYBEVOID );
431 rOutProperties.emplace_back( CHART_UNONAME_LABEL_BORDER_TRANS,
432 PROP_DATAPOINT_LABEL_BORDER_TRANS,
433 cppu::UnoType<sal_Int16>::get(),
434 beans::PropertyAttribute::BOUND
435 | beans::PropertyAttribute::MAYBEDEFAULT );
437 rOutProperties.emplace_back( CHART_UNONAME_CUSTOM_LABEL_FIELDS,
438 PROP_DATAPOINT_CUSTOM_LABEL_FIELDS,
439 cppu::UnoType<uno::Sequence<uno::Reference<chart2::XDataPointCustomLabelField>>>::get(),
440 beans::PropertyAttribute::BOUND
441 | beans::PropertyAttribute::MAYBEDEFAULT);
443 rOutProperties.emplace_back( "CustomLabelPosition",
444 PROP_DATAPOINT_LABEL_CUSTOM_POS,
445 cppu::UnoType<chart2::RelativePosition>::get(),
446 beans::PropertyAttribute::BOUND
447 | beans::PropertyAttribute::MAYBEVOID );
450 void DataPointProperties::AddDefaultsToMap(
451 ::chart::tPropertyValueMap & rOutMap )
453 PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, PROP_DATAPOINT_COLOR, 0x0099ccff ); // blue 8
454 PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, PROP_DATAPOINT_TRANSPARENCY, 0 );
456 //fill
457 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_FILL_STYLE, drawing::FillStyle_SOLID );
458 PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_TRANSPARENCY_GRADIENT_NAME );
459 PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_GRADIENT_NAME );
460 PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_HATCH_NAME );
461 PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_FILL_BITMAP_NAME );
462 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_FILL_BACKGROUND, false );
464 //border
465 PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, PROP_DATAPOINT_BORDER_COLOR, 0x000000 ); // black
466 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_BORDER_STYLE, drawing::LineStyle_SOLID ); // drawing::LineStyle_NONE
467 PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, PROP_DATAPOINT_BORDER_WIDTH, 0 );
468 PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_BORDER_DASH_NAME );
469 PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, PROP_DATAPOINT_BORDER_TRANSPARENCY, 0 );
471 //line
472 PropertyHelper::setPropertyValueDefault( rOutMap, LinePropertiesHelper::PROP_LINE_STYLE, drawing::LineStyle_SOLID );
473 PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, LinePropertiesHelper::PROP_LINE_WIDTH, 0 );
474 PropertyHelper::setPropertyValueDefault( rOutMap, LinePropertiesHelper::PROP_LINE_DASH, drawing::LineDash());
475 PropertyHelper::setEmptyPropertyValueDefault( rOutMap, LinePropertiesHelper::PROP_LINE_DASH_NAME );
476 PropertyHelper::setPropertyValueDefault( rOutMap, LinePropertiesHelper::PROP_LINE_CAP, drawing::LineCap_BUTT);
478 //fill bitmap
479 PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, FillProperties::PROP_FILL_BITMAP_OFFSETX, 0 );
480 PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, FillProperties::PROP_FILL_BITMAP_OFFSETY, 0 );
481 PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETX, 0 );
482 PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETY, 0 );
483 PropertyHelper::setPropertyValueDefault( rOutMap, FillProperties::PROP_FILL_BITMAP_RECTANGLEPOINT, drawing::RectanglePoint_MIDDLE_MIDDLE );
484 PropertyHelper::setPropertyValueDefault( rOutMap, FillProperties::PROP_FILL_BITMAP_LOGICALSIZE, true );
486 PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, FillProperties::PROP_FILL_BITMAP_SIZEX, 0 );
487 PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, FillProperties::PROP_FILL_BITMAP_SIZEY, 0 );
488 PropertyHelper::setPropertyValueDefault( rOutMap, FillProperties::PROP_FILL_BITMAP_MODE, drawing::BitmapMode_REPEAT );
490 //others
491 chart2::Symbol aSymbProp;
492 aSymbProp.Style = chart2::SymbolStyle_NONE;
493 aSymbProp.StandardSymbol = 0;
494 aSymbProp.Size = awt::Size( 250, 250 ); // ca. 7pt x 7pt (7pt=246.94)
495 aSymbProp.BorderColor = 0x000000; // Black
496 aSymbProp.FillColor = 0xee4000; // OrangeRed2
497 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_SYMBOL_PROP, aSymbProp );
499 PropertyHelper::setPropertyValueDefault< double >( rOutMap, PROP_DATAPOINT_OFFSET, 0.0 );
500 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_GEOMETRY3D, chart2::DataPointGeometry3D::CUBOID );
502 //@todo maybe choose a different one here -> should be dynamically that of the attached axis
503 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_ERROR_BAR_X, uno::Reference< beans::XPropertySet >());
504 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_ERROR_BAR_Y, uno::Reference< beans::XPropertySet >());
505 PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, PROP_DATAPOINT_PERCENT_DIAGONAL, 0 );
507 PropertyHelper::setPropertyValueDefault< double >( rOutMap, PROP_DATAPOINT_TEXT_ROTATION, 0.0 );
509 PropertyHelper::setPropertyValueDefault(rOutMap, PROP_DATAPOINT_LINK_NUMBERFORMAT_TO_SOURCE, true);
511 // data label
512 PropertyHelper::setPropertyValueDefault(
513 rOutMap, PROP_DATAPOINT_LABEL,
514 chart2::DataPointLabel(
515 false, // ShowNumber
516 false, // ShowNumberInPercent
517 false, // ShowCategoryName
518 false, // ShowLegendSymbol
519 false // ShowCustomLabel
522 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_TEXT_WORD_WRAP, false );
523 PropertyHelper::setPropertyValueDefault< OUString >( rOutMap, PROP_DATAPOINT_LABEL_SEPARATOR, " " );
524 PropertyHelper::setPropertyValueDefault<sal_Int32>(rOutMap, PROP_DATAPOINT_LABEL_BORDER_STYLE, sal_Int32(drawing::LineStyle_NONE));
525 PropertyHelper::setEmptyPropertyValueDefault(rOutMap, PROP_DATAPOINT_LABEL_BORDER_COLOR);
526 PropertyHelper::setEmptyPropertyValueDefault(rOutMap, PROP_DATAPOINT_LABEL_FILL_STYLE);
527 PropertyHelper::setEmptyPropertyValueDefault(rOutMap, PROP_DATAPOINT_LABEL_FILL_COLOR);
528 PropertyHelper::setEmptyPropertyValueDefault(rOutMap, PROP_DATAPOINT_LABEL_FILL_BACKGROUND);
529 PropertyHelper::setEmptyPropertyValueDefault(rOutMap, PROP_DATAPOINT_LABEL_FILL_HATCH_NAME);
530 PropertyHelper::setPropertyValueDefault<sal_Int32>(rOutMap, PROP_DATAPOINT_LABEL_BORDER_WIDTH, 0);
531 PropertyHelper::setPropertyValueDefault(rOutMap, PROP_DATAPOINT_LABEL_BORDER_DASH, drawing::LineDash());
532 PropertyHelper::setEmptyPropertyValueDefault(rOutMap, PROP_DATAPOINT_LABEL_BORDER_DASH_NAME);
533 PropertyHelper::setPropertyValueDefault<sal_Int16>(rOutMap, PROP_DATAPOINT_LABEL_BORDER_TRANS, 0);
535 uno::Sequence<uno::Reference<chart2::XDataPointCustomLabelField>> aFields(0);
536 PropertyHelper::setPropertyValueDefault(rOutMap, PROP_DATAPOINT_CUSTOM_LABEL_FIELDS, aFields);
539 } // namespace chart
541 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */