1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef com_sun_star_chart2_DataPointProperties_idl
29 #define com_sun_star_chart2_DataPointProperties_idl
31 #include
<com
/sun
/star
/beans
/PropertySet.idl
>
32 #include
<com
/sun
/star
/awt
/Gradient.idl
>
33 #include
<com
/sun
/star
/style
/XStyle.idl
>
34 #include
<com
/sun
/star
/drawing
/Hatch.idl
>
35 #include
<com
/sun
/star
/drawing
/LineDash.idl
>
36 #include
<com
/sun
/star
/drawing
/BitmapMode.idl
>
37 #include
<com
/sun
/star
/drawing
/FillStyle.idl
>
38 #include
<com
/sun
/star
/drawing
/LineStyle.idl
>
39 #include
<com
/sun
/star
/drawing
/RectanglePoint.idl
>
40 #include
<com
/sun
/star
/chart2
/DataPointLabel.idl
>
41 #include
<com
/sun
/star
/chart2
/Symbol.idl
>
52 service DataPointProperties
54 /** to give access to the properties required by this service.
56 service
::com
::sun
::star
::beans
::PropertySet
;
58 // ----------------------------------------------------------------------
60 /** points to a style that also supports this service (but not
61 this property) that is used as default, if the PropertyState
62 of a property is <code>DEFAULT_VALUE</code>.
64 // [optional, property] ::com::sun::star::style::XStyle Style;
70 /** This is the main color of a data point.
72 <p>For charts with filled areas, like bar-charts, this should
73 map to the <code>FillColor</code> of the objects. For
74 line-charts this should map to the <code>LineColor</code>
77 @see com::sun::star::drawing::FillProperties
78 @see com::sun::star::drawing::LineProperties
80 [property
] long Color
;
82 /** This is the main transparency value of a data point.
84 <p>For charts with filled areas, like bar-charts, this should
85 map to the <code>FillTransparence</code> of the objects. For
86 line-charts this should map to the
87 <code>LineTransparence</code> property.</p>
89 @see com::sun::star::drawing::FillProperties
90 @see com::sun::star::drawing::LineProperties
92 [property
] short Transparency
;
98 /** This enumeration selects the style with which the area will be filled.
100 [property
] ::com
::sun
::star
::drawing
::FillStyle FillStyle
;
102 /** This describes the transparency of the fill area as a gradient.
104 [optional, property
] ::com
::sun
::star
::awt
::Gradient TransparencyGradient
;
105 [optional, property
] ::com
::sun
::star
::awt
::Gradient Gradient
;
106 [optional, property
] ::com
::sun
::star
::drawing
::Hatch Hatch
;
108 [property
] string TransparencyGradientName
;
109 [property
] string GradientName
;
110 [property
] string HatchName
;
111 [property
] string FillBitmapName
;
113 /** If <TRUE/>, fills the background of a hatch with the color
114 given in the <member>Color</member> property.
116 [property
] boolean FillBackground
;
118 /** Is used for borders around filled objects. See
119 <code>LineColor</code>.
121 @see com::sun::star::drawing::LineProperties
123 [property
] long BorderColor
;
124 /** Is used for borders around filled objects. See
125 <code>LineStyle</code>.
127 @see com::sun::star::drawing::LineProperties
129 [property
] ::com
::sun
::star
::drawing
::LineStyle BorderStyle
;
130 /** Is used for borders around filled objects. See
131 <code>LineWidth</code>.
133 @see com::sun::star::drawing::LineProperties
135 [property
] long BorderWidth
;
136 /** Is used for borders around filled objects. See
137 <code>LineDash</code>.
139 @see com::sun::star::drawing::LineProperties
141 [property
] ::com
::sun
::star
::drawing
::LineDash BorderDash
;
143 /** The name of a dash that can be found in the
144 <type scope="com::sun::star::container">XNameContainer</type>
145 "com.sun.star.drawing.LineDashTable", that can be created via
147 <type scope="com::sun::star::uno">XMultiServiceFactory</type>
148 of the <type>ChartDocument</type>.
150 [optional, property
] string BorderDashName
;
152 /** Is used for borders around filled objects. See
153 <code>LineTransparence</code>.
155 @see com::sun::star::drawing::LineProperties
157 [optional, property
] short BorderTransparency
;
162 [property
] ::com
::sun
::star
::drawing
::LineStyle LineStyle
;
163 /** Is only used for line-chart types.
165 @see com::sun::star::drawing::LineProperties
167 [property
] long LineWidth
;
168 /** Is only used for line-chart types.
170 @see com::sun::star::drawing::LineProperties
172 [property
] ::com
::sun
::star
::drawing
::LineDash LineDash
;
174 /** The name of a dash that can be found in the
175 <type scope="com::sun::star::container">XNameContainer</type>
176 "com.sun.star.drawing.LineDashTable", that can be created via
178 <type scope="com::sun::star::uno">XMultiServiceFactory</type>
179 of the <type>ChartDocument</type>.
181 [optional, property
] string LineDashName
;
183 //-------------------------------------------------------------------------
185 // bitmap properties /copied from drawing::FillProperties
187 /** This is the horizontal offset where the tile starts.
189 <p>It is given in percent in relation to the width of the bitmap.
191 [property
] short FillBitmapOffsetX
;
193 /** This is the vertical offset where the tile starts.
195 It is given in percent in relation to the width of the bitmap.
197 [property
] short FillBitmapOffsetY
;
199 /** Every second line of tiles is moved the given percent of the
202 [property
] short FillBitmapPositionOffsetX
;
204 /** Every second row of tiles is moved the given percent of the
207 [property
] short FillBitmapPositionOffsetY
;
209 /** The RectanglePoint specifies the position inside of the bitmap to
210 use as the top left position for rendering.
212 [property
] com
::sun
::star
::drawing
::RectanglePoint FillBitmapRectanglePoint
;
214 /** specifies if the size is given in percentage or
215 as an absolute value.
217 <p>If this is <TRUE/>, the properties FillBitmapSizeX
218 and FillBitmapSizeY contain the size of the tile in percent
219 of the size of the original bitmap. If this
220 is <FALSE/>, the size of the tile is specified
223 [property
] boolean FillBitmapLogicalSize
;
225 /** This is the width of the tile for filling.
227 <p>Depending on the property FillBitmapLogicalSize, this is
228 either relative or absolute.
230 [property
] long FillBitmapSizeX
;
232 /** This is the height of the tile for filling.
234 <p>Depending on the property FillBitmapLogicalSize, this
235 is either relative or absolute.
237 [property
] long FillBitmapSizeY
;
239 /** this enum selects how a area is filled with a single bitmap.
241 [property
] com
::sun
::star
::drawing
::BitmapMode FillBitmapMode
;
243 //-------------------------------------------------------------------------
247 [optional, property
] Symbol Symbol
;
249 /** describes a value by which a data point is moved from its
250 default position in percent of the maximum allowed distance.
252 <p>This is especially useful for the explosion of pie-chart
255 [optional, property
] double Offset
;
257 /** describes the geometry of a 3 dimensional data point.
258 Number is one of constant group <type>DataPointGeometry3D</type>.
259 <p>This is especially used for 3D bar-charts.</p>
260 <p>CUBOID==0 CYLINDER==1 CONE==2 PYRAMID==3 CUBOID==else</p>
262 [optional, property
] long Geometry3D
;
264 [property
] DataPointLabel Label
;
266 /** specifies a string that is used to separate the parts of a data label (caption)
268 [optional, property
] string LabelSeparator
;
270 /** specifies a number format for the display of the value in the data label
272 [optional, property
] long NumberFormat
;
274 /** specifies a number format for the display of the percentage value in the data label
276 [optional, property
] long PercentageNumberFormat
;
278 /** specifies a relative position for the data label
280 @see ::com::sun::star::chart::DataLabelPlacement
282 [optional, property
] long LabelPlacement
;
284 /** The size of the page at the moment when the font size for
287 <p>This size is used to resize text in the view when the size
288 of the page has changed since the font sizes were set
289 (automatic text scaling).</p>
291 [maybevoid
, property
] com
::sun
::star
::awt
::Size ReferencePageSize
;
295 /** If void, no error bars are shown for the data point in
298 <p>The <type scope="com::sun::star::beans">XPropertySet</type>
299 must support the service <type>ErrorBar</type>.</p>
301 [optional, maybevoid
, property
] com
::sun
::star
::beans
::XPropertySet ErrorBarX
;
303 /** If void, no error bars are shown for the data point in
306 <p>The <type scope="com::sun::star::beans">XPropertySet</type>
307 must support the service <type>ErrorBar</type>.</p>
309 [optional, maybevoid
, property
] com
::sun
::star
::beans
::XPropertySet ErrorBarY
;
311 /** In case <member>ErrorBarX</member> and
312 <member>ErrorBarY</member> both are set, and error bars are
313 shown, a box spanning all error-indicators is rendered.
315 [optional, maybevoid
, property
] boolean ShowErrorBox
;
318 /** A value between 0 and 100 indicating the percentage how round an edge should be.
320 [optional, maybevoid
, property
] short PercentDiagonal
;
331 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */