1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: DataPointProperties.idl,v $
10 * $Revision: 1.6.92.1 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef com_sun_star_chart2_DataPointProperties_idl
31 #define com_sun_star_chart2_DataPointProperties_idl
33 #include
<com
/sun
/star
/beans
/PropertySet.idl
>
35 #include
<com
/sun
/star
/awt
/Gradient.idl
>
36 #include
<com
/sun
/star
/drawing
/Hatch.idl
>
37 #include
<com
/sun
/star
/drawing
/LineDash.idl
>
38 #include
<com
/sun
/star
/style
/XStyle.idl
>
40 #include
<com
/sun
/star
/chart2
/BitmapProperty.idl
>
41 #include
<com
/sun
/star
/chart2
/TransparencyStyle.idl
>
42 #include
<com
/sun
/star
/chart2
/DataCaptionStyle.idl
>
43 #include
<com
/sun
/star
/chart2
/Symbol.idl
>
54 service DataPointProperties
56 /** to give acces to the properties required by this service.
58 service
::com
::sun
::star
::beans
::PropertySet
;
60 // ----------------------------------------------------------------------
62 /** points to a style that also supports this service (but not
63 this property) that is used as default, if the PropertyState
64 of a property is <code>DEFAULT_VALUE</code>.
66 // [optional, property] ::com::sun::star::style::XStyle Style;
72 /** This is the main color of a data point.
74 <p>For charts with filled areas, like bar-charts, this should
75 map to the <code>FillColor</code> of the objects. For
76 line-charts this should map to the <code>LineColor</code>
79 @see com::sun::star::drawing::FillProperties
80 @see com::sun::star::drawing::LineProperties
82 [property
] long Color
;
84 /** This is the main transparency value of a data point.
86 <p>For charts with filled areas, like bar-charts, this should
87 map to the <code>FillTransparence</code> of the objects. For
88 line-charts this should map to the
89 <code>LineTransparence</code> property.</p>
91 @see com::sun::star::drawing::FillProperties
92 @see com::sun::star::drawing::LineProperties
94 [property
] short Transparency
;
100 /** This enumeration selects the style with which the area will be filled.
102 [property
] ::com
::sun
::star
::drawing
::FillStyle FillStyle
;
104 /** This describes the transparency of the fill area as a gradient.
106 [optional, property
] ::com
::sun
::star
::awt
::Gradient TransparencyGradient
;
107 [optional, property
] ::com
::sun
::star
::awt
::Gradient Gradient
;
108 [optional, property
] ::com
::sun
::star
::drawing
::Hatch Hatch
;
110 [property
] string TransparencyGradientName
;
111 [property
] string GradientName
;
112 [property
] string HatchName
;
113 [property
] string FillBitmapName
;
115 /** If <TRUE/>, fills the background of a hatch with the color
116 given in the <member>Color</member> property.
118 [property
] boolean FillBackground
;
120 /** Is used for borders around filled objects. See
121 <code>LineColor</code>.
123 @see com::sun::star::drawing::LineProperties
125 [property
] long BorderColor
;
126 /** Is used for borders around filled objects. See
127 <code>LineStyle</code>.
129 @see com::sun::star::drawing::LineProperties
131 [property
] ::com
::sun
::star
::drawing
::LineStyle BorderStyle
;
132 /** Is used for borders around filled objects. See
133 <code>LineWidth</code>.
135 @see com::sun::star::drawing::LineProperties
137 [property
] long BorderWidth
;
138 /** Is used for borders around filled objects. See
139 <code>LineDash</code>.
141 @see com::sun::star::drawing::LineProperties
143 [property
] ::com
::sun
::star
::drawing
::LineDash BorderDash
;
145 /** The name of a dash that can be found in the
146 <type scope="com::sun::star::container">XNameContainer</type>
147 "com.sun.star.drawing.LineDashTable", that can be created via
149 <type scope="com::sun::star::uno">XMultiServiceFactory</type>
150 of the <type>ChartDocument</type>.
152 [optional, property
] string BorderDashName
;
154 /** Is used for borders around filled objects. See
155 <code>LineTransparence</code>.
157 @see com::sun::star::drawing::LineProperties
159 [optional, property
] short BorderTransparency
;
164 [property
] ::com
::sun
::star
::drawing
::LineStyle LineStyle
;
165 /** Is only used for line-chart types.
167 @see com::sun::star::drawing::LineProperties
169 [property
] long LineWidth
;
170 /** Is only used for line-chart types.
172 @see com::sun::star::drawing::LineProperties
174 [property
] ::com
::sun
::star
::drawing
::LineDash LineDash
;
176 /** The name of a dash that can be found in the
177 <type scope="com::sun::star::container">XNameContainer</type>
178 "com.sun.star.drawing.LineDashTable", that can be created via
180 <type scope="com::sun::star::uno">XMultiServiceFactory</type>
181 of the <type>ChartDocument</type>.
183 [optional, property
] string LineDashName
;
185 //-------------------------------------------------------------------------
187 // bitmap properties /copied from drawing::FillProperties
189 /** This is the horizontal offset where the tile starts.
191 <p>It is given in percent in relation to the width of the bitmap.
193 [property
] short FillBitmapOffsetX
;
195 /** This is the vertical offset where the tile starts.
197 It is given in percent in relation to the width of the bitmap.
199 [property
] short FillBitmapOffsetY
;
201 /** Every second line of tiles is moved the given percent of the
204 [property
] short FillBitmapPositionOffsetX
;
206 /** Every second row of tiles is moved the given percent of the
209 [property
] short FillBitmapPositionOffsetY
;
211 /** The RectanglePoint specifies the position inside of the bitmap to
212 use as the top left position for rendering.
214 [property
] com
::sun
::star
::drawing
::RectanglePoint FillBitmapRectanglePoint
;
216 /** specifies if the size is given in percentage or
217 as an absolute value.
219 <p>If this is <TRUE/>, the properties FillBitmapSizeX
220 and FillBitmapSizeY contain the size of the tile in percent
221 of the size of the original bitmap. If this
222 is <FALSE/>, the size of the tile is specified
225 [property
] boolean FillBitmapLogicalSize
;
227 /** This is the width of the tile for filling.
229 <p>Depending on the property FillBitmapLogicalSize, this is
230 either relative or absolute.
232 [property
] long FillBitmapSizeX
;
234 /** This is the height of the tile for filling.
236 <p>Depending on the property FillBitmapLogicalSize, this
237 is either relative or absolute.
239 [property
] long FillBitmapSizeY
;
241 /** this enum selects how a area is filled with a single bitmap.
243 [property
] com
::sun
::star
::drawing
::BitmapMode FillBitmapMode
;
245 //-------------------------------------------------------------------------
249 [optional, property
] Symbol Symbol
;
251 /** describes a value by which a data point is moved from its
252 default position in percent of the maximum allowed distance.
254 <p>This is especially useful for the explosion of pie-chart
257 [optional, property
] double Offset
;
259 /** describes the geometry of a 3 dimensional datapoint.
260 Number is one of constant group <type>DataPointGeometry3D</type>.
261 <p>This is especially used for 3D bar-charts.</p>
262 <p>CUBOID==0 CYLINDER==1 CONE==2 PYRAMID==3 CUBOID==else</p>
264 [optional, property
] long Geometry3D
;
266 [property
] DataPointLabel Label
;
268 /** specifies a string that is used to separate the parts of a data label (caption)
270 [optional, property
] string LabelSeparator
;
272 /** specifies a number format for the display of the value in the data label
274 [optional, property
] long NumberFormat
;
276 /** specifies a number format for the display of the percentage value in the data label
278 [optional, property
] long PercentageNumberFormat
;
280 /** specifies a relative position for the data label
282 @see ::com::sun::star::chart::DataLabelPlacement
284 [optional, property
] long LabelPlacement
;
286 /** The size of the page at the moment when the font size for
289 <p>This size is used to resize text in the view when the size
290 of the page has changed since the font sizes were set
291 (automatic text scaling).</p>
293 [maybevoid
, property
] com
::sun
::star
::awt
::Size ReferencePageSize
;
297 /** If void, no error bars are shown for the data point in
300 <p>The <type scope="com::sun::star::beans">XPropertySet</type>
301 must support the service <type>ErrorBar</type>.</p>
303 [optional, maybevoid
, property
] com
::sun
::star
::beans
::XPropertySet ErrorBarX
;
305 /** If void, no error bars are shown for the data point in
308 <p>The <type scope="com::sun::star::beans">XPropertySet</type>
309 must support the service <type>ErrorBar</type>.</p>
311 [optional, maybevoid
, property
] com
::sun
::star
::beans
::XPropertySet ErrorBarY
;
313 /** In case <member>ErrorBarX</member> and
314 <member>ErrorBarY</member> both are set, and error bars are
315 shown, a box spanning all error-indicators is rendered.
317 [optional, maybevoid
, property
] boolean ShowErrorBox
;
320 /** A value between 0 and 100 indicating the percentage how round an edge should be.
322 [optional, maybevoid
, property
] short PercentDiagonal
;