1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef com_sun_star_chart2_DataPointProperties_idl
28 #define com_sun_star_chart2_DataPointProperties_idl
30 #include
<com
/sun
/star
/beans
/PropertySet.idl
>
32 #include
<com
/sun
/star
/awt
/Gradient.idl
>
33 #include
<com
/sun
/star
/drawing
/Hatch.idl
>
34 #include
<com
/sun
/star
/drawing
/LineDash.idl
>
35 #include
<com
/sun
/star
/style
/XStyle.idl
>
37 #include
<com
/sun
/star
/chart2
/BitmapProperty.idl
>
38 #include
<com
/sun
/star
/chart2
/TransparencyStyle.idl
>
39 #include
<com
/sun
/star
/chart2
/DataCaptionStyle.idl
>
40 #include
<com
/sun
/star
/chart2
/Symbol.idl
>
51 service DataPointProperties
53 /** to give acces to the properties required by this service.
55 service
::com
::sun
::star
::beans
::PropertySet
;
57 // ----------------------------------------------------------------------
59 /** points to a style that also supports this service (but not
60 this property) that is used as default, if the PropertyState
61 of a property is <code>DEFAULT_VALUE</code>.
63 // [optional, property] ::com::sun::star::style::XStyle Style;
69 /** This is the main color of a data point.
71 <p>For charts with filled areas, like bar-charts, this should
72 map to the <code>FillColor</code> of the objects. For
73 line-charts this should map to the <code>LineColor</code>
76 @see com::sun::star::drawing::FillProperties
77 @see com::sun::star::drawing::LineProperties
79 [property
] long Color
;
81 /** This is the main transparency value of a data point.
83 <p>For charts with filled areas, like bar-charts, this should
84 map to the <code>FillTransparence</code> of the objects. For
85 line-charts this should map to the
86 <code>LineTransparence</code> property.</p>
88 @see com::sun::star::drawing::FillProperties
89 @see com::sun::star::drawing::LineProperties
91 [property
] short Transparency
;
97 /** This enumeration selects the style with which the area will be filled.
99 [property
] ::com
::sun
::star
::drawing
::FillStyle FillStyle
;
101 /** This describes the transparency of the fill area as a gradient.
103 [optional, property
] ::com
::sun
::star
::awt
::Gradient TransparencyGradient
;
104 [optional, property
] ::com
::sun
::star
::awt
::Gradient Gradient
;
105 [optional, property
] ::com
::sun
::star
::drawing
::Hatch Hatch
;
107 [property
] string TransparencyGradientName
;
108 [property
] string GradientName
;
109 [property
] string HatchName
;
110 [property
] string FillBitmapName
;
112 /** If <TRUE/>, fills the background of a hatch with the color
113 given in the <member>Color</member> property.
115 [property
] boolean FillBackground
;
117 /** Is used for borders around filled objects. See
118 <code>LineColor</code>.
120 @see com::sun::star::drawing::LineProperties
122 [property
] long BorderColor
;
123 /** Is used for borders around filled objects. See
124 <code>LineStyle</code>.
126 @see com::sun::star::drawing::LineProperties
128 [property
] ::com
::sun
::star
::drawing
::LineStyle BorderStyle
;
129 /** Is used for borders around filled objects. See
130 <code>LineWidth</code>.
132 @see com::sun::star::drawing::LineProperties
134 [property
] long BorderWidth
;
135 /** Is used for borders around filled objects. See
136 <code>LineDash</code>.
138 @see com::sun::star::drawing::LineProperties
140 [property
] ::com
::sun
::star
::drawing
::LineDash BorderDash
;
142 /** The name of a dash that can be found in the
143 <type scope="com::sun::star::container">XNameContainer</type>
144 "com.sun.star.drawing.LineDashTable", that can be created via
146 <type scope="com::sun::star::uno">XMultiServiceFactory</type>
147 of the <type>ChartDocument</type>.
149 [optional, property
] string BorderDashName
;
151 /** Is used for borders around filled objects. See
152 <code>LineTransparence</code>.
154 @see com::sun::star::drawing::LineProperties
156 [optional, property
] short BorderTransparency
;
161 [property
] ::com
::sun
::star
::drawing
::LineStyle LineStyle
;
162 /** Is only used for line-chart types.
164 @see com::sun::star::drawing::LineProperties
166 [property
] long LineWidth
;
167 /** Is only used for line-chart types.
169 @see com::sun::star::drawing::LineProperties
171 [property
] ::com
::sun
::star
::drawing
::LineDash LineDash
;
173 /** The name of a dash that can be found in the
174 <type scope="com::sun::star::container">XNameContainer</type>
175 "com.sun.star.drawing.LineDashTable", that can be created via
177 <type scope="com::sun::star::uno">XMultiServiceFactory</type>
178 of the <type>ChartDocument</type>.
180 [optional, property
] string LineDashName
;
182 //-------------------------------------------------------------------------
184 // bitmap properties /copied from drawing::FillProperties
186 /** This is the horizontal offset where the tile starts.
188 <p>It is given in percent in relation to the width of the bitmap.
190 [property
] short FillBitmapOffsetX
;
192 /** This is the vertical offset where the tile starts.
194 It is given in percent in relation to the width of the bitmap.
196 [property
] short FillBitmapOffsetY
;
198 /** Every second line of tiles is moved the given percent of the
201 [property
] short FillBitmapPositionOffsetX
;
203 /** Every second row of tiles is moved the given percent of the
206 [property
] short FillBitmapPositionOffsetY
;
208 /** The RectanglePoint specifies the position inside of the bitmap to
209 use as the top left position for rendering.
211 [property
] com
::sun
::star
::drawing
::RectanglePoint FillBitmapRectanglePoint
;
213 /** specifies if the size is given in percentage or
214 as an absolute value.
216 <p>If this is <TRUE/>, the properties FillBitmapSizeX
217 and FillBitmapSizeY contain the size of the tile in percent
218 of the size of the original bitmap. If this
219 is <FALSE/>, the size of the tile is specified
222 [property
] boolean FillBitmapLogicalSize
;
224 /** This is the width of the tile for filling.
226 <p>Depending on the property FillBitmapLogicalSize, this is
227 either relative or absolute.
229 [property
] long FillBitmapSizeX
;
231 /** This is the height of the tile for filling.
233 <p>Depending on the property FillBitmapLogicalSize, this
234 is either relative or absolute.
236 [property
] long FillBitmapSizeY
;
238 /** this enum selects how a area is filled with a single bitmap.
240 [property
] com
::sun
::star
::drawing
::BitmapMode FillBitmapMode
;
242 //-------------------------------------------------------------------------
246 [optional, property
] Symbol Symbol
;
248 /** describes a value by which a data point is moved from its
249 default position in percent of the maximum allowed distance.
251 <p>This is especially useful for the explosion of pie-chart
254 [optional, property
] double Offset
;
256 /** describes the geometry of a 3 dimensional datapoint.
257 Number is one of constant group <type>DataPointGeometry3D</type>.
258 <p>This is especially used for 3D bar-charts.</p>
259 <p>CUBOID==0 CYLINDER==1 CONE==2 PYRAMID==3 CUBOID==else</p>
261 [optional, property
] long Geometry3D
;
263 [property
] DataPointLabel Label
;
265 /** specifies a string that is used to separate the parts of a data label (caption)
267 [optional, property
] string LabelSeparator
;
269 /** specifies a number format for the display of the value in the data label
271 [optional, property
] long NumberFormat
;
273 /** specifies a number format for the display of the percentage value in the data label
275 [optional, property
] long PercentageNumberFormat
;
277 /** specifies a relative position for the data label
279 @see ::com::sun::star::chart::DataLabelPlacement
281 [optional, property
] long LabelPlacement
;
283 /** The size of the page at the moment when the font size for
286 <p>This size is used to resize text in the view when the size
287 of the page has changed since the font sizes were set
288 (automatic text scaling).</p>
290 [maybevoid
, property
] com
::sun
::star
::awt
::Size ReferencePageSize
;
294 /** If void, no error bars are shown for the data point in
297 <p>The <type scope="com::sun::star::beans">XPropertySet</type>
298 must support the service <type>ErrorBar</type>.</p>
300 [optional, maybevoid
, property
] com
::sun
::star
::beans
::XPropertySet ErrorBarX
;
302 /** If void, no error bars are shown for the data point in
305 <p>The <type scope="com::sun::star::beans">XPropertySet</type>
306 must support the service <type>ErrorBar</type>.</p>
308 [optional, maybevoid
, property
] com
::sun
::star
::beans
::XPropertySet ErrorBarY
;
310 /** In case <member>ErrorBarX</member> and
311 <member>ErrorBarY</member> both are set, and error bars are
312 shown, a box spanning all error-indicators is rendered.
314 [optional, maybevoid
, property
] boolean ShowErrorBox
;
317 /** A value between 0 and 100 indicating the percentage how round an edge should be.
319 [optional, maybevoid
, property
] short PercentDiagonal
;