fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / chart2 / source / inc / chartview / ChartSfxItemIds.hxx
blob7481cc88169abed2d43ab3a49f0d494bfb24bd72
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_CHART2_SOURCE_INC_CHARTVIEW_CHARTSFXITEMIDS_HXX
20 #define INCLUDED_CHART2_SOURCE_INC_CHARTVIEW_CHARTSFXITEMIDS_HXX
22 // SCHATTR
24 // can't this be changed to 0?
25 #define SCHATTR_START 1
27 #define SCHATTR_DATADESCR_START SCHATTR_START
28 #define SCHATTR_DATADESCR_SHOW_NUMBER SCHATTR_DATADESCR_START
29 #define SCHATTR_DATADESCR_SHOW_PERCENTAGE (SCHATTR_DATADESCR_START + 1)
30 #define SCHATTR_DATADESCR_SHOW_CATEGORY (SCHATTR_DATADESCR_START + 2)
31 #define SCHATTR_DATADESCR_SHOW_SYMBOL (SCHATTR_DATADESCR_START + 3)
32 #define SCHATTR_DATADESCR_SEPARATOR (SCHATTR_DATADESCR_START + 4)
33 #define SCHATTR_DATADESCR_PLACEMENT (SCHATTR_DATADESCR_START + 5)
34 #define SCHATTR_DATADESCR_AVAILABLE_PLACEMENTS (SCHATTR_DATADESCR_START + 6)
35 #define SCHATTR_DATADESCR_NO_PERCENTVALUE (SCHATTR_DATADESCR_START + 7) //percentage values should not be offered
36 #define SCHATTR_PERCENT_NUMBERFORMAT_VALUE (SCHATTR_DATADESCR_START + 8)
37 #define SCHATTR_PERCENT_NUMBERFORMAT_SOURCE (SCHATTR_DATADESCR_START + 9)
38 #define SCHATTR_DATADESCR_END SCHATTR_PERCENT_NUMBERFORMAT_SOURCE
40 //legend
41 #define SCHATTR_LEGEND_START (SCHATTR_DATADESCR_END + 1)
42 #define SCHATTR_LEGEND_POS SCHATTR_LEGEND_START
43 #define SCHATTR_LEGEND_SHOW (SCHATTR_LEGEND_START + 1)
44 #define SCHATTR_LEGEND_END SCHATTR_LEGEND_SHOW
46 //text
47 #define SCHATTR_TEXT_START (SCHATTR_LEGEND_END + 1)
48 #define SCHATTR_TEXT_DEGREES SCHATTR_TEXT_START
49 #define SCHATTR_TEXT_STACKED (SCHATTR_TEXT_START + 1)
50 #define SCHATTR_TEXT_END SCHATTR_TEXT_STACKED
52 // statistic
53 #define SCHATTR_STAT_START (SCHATTR_TEXT_END + 1)
54 #define SCHATTR_STAT_AVERAGE SCHATTR_STAT_START
55 #define SCHATTR_STAT_KIND_ERROR (SCHATTR_STAT_START + 1)
56 #define SCHATTR_STAT_PERCENT (SCHATTR_STAT_START + 2)
57 #define SCHATTR_STAT_BIGERROR (SCHATTR_STAT_START + 3)
58 #define SCHATTR_STAT_CONSTPLUS (SCHATTR_STAT_START + 4)
59 #define SCHATTR_STAT_CONSTMINUS (SCHATTR_STAT_START + 5)
60 #define SCHATTR_STAT_INDICATE (SCHATTR_STAT_START + 6)
61 #define SCHATTR_STAT_RANGE_POS (SCHATTR_STAT_START + 7)
62 #define SCHATTR_STAT_RANGE_NEG (SCHATTR_STAT_START + 8)
63 #define SCHATTR_STAT_ERRORBAR_TYPE (SCHATTR_STAT_START + 9)
64 #define SCHATTR_STAT_END SCHATTR_STAT_ERRORBAR_TYPE
66 // these attributes are for replacement of enum eChartStyle
68 #define SCHATTR_STYLE_START ( SCHATTR_STAT_END +1 )
70 // for whole chart
71 #define SCHATTR_STYLE_DEEP ( SCHATTR_STYLE_START )
72 #define SCHATTR_STYLE_3D ( SCHATTR_STYLE_START + 1 )
73 #define SCHATTR_STYLE_VERTICAL ( SCHATTR_STYLE_START + 2 )
75 // also for series
76 #define SCHATTR_STYLE_BASETYPE ( SCHATTR_STYLE_START + 3 )// Line,Area,...,Pie
77 #define SCHATTR_STYLE_LINES ( SCHATTR_STYLE_START + 4 )// draw line
78 #define SCHATTR_STYLE_PERCENT ( SCHATTR_STYLE_START + 5 )
79 #define SCHATTR_STYLE_STACKED ( SCHATTR_STYLE_START + 6 )
80 #define SCHATTR_STYLE_SPLINES ( SCHATTR_STYLE_START + 7 )
82 // also for data point
83 #define SCHATTR_STYLE_SYMBOL ( SCHATTR_STYLE_START + 8 )
84 #define SCHATTR_STYLE_SHAPE ( SCHATTR_STYLE_START + 9 )
85 #define SCHATTR_STYLE_END ( SCHATTR_STYLE_SHAPE )
87 #define SCHATTR_AXIS (SCHATTR_STYLE_END + 1)// see chtmodel.hxx defines CHART_AXIS_PRIMARY_X, etc.
88 //Re-mapped:
89 #define SCHATTR_AXIS_START (SCHATTR_AXIS + 1)
90 //axis scale
91 #define SCHATTR_AXISTYPE SCHATTR_AXIS_START
92 #define SCHATTR_AXIS_REVERSE (SCHATTR_AXIS_START + 1)
93 #define SCHATTR_AXIS_AUTO_MIN (SCHATTR_AXIS_START + 2)
94 #define SCHATTR_AXIS_MIN (SCHATTR_AXIS_START + 3)
95 #define SCHATTR_AXIS_AUTO_MAX (SCHATTR_AXIS_START + 4)
96 #define SCHATTR_AXIS_MAX (SCHATTR_AXIS_START + 5)
97 #define SCHATTR_AXIS_AUTO_STEP_MAIN (SCHATTR_AXIS_START + 6)
98 #define SCHATTR_AXIS_STEP_MAIN (SCHATTR_AXIS_START + 7)
99 #define SCHATTR_AXIS_MAIN_TIME_UNIT (SCHATTR_AXIS_START + 8)
100 #define SCHATTR_AXIS_AUTO_STEP_HELP (SCHATTR_AXIS_START + 9)
101 #define SCHATTR_AXIS_STEP_HELP (SCHATTR_AXIS_START + 10)
102 #define SCHATTR_AXIS_HELP_TIME_UNIT (SCHATTR_AXIS_START + 11)
103 #define SCHATTR_AXIS_AUTO_TIME_RESOLUTION (SCHATTR_AXIS_START + 12)
104 #define SCHATTR_AXIS_TIME_RESOLUTION (SCHATTR_AXIS_START + 13)
105 #define SCHATTR_AXIS_LOGARITHM (SCHATTR_AXIS_START + 14)
106 #define SCHATTR_AXIS_AUTO_DATEAXIS (SCHATTR_AXIS_START + 15)
107 #define SCHATTR_AXIS_ALLOW_DATEAXIS (SCHATTR_AXIS_START + 16)
108 #define SCHATTR_AXIS_AUTO_ORIGIN (SCHATTR_AXIS_START + 17)
109 #define SCHATTR_AXIS_ORIGIN (SCHATTR_AXIS_START + 18)
110 //axis position
111 #define SCHATTR_AXIS_POSITION_START (SCHATTR_AXIS_ORIGIN +1)
112 #define SCHATTR_AXIS_TICKS SCHATTR_AXIS_POSITION_START
113 #define SCHATTR_AXIS_HELPTICKS (SCHATTR_AXIS_POSITION_START + 1)
114 #define SCHATTR_AXIS_POSITION (SCHATTR_AXIS_POSITION_START + 2)
115 #define SCHATTR_AXIS_POSITION_VALUE (SCHATTR_AXIS_POSITION_START + 3)
116 #define SCHATTR_AXIS_CROSSING_MAIN_AXIS_NUMBERFORMAT (SCHATTR_AXIS_POSITION_START + 4)
117 #define SCHATTR_AXIS_LABEL_POSITION (SCHATTR_AXIS_POSITION_START + 5)
118 #define SCHATTR_AXIS_MARK_POSITION (SCHATTR_AXIS_POSITION_START + 6)
119 //axis label
120 #define SCHATTR_AXIS_LABEL_START (SCHATTR_AXIS_MARK_POSITION +1)
121 #define SCHATTR_AXIS_SHOWDESCR SCHATTR_AXIS_LABEL_START
122 #define SCHATTR_AXIS_LABEL_ORDER (SCHATTR_AXIS_LABEL_START + 1)
123 #define SCHATTR_AXIS_LABEL_OVERLAP (SCHATTR_AXIS_LABEL_START + 2)
124 #define SCHATTR_AXIS_LABEL_BREAK (SCHATTR_AXIS_LABEL_START + 3)
125 #define SCHATTR_AXIS_LABEL_END SCHATTR_AXIS_LABEL_BREAK
127 #define SCHATTR_AXIS_END SCHATTR_AXIS_LABEL_END
129 #define SCHATTR_SYMBOL_BRUSH (SCHATTR_AXIS_END + 1)
130 #define SCHATTR_STOCK_VOLUME (SCHATTR_AXIS_END + 2)
131 #define SCHATTR_STOCK_UPDOWN (SCHATTR_AXIS_END + 3)
132 #define SCHATTR_SYMBOL_SIZE (SCHATTR_AXIS_END + 4)
134 // non persistent items (binary format)
135 #define SCHATTR_CHARTTYPE_START (SCHATTR_SYMBOL_SIZE + 1)
137 // new from New Chart
138 #define SCHATTR_BAR_OVERLAP (SCHATTR_CHARTTYPE_START )
139 #define SCHATTR_BAR_GAPWIDTH (SCHATTR_CHARTTYPE_START + 1)
140 #define SCHATTR_BAR_CONNECT (SCHATTR_CHARTTYPE_START + 2)
141 #define SCHATTR_NUM_OF_LINES_FOR_BAR (SCHATTR_CHARTTYPE_START + 3)
142 #define SCHATTR_SPLINE_ORDER (SCHATTR_CHARTTYPE_START + 4)
143 #define SCHATTR_SPLINE_RESOLUTION (SCHATTR_CHARTTYPE_START + 5)
144 #define SCHATTR_DIAGRAM_STYLE (SCHATTR_CHARTTYPE_START + 6)
145 #define SCHATTR_GROUP_BARS_PER_AXIS (SCHATTR_CHARTTYPE_START + 7)
146 #define SCHATTR_STARTING_ANGLE (SCHATTR_CHARTTYPE_START + 8)
147 #define SCHATTR_CLOCKWISE (SCHATTR_CHARTTYPE_START + 9)
148 #define SCHATTR_MISSING_VALUE_TREATMENT (SCHATTR_CHARTTYPE_START + 10)
149 #define SCHATTR_AVAILABLE_MISSING_VALUE_TREATMENTS (SCHATTR_CHARTTYPE_START + 11)
150 #define SCHATTR_INCLUDE_HIDDEN_CELLS (SCHATTR_CHARTTYPE_START + 12)
152 #define SCHATTR_CHARTTYPE_END SCHATTR_INCLUDE_HIDDEN_CELLS
154 // items for transporting information to dialogs
155 #define SCHATTR_MISC_START (SCHATTR_CHARTTYPE_END + 1)
156 #define SCHATTR_AXIS_FOR_ALL_SERIES (SCHATTR_MISC_START)
157 #define SCHATTR_MISC_END SCHATTR_AXIS_FOR_ALL_SERIES
159 // regression curve
160 #define SCHATTR_REGRESSION_START (SCHATTR_MISC_END + 1)
161 #define SCHATTR_REGRESSION_TYPE SCHATTR_REGRESSION_START
162 #define SCHATTR_REGRESSION_SHOW_EQUATION (SCHATTR_REGRESSION_START + 1)
163 #define SCHATTR_REGRESSION_SHOW_COEFF (SCHATTR_REGRESSION_START + 2)
164 #define SCHATTR_REGRESSION_DEGREE (SCHATTR_REGRESSION_START + 3)
165 #define SCHATTR_REGRESSION_PERIOD (SCHATTR_REGRESSION_START + 4)
166 #define SCHATTR_REGRESSION_EXTRAPOLATE_FORWARD (SCHATTR_REGRESSION_START + 5)
167 #define SCHATTR_REGRESSION_EXTRAPOLATE_BACKWARD (SCHATTR_REGRESSION_START + 6)
168 #define SCHATTR_REGRESSION_SET_INTERCEPT (SCHATTR_REGRESSION_START + 7)
169 #define SCHATTR_REGRESSION_INTERCEPT_VALUE (SCHATTR_REGRESSION_START + 8)
170 #define SCHATTR_REGRESSION_CURVE_NAME (SCHATTR_REGRESSION_START + 9)
171 #define SCHATTR_REGRESSION_END SCHATTR_REGRESSION_CURVE_NAME
173 #define SCHATTR_END SCHATTR_REGRESSION_END
175 // values for Items
177 // values for SCHATTR_AXIS_TICKS and SCHATTR_AXIS_HELPTICKS items
178 #define CHAXIS_MARK_BOTH 3
179 #define CHAXIS_MARK_OUTER 2
180 #define CHAXIS_MARK_INNER 1
181 #define CHAXIS_MARK_NONE 0
183 // values for SCHATTR_AXISTYPE items
184 #define CHART_AXIS_REALNUMBER 0
185 #define CHART_AXIS_PERCENT 1
186 #define CHART_AXIS_CATEGORY 2
187 #define CHART_AXIS_SERIES 3
188 #define CHART_AXIS_DATE 4
190 // values for SCHATTR_STYLE_SHAPE items
191 #define CHART_SHAPE3D_IGNORE -2 //internal! (GetChartShapeStyle()!)
192 #define CHART_SHAPE3D_ANY -1 //undefined type (GetChartShapeStyle()!)
193 #define CHART_SHAPE3D_SQUARE 0
194 #define CHART_SHAPE3D_CYLINDER 1
195 #define CHART_SHAPE3D_CONE 2
196 #define CHART_SHAPE3D_PYRAMID 3 //reserved
197 #define CHART_SHAPE3D_HANOI 4
199 // values for SCHATTR_AXIS items
200 #define CHART_AXIS_PRIMARY_X 1
201 #define CHART_AXIS_PRIMARY_Y 2
202 #define CHART_AXIS_PRIMARY_Z 3
203 #define CHART_AXIS_SECONDARY_Y 4
204 #define CHART_AXIS_SECONDARY_X 5
206 #endif
208 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */