1*d1766043SAndrew Rist/**************************************************************
2*d1766043SAndrew Rist *
3*d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*d1766043SAndrew Rist * distributed with this work for additional information
6*d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9*d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10*d1766043SAndrew Rist *
11*d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*d1766043SAndrew Rist *
13*d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*d1766043SAndrew Rist * software distributed under the License is distributed on an
15*d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17*d1766043SAndrew Rist * specific language governing permissions and limitations
18*d1766043SAndrew Rist * under the License.
19*d1766043SAndrew Rist *
20*d1766043SAndrew Rist *************************************************************/
21*d1766043SAndrew Rist
22cdf0e10cSrcweir#ifndef com_sun_star_chart2_ScaleData_idl
23cdf0e10cSrcweir#define com_sun_star_chart2_ScaleData_idl
24cdf0e10cSrcweir
25cdf0e10cSrcweir#include <com/sun/star/chart2/XScaling.idl>
26cdf0e10cSrcweir#include <com/sun/star/chart2/AxisOrientation.idl>
27cdf0e10cSrcweir#include <com/sun/star/chart2/data/XLabeledDataSequence.idl>
28cdf0e10cSrcweir#include <com/sun/star/chart2/AxisType.idl>
29cdf0e10cSrcweir#include <com/sun/star/chart2/IncrementData.idl>
30cdf0e10cSrcweir#include <com/sun/star/chart/TimeIncrement.idl>
31cdf0e10cSrcweir
32cdf0e10cSrcweir//=============================================================================
33cdf0e10cSrcweir
34cdf0e10cSrcweirmodule com {  module sun {  module star {  module chart2 {
35cdf0e10cSrcweir
36cdf0e10cSrcweir//=============================================================================
37cdf0e10cSrcweir
38cdf0e10cSrcweirstruct ScaleData
39cdf0e10cSrcweir{
40cdf0e10cSrcweir    /** if the any contains a double value this is used as a fixed
41cdf0e10cSrcweir        maximum.  Otherwise, if the any is empty or contains an
42cdf0e10cSrcweir        incompatible type, the maximum is automatic.
43cdf0e10cSrcweir
44cdf0e10cSrcweir        <p>If the maximum is automatic, this means, each view that
45cdf0e10cSrcweir        represents the model containing this scale, has to calculate a
46cdf0e10cSrcweir        maximum by its own means.</p>
47cdf0e10cSrcweir     */
48cdf0e10cSrcweir    any Minimum;
49cdf0e10cSrcweir
50cdf0e10cSrcweir    /** if the any contains a double value this is used as a fixed
51cdf0e10cSrcweir        minimum.  Otherwise, if the any is empty or contains an
52cdf0e10cSrcweir        incompatible type, the minimum is automatic.
53cdf0e10cSrcweir
54cdf0e10cSrcweir        <p>If the minimum is automatic, this means, each view that
55cdf0e10cSrcweir        represents the model containing this scale, has to calculate a
56cdf0e10cSrcweir        minimum by its own means.</p>
57cdf0e10cSrcweir     */
58cdf0e10cSrcweir    any Maximum;
59cdf0e10cSrcweir
60cdf0e10cSrcweir
61cdf0e10cSrcweir    /** The Origin indicates where other axes cross this axis.
62cdf0e10cSrcweir        If the any contains a double value that value is used.
63cdf0e10cSrcweir        Otherwise an appropriate value has to be calculated
64cdf0e10cSrcweir        by that instances using Origin.
65cdf0e10cSrcweir     */
66cdf0e10cSrcweir    any Origin;
67cdf0e10cSrcweir
68cdf0e10cSrcweir    /** Axis orientation (standard or reversed).
69cdf0e10cSrcweir
70cdf0e10cSrcweir        <p>If used at the Y axis in pie charts or doughnut charts, specifies
71cdf0e10cSrcweir        the rotation direction of the pie. The value
72cdf0e10cSrcweir        <const>AxisOrientation::MATHEMATICAL</const> rotates the pie
73cdf0e10cSrcweir        counterclockwise, the value <const>AxisOrientation::REVERSE</const>
74cdf0e10cSrcweir        rotates the pie clockwise.</p>
75cdf0e10cSrcweir
76cdf0e10cSrcweir        <p>Note: Is this a good place for the axis orientation? Two axes may
77cdf0e10cSrcweir        use the same scale, but point into two different directions.</p>
78cdf0e10cSrcweir     */
79cdf0e10cSrcweir    AxisOrientation     Orientation;
80cdf0e10cSrcweir
81cdf0e10cSrcweir    XScaling            Scaling;
82cdf0e10cSrcweir
83cdf0e10cSrcweir    data::XLabeledDataSequence Categories;
84cdf0e10cSrcweir
85cdf0e10cSrcweir    /** describes the type of the axis.
86cdf0e10cSrcweir
87cdf0e10cSrcweir        <p>It can be a real number axis or a category axis or something else.
88cdf0e10cSrcweir        AxisType is one value out of the constant group <type>AxisType</type>.</p>
89cdf0e10cSrcweir    */
90cdf0e10cSrcweir    long   AxisType;
91cdf0e10cSrcweir
92cdf0e10cSrcweir    /** if true an AxisType CATEGORY is interpreted as DATE if the underlying data given in Categories are dates
93cdf0e10cSrcweir    */
94cdf0e10cSrcweir    boolean AutoDateAxis;
95cdf0e10cSrcweir
96cdf0e10cSrcweir    /** describes wether data points on category or date axis are placed between tickmarks or not
97cdf0e10cSrcweir    if true the maximum on the scale will be expanded for one interval
98cdf0e10cSrcweir    */
99cdf0e10cSrcweir    boolean ShiftedCategoryPosition;
100cdf0e10cSrcweir
101cdf0e10cSrcweir    /** increment data to be used for not date-time axis
102cdf0e10cSrcweir    */
103cdf0e10cSrcweir    IncrementData IncrementData;
104cdf0e10cSrcweir
105cdf0e10cSrcweir    /** increment data to be used in case of date-time axis
106cdf0e10cSrcweir    */
107cdf0e10cSrcweir    ::com::sun::star::chart::TimeIncrement TimeIncrement;
108cdf0e10cSrcweir};
109cdf0e10cSrcweir
110cdf0e10cSrcweir//=============================================================================
111cdf0e10cSrcweir
112cdf0e10cSrcweir}; }; }; };
113cdf0e10cSrcweir
114cdf0e10cSrcweir#endif
115