merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / chart2 / Axis.idl
blob009abd05a5006ee2e0dddfed5005e089b113655a
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_chart_Axis_idl
28 #define com_sun_star_chart_Axis_idl
30 #include <com/sun/star/beans/PropertySet.idl>
32 #include <com/sun/star/chart/ChartAxisArrangeOrderType.idl>
33 #include <com/sun/star/chart/ChartAxisPosition.idl>
34 #include <com/sun/star/chart/ChartAxisLabelPosition.idl>
35 #include <com/sun/star/chart/ChartAxisMarkPosition.idl>
37 #include <com/sun/star/chart2/XAxis.idl>
38 #include <com/sun/star/chart2/XTitled.idl>
40 #include <com/sun/star/drawing/LineProperties.idl>
41 #include <com/sun/star/style/CharacterProperties.idl>
42 #include <com/sun/star/style/CharacterPropertiesAsian.idl>
43 #include <com/sun/star/style/CharacterPropertiesComplex.idl>
45 module com
47 module sun
49 module star
51 module chart2
54 service Axis
56 service ::com::sun::star::drawing::LineProperties;
58 service ::com::sun::star::style::CharacterProperties;
59 service ::com::sun::star::beans::PropertySet;
60 [optional] service ::com::sun::star::style::CharacterPropertiesAsian;
61 [optional] service ::com::sun::star::style::CharacterPropertiesComplex;
63 interface ::com::sun::star::chart2::XAxis;
64 [optional] interface ::com::sun::star::chart2::XTitled;
66 /** Determines, whether the axis should be rendered by the view.
68 [property] boolean Show;
70 /** Determines where the axis crosses the other axis.
72 [optional, property] com::sun::star::chart::ChartAxisPosition CrossoverPosition;
74 /** Determines the scale value on the other axis when CrossoverPosition is set to VALUE.
76 [optional, property] double CrossoverValue;
78 /** Determines whether to display text at the axis or not.
80 [property] boolean DisplayLabels;
82 /** Determines where the axis labels are placed.
84 [optional, property] com::sun::star::chart::ChartAxisLabelPosition LabelPosition;
86 /** Determines how to stagger the labels at the axis (side by side, even, odd, auto )
88 [property] ::com::sun::star::chart::ChartAxisArrangeOrderType ArrangeOrder;
90 /** Determines wether the labels are allowed to break into more than one line
92 [property] boolean TextBreak;
94 /** Determines wether the labels are allowed to overlap
96 [property] boolean TextOverlap;
98 /** Determines wether the characters in a single labels should be stacked one upon each other
100 [property] boolean StackCharacters;
102 /** Determines the rotation of the text labels in degrees
104 [property] double TextRotation;
106 /** A NumberFormat key.
108 <p>If this property is not set, it is treated as auto. This
109 means linked to the source format.</p>
111 <p>To determine a source format, the axis can query the
112 <type>XDataSequence</type>s used by the data series attached
113 to it (see <member>XDataSequence::getNumberFormatKeyByIndex</member>).
114 </p>
116 [property, maybevoid] long NumberFormat;
118 [property] ::com::sun::star::awt::Size ReferencePageSize;
120 /** determines what kind of tickmarks should be shown for major ticks.
122 @see <type>TickmarkStyle</type>.
124 [property] long MajorTickmarks;
126 /** determines what kind of tickmarks should be shown for minor ticks.
128 @see <type>TickmarkStyle</type>.
130 [property] long MinorTickmarks;
132 /** Determines where the interval marks are placed.
134 [optional, property] com::sun::star::chart::ChartAxisMarkPosition MarkPosition;
137 } ; // chart2
138 } ; // com
139 } ; // sun
140 } ; // star
142 #endif