1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef CHARTSFXITEMIDS_HXX
24 #define CHARTSFXITEMIDS_HXX
25 
26 // ============================================================
27 // SCHATTR
28 // ============================================================
29 
30 #define SCHATTR_START						1
31 
32 #define SCHATTR_DATADESCR_START	   			SCHATTR_START
33 #define SCHATTR_DATADESCR_SHOW_NUMBER 		SCHATTR_DATADESCR_START
34 #define SCHATTR_DATADESCR_SHOW_PERCENTAGE	(SCHATTR_DATADESCR_START + 1)
35 #define SCHATTR_DATADESCR_SHOW_CATEGORY		(SCHATTR_DATADESCR_START + 2)
36 #define SCHATTR_DATADESCR_SHOW_SYMBOL		(SCHATTR_DATADESCR_START + 3)
37 #define SCHATTR_DATADESCR_SEPARATOR         (SCHATTR_DATADESCR_START + 4)
38 #define SCHATTR_DATADESCR_PLACEMENT         (SCHATTR_DATADESCR_START + 5)
39 #define SCHATTR_DATADESCR_AVAILABLE_PLACEMENTS   (SCHATTR_DATADESCR_START + 6)
40 #define SCHATTR_DATADESCR_NO_PERCENTVALUE   (SCHATTR_DATADESCR_START + 7) //percentage values should not be offered
41 #define SCHATTR_PERCENT_NUMBERFORMAT_VALUE  (SCHATTR_DATADESCR_START + 8)
42 #define SCHATTR_PERCENT_NUMBERFORMAT_SOURCE (SCHATTR_DATADESCR_START + 9)
43 #define SCHATTR_DATADESCR_END               SCHATTR_PERCENT_NUMBERFORMAT_SOURCE
44 
45 //legend
46 #define SCHATTR_LEGEND_START	   			(SCHATTR_DATADESCR_END + 1)
47 #define SCHATTR_LEGEND_POS		   			SCHATTR_LEGEND_START
48 #define SCHATTR_LEGEND_SHOW		   			(SCHATTR_LEGEND_START + 1)
49 #define SCHATTR_LEGEND_END		 			SCHATTR_LEGEND_SHOW
50 
51 //text
52 #define SCHATTR_TEXT_START                  (SCHATTR_LEGEND_END + 1)
53 #define SCHATTR_TEXT_DEGREES                SCHATTR_TEXT_START
54 #define SCHATTR_TEXT_STACKED				(SCHATTR_TEXT_START + 1)
55 #define SCHATTR_TEXT_END                    SCHATTR_TEXT_STACKED
56 
57 // statistic
58 #define SCHATTR_STAT_START                  (SCHATTR_TEXT_END + 1)
59 #define SCHATTR_STAT_AVERAGE                SCHATTR_STAT_START
60 #define SCHATTR_STAT_KIND_ERROR             (SCHATTR_STAT_START + 1)
61 #define SCHATTR_STAT_PERCENT                (SCHATTR_STAT_START + 2)
62 #define SCHATTR_STAT_BIGERROR               (SCHATTR_STAT_START + 3)
63 #define SCHATTR_STAT_CONSTPLUS              (SCHATTR_STAT_START + 4)
64 #define SCHATTR_STAT_CONSTMINUS             (SCHATTR_STAT_START + 5)
65 #define SCHATTR_STAT_INDICATE               (SCHATTR_STAT_START + 6)
66 #define SCHATTR_STAT_RANGE_POS              (SCHATTR_STAT_START + 7)
67 #define SCHATTR_STAT_RANGE_NEG              (SCHATTR_STAT_START + 8)
68 #define SCHATTR_STAT_END                    SCHATTR_STAT_RANGE_NEG
69 
70 // --------------------------------------------------------
71 // these attributes are for replacement of enum eChartStyle
72 // --------------------------------------------------------
73 
74 #define SCHATTR_STYLE_START             ( SCHATTR_STAT_END +1 )
75 
76 // for whole chart
77 #define SCHATTR_STYLE_DEEP              ( SCHATTR_STYLE_START     )
78 #define SCHATTR_STYLE_3D                ( SCHATTR_STYLE_START + 1 )
79 #define SCHATTR_STYLE_VERTICAL          ( SCHATTR_STYLE_START + 2 )
80 
81 // also for series
82 #define SCHATTR_STYLE_BASETYPE          ( SCHATTR_STYLE_START + 3 )// Line,Area,...,Pie
83 #define SCHATTR_STYLE_LINES             ( SCHATTR_STYLE_START + 4 )// draw line
84 #define SCHATTR_STYLE_PERCENT           ( SCHATTR_STYLE_START + 5 )
85 #define SCHATTR_STYLE_STACKED           ( SCHATTR_STYLE_START + 6 )
86 #define SCHATTR_STYLE_SPLINES           ( SCHATTR_STYLE_START + 7 )
87 
88 // also for data point
89 #define SCHATTR_STYLE_SYMBOL            ( SCHATTR_STYLE_START + 8 )
90 #define SCHATTR_STYLE_SHAPE				( SCHATTR_STYLE_START + 9 )
91 #define SCHATTR_STYLE_END               ( SCHATTR_STYLE_SHAPE )
92 
93 // --------------------------------------------------------------------------
94 
95 #define SCHATTR_AXIS					(SCHATTR_STYLE_END + 1)// see chtmodel.hxx defines CHART_AXIS_PRIMARY_X, etc.
96 //Ummappen:
97 #define SCHATTR_AXIS_START				(SCHATTR_AXIS + 1)
98 //axis scale
99 #define SCHATTR_AXISTYPE				 SCHATTR_AXIS_START
100 #define SCHATTR_AXIS_REVERSE            (SCHATTR_AXIS_START + 1)
101 #define SCHATTR_AXIS_AUTO_MIN			(SCHATTR_AXIS_START + 2)
102 #define SCHATTR_AXIS_MIN				(SCHATTR_AXIS_START + 3)
103 #define SCHATTR_AXIS_AUTO_MAX	  		(SCHATTR_AXIS_START + 4)
104 #define SCHATTR_AXIS_MAX				(SCHATTR_AXIS_START + 5)
105 #define SCHATTR_AXIS_AUTO_STEP_MAIN		(SCHATTR_AXIS_START + 6)
106 #define SCHATTR_AXIS_STEP_MAIN			(SCHATTR_AXIS_START + 7)
107 #define SCHATTR_AXIS_MAIN_TIME_UNIT		(SCHATTR_AXIS_START + 8)
108 #define SCHATTR_AXIS_AUTO_STEP_HELP		(SCHATTR_AXIS_START + 9)
109 #define SCHATTR_AXIS_STEP_HELP			(SCHATTR_AXIS_START + 10)
110 #define SCHATTR_AXIS_HELP_TIME_UNIT 	(SCHATTR_AXIS_START + 11)
111 #define SCHATTR_AXIS_AUTO_TIME_RESOLUTION   (SCHATTR_AXIS_START + 12)
112 #define SCHATTR_AXIS_TIME_RESOLUTION	(SCHATTR_AXIS_START + 13)
113 #define SCHATTR_AXIS_LOGARITHM			(SCHATTR_AXIS_START + 14)
114 #define SCHATTR_AXIS_AUTO_DATEAXIS		(SCHATTR_AXIS_START + 15)
115 #define SCHATTR_AXIS_ALLOW_DATEAXIS		(SCHATTR_AXIS_START + 16)
116 #define SCHATTR_AXIS_AUTO_ORIGIN		(SCHATTR_AXIS_START + 17)
117 #define SCHATTR_AXIS_ORIGIN				(SCHATTR_AXIS_START + 18)
118 //axis position
119 #define SCHATTR_AXIS_POSITION_START     (SCHATTR_AXIS_ORIGIN +1)
120 #define SCHATTR_AXIS_TICKS				SCHATTR_AXIS_POSITION_START
121 #define SCHATTR_AXIS_HELPTICKS			(SCHATTR_AXIS_POSITION_START + 1)
122 #define SCHATTR_AXIS_POSITION           (SCHATTR_AXIS_POSITION_START + 2)
123 #define SCHATTR_AXIS_POSITION_VALUE     (SCHATTR_AXIS_POSITION_START + 3)
124 #define SCHATTR_AXIS_CROSSING_MAIN_AXIS_NUMBERFORMAT    (SCHATTR_AXIS_POSITION_START + 4)
125 #define SCHATTR_AXIS_LABEL_POSITION     (SCHATTR_AXIS_POSITION_START + 5)
126 #define SCHATTR_AXIS_MARK_POSITION      (SCHATTR_AXIS_POSITION_START + 6)
127 //axis label
128 #define SCHATTR_AXIS_LABEL_START        (SCHATTR_AXIS_MARK_POSITION +1)
129 #define SCHATTR_AXIS_SHOWDESCR			SCHATTR_AXIS_LABEL_START
130 #define SCHATTR_AXIS_LABEL_ORDER		(SCHATTR_AXIS_LABEL_START + 1)
131 #define SCHATTR_AXIS_LABEL_OVERLAP      (SCHATTR_AXIS_LABEL_START + 2)
132 #define SCHATTR_AXIS_LABEL_BREAK        (SCHATTR_AXIS_LABEL_START + 3)
133 #define SCHATTR_AXIS_LABEL_END          SCHATTR_AXIS_LABEL_BREAK
134 
135 #define SCHATTR_AXIS_END                SCHATTR_AXIS_LABEL_END
136 
137 #define SCHATTR_SYMBOL_BRUSH			(SCHATTR_AXIS_END + 1)
138 #define SCHATTR_STOCK_VOLUME			(SCHATTR_AXIS_END + 2)
139 #define SCHATTR_STOCK_UPDOWN			(SCHATTR_AXIS_END + 3)
140 #define SCHATTR_SYMBOL_SIZE				(SCHATTR_AXIS_END + 4)
141 
142 // non persistent items (binary format)
143 #define SCHATTR_CHARTTYPE_START         (SCHATTR_SYMBOL_SIZE + 1)
144 
145 // new from New Chart
146 #define SCHATTR_BAR_OVERLAP				(SCHATTR_CHARTTYPE_START )
147 #define SCHATTR_BAR_GAPWIDTH			(SCHATTR_CHARTTYPE_START + 1)
148 #define SCHATTR_BAR_CONNECT			    (SCHATTR_CHARTTYPE_START + 2)
149 #define SCHATTR_NUM_OF_LINES_FOR_BAR    (SCHATTR_CHARTTYPE_START + 3)
150 #define SCHATTR_SPLINE_ORDER            (SCHATTR_CHARTTYPE_START + 4)
151 #define SCHATTR_SPLINE_RESOLUTION       (SCHATTR_CHARTTYPE_START + 5)
152 #define SCHATTR_DIAGRAM_STYLE           (SCHATTR_CHARTTYPE_START + 6)
153 #define SCHATTR_GROUP_BARS_PER_AXIS     (SCHATTR_CHARTTYPE_START + 7)
154 #define SCHATTR_STARTING_ANGLE          (SCHATTR_CHARTTYPE_START + 8)
155 #define SCHATTR_CLOCKWISE               (SCHATTR_CHARTTYPE_START + 9)
156 #define SCHATTR_MISSING_VALUE_TREATMENT     (SCHATTR_CHARTTYPE_START + 10)
157 #define SCHATTR_AVAILABLE_MISSING_VALUE_TREATMENTS (SCHATTR_CHARTTYPE_START + 11)
158 #define SCHATTR_INCLUDE_HIDDEN_CELLS    (SCHATTR_CHARTTYPE_START + 12)
159 
160 #define SCHATTR_CHARTTYPE_END           SCHATTR_INCLUDE_HIDDEN_CELLS
161 
162 // items for transporting information to dialogs
163 #define SCHATTR_MISC_START              (SCHATTR_CHARTTYPE_END + 1)
164 #define SCHATTR_AXIS_FOR_ALL_SERIES     (SCHATTR_MISC_START)
165 #define SCHATTR_MISC_END                 SCHATTR_AXIS_FOR_ALL_SERIES
166 
167 // regression curve equation
168 #define SCHATTR_REGRESSION_START         (SCHATTR_MISC_END + 1)
169 #define SCHATTR_REGRESSION_TYPE           SCHATTR_REGRESSION_START
170 #define SCHATTR_REGRESSION_SHOW_EQUATION (SCHATTR_REGRESSION_START + 1)
171 #define SCHATTR_REGRESSION_SHOW_COEFF    (SCHATTR_REGRESSION_START + 2)
172 #define SCHATTR_REGRESSION_END            SCHATTR_REGRESSION_SHOW_COEFF
173 
174 #define SCHATTR_END                     SCHATTR_REGRESSION_END
175 
176 // ============================================================
177 // values for Items
178 // ============================================================
179 
180 // values for SCHATTR_AXIS_TICKS and SCHATTR_AXIS_HELPTICKS items
181 #define CHAXIS_MARK_BOTH   3
182 #define CHAXIS_MARK_OUTER  2
183 #define CHAXIS_MARK_INNER  1
184 #define CHAXIS_MARK_NONE   0
185 
186 // values for SCHATTR_AXISTYPE items
187 #define CHART_AXIS_REALNUMBER   0
188 #define CHART_AXIS_PERCENT      1
189 #define CHART_AXIS_CATEGORY     2
190 #define CHART_AXIS_SERIES       3
191 #define CHART_AXIS_DATE         4
192 
193 // values for SCHATTR_STYLE_SHAPE items
194 #define CHART_SHAPE3D_IGNORE  -2 //intern! (GetChartShapeStyle()!)
195 #define CHART_SHAPE3D_ANY	  -1 //undefinierter Typ (GetChartShapeStyle()!)
196 #define CHART_SHAPE3D_SQUARE   0
197 #define CHART_SHAPE3D_CYLINDER 1
198 #define CHART_SHAPE3D_CONE     2
199 #define CHART_SHAPE3D_PYRAMID  3 //reserved
200 #define CHART_SHAPE3D_HANOI	   4
201 
202 // values for SCHATTR_AXIS items
203 #define CHART_AXIS_PRIMARY_X	1
204 #define CHART_AXIS_PRIMARY_Y	2
205 #define CHART_AXIS_PRIMARY_Z	3
206 #define CHART_AXIS_SECONDARY_Y	4
207 #define CHART_AXIS_SECONDARY_X	5
208 
209 // ============================================================
210 // ============================================================
211 
212 #endif
213