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: ChartAxis.idl,v $
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_chart_ChartAxis_idl__
31 #define __com_sun_star_chart_ChartAxis_idl__
33 #ifndef __com_sun_star_drawing_LineProperties_idl__
34 #include
<com
/sun
/star
/drawing
/LineProperties.idl
>
37 #ifndef __com_sun_star_style_CharacterProperties_idl__
38 #include
<com
/sun
/star
/style
/CharacterProperties.idl
>
41 #ifndef __com_sun_star_beans_XPropertySet_idl__
42 #include
<com
/sun
/star
/beans
/XPropertySet.idl
>
45 #ifndef __com_sun_star_chart_ChartAxisArrangeOrderType_idl__
46 #include
<com
/sun
/star
/chart
/ChartAxisArrangeOrderType.idl
>
49 #ifndef __com_sun_star_chart_ChartAxisPosition_idl__
50 #include
<com
/sun
/star
/chart
/ChartAxisPosition.idl
>
53 #ifndef __com_sun_star_chart_ChartAxisLabelPosition_idl__
54 #include
<com
/sun
/star
/chart
/ChartAxisLabelPosition.idl
>
57 #ifndef __com_sun_star_chart_ChartAxisMarkPosition_idl__
58 #include
<com
/sun
/star
/chart
/ChartAxisMarkPosition.idl
>
61 #ifndef _com_sun_star_xml_UserDefinedAttributeSupplier_idl_
62 #include
<com
/sun
/star
/xml
/UserDefinedAttributeSupplier.idl
>
65 //=============================================================================
67 module com
{ module sun
{ module star
{ module chart
{
69 //=============================================================================
71 /** Specifies the axes in a diagram.
73 <p>Note: The text properties correlate to all axis description
74 elements, not to just a single text element.</p>
76 published service ChartAxis
80 /** set the properties for the entire axis line as well as for the
83 service com
::sun
::star
::drawing
::LineProperties
;
85 /** set the properties for all text labels of the axis
87 service com
::sun
::star
::style
::CharacterProperties
;
89 /** If a <type>ChartAxis</type> may be stored as XML element, this
90 service should be supported in order to preserve unparsed XML
95 [optional] service com
::sun
::star
::xml
::UserDefinedAttributeSupplier
;
97 interface com
::sun
::star
::beans
::XPropertySet
;
99 //-------------------------------------------------------------------------
100 /** Properties for scaling:
103 //-------------------------------------------------------------------------
105 /** Contains the maximum value for the axis scale.
107 [optional, property
] double Max
;
109 //-------------------------------------------------------------------------
111 /** Contains the minimum value for the axis scale.
113 [optional, property
] double Min
;
115 //-------------------------------------------------------------------------
117 /** Contains the distance between the main tick marks.
119 [optional, property
] double StepMain
;
121 //-------------------------------------------------------------------------
124 Contains the number of help intervals within a main interval. E.g. a StepHelpCount of 5 divides
125 the main interval into 5 pieces and thus producces 4 help tick marks.
127 [optional, property
] long StepHelpCount
;
129 //-------------------------------------------------------------------------
132 User property StepHelpCount instead
133 Contains the distance between the help tick marks.
135 [optional, property
] double StepHelp
;
137 //-------------------------------------------------------------------------
139 /** The maximium value of the axis scale is calculated by the chart if
140 this property is <TRUE/>.
142 [optional, property
] boolean AutoMax
;
144 //-------------------------------------------------------------------------
146 /** The minimum value of the axis scale is calculated by the chart if
147 this property is <TRUE/>.
149 [optional, property
] boolean AutoMin
;
151 //-------------------------------------------------------------------------
153 /** The distance between the main tick marks is calculated by the chart
154 if this property is <TRUE/>.
156 [optional, property
] boolean AutoStepMain
;
158 //-------------------------------------------------------------------------
160 /** The number of help intervals within a main interval is calculated by the
161 chart if this property is <TRUE/>.
163 [optional, property
] boolean AutoStepHelp
;
166 //-------------------------------------------------------------------------
168 /** Determines if the axis is scaled logarithmically or
171 [optional, property
] boolean Logarithmic
;
173 //-------------------------------------------------------------------------
175 /** Determines if the axis orientation is mathematical or reversed.
177 [optional, property
] boolean ReverseDirection
;
179 //-------------------------------------------------------------------------
181 /** Determines where the axis crosses the other axis.
183 [optional, property
] com
::sun
::star
::chart
::ChartAxisPosition CrossoverPosition
;
185 //-------------------------------------------------------------------------
187 /** Determines the scale value on the other axis when CrossoverPosition is set to VALUE.
189 [optional, property
] double CrossoverValue
;
191 //-------------------------------------------------------------------------
193 /** Indicates the reference value where bars or areas have their grounding.
194 This property has only an effect when the used odf fileformat does not allow for
195 further axis posiioning or the axis is a secondary y-axis.
197 [optional, property
] double Origin
;
199 //-------------------------------------------------------------------------
201 /** The origin is calculated by the chart if this property is <TRUE/>.
203 [optional, property
] boolean AutoOrigin
;
205 //-------------------------------------------------------------------------
206 /** Properties for interval marks:
209 //-------------------------------------------------------------------------
211 /** Determines the type of the marks.@see ChartAxisMarks
213 [property
] long Marks
;
215 //-------------------------------------------------------------------------
217 /** Determines the type of the help marks.@see ChartAxisMarks
219 [property
] long HelpMarks
;
220 //-------------------------------------------------------------------------
222 /** Determines where the interval marks are placed.
224 [optional, property
] com
::sun
::star
::chart
::ChartAxisMarkPosition MarkPosition
;
226 //-------------------------------------------------------------------------
227 /** Properties for axes labels:
230 //-------------------------------------------------------------------------
232 /** Determines whether to display text at the axis or not.
234 [property
] boolean DisplayLabels
;
236 //-------------------------------------------------------------------------
238 /** Contains the type id for the number formatter of the axis.
240 @see com::sun::star::util::XNumberFormatter
242 [property
] long NumberFormat
;
244 //-------------------------------------------------------------------------
246 /** determines whether to use the number format given by the
247 container application, e.g. a spreadsheet document, or from
248 the own property <member>NumberFormat</member>.
250 [optional, property
] boolean LinkNumberFormatToSource
;
252 //-------------------------------------------------------------------------
254 /** Determines where the axis labels are placed.
256 [optional, property
] com
::sun
::star
::chart
::ChartAxisLabelPosition LabelPosition
;
258 //-------------------------------------------------------------------------
260 /** Determines the rotation of the text elements
261 (axis description) in 100th degrees.
263 [property
] long TextRotation
;
265 //-------------------------------------------------------------------------
267 /** The axis description may be arranged in a special order for a
270 [property
] com
::sun
::star
::chart
::ChartAxisArrangeOrderType ArrangeOrder
;
272 //-------------------------------------------------------------------------
274 /** Determines if long text is broken into multiple lines.
276 [property
] boolean TextBreak
;
278 //-------------------------------------------------------------------------
280 /** Determines if certain labels are hidden, if they would otherwise overlap.
281 In this case, the value of this property must be set to <FALSE/>.
283 [property
] boolean TextCanOverlap
;
285 //-------------------------------------------------------------------------
286 /** Properties related to bar charts:
289 //-------------------------------------------------------------------------
291 /** Determines the overlap of the bars in a bar-type chart.
293 <p>The value is given in percent of the width of the bars. The
294 valid range is -100% to +100%. +100% means full overlap, -100%
295 indicates a distance of one bar between 2 neighboring bars.</p>
297 [property
] long Overlap
;
299 //-------------------------------------------------------------------------
301 /** Specifies the width of the gaps between each set of data points
304 <p>The value is given in percent of the width of a bar; the
305 valid range is 0 to 600%.</p>
307 [property
] long GapWidth
;
310 //=============================================================================