1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef CHARTSFXITEMIDS_HXX
29 #define CHARTSFXITEMIDS_HXX
31 // ============================================================
33 // ============================================================
35 // can't this be changed to 0?
36 #define SCHATTR_START 1
38 #define SCHATTR_DATADESCR_START SCHATTR_START
39 #define SCHATTR_DATADESCR_SHOW_NUMBER SCHATTR_DATADESCR_START
40 #define SCHATTR_DATADESCR_SHOW_PERCENTAGE (SCHATTR_DATADESCR_START + 1)
41 #define SCHATTR_DATADESCR_SHOW_CATEGORY (SCHATTR_DATADESCR_START + 2)
42 #define SCHATTR_DATADESCR_SHOW_SYMBOL (SCHATTR_DATADESCR_START + 3)
43 #define SCHATTR_DATADESCR_SEPARATOR (SCHATTR_DATADESCR_START + 4)
44 #define SCHATTR_DATADESCR_PLACEMENT (SCHATTR_DATADESCR_START + 5)
45 #define SCHATTR_DATADESCR_AVAILABLE_PLACEMENTS (SCHATTR_DATADESCR_START + 6)
46 #define SCHATTR_DATADESCR_NO_PERCENTVALUE (SCHATTR_DATADESCR_START + 7) //percentage values should not be offered
47 #define SCHATTR_PERCENT_NUMBERFORMAT_VALUE (SCHATTR_DATADESCR_START + 8)
48 #define SCHATTR_PERCENT_NUMBERFORMAT_SOURCE (SCHATTR_DATADESCR_START + 9)
49 #define SCHATTR_DATADESCR_END SCHATTR_PERCENT_NUMBERFORMAT_SOURCE
52 #define SCHATTR_LEGEND_START (SCHATTR_DATADESCR_END + 1)
53 #define SCHATTR_LEGEND_POS SCHATTR_LEGEND_START
54 #define SCHATTR_LEGEND_SHOW (SCHATTR_LEGEND_START + 1)
55 #define SCHATTR_LEGEND_END SCHATTR_LEGEND_SHOW
58 #define SCHATTR_TEXT_START (SCHATTR_LEGEND_END + 1)
59 #define SCHATTR_TEXT_DEGREES SCHATTR_TEXT_START
60 #define SCHATTR_TEXT_STACKED (SCHATTR_TEXT_START + 1)
61 #define SCHATTR_TEXT_END SCHATTR_TEXT_STACKED
64 #define SCHATTR_STAT_START (SCHATTR_TEXT_END + 1)
65 #define SCHATTR_STAT_AVERAGE SCHATTR_STAT_START
66 #define SCHATTR_STAT_KIND_ERROR (SCHATTR_STAT_START + 1)
67 #define SCHATTR_STAT_PERCENT (SCHATTR_STAT_START + 2)
68 #define SCHATTR_STAT_BIGERROR (SCHATTR_STAT_START + 3)
69 #define SCHATTR_STAT_CONSTPLUS (SCHATTR_STAT_START + 4)
70 #define SCHATTR_STAT_CONSTMINUS (SCHATTR_STAT_START + 5)
71 #define SCHATTR_STAT_INDICATE (SCHATTR_STAT_START + 6)
72 #define SCHATTR_STAT_RANGE_POS (SCHATTR_STAT_START + 7)
73 #define SCHATTR_STAT_RANGE_NEG (SCHATTR_STAT_START + 8)
74 #define SCHATTR_STAT_ERRORBAR_TYPE (SCHATTR_STAT_START + 9)
75 #define SCHATTR_STAT_END SCHATTR_STAT_ERRORBAR_TYPE
77 // --------------------------------------------------------
78 // these attributes are for replacement of enum eChartStyle
79 // --------------------------------------------------------
81 #define SCHATTR_STYLE_START ( SCHATTR_STAT_END +1 )
84 #define SCHATTR_STYLE_DEEP ( SCHATTR_STYLE_START )
85 #define SCHATTR_STYLE_3D ( SCHATTR_STYLE_START + 1 )
86 #define SCHATTR_STYLE_VERTICAL ( SCHATTR_STYLE_START + 2 )
89 #define SCHATTR_STYLE_BASETYPE ( SCHATTR_STYLE_START + 3 )// Line,Area,...,Pie
90 #define SCHATTR_STYLE_LINES ( SCHATTR_STYLE_START + 4 )// draw line
91 #define SCHATTR_STYLE_PERCENT ( SCHATTR_STYLE_START + 5 )
92 #define SCHATTR_STYLE_STACKED ( SCHATTR_STYLE_START + 6 )
93 #define SCHATTR_STYLE_SPLINES ( SCHATTR_STYLE_START + 7 )
95 // also for data point
96 #define SCHATTR_STYLE_SYMBOL ( SCHATTR_STYLE_START + 8 )
97 #define SCHATTR_STYLE_SHAPE ( SCHATTR_STYLE_START + 9 )
98 #define SCHATTR_STYLE_END ( SCHATTR_STYLE_SHAPE )
100 // --------------------------------------------------------------------------
102 #define SCHATTR_AXIS (SCHATTR_STYLE_END + 1)// see chtmodel.hxx defines CHART_AXIS_PRIMARY_X, etc.
104 #define SCHATTR_AXIS_START (SCHATTR_AXIS + 1)
106 #define SCHATTR_AXISTYPE SCHATTR_AXIS_START
107 #define SCHATTR_AXIS_REVERSE (SCHATTR_AXIS_START + 1)
108 #define SCHATTR_AXIS_AUTO_MIN (SCHATTR_AXIS_START + 2)
109 #define SCHATTR_AXIS_MIN (SCHATTR_AXIS_START + 3)
110 #define SCHATTR_AXIS_AUTO_MAX (SCHATTR_AXIS_START + 4)
111 #define SCHATTR_AXIS_MAX (SCHATTR_AXIS_START + 5)
112 #define SCHATTR_AXIS_AUTO_STEP_MAIN (SCHATTR_AXIS_START + 6)
113 #define SCHATTR_AXIS_STEP_MAIN (SCHATTR_AXIS_START + 7)
114 #define SCHATTR_AXIS_MAIN_TIME_UNIT (SCHATTR_AXIS_START + 8)
115 #define SCHATTR_AXIS_AUTO_STEP_HELP (SCHATTR_AXIS_START + 9)
116 #define SCHATTR_AXIS_STEP_HELP (SCHATTR_AXIS_START + 10)
117 #define SCHATTR_AXIS_HELP_TIME_UNIT (SCHATTR_AXIS_START + 11)
118 #define SCHATTR_AXIS_AUTO_TIME_RESOLUTION (SCHATTR_AXIS_START + 12)
119 #define SCHATTR_AXIS_TIME_RESOLUTION (SCHATTR_AXIS_START + 13)
120 #define SCHATTR_AXIS_LOGARITHM (SCHATTR_AXIS_START + 14)
121 #define SCHATTR_AXIS_AUTO_DATEAXIS (SCHATTR_AXIS_START + 15)
122 #define SCHATTR_AXIS_ALLOW_DATEAXIS (SCHATTR_AXIS_START + 16)
123 #define SCHATTR_AXIS_AUTO_ORIGIN (SCHATTR_AXIS_START + 17)
124 #define SCHATTR_AXIS_ORIGIN (SCHATTR_AXIS_START + 18)
126 #define SCHATTR_AXIS_POSITION_START (SCHATTR_AXIS_ORIGIN +1)
127 #define SCHATTR_AXIS_TICKS SCHATTR_AXIS_POSITION_START
128 #define SCHATTR_AXIS_HELPTICKS (SCHATTR_AXIS_POSITION_START + 1)
129 #define SCHATTR_AXIS_POSITION (SCHATTR_AXIS_POSITION_START + 2)
130 #define SCHATTR_AXIS_POSITION_VALUE (SCHATTR_AXIS_POSITION_START + 3)
131 #define SCHATTR_AXIS_CROSSING_MAIN_AXIS_NUMBERFORMAT (SCHATTR_AXIS_POSITION_START + 4)
132 #define SCHATTR_AXIS_LABEL_POSITION (SCHATTR_AXIS_POSITION_START + 5)
133 #define SCHATTR_AXIS_MARK_POSITION (SCHATTR_AXIS_POSITION_START + 6)
135 #define SCHATTR_AXIS_LABEL_START (SCHATTR_AXIS_MARK_POSITION +1)
136 #define SCHATTR_AXIS_SHOWDESCR SCHATTR_AXIS_LABEL_START
137 #define SCHATTR_AXIS_LABEL_ORDER (SCHATTR_AXIS_LABEL_START + 1)
138 #define SCHATTR_AXIS_LABEL_OVERLAP (SCHATTR_AXIS_LABEL_START + 2)
139 #define SCHATTR_AXIS_LABEL_BREAK (SCHATTR_AXIS_LABEL_START + 3)
140 #define SCHATTR_AXIS_LABEL_END SCHATTR_AXIS_LABEL_BREAK
142 #define SCHATTR_AXIS_END SCHATTR_AXIS_LABEL_END
144 #define SCHATTR_SYMBOL_BRUSH (SCHATTR_AXIS_END + 1)
145 #define SCHATTR_STOCK_VOLUME (SCHATTR_AXIS_END + 2)
146 #define SCHATTR_STOCK_UPDOWN (SCHATTR_AXIS_END + 3)
147 #define SCHATTR_SYMBOL_SIZE (SCHATTR_AXIS_END + 4)
149 // non persistent items (binary format)
150 #define SCHATTR_CHARTTYPE_START (SCHATTR_SYMBOL_SIZE + 1)
152 // new from New Chart
153 #define SCHATTR_BAR_OVERLAP (SCHATTR_CHARTTYPE_START )
154 #define SCHATTR_BAR_GAPWIDTH (SCHATTR_CHARTTYPE_START + 1)
155 #define SCHATTR_BAR_CONNECT (SCHATTR_CHARTTYPE_START + 2)
156 #define SCHATTR_NUM_OF_LINES_FOR_BAR (SCHATTR_CHARTTYPE_START + 3)
157 #define SCHATTR_SPLINE_ORDER (SCHATTR_CHARTTYPE_START + 4)
158 #define SCHATTR_SPLINE_RESOLUTION (SCHATTR_CHARTTYPE_START + 5)
159 #define SCHATTR_DIAGRAM_STYLE (SCHATTR_CHARTTYPE_START + 6)
160 #define SCHATTR_GROUP_BARS_PER_AXIS (SCHATTR_CHARTTYPE_START + 7)
161 #define SCHATTR_STARTING_ANGLE (SCHATTR_CHARTTYPE_START + 8)
162 #define SCHATTR_CLOCKWISE (SCHATTR_CHARTTYPE_START + 9)
163 #define SCHATTR_MISSING_VALUE_TREATMENT (SCHATTR_CHARTTYPE_START + 10)
164 #define SCHATTR_AVAILABLE_MISSING_VALUE_TREATMENTS (SCHATTR_CHARTTYPE_START + 11)
165 #define SCHATTR_INCLUDE_HIDDEN_CELLS (SCHATTR_CHARTTYPE_START + 12)
167 #define SCHATTR_CHARTTYPE_END SCHATTR_INCLUDE_HIDDEN_CELLS
169 // items for transporting information to dialogs
170 #define SCHATTR_MISC_START (SCHATTR_CHARTTYPE_END + 1)
171 #define SCHATTR_AXIS_FOR_ALL_SERIES (SCHATTR_MISC_START)
172 #define SCHATTR_MISC_END SCHATTR_AXIS_FOR_ALL_SERIES
174 // regression curve equation
175 #define SCHATTR_REGRESSION_START (SCHATTR_MISC_END + 1)
176 #define SCHATTR_REGRESSION_TYPE SCHATTR_REGRESSION_START
177 #define SCHATTR_REGRESSION_SHOW_EQUATION (SCHATTR_REGRESSION_START + 1)
178 #define SCHATTR_REGRESSION_SHOW_COEFF (SCHATTR_REGRESSION_START + 2)
179 #define SCHATTR_REGRESSION_END SCHATTR_REGRESSION_SHOW_COEFF
181 #define SCHATTR_END SCHATTR_REGRESSION_END
183 // ============================================================
185 // ============================================================
187 // values for SCHATTR_AXIS_TICKS and SCHATTR_AXIS_HELPTICKS items
188 #define CHAXIS_MARK_BOTH 3
189 #define CHAXIS_MARK_OUTER 2
190 #define CHAXIS_MARK_INNER 1
191 #define CHAXIS_MARK_NONE 0
193 // values for SCHATTR_AXISTYPE items
194 #define CHART_AXIS_REALNUMBER 0
195 #define CHART_AXIS_PERCENT 1
196 #define CHART_AXIS_CATEGORY 2
197 #define CHART_AXIS_SERIES 3
198 #define CHART_AXIS_DATE 4
200 // values for SCHATTR_STYLE_SHAPE items
201 #define CHART_SHAPE3D_IGNORE -2 //internal! (GetChartShapeStyle()!)
202 #define CHART_SHAPE3D_ANY -1 //undefined type (GetChartShapeStyle()!)
203 #define CHART_SHAPE3D_SQUARE 0
204 #define CHART_SHAPE3D_CYLINDER 1
205 #define CHART_SHAPE3D_CONE 2
206 #define CHART_SHAPE3D_PYRAMID 3 //reserved
207 #define CHART_SHAPE3D_HANOI 4
209 // values for SCHATTR_AXIS items
210 #define CHART_AXIS_PRIMARY_X 1
211 #define CHART_AXIS_PRIMARY_Y 2
212 #define CHART_AXIS_PRIMARY_Z 3
213 #define CHART_AXIS_SECONDARY_Y 4
214 #define CHART_AXIS_SECONDARY_X 5
216 // ============================================================
217 // ============================================================
221 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */