Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*
3 : : * This file is part of the LibreOffice project.
4 : : *
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/.
8 : : *
9 : : * This file incorporates work covered by the following license notice:
10 : : *
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 .
18 : : */
19 : :
20 : : #include "DataPointProperties.hxx"
21 : : #include "macros.hxx"
22 : : #include "LineProperties.hxx"
23 : : #include "FillProperties.hxx"
24 : :
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/PolyPolygonBezierCoords.hpp>
30 : : #include <com/sun/star/style/XStyle.hpp>
31 : : #include <com/sun/star/drawing/BitmapMode.hpp>
32 : : #include <com/sun/star/drawing/RectanglePoint.hpp>
33 : :
34 : : #include <com/sun/star/chart2/DataPointGeometry3D.hpp>
35 : : #include <com/sun/star/chart2/DataPointLabel.hpp>
36 : : #include <com/sun/star/chart2/Symbol.hpp>
37 : :
38 : : using namespace ::com::sun::star;
39 : :
40 : : using ::com::sun::star::beans::Property;
41 : :
42 : : namespace chart
43 : : {
44 : :
45 : 16 : void DataPointProperties::AddPropertiesToVector(
46 : : ::std::vector< Property > & rOutProperties )
47 : : {
48 : : // DataPointProperties
49 : : // ===================
50 : :
51 : : // Common
52 : : // ------
53 : : rOutProperties.push_back(
54 : : Property( C2U( "Color" ),
55 : : PROP_DATAPOINT_COLOR,
56 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
57 : : beans::PropertyAttribute::BOUND
58 : : | beans::PropertyAttribute::MAYBEVOID // "maybe auto"
59 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEDEFAULT ));
60 : :
61 : : rOutProperties.push_back(
62 : : Property( C2U( "Transparency" ),
63 : : PROP_DATAPOINT_TRANSPARENCY,
64 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const sal_Int16 * >(0)),
65 : : beans::PropertyAttribute::BOUND
66 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEDEFAULT ));
67 : :
68 : : // Fill Properties
69 : : // ---------------
70 : : rOutProperties.push_back(
71 : : Property( C2U( "FillStyle" ),
72 : : PROP_DATAPOINT_FILL_STYLE,
73 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const drawing::FillStyle * >(0)),
74 : : beans::PropertyAttribute::BOUND
75 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEDEFAULT ));
76 : :
77 : : rOutProperties.push_back(
78 : : Property( C2U( "TransparencyGradientName" ),
79 : : PROP_DATAPOINT_TRANSPARENCY_GRADIENT_NAME,
80 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const ::rtl::OUString * >(0)),
81 : : beans::PropertyAttribute::BOUND
82 : : | beans::PropertyAttribute::MAYBEDEFAULT
83 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEVOID ));
84 : :
85 : : rOutProperties.push_back(
86 : : Property( C2U( "GradientName" ),
87 : : PROP_DATAPOINT_GRADIENT_NAME,
88 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const ::rtl::OUString * >(0)),
89 : : beans::PropertyAttribute::BOUND
90 : : | beans::PropertyAttribute::MAYBEDEFAULT
91 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEVOID ));
92 : :
93 : :
94 : : rOutProperties.push_back(
95 : : beans::Property( C2U( "GradientStepCount" ),
96 : : PROP_DATAPOINT_GRADIENT_STEPCOUNT,
97 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const sal_Int16 * >(0)),
98 : : beans::PropertyAttribute::BOUND
99 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEVOID ));
100 : :
101 : : rOutProperties.push_back(
102 : : Property( C2U( "HatchName" ),
103 : : PROP_DATAPOINT_HATCH_NAME,
104 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const ::rtl::OUString * >(0)),
105 : : beans::PropertyAttribute::BOUND
106 : : | beans::PropertyAttribute::MAYBEDEFAULT
107 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEVOID ));
108 : :
109 : : rOutProperties.push_back(
110 : : Property( C2U( "FillBitmapName" ),
111 : : PROP_DATAPOINT_FILL_BITMAP_NAME,
112 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const ::rtl::OUString * >(0)),
113 : : beans::PropertyAttribute::BOUND
114 : : | beans::PropertyAttribute::MAYBEDEFAULT
115 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEVOID ));
116 : : rOutProperties.push_back(
117 : : Property( C2U( "FillBackground" ),
118 : : PROP_DATAPOINT_FILL_BACKGROUND,
119 [ + - ]: 16 : ::getBooleanCppuType(),
120 : : beans::PropertyAttribute::BOUND
121 : : | beans::PropertyAttribute::MAYBEDEFAULT
122 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEVOID ));
123 : :
124 : : // border for filled objects
125 : : rOutProperties.push_back(
126 : : Property( C2U( "BorderColor" ),
127 : : PROP_DATAPOINT_BORDER_COLOR,
128 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
129 : : beans::PropertyAttribute::BOUND
130 : : | beans::PropertyAttribute::MAYBEVOID // "maybe auto"
131 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEDEFAULT ));
132 : : rOutProperties.push_back(
133 : : Property( C2U( "BorderStyle" ),
134 : : PROP_DATAPOINT_BORDER_STYLE,
135 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const drawing::LineStyle * >(0)),
136 : : beans::PropertyAttribute::BOUND
137 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEDEFAULT ));
138 : : rOutProperties.push_back(
139 : : Property( C2U( "BorderWidth" ),
140 : : PROP_DATAPOINT_BORDER_WIDTH,
141 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
142 : : beans::PropertyAttribute::BOUND
143 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEDEFAULT ));
144 : : rOutProperties.push_back(
145 : : Property( C2U( "BorderDashName" ),
146 : : PROP_DATAPOINT_BORDER_DASH_NAME,
147 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const ::rtl::OUString * >(0)),
148 : : beans::PropertyAttribute::BOUND
149 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEVOID ));
150 : : rOutProperties.push_back(
151 : : Property( C2U( "BorderTransparency" ),
152 : : PROP_DATAPOINT_BORDER_TRANSPARENCY,
153 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const sal_Int16 * >(0)),
154 : : beans::PropertyAttribute::BOUND
155 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEVOID ));
156 : :
157 : : // Line Properties
158 : : // ---------------
159 : : rOutProperties.push_back(
160 : : Property( C2U( "LineStyle" ),
161 : : LineProperties::PROP_LINE_STYLE,
162 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const drawing::LineStyle * >(0)),
163 : : beans::PropertyAttribute::BOUND
164 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEDEFAULT ));
165 : : rOutProperties.push_back(
166 : : Property( C2U( "LineWidth" ),
167 : : LineProperties::PROP_LINE_WIDTH,
168 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
169 : : beans::PropertyAttribute::BOUND
170 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEDEFAULT ));
171 : : rOutProperties.push_back(
172 : : Property( C2U( "LineDash" ),
173 : : LineProperties::PROP_LINE_DASH,
174 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const drawing::LineDash * >(0)),
175 : : beans::PropertyAttribute::BOUND
176 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEVOID ));
177 : : rOutProperties.push_back(
178 : : Property( C2U( "LineDashName" ),
179 : : LineProperties::PROP_LINE_DASH_NAME,
180 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const ::rtl::OUString * >(0)),
181 : : beans::PropertyAttribute::BOUND
182 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEVOID ));
183 : :
184 : : // FillProperties
185 : : // bitmap properties
186 : : rOutProperties.push_back(
187 : : Property( C2U( "FillBitmapOffsetX" ),
188 : : FillProperties::PROP_FILL_BITMAP_OFFSETX,
189 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const sal_Int16 * >(0)),
190 : : beans::PropertyAttribute::BOUND
191 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEDEFAULT ));
192 : :
193 : : rOutProperties.push_back(
194 : : Property( C2U( "FillBitmapOffsetY" ),
195 : : FillProperties::PROP_FILL_BITMAP_OFFSETY,
196 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const sal_Int16 * >(0)),
197 : : beans::PropertyAttribute::BOUND
198 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEDEFAULT ));
199 : :
200 : : rOutProperties.push_back(
201 : : Property( C2U( "FillBitmapPositionOffsetX" ),
202 : : FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETX,
203 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const sal_Int16 * >(0)),
204 : : beans::PropertyAttribute::BOUND
205 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEDEFAULT ));
206 : :
207 : : rOutProperties.push_back(
208 : : Property( C2U( "FillBitmapPositionOffsetY" ),
209 : : FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETY,
210 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const sal_Int16 * >(0)),
211 : : beans::PropertyAttribute::BOUND
212 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEDEFAULT ));
213 : :
214 : :
215 : : rOutProperties.push_back(
216 : : Property( C2U( "FillBitmapRectanglePoint" ),
217 : : FillProperties::PROP_FILL_BITMAP_RECTANGLEPOINT,
218 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const drawing::RectanglePoint * >(0)),
219 : : beans::PropertyAttribute::BOUND
220 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEDEFAULT ));
221 : :
222 : : rOutProperties.push_back(
223 : : Property( C2U( "FillBitmapLogicalSize" ),
224 : : FillProperties::PROP_FILL_BITMAP_LOGICALSIZE,
225 [ + - ]: 16 : ::getBooleanCppuType(),
226 : : beans::PropertyAttribute::BOUND
227 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEDEFAULT ));
228 : :
229 : : rOutProperties.push_back(
230 : : Property( C2U( "FillBitmapSizeX" ),
231 : : FillProperties::PROP_FILL_BITMAP_SIZEX,
232 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
233 : : beans::PropertyAttribute::BOUND
234 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEDEFAULT ));
235 : :
236 : : rOutProperties.push_back(
237 : : Property( C2U( "FillBitmapSizeY" ),
238 : : FillProperties::PROP_FILL_BITMAP_SIZEY,
239 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
240 : : beans::PropertyAttribute::BOUND
241 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEDEFAULT ));
242 : :
243 : : rOutProperties.push_back(
244 : : Property( C2U( "FillBitmapMode" ),
245 : : FillProperties::PROP_FILL_BITMAP_MODE,
246 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const drawing::BitmapMode * >(0)),
247 : : beans::PropertyAttribute::BOUND
248 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEDEFAULT ));
249 : :
250 : : // others
251 : : rOutProperties.push_back(
252 : : Property( C2U( "Symbol" ),
253 : : PROP_DATAPOINT_SYMBOL_PROP,
254 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const chart2::Symbol * >(0)),
255 : : beans::PropertyAttribute::BOUND
256 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEDEFAULT ));
257 : : rOutProperties.push_back(
258 : : Property( C2U( "Offset" ),
259 : : PROP_DATAPOINT_OFFSET,
260 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const double * >(0)),
261 : : beans::PropertyAttribute::BOUND
262 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEDEFAULT ));
263 : : rOutProperties.push_back(
264 : : Property( C2U( "Geometry3D" ),
265 : : PROP_DATAPOINT_GEOMETRY3D,
266 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
267 : : beans::PropertyAttribute::BOUND
268 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEDEFAULT ));
269 : :
270 : : rOutProperties.push_back(
271 : : Property( C2U( "Label" ),
272 : : PROP_DATAPOINT_LABEL,
273 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const chart2::DataPointLabel * >(0)),
274 : : beans::PropertyAttribute::BOUND
275 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEDEFAULT ));
276 : :
277 : : rOutProperties.push_back(
278 : : Property( C2U( "LabelSeparator" ),
279 : : PROP_DATAPOINT_LABEL_SEPARATOR,
280 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const ::rtl::OUString * >(0)),
281 : : beans::PropertyAttribute::BOUND
282 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEDEFAULT ));
283 : :
284 : : rOutProperties.push_back(
285 : : Property( C2U( "NumberFormat" ),
286 : : PROP_DATAPOINT_NUMBER_FORMAT,
287 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
288 : : beans::PropertyAttribute::BOUND
289 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEVOID ));
290 : :
291 : : //additional 'PercentageNumberFormat'
292 : : rOutProperties.push_back(
293 : : Property( C2U( "PercentageNumberFormat" ),
294 : : PROP_DATAPOINT_PERCENTAGE_NUMBER_FORMAT,
295 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
296 : : beans::PropertyAttribute::BOUND
297 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEVOID ));
298 : :
299 : : rOutProperties.push_back(
300 : : Property( C2U( "LabelPlacement" ),
301 : : PROP_DATAPOINT_LABEL_PLACEMENT,
302 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
303 : : beans::PropertyAttribute::BOUND
304 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEVOID ));
305 : :
306 : : rOutProperties.push_back(
307 : : Property( C2U( "ReferencePageSize" ),
308 : : PROP_DATAPOINT_REFERENCE_DIAGRAM_SIZE,
309 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const awt::Size * >(0)),
310 : : beans::PropertyAttribute::BOUND
311 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEVOID ));
312 : :
313 : : rOutProperties.push_back(
314 : : Property( C2U( "TextRotation" ),
315 : : PROP_DATAPOINT_TEXT_ROTATION,
316 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const double * >(0)),
317 : : beans::PropertyAttribute::BOUND
318 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEDEFAULT ));
319 : :
320 : : // statistics
321 : : rOutProperties.push_back(
322 : : Property( C2U( "ErrorBarX" ),
323 : : PROP_DATAPOINT_ERROR_BAR_X,
324 : : // XPropertySet supporting service ErrorBar
325 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const uno::Reference< beans::XPropertySet > * >(0)),
326 : : beans::PropertyAttribute::BOUND
327 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEVOID ));
328 : : rOutProperties.push_back(
329 : : Property( C2U( "ErrorBarY" ),
330 : : PROP_DATAPOINT_ERROR_BAR_Y,
331 : : // XPropertySet supporting service ErrorBar
332 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const uno::Reference< beans::XPropertySet > * >(0)),
333 : : beans::PropertyAttribute::BOUND
334 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEVOID ));
335 : : rOutProperties.push_back(
336 : : Property( C2U( "ShowErrorBox" ),
337 : : PROP_DATAPOINT_SHOW_ERROR_BOX,
338 [ + - ]: 16 : ::getBooleanCppuType(),
339 : : beans::PropertyAttribute::BOUND
340 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEVOID ));
341 : : rOutProperties.push_back(
342 : : Property( C2U( "PercentDiagonal" ),
343 : : PROP_DATAPOINT_PERCENT_DIAGONAL,
344 [ + - ]: 16 : ::getCppuType( reinterpret_cast< const sal_Int16 * >(0)),
345 : : beans::PropertyAttribute::BOUND
346 [ + - ][ + - ]: 16 : | beans::PropertyAttribute::MAYBEVOID ));
347 : 16 : }
348 : :
349 : 14 : void DataPointProperties::AddDefaultsToMap(
350 : : ::chart::tPropertyValueMap & rOutMap )
351 : : {
352 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, PROP_DATAPOINT_COLOR, 0x0099ccff ); // blue 8
353 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, PROP_DATAPOINT_TRANSPARENCY, 0 );
354 : :
355 : : //fill
356 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_FILL_STYLE, drawing::FillStyle_SOLID );
357 [ + - ]: 14 : PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_TRANSPARENCY_GRADIENT_NAME );
358 [ + - ]: 14 : PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_GRADIENT_NAME );
359 [ + - ]: 14 : PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_HATCH_NAME );
360 [ + - ]: 14 : PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_FILL_BITMAP_NAME );
361 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_FILL_BACKGROUND, false );
362 : :
363 : : //border
364 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, PROP_DATAPOINT_BORDER_COLOR, 0x000000 ); // black
365 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_BORDER_STYLE, drawing::LineStyle_SOLID ); // drawing::LineStyle_NONE
366 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, PROP_DATAPOINT_BORDER_WIDTH, 0 );
367 [ + - ]: 14 : PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_BORDER_DASH_NAME );
368 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, PROP_DATAPOINT_BORDER_TRANSPARENCY, 0 );
369 : :
370 : : //line
371 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault( rOutMap, LineProperties::PROP_LINE_STYLE, drawing::LineStyle_SOLID );
372 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, LineProperties::PROP_LINE_WIDTH, 0 );
373 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault( rOutMap, LineProperties::PROP_LINE_DASH, drawing::LineDash());
374 [ + - ]: 14 : PropertyHelper::setEmptyPropertyValueDefault( rOutMap, LineProperties::PROP_LINE_DASH_NAME );
375 : :
376 : : //fill bitmap
377 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, FillProperties::PROP_FILL_BITMAP_OFFSETX, 0 );
378 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, FillProperties::PROP_FILL_BITMAP_OFFSETY, 0 );
379 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETX, 0 );
380 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETY, 0 );
381 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault( rOutMap, FillProperties::PROP_FILL_BITMAP_RECTANGLEPOINT, drawing::RectanglePoint_MIDDLE_MIDDLE );
382 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault( rOutMap, FillProperties::PROP_FILL_BITMAP_LOGICALSIZE, true );
383 : :
384 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, FillProperties::PROP_FILL_BITMAP_SIZEX, 0 );
385 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, FillProperties::PROP_FILL_BITMAP_SIZEY, 0 );
386 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault( rOutMap, FillProperties::PROP_FILL_BITMAP_MODE, drawing::BitmapMode_REPEAT );
387 : :
388 : : //others
389 [ + - ]: 14 : chart2::Symbol aSymbProp;
390 : 14 : aSymbProp.Style = chart2::SymbolStyle_NONE;
391 : 14 : aSymbProp.StandardSymbol = 0;
392 : 14 : aSymbProp.Size = awt::Size( 250, 250 ); // ca. 7pt x 7pt (7pt=246.94)
393 : 14 : aSymbProp.BorderColor = 0x000000; // Black
394 : 14 : aSymbProp.FillColor = 0xee4000; // OrangeRed2
395 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_SYMBOL_PROP, aSymbProp );
396 : :
397 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault< double >( rOutMap, PROP_DATAPOINT_OFFSET, 0.0 );
398 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_GEOMETRY3D, chart2::DataPointGeometry3D::CUBOID );
399 : :
400 : : PropertyHelper::setPropertyValueDefault(
401 : : rOutMap, PROP_DATAPOINT_LABEL,
402 : : chart2::DataPointLabel(
403 : : sal_False, // ShowNumber
404 : : sal_False, // ShowNumberInPercent
405 : : sal_False, // ShowCategoryName
406 : : sal_False // ShowLegendSymbol
407 [ + - ]: 14 : ));
408 : :
409 [ + - ][ + - ]: 14 : PropertyHelper::setPropertyValueDefault< rtl::OUString >( rOutMap, PROP_DATAPOINT_LABEL_SEPARATOR, C2U(" ") );
410 : :
411 : : //@todo maybe choose a different one here -> should be dynamically that of the attached axis
412 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_ERROR_BAR_X, uno::Reference< beans::XPropertySet >());
413 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_ERROR_BAR_Y, uno::Reference< beans::XPropertySet >());
414 [ + - ]: 14 : PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, PROP_DATAPOINT_PERCENT_DIAGONAL, 0 );
415 : :
416 [ + - ][ + - ]: 14 : PropertyHelper::setPropertyValueDefault< double >( rOutMap, PROP_DATAPOINT_TEXT_ROTATION, 0.0 );
417 : 14 : }
418 : :
419 : : } // namespace chart
420 : :
421 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|