Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / chart2 / source / inc / chartview / ChartSfxItemIds.hxx
blobb28bf1e548c7c20e350041e0d5f2edd167f94460
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 class SvxSizeItem;
23 class SfxIntegerListItem;
24 class SfxBoolItem;
25 class SfxStringItem;
26 class SfxInt32Item;
27 class SfxUInt32Item;
28 class SvxChartIndicateItem;
29 class SvxDoubleItem;
30 class SvxBrushItem;
32 // SCHATTR
34 // can't this be changed to 0?
35 #define SCHATTR_START 1
37 #define SCHATTR_DATADESCR_START SCHATTR_START
38 #define SCHATTR_DATADESCR_SHOW_NUMBER TypedWhichId<SfxBoolItem>(SCHATTR_DATADESCR_START)
39 #define SCHATTR_DATADESCR_SHOW_PERCENTAGE TypedWhichId<SfxBoolItem>(SCHATTR_DATADESCR_START + 1)
40 #define SCHATTR_DATADESCR_SHOW_CATEGORY TypedWhichId<SfxBoolItem>(SCHATTR_DATADESCR_START + 2)
41 #define SCHATTR_DATADESCR_SHOW_SYMBOL TypedWhichId<SfxBoolItem>(SCHATTR_DATADESCR_START + 3)
42 #define SCHATTR_DATADESCR_WRAP_TEXT TypedWhichId<SfxBoolItem>(SCHATTR_DATADESCR_START + 4)
43 #define SCHATTR_DATADESCR_SEPARATOR TypedWhichId<SfxStringItem>(SCHATTR_DATADESCR_START + 5)
44 #define SCHATTR_DATADESCR_PLACEMENT TypedWhichId<SfxInt32Item>(SCHATTR_DATADESCR_START + 6)
45 #define SCHATTR_DATADESCR_AVAILABLE_PLACEMENTS TypedWhichId<SfxIntegerListItem>(SCHATTR_DATADESCR_START + 7)
46 #define SCHATTR_DATADESCR_NO_PERCENTVALUE TypedWhichId<SfxBoolItem>(SCHATTR_DATADESCR_START + 8) //percentage values should not be offered
47 #define SCHATTR_PERCENT_NUMBERFORMAT_VALUE TypedWhichId<SfxUInt32Item>(SCHATTR_DATADESCR_START + 9)
48 #define SCHATTR_PERCENT_NUMBERFORMAT_SOURCE TypedWhichId<SfxBoolItem>(SCHATTR_DATADESCR_START + 10)
49 #define SCHATTR_DATADESCR_END SCHATTR_PERCENT_NUMBERFORMAT_SOURCE
51 //legend
52 #define SCHATTR_LEGEND_START (SCHATTR_DATADESCR_END + 1)
53 #define SCHATTR_LEGEND_POS TypedWhichId<SfxInt32Item>(SCHATTR_LEGEND_START)
54 #define SCHATTR_LEGEND_SHOW TypedWhichId<SfxBoolItem>(SCHATTR_LEGEND_START + 1)
55 #define SCHATTR_LEGEND_END SCHATTR_LEGEND_SHOW
57 //text
58 #define SCHATTR_TEXT_START (SCHATTR_LEGEND_END + 1)
59 #define SCHATTR_TEXT_DEGREES TypedWhichId<SfxInt32Item>(SCHATTR_TEXT_START)
60 #define SCHATTR_TEXT_STACKED TypedWhichId<SfxBoolItem>(SCHATTR_TEXT_START + 1)
61 #define SCHATTR_TEXT_END SCHATTR_TEXT_STACKED
63 // statistic
64 #define SCHATTR_STAT_START (SCHATTR_TEXT_END + 1)
65 #define SCHATTR_STAT_AVERAGE TypedWhichId<SfxBoolItem>(SCHATTR_STAT_START)
66 #define SCHATTR_STAT_KIND_ERROR TypedWhichId<SvxChartKindErrorItem>(SCHATTR_STAT_START + 1)
67 #define SCHATTR_STAT_PERCENT TypedWhichId<SvxDoubleItem>(SCHATTR_STAT_START + 2)
68 #define SCHATTR_STAT_BIGERROR TypedWhichId<SvxDoubleItem>(SCHATTR_STAT_START + 3)
69 #define SCHATTR_STAT_CONSTPLUS TypedWhichId<SvxDoubleItem>(SCHATTR_STAT_START + 4)
70 #define SCHATTR_STAT_CONSTMINUS TypedWhichId<SvxDoubleItem>(SCHATTR_STAT_START + 5)
71 #define SCHATTR_STAT_INDICATE TypedWhichId<SvxChartIndicateItem>(SCHATTR_STAT_START + 6)
72 #define SCHATTR_STAT_RANGE_POS TypedWhichId<SfxStringItem>(SCHATTR_STAT_START + 7)
73 #define SCHATTR_STAT_RANGE_NEG TypedWhichId<SfxStringItem>(SCHATTR_STAT_START + 8)
74 #define SCHATTR_STAT_ERRORBAR_TYPE TypedWhichId<SfxBoolItem>(SCHATTR_STAT_START + 9)
75 #define SCHATTR_STAT_END SCHATTR_STAT_ERRORBAR_TYPE
77 // these attributes are for replacement of enum eChartStyle
79 #define SCHATTR_STYLE_START ( SCHATTR_STAT_END +1 )
81 // for whole chart
82 #define SCHATTR_STYLE_DEEP TypedWhichId<SfxBoolItem>( SCHATTR_STYLE_START )
83 #define SCHATTR_STYLE_3D TypedWhichId<SfxBoolItem>( SCHATTR_STYLE_START + 1 )
84 #define SCHATTR_STYLE_VERTICAL TypedWhichId<SfxBoolItem>( SCHATTR_STYLE_START + 2 )
86 // also for series
87 #define SCHATTR_STYLE_BASETYPE TypedWhichId<SfxInt32Item>( SCHATTR_STYLE_START + 3 )// Line,Area,...,Pie
88 #define SCHATTR_STYLE_LINES TypedWhichId<SfxBoolItem>( SCHATTR_STYLE_START + 4 )// draw line
89 #define SCHATTR_STYLE_PERCENT TypedWhichId<SfxBoolItem>( SCHATTR_STYLE_START + 5 )
90 #define SCHATTR_STYLE_STACKED TypedWhichId<SfxBoolItem>( SCHATTR_STYLE_START + 6 )
91 #define SCHATTR_STYLE_SPLINES TypedWhichId<SfxInt32Item>( SCHATTR_STYLE_START + 7 )
93 // also for data point
94 #define SCHATTR_STYLE_SYMBOL TypedWhichId<SfxInt32Item>( SCHATTR_STYLE_START + 8 )
95 #define SCHATTR_STYLE_SHAPE TypedWhichId<SfxInt32Item>( SCHATTR_STYLE_START + 9 )
96 #define SCHATTR_STYLE_END ( SCHATTR_STYLE_SHAPE )
98 #define SCHATTR_AXIS TypedWhichId<SfxInt32Item>(SCHATTR_STYLE_END + 1)// see chtmodel.hxx defines CHART_AXIS_PRIMARY_X, etc.
99 //Re-mapped:
100 #define SCHATTR_AXIS_START (SCHATTR_AXIS + 1)
101 //axis scale
102 #define SCHATTR_AXISTYPE TypedWhichId<SfxInt32Item>(SCHATTR_AXIS_START)
103 #define SCHATTR_AXIS_REVERSE TypedWhichId<SfxBoolItem>(SCHATTR_AXIS_START + 1)
104 #define SCHATTR_AXIS_AUTO_MIN TypedWhichId<SfxBoolItem>(SCHATTR_AXIS_START + 2)
105 #define SCHATTR_AXIS_MIN TypedWhichId<SvxDoubleItem>(SCHATTR_AXIS_START + 3)
106 #define SCHATTR_AXIS_AUTO_MAX TypedWhichId<SfxBoolItem>(SCHATTR_AXIS_START + 4)
107 #define SCHATTR_AXIS_MAX TypedWhichId<SvxDoubleItem>(SCHATTR_AXIS_START + 5)
108 #define SCHATTR_AXIS_AUTO_STEP_MAIN TypedWhichId<SfxBoolItem>(SCHATTR_AXIS_START + 6)
109 #define SCHATTR_AXIS_STEP_MAIN TypedWhichId<SvxDoubleItem>(SCHATTR_AXIS_START + 7)
110 #define SCHATTR_AXIS_MAIN_TIME_UNIT TypedWhichId<SfxInt32Item>(SCHATTR_AXIS_START + 8)
111 #define SCHATTR_AXIS_AUTO_STEP_HELP TypedWhichId<SfxBoolItem>(SCHATTR_AXIS_START + 9)
112 #define SCHATTR_AXIS_STEP_HELP TypedWhichId<SfxInt32Item>(SCHATTR_AXIS_START + 10)
113 #define SCHATTR_AXIS_HELP_TIME_UNIT TypedWhichId<SfxInt32Item>(SCHATTR_AXIS_START + 11)
114 #define SCHATTR_AXIS_AUTO_TIME_RESOLUTION TypedWhichId<SfxBoolItem>(SCHATTR_AXIS_START + 12)
115 #define SCHATTR_AXIS_TIME_RESOLUTION TypedWhichId<SfxInt32Item>(SCHATTR_AXIS_START + 13)
116 #define SCHATTR_AXIS_LOGARITHM TypedWhichId<SfxBoolItem>(SCHATTR_AXIS_START + 14)
117 #define SCHATTR_AXIS_AUTO_DATEAXIS TypedWhichId<SfxBoolItem>(SCHATTR_AXIS_START + 15)
118 #define SCHATTR_AXIS_ALLOW_DATEAXIS TypedWhichId<SfxBoolItem>(SCHATTR_AXIS_START + 16)
119 #define SCHATTR_AXIS_AUTO_ORIGIN TypedWhichId<SfxBoolItem>(SCHATTR_AXIS_START + 17)
120 #define SCHATTR_AXIS_ORIGIN TypedWhichId<SvxDoubleItem>(SCHATTR_AXIS_START + 18)
121 //axis position
122 #define SCHATTR_AXIS_POSITION_START (SCHATTR_AXIS_ORIGIN +1)
123 #define SCHATTR_AXIS_TICKS TypedWhichId<SfxInt32Item>(SCHATTR_AXIS_POSITION_START)
124 #define SCHATTR_AXIS_HELPTICKS TypedWhichId<SfxInt32Item>(SCHATTR_AXIS_POSITION_START + 1)
125 #define SCHATTR_AXIS_POSITION TypedWhichId<SfxInt32Item>(SCHATTR_AXIS_POSITION_START + 2)
126 #define SCHATTR_AXIS_POSITION_VALUE TypedWhichId<SvxDoubleItem>(SCHATTR_AXIS_POSITION_START + 3)
127 #define SCHATTR_AXIS_CROSSING_MAIN_AXIS_NUMBERFORMAT TypedWhichId<SfxUInt32Item>(SCHATTR_AXIS_POSITION_START + 4)
128 #define SCHATTR_AXIS_LABEL_POSITION TypedWhichId<SfxInt32Item>(SCHATTR_AXIS_POSITION_START + 5)
129 #define SCHATTR_AXIS_MARK_POSITION TypedWhichId<SfxInt32Item>(SCHATTR_AXIS_POSITION_START + 6)
130 //axis label
131 #define SCHATTR_AXIS_LABEL_START (SCHATTR_AXIS_MARK_POSITION +1)
132 #define SCHATTR_AXIS_SHOWDESCR TypedWhichId<SfxBoolItem>(SCHATTR_AXIS_LABEL_START)
133 #define SCHATTR_AXIS_LABEL_ORDER TypedWhichId<SvxChartTextOrderItem>(SCHATTR_AXIS_LABEL_START + 1)
134 #define SCHATTR_AXIS_LABEL_OVERLAP TypedWhichId<SfxBoolItem>(SCHATTR_AXIS_LABEL_START + 2)
135 #define SCHATTR_AXIS_LABEL_BREAK TypedWhichId<SfxBoolItem>(SCHATTR_AXIS_LABEL_START + 3)
136 #define SCHATTR_AXIS_LABEL_END SCHATTR_AXIS_LABEL_BREAK
138 #define SCHATTR_AXIS_END SCHATTR_AXIS_LABEL_END
140 #define SCHATTR_SYMBOL_BRUSH TypedWhichId<SvxBrushItem>(SCHATTR_AXIS_END + 1)
141 #define SCHATTR_STOCK_VOLUME TypedWhichId<SfxBoolItem>(SCHATTR_AXIS_END + 2)
142 #define SCHATTR_STOCK_UPDOWN TypedWhichId<SfxBoolItem>(SCHATTR_AXIS_END + 3)
143 #define SCHATTR_SYMBOL_SIZE TypedWhichId<SvxSizeItem>(SCHATTR_AXIS_END + 4)
145 // non persistent items (binary format)
146 #define SCHATTR_CHARTTYPE_START (SCHATTR_SYMBOL_SIZE + 1)
148 // new from New Chart
149 #define SCHATTR_BAR_OVERLAP TypedWhichId<SfxInt32Item>(SCHATTR_CHARTTYPE_START )
150 #define SCHATTR_BAR_GAPWIDTH TypedWhichId<SfxInt32Item>(SCHATTR_CHARTTYPE_START + 1)
151 #define SCHATTR_BAR_CONNECT TypedWhichId<SfxBoolItem>(SCHATTR_CHARTTYPE_START + 2)
152 #define SCHATTR_NUM_OF_LINES_FOR_BAR TypedWhichId<SfxInt32Item>(SCHATTR_CHARTTYPE_START + 3)
153 #define SCHATTR_SPLINE_ORDER TypedWhichId<SfxInt32Item>(SCHATTR_CHARTTYPE_START + 4)
154 #define SCHATTR_SPLINE_RESOLUTION TypedWhichId<SfxInt32Item>(SCHATTR_CHARTTYPE_START + 5)
155 #define SCHATTR_GROUP_BARS_PER_AXIS TypedWhichId<SfxBoolItem>(SCHATTR_CHARTTYPE_START + 6)
156 #define SCHATTR_STARTING_ANGLE TypedWhichId<SfxInt32Item>(SCHATTR_CHARTTYPE_START + 7)
157 #define SCHATTR_CLOCKWISE TypedWhichId<SfxBoolItem>(SCHATTR_CHARTTYPE_START + 8)
158 #define SCHATTR_MISSING_VALUE_TREATMENT TypedWhichId<SfxInt32Item>(SCHATTR_CHARTTYPE_START + 9)
159 #define SCHATTR_AVAILABLE_MISSING_VALUE_TREATMENTS TypedWhichId<SfxIntegerListItem>(SCHATTR_CHARTTYPE_START + 10)
160 #define SCHATTR_INCLUDE_HIDDEN_CELLS TypedWhichId<SfxBoolItem>(SCHATTR_CHARTTYPE_START + 11)
161 #define SCHATTR_HIDE_LEGEND_ENTRY TypedWhichId<SfxBoolItem>(SCHATTR_CHARTTYPE_START + 12)
163 #define SCHATTR_CHARTTYPE_END SCHATTR_HIDE_LEGEND_ENTRY
165 // items for transporting information to dialogs
166 #define SCHATTR_MISC_START (SCHATTR_CHARTTYPE_END + 1)
167 #define SCHATTR_AXIS_FOR_ALL_SERIES TypedWhichId<SfxInt32Item>(SCHATTR_MISC_START)
168 #define SCHATTR_MISC_END SCHATTR_AXIS_FOR_ALL_SERIES
170 // regression curve
171 #define SCHATTR_REGRESSION_START (SCHATTR_MISC_END + 1)
172 #define SCHATTR_REGRESSION_TYPE TypedWhichId<SvxChartRegressItem>(SCHATTR_REGRESSION_START)
173 #define SCHATTR_REGRESSION_SHOW_EQUATION TypedWhichId<SfxBoolItem>(SCHATTR_REGRESSION_START + 1)
174 #define SCHATTR_REGRESSION_SHOW_COEFF TypedWhichId<SfxBoolItem>(SCHATTR_REGRESSION_START + 2)
175 #define SCHATTR_REGRESSION_DEGREE TypedWhichId<SfxInt32Item>(SCHATTR_REGRESSION_START + 3)
176 #define SCHATTR_REGRESSION_PERIOD TypedWhichId<SfxInt32Item>(SCHATTR_REGRESSION_START + 4)
177 #define SCHATTR_REGRESSION_EXTRAPOLATE_FORWARD TypedWhichId<SvxDoubleItem>(SCHATTR_REGRESSION_START + 5)
178 #define SCHATTR_REGRESSION_EXTRAPOLATE_BACKWARD TypedWhichId<SvxDoubleItem>(SCHATTR_REGRESSION_START + 6)
179 #define SCHATTR_REGRESSION_SET_INTERCEPT TypedWhichId<SfxBoolItem>(SCHATTR_REGRESSION_START + 7)
180 #define SCHATTR_REGRESSION_INTERCEPT_VALUE TypedWhichId<SvxDoubleItem>(SCHATTR_REGRESSION_START + 8)
181 #define SCHATTR_REGRESSION_CURVE_NAME TypedWhichId<SfxStringItem>(SCHATTR_REGRESSION_START + 9)
182 #define SCHATTR_REGRESSION_XNAME TypedWhichId<SfxStringItem>(SCHATTR_REGRESSION_START + 10)
183 #define SCHATTR_REGRESSION_YNAME TypedWhichId<SfxStringItem>(SCHATTR_REGRESSION_START + 11)
184 #define SCHATTR_REGRESSION_END SCHATTR_REGRESSION_YNAME
186 #define SCHATTR_END SCHATTR_REGRESSION_END
188 // values for Items
190 // values for SCHATTR_AXIS_TICKS and SCHATTR_AXIS_HELPTICKS items
191 #define CHAXIS_MARK_BOTH 3
192 #define CHAXIS_MARK_OUTER 2
193 #define CHAXIS_MARK_INNER 1
194 #define CHAXIS_MARK_NONE 0
196 // values for SCHATTR_AXISTYPE items
197 #define CHART_AXIS_REALNUMBER 0
198 #define CHART_AXIS_PERCENT 1
199 #define CHART_AXIS_CATEGORY 2
200 #define CHART_AXIS_SERIES 3
201 #define CHART_AXIS_DATE 4
203 // values for SCHATTR_STYLE_SHAPE items
204 #define CHART_SHAPE3D_IGNORE -2 //internal! (GetChartShapeStyle()!)
205 #define CHART_SHAPE3D_SQUARE 0
206 #define CHART_SHAPE3D_CYLINDER 1
207 #define CHART_SHAPE3D_CONE 2
208 #define CHART_SHAPE3D_PYRAMID 3 //reserved
209 #define CHART_SHAPE3D_HANOI 4
211 // values for SCHATTR_AXIS items
212 #define CHART_AXIS_PRIMARY_X 1
213 #define CHART_AXIS_PRIMARY_Y 2
214 #define CHART_AXIS_PRIMARY_Z 3
215 #define CHART_AXIS_SECONDARY_Y 4
216 #define CHART_AXIS_SECONDARY_X 5
218 #endif
220 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */