xref: /aoo42x/main/offapi/com/sun/star/chart2/Axis.idl (revision cdf0e10c)
1*cdf0e10cSrcweir/*************************************************************************
2*cdf0e10cSrcweir *
3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir *
5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir *
7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir *
9*cdf0e10cSrcweir * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir *
11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir *
15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir *
21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir *
26*cdf0e10cSrcweir ************************************************************************/
27*cdf0e10cSrcweir#ifndef com_sun_star_chart_Axis_idl
28*cdf0e10cSrcweir#define com_sun_star_chart_Axis_idl
29*cdf0e10cSrcweir
30*cdf0e10cSrcweir#include <com/sun/star/beans/PropertySet.idl>
31*cdf0e10cSrcweir
32*cdf0e10cSrcweir#include <com/sun/star/chart/ChartAxisArrangeOrderType.idl>
33*cdf0e10cSrcweir#include <com/sun/star/chart/ChartAxisPosition.idl>
34*cdf0e10cSrcweir#include <com/sun/star/chart/ChartAxisLabelPosition.idl>
35*cdf0e10cSrcweir#include <com/sun/star/chart/ChartAxisMarkPosition.idl>
36*cdf0e10cSrcweir
37*cdf0e10cSrcweir#include <com/sun/star/chart2/XAxis.idl>
38*cdf0e10cSrcweir#include <com/sun/star/chart2/XTitled.idl>
39*cdf0e10cSrcweir
40*cdf0e10cSrcweir#include <com/sun/star/drawing/LineProperties.idl>
41*cdf0e10cSrcweir#include <com/sun/star/style/CharacterProperties.idl>
42*cdf0e10cSrcweir#include <com/sun/star/style/CharacterPropertiesAsian.idl>
43*cdf0e10cSrcweir#include <com/sun/star/style/CharacterPropertiesComplex.idl>
44*cdf0e10cSrcweir
45*cdf0e10cSrcweirmodule com
46*cdf0e10cSrcweir{
47*cdf0e10cSrcweirmodule sun
48*cdf0e10cSrcweir{
49*cdf0e10cSrcweirmodule star
50*cdf0e10cSrcweir{
51*cdf0e10cSrcweirmodule chart2
52*cdf0e10cSrcweir{
53*cdf0e10cSrcweir
54*cdf0e10cSrcweirservice Axis
55*cdf0e10cSrcweir{
56*cdf0e10cSrcweir    service ::com::sun::star::drawing::LineProperties;
57*cdf0e10cSrcweir
58*cdf0e10cSrcweir    service ::com::sun::star::style::CharacterProperties;
59*cdf0e10cSrcweir    service ::com::sun::star::beans::PropertySet;
60*cdf0e10cSrcweir    [optional] service ::com::sun::star::style::CharacterPropertiesAsian;
61*cdf0e10cSrcweir    [optional] service ::com::sun::star::style::CharacterPropertiesComplex;
62*cdf0e10cSrcweir
63*cdf0e10cSrcweir    interface ::com::sun::star::chart2::XAxis;
64*cdf0e10cSrcweir    [optional] interface ::com::sun::star::chart2::XTitled;
65*cdf0e10cSrcweir
66*cdf0e10cSrcweir    /** Determines, whether the axis should be rendered by the view.
67*cdf0e10cSrcweir     */
68*cdf0e10cSrcweir    [property]      boolean   Show;
69*cdf0e10cSrcweir
70*cdf0e10cSrcweir    /** Determines where the axis crosses the other axis.
71*cdf0e10cSrcweir	 */
72*cdf0e10cSrcweir	[optional, property] com::sun::star::chart::ChartAxisPosition CrossoverPosition;
73*cdf0e10cSrcweir
74*cdf0e10cSrcweir    /** Determines the scale value on the other axis when CrossoverPosition is set to VALUE.
75*cdf0e10cSrcweir	 */
76*cdf0e10cSrcweir	[optional, property] double CrossoverValue;
77*cdf0e10cSrcweir
78*cdf0e10cSrcweir    /** Determines whether to display text at the axis or not.
79*cdf0e10cSrcweir	 */
80*cdf0e10cSrcweir    [property]      boolean   DisplayLabels;
81*cdf0e10cSrcweir
82*cdf0e10cSrcweir    /** Determines where the axis labels are placed.
83*cdf0e10cSrcweir	 */
84*cdf0e10cSrcweir	[optional, property] com::sun::star::chart::ChartAxisLabelPosition LabelPosition;
85*cdf0e10cSrcweir
86*cdf0e10cSrcweir    /** Determines how to stagger the labels at the axis (side by side, even, odd, auto )
87*cdf0e10cSrcweir    */
88*cdf0e10cSrcweir    [property]      ::com::sun::star::chart::ChartAxisArrangeOrderType ArrangeOrder;
89*cdf0e10cSrcweir
90*cdf0e10cSrcweir    /** Determines wether the labels are allowed to break into more than one line
91*cdf0e10cSrcweir    */
92*cdf0e10cSrcweir    [property]      boolean   TextBreak;
93*cdf0e10cSrcweir
94*cdf0e10cSrcweir    /** Determines wether the labels are allowed to overlap
95*cdf0e10cSrcweir    */
96*cdf0e10cSrcweir    [property]      boolean   TextOverlap;
97*cdf0e10cSrcweir
98*cdf0e10cSrcweir    /** Determines wether the characters in a single labels should be stacked one upon each other
99*cdf0e10cSrcweir    */
100*cdf0e10cSrcweir    [property]      boolean   StackCharacters;
101*cdf0e10cSrcweir
102*cdf0e10cSrcweir	/** Determines the rotation of the text labels in degrees
103*cdf0e10cSrcweir	 */
104*cdf0e10cSrcweir    [property]      double    TextRotation;
105*cdf0e10cSrcweir
106*cdf0e10cSrcweir    /** A NumberFormat key.
107*cdf0e10cSrcweir
108*cdf0e10cSrcweir        <p>If this property is not set, it is treated as auto.  This
109*cdf0e10cSrcweir        means linked to the source format.</p>
110*cdf0e10cSrcweir
111*cdf0e10cSrcweir        <p>To determine a source format, the axis can query the
112*cdf0e10cSrcweir        <type>XDataSequence</type>s used by the data series attached
113*cdf0e10cSrcweir        to it (see <member>XDataSequence::getNumberFormatKeyByIndex</member>).
114*cdf0e10cSrcweir        </p>
115*cdf0e10cSrcweir     */
116*cdf0e10cSrcweir    [property, maybevoid]      long      NumberFormat;
117*cdf0e10cSrcweir
118*cdf0e10cSrcweir    [property]      ::com::sun::star::awt::Size  ReferencePageSize;
119*cdf0e10cSrcweir
120*cdf0e10cSrcweir    /** determines what kind of tickmarks should be shown for major ticks.
121*cdf0e10cSrcweir
122*cdf0e10cSrcweir         @see <type>TickmarkStyle</type>.
123*cdf0e10cSrcweir    */
124*cdf0e10cSrcweir    [property]      long      MajorTickmarks;
125*cdf0e10cSrcweir
126*cdf0e10cSrcweir    /** determines what kind of tickmarks should be shown for minor ticks.
127*cdf0e10cSrcweir
128*cdf0e10cSrcweir        @see <type>TickmarkStyle</type>.
129*cdf0e10cSrcweir     */
130*cdf0e10cSrcweir    [property]      long      MinorTickmarks;
131*cdf0e10cSrcweir
132*cdf0e10cSrcweir    /** Determines where the interval marks are placed.
133*cdf0e10cSrcweir	 */
134*cdf0e10cSrcweir	[optional, property] com::sun::star::chart::ChartAxisMarkPosition MarkPosition;
135*cdf0e10cSrcweir};
136*cdf0e10cSrcweir
137*cdf0e10cSrcweir} ; // chart2
138*cdf0e10cSrcweir} ; // com
139*cdf0e10cSrcweir} ; // sun
140*cdf0e10cSrcweir} ; // star
141*cdf0e10cSrcweir
142*cdf0e10cSrcweir#endif
143