Update ooo320-m1
[ooovba.git] / chart2 / source / inc / chartview / ChartSfxItemIds.hxx
blobe7a6d146ee3dd6d307a9ffc36897ba3a23d1a2fb
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: ChartSfxItemIds.hxx,v $
10 * $Revision: 1.8 $
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 CHARTSFXITEMIDS_HXX
31 #define CHARTSFXITEMIDS_HXX
33 #include <sfx2/sfxdefs.hxx>
36 // header for SID_OBJ1_START
37 #include <sfx2/sfxsids.hrc>
40 // ============================================================
41 // SCHATTR
42 // ============================================================
44 #define SCHATTR_START 1
46 #define SCHATTR_DATADESCR_START SCHATTR_START
47 #define SCHATTR_DATADESCR_SHOW_NUMBER SCHATTR_DATADESCR_START
48 #define SCHATTR_DATADESCR_SHOW_PERCENTAGE (SCHATTR_DATADESCR_START + 1)
49 #define SCHATTR_DATADESCR_SHOW_CATEGORY (SCHATTR_DATADESCR_START + 2)
50 #define SCHATTR_DATADESCR_SHOW_SYMBOL (SCHATTR_DATADESCR_START + 3)
51 #define SCHATTR_DATADESCR_SEPARATOR (SCHATTR_DATADESCR_START + 4)
52 #define SCHATTR_DATADESCR_PLACEMENT (SCHATTR_DATADESCR_START + 5)
53 #define SCHATTR_DATADESCR_AVAILABLE_PLACEMENTS (SCHATTR_DATADESCR_START + 6)
54 #define SCHATTR_DATADESCR_NO_PERCENTVALUE (SCHATTR_DATADESCR_START + 7) //percentage values should not be offered
55 #define SCHATTR_DATADESCR_END SCHATTR_DATADESCR_NO_PERCENTVALUE
57 #define SCHATTR_LEGEND_START (SCHATTR_DATADESCR_END + 1)
58 #define SCHATTR_LEGEND_POS SCHATTR_LEGEND_START
59 #define SCHATTR_LEGEND_END SCHATTR_LEGEND_POS
61 #define SCHATTR_TEXT_START (SCHATTR_LEGEND_END + 1)
62 // #define SCHATTR_TEXT_ORIENT SCHATTR_TEXT_START
63 // name changed:
64 #define SCHATTR_TEXT_STACKED SCHATTR_TEXT_START
65 #define SCHATTR_TEXT_ORDER (SCHATTR_TEXT_START + 1)
66 #define SCHATTR_TEXT_END SCHATTR_TEXT_ORDER
68 #define SCHATTR_Y_AXIS_START (SCHATTR_TEXT_END + 1)
69 #define SCHATTR_Y_AXIS_AUTO_MIN SCHATTR_Y_AXIS_START
70 #define SCHATTR_Y_AXIS_MIN (SCHATTR_Y_AXIS_START + 1)
71 #define SCHATTR_Y_AXIS_AUTO_MAX (SCHATTR_Y_AXIS_START + 2)
72 #define SCHATTR_Y_AXIS_MAX (SCHATTR_Y_AXIS_START + 3)
73 #define SCHATTR_Y_AXIS_AUTO_STEP_MAIN (SCHATTR_Y_AXIS_START + 4)
74 #define SCHATTR_Y_AXIS_STEP_MAIN (SCHATTR_Y_AXIS_START + 5)
75 #define SCHATTR_Y_AXIS_AUTO_STEP_HELP (SCHATTR_Y_AXIS_START + 6)
76 #define SCHATTR_Y_AXIS_STEP_HELP (SCHATTR_Y_AXIS_START + 7)
77 #define SCHATTR_Y_AXIS_LOGARITHM (SCHATTR_Y_AXIS_START + 8)
78 #define SCHATTR_Y_AXIS_AUTO_ORIGIN (SCHATTR_Y_AXIS_START + 9)
79 #define SCHATTR_Y_AXIS_ORIGIN (SCHATTR_Y_AXIS_START + 10)
80 #define SCHATTR_Y_AXIS_END SCHATTR_Y_AXIS_ORIGIN
82 #define SCHATTR_X_AXIS_START (SCHATTR_Y_AXIS_END + 1)
83 #define SCHATTR_X_AXIS_AUTO_MIN SCHATTR_X_AXIS_START
84 #define SCHATTR_X_AXIS_MIN (SCHATTR_X_AXIS_START + 1)
85 #define SCHATTR_X_AXIS_AUTO_MAX (SCHATTR_X_AXIS_START + 2)
86 #define SCHATTR_X_AXIS_MAX (SCHATTR_X_AXIS_START + 3)
87 #define SCHATTR_X_AXIS_AUTO_STEP_MAIN (SCHATTR_X_AXIS_START + 4)
88 #define SCHATTR_X_AXIS_STEP_MAIN (SCHATTR_X_AXIS_START + 5)
89 #define SCHATTR_X_AXIS_AUTO_STEP_HELP (SCHATTR_X_AXIS_START + 6)
90 #define SCHATTR_X_AXIS_STEP_HELP (SCHATTR_X_AXIS_START + 7)
91 #define SCHATTR_X_AXIS_LOGARITHM (SCHATTR_X_AXIS_START + 8)
92 #define SCHATTR_X_AXIS_AUTO_ORIGIN (SCHATTR_X_AXIS_START + 9)
93 #define SCHATTR_X_AXIS_ORIGIN (SCHATTR_X_AXIS_START + 10)
94 #define SCHATTR_X_AXIS_END SCHATTR_X_AXIS_ORIGIN
96 #define SCHATTR_Z_AXIS_START (SCHATTR_X_AXIS_END + 1)
97 #define SCHATTR_Z_AXIS_AUTO_MIN SCHATTR_Z_AXIS_START
98 #define SCHATTR_Z_AXIS_MIN (SCHATTR_Z_AXIS_START + 1)
99 #define SCHATTR_Z_AXIS_AUTO_MAX (SCHATTR_Z_AXIS_START + 2)
100 #define SCHATTR_Z_AXIS_MAX (SCHATTR_Z_AXIS_START + 3)
101 #define SCHATTR_Z_AXIS_AUTO_STEP_MAIN (SCHATTR_Z_AXIS_START + 4)
102 #define SCHATTR_Z_AXIS_STEP_MAIN (SCHATTR_Z_AXIS_START + 5)
103 #define SCHATTR_Z_AXIS_AUTO_STEP_HELP (SCHATTR_Z_AXIS_START + 6)
104 #define SCHATTR_Z_AXIS_STEP_HELP (SCHATTR_Z_AXIS_START + 7)
105 #define SCHATTR_Z_AXIS_LOGARITHM (SCHATTR_Z_AXIS_START + 8)
106 #define SCHATTR_Z_AXIS_AUTO_ORIGIN (SCHATTR_Z_AXIS_START + 9)
107 #define SCHATTR_Z_AXIS_ORIGIN (SCHATTR_Z_AXIS_START + 10)
108 #define SCHATTR_Z_AXIS_END SCHATTR_Z_AXIS_ORIGIN
110 // miscellaneous
112 #define SCHATTR_AXISTYPE (SCHATTR_Z_AXIS_END + 1)
113 #define SCHATTR_PERCENT_NUMBERFORMAT_VALUE (SCHATTR_Z_AXIS_END + 2)
114 #define SCHATTR_PERCENT_NUMBERFORMAT_SOURCE (SCHATTR_Z_AXIS_END + 3)
116 #define SCHATTR_STAT_START (SCHATTR_PERCENT_NUMBERFORMAT_SOURCE + 1)
117 #define SCHATTR_STAT_AVERAGE SCHATTR_STAT_START
118 #define SCHATTR_STAT_KIND_ERROR (SCHATTR_STAT_START + 1)
119 #define SCHATTR_STAT_PERCENT (SCHATTR_STAT_START + 2)
120 #define SCHATTR_STAT_BIGERROR (SCHATTR_STAT_START + 3)
121 #define SCHATTR_STAT_CONSTPLUS (SCHATTR_STAT_START + 4)
122 #define SCHATTR_STAT_CONSTMINUS (SCHATTR_STAT_START + 5)
123 #define SCHATTR_STAT_INDICATE (SCHATTR_STAT_START + 6)
124 #define SCHATTR_STAT_RANGE_POS (SCHATTR_STAT_START + 7)
125 #define SCHATTR_STAT_RANGE_NEG (SCHATTR_STAT_START + 8)
126 #define SCHATTR_STAT_END SCHATTR_STAT_RANGE_NEG
128 #define SCHATTR_TEXT2_START ( SCHATTR_STAT_END + 1)
129 #define SCHATTR_TEXT_DEGREES ( SCHATTR_TEXT2_START )
130 #define SCHATTR_TEXT_OVERLAP (SCHATTR_TEXT2_START +1)
131 #define SCHATTR_TEXT2_END ( SCHATTR_TEXT_OVERLAP )
133 // --------------------------------------------------------
134 // these attributes are for replacement of enum eChartStyle
135 // --------------------------------------------------------
137 #define SCHATTR_STYLE_START ( SCHATTR_TEXT2_END +1 )
139 // for whole chart
140 #define SCHATTR_STYLE_DEEP ( SCHATTR_STYLE_START )
141 #define SCHATTR_STYLE_3D ( SCHATTR_STYLE_START + 1 )
142 #define SCHATTR_STYLE_VERTICAL ( SCHATTR_STYLE_START + 2 )
144 // also for series
145 #define SCHATTR_STYLE_BASETYPE ( SCHATTR_STYLE_START + 3 )// Line,Area,...,Pie
146 #define SCHATTR_STYLE_LINES ( SCHATTR_STYLE_START + 4 )// draw line
147 #define SCHATTR_STYLE_PERCENT ( SCHATTR_STYLE_START + 5 )
148 #define SCHATTR_STYLE_STACKED ( SCHATTR_STYLE_START + 6 )
149 #define SCHATTR_STYLE_SPLINES ( SCHATTR_STYLE_START + 7 )
151 // also for data point
152 #define SCHATTR_STYLE_SYMBOL ( SCHATTR_STYLE_START + 8 )
153 #define SCHATTR_STYLE_SHAPE ( SCHATTR_STYLE_START + 9 )
154 #define SCHATTR_STYLE_END ( SCHATTR_STYLE_SHAPE )
156 // --------------------------------------------------------------------------
158 #define SCHATTR_AXIS (SCHATTR_STYLE_END + 1)// see chtmodel.hxx defines CHART_AXIS_PRIMARY_X, etc.
159 //Ummappen:
160 #define SCHATTR_AXIS_START (SCHATTR_AXIS + 1)
161 #define SCHATTR_AXIS_AUTO_MIN SCHATTR_AXIS_START
162 #define SCHATTR_AXIS_MIN (SCHATTR_AXIS_START + 1)
163 #define SCHATTR_AXIS_AUTO_MAX (SCHATTR_AXIS_START + 2)
164 #define SCHATTR_AXIS_MAX (SCHATTR_AXIS_START + 3)
165 #define SCHATTR_AXIS_AUTO_STEP_MAIN (SCHATTR_AXIS_START + 4)
166 #define SCHATTR_AXIS_STEP_MAIN (SCHATTR_AXIS_START + 5)
167 #define SCHATTR_AXIS_AUTO_STEP_HELP (SCHATTR_AXIS_START + 6)
168 // SCHATTR_AXIS_STEP_HELP: type changed from double to sal_Int32 !
169 #define SCHATTR_AXIS_STEP_HELP (SCHATTR_AXIS_START + 7)
170 #define SCHATTR_AXIS_LOGARITHM (SCHATTR_AXIS_START + 8)
171 #define SCHATTR_AXIS_AUTO_ORIGIN (SCHATTR_AXIS_START + 9)
172 #define SCHATTR_AXIS_ORIGIN (SCHATTR_AXIS_START + 10)
173 //Neu:
174 #define SCHATTR_AXIS_TICKS (SCHATTR_AXIS_START + 11)
175 #define SCHATTR_AXIS_NUMFMT (SCHATTR_AXIS_START + 12)
176 #define SCHATTR_AXIS_NUMFMTPERCENT (SCHATTR_AXIS_START + 13)
177 #define SCHATTR_AXIS_SHOWAXIS (SCHATTR_AXIS_START + 14)
178 #define SCHATTR_AXIS_SHOWDESCR (SCHATTR_AXIS_START + 15)
179 #define SCHATTR_AXIS_SHOWMAINGRID (SCHATTR_AXIS_START + 16)
180 #define SCHATTR_AXIS_SHOWHELPGRID (SCHATTR_AXIS_START + 17)
181 #define SCHATTR_AXIS_TOPDOWN (SCHATTR_AXIS_START + 18)
182 #define SCHATTR_AXIS_HELPTICKS (SCHATTR_AXIS_START + 19)
183 #define SCHATTR_AXIS_REVERSE (SCHATTR_AXIS_START + 20)
184 #define SCHATTR_AXIS_POSITION (SCHATTR_AXIS_START + 21)
185 #define SCHATTR_AXIS_POSITION_VALUE (SCHATTR_AXIS_START + 22)
186 #define SCHATTR_AXIS_CROSSING_MAIN_AXIS_NUMBERFORMAT (SCHATTR_AXIS_START + 23)
187 #define SCHATTR_AXIS_LABEL_POSITION (SCHATTR_AXIS_START + 24)
188 #define SCHATTR_AXIS_MARK_POSITION (SCHATTR_AXIS_START + 25)
189 #define SCHATTR_AXIS_END SCHATTR_AXIS_MARK_POSITION
191 #define SCHATTR_SYMBOL_BRUSH (SCHATTR_AXIS_END + 1)
192 #define SCHATTR_STOCK_VOLUME (SCHATTR_AXIS_END + 2)
193 #define SCHATTR_STOCK_UPDOWN (SCHATTR_AXIS_END + 3)
194 #define SCHATTR_SYMBOL_SIZE (SCHATTR_AXIS_END + 4)
196 // non persistent items (binary format)
197 #define SCHATTR_CHARTTYPE_START (SCHATTR_SYMBOL_SIZE + 1)
199 // new from New Chart
200 #define SCHATTR_BAR_OVERLAP (SCHATTR_CHARTTYPE_START )
201 #define SCHATTR_BAR_GAPWIDTH (SCHATTR_CHARTTYPE_START + 1)
202 #define SCHATTR_BAR_CONNECT (SCHATTR_CHARTTYPE_START + 2)
203 #define SCHATTR_NUM_OF_LINES_FOR_BAR (SCHATTR_CHARTTYPE_START + 3)
204 #define SCHATTR_SPLINE_ORDER (SCHATTR_CHARTTYPE_START + 4)
205 #define SCHATTR_SPLINE_RESOLUTION (SCHATTR_CHARTTYPE_START + 5)
206 #define SCHATTR_DIAGRAM_STYLE (SCHATTR_CHARTTYPE_START + 6)
207 #define SCHATTR_TEXTBREAK (SCHATTR_CHARTTYPE_START + 7)
208 #define SCHATTR_GROUP_BARS_PER_AXIS (SCHATTR_CHARTTYPE_START + 8)
209 #define SCHATTR_STARTING_ANGLE (SCHATTR_CHARTTYPE_START + 9)
210 #define SCHATTR_CLOCKWISE (SCHATTR_CHARTTYPE_START + 10)
211 #define SCHATTR_MISSING_VALUE_TREATMENT (SCHATTR_CHARTTYPE_START + 11)
212 #define SCHATTR_AVAILABLE_MISSING_VALUE_TREATMENTS (SCHATTR_CHARTTYPE_START + 12)
213 #define SCHATTR_INCLUDE_HIDDEN_CELLS (SCHATTR_CHARTTYPE_START + 13)
215 #define SCHATTR_CHARTTYPE_END SCHATTR_INCLUDE_HIDDEN_CELLS
217 // items for transporting information to dialogs
218 #define SCHATTR_MISC_START (SCHATTR_CHARTTYPE_END + 1)
219 #define SCHATTR_AXIS_FOR_ALL_SERIES (SCHATTR_MISC_START)
220 #define SCHATTR_MISC_END SCHATTR_AXIS_FOR_ALL_SERIES
222 // regression curve equation
223 #define SCHATTR_REGRESSION_START (SCHATTR_MISC_END + 1)
224 #define SCHATTR_REGRESSION_TYPE SCHATTR_REGRESSION_START
225 #define SCHATTR_REGRESSION_SHOW_EQUATION (SCHATTR_REGRESSION_START + 1)
226 #define SCHATTR_REGRESSION_SHOW_COEFF (SCHATTR_REGRESSION_START + 2)
227 #define SCHATTR_REGRESSION_END SCHATTR_REGRESSION_SHOW_COEFF
229 #define SCHATTR_END SCHATTR_REGRESSION_END
231 // ============================================================
232 // values for Items
233 // ============================================================
235 // values for SCHATTR_AXIS_TICKS and SCHATTR_AXIS_HELPTICKS items
236 #define CHAXIS_MARK_BOTH 3
237 #define CHAXIS_MARK_OUTER 2
238 #define CHAXIS_MARK_INNER 1
239 #define CHAXIS_MARK_NONE 0
241 // values for SCHATTR_AXISTYPE items
242 #define CHART_AXIS_X 0
243 #define CHART_AXIS_Y 1
244 #define CHART_AXIS_Z 2
246 // values for SCHATTR_STYLE_SHAPE items
247 #define CHART_SHAPE3D_IGNORE -2 //intern! (GetChartShapeStyle()!)
248 #define CHART_SHAPE3D_ANY -1 //undefinierter Typ (GetChartShapeStyle()!)
249 #define CHART_SHAPE3D_SQUARE 0
250 #define CHART_SHAPE3D_CYLINDER 1
251 #define CHART_SHAPE3D_CONE 2
252 #define CHART_SHAPE3D_PYRAMID 3 //reserved
253 #define CHART_SHAPE3D_HANOI 4
255 // values for SCHATTR_AXIS items
256 #define CHART_AXIS_PRIMARY_X 1
257 #define CHART_AXIS_PRIMARY_Y 2
258 #define CHART_AXIS_PRIMARY_Z 3
259 #define CHART_AXIS_SECONDARY_Y 4
260 #define CHART_AXIS_SECONDARY_X 5
262 // ============================================================
263 // ============================================================
265 #endif