1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: SchWhichPairs.hxx,v $
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 CHART_SCHWHICHPAIRS_HXX
31 #define CHART_SCHWHICHPAIRS_HXX
33 #ifndef _SVX_SVXIDS_HRC
34 #include <svx/svxids.hrc>
36 #include <svx/xdef.hxx>
37 #include <svx/svddef.hxx>
38 #include <svx/eeitem.hxx>
40 #include "chartview/ChartSfxItemIds.hxx"
45 #define CHARACTER_WHICHPAIRS \
46 EE_ITEMS_START, EE_ITEMS_END, \
47 SID_CHAR_DLG_PREVIEW_STRING, SID_CHAR_DLG_PREVIEW_STRING
49 const USHORT nTitleWhichPairs
[] =
51 SCHATTR_TEXT_STACKED
, SCHATTR_TEXT_STACKED
, // 4 sch/schattr.hxx
52 SCHATTR_TEXT_DEGREES
,SCHATTR_TEXT_DEGREES
, // 53 sch/schattr.hxx
53 XATTR_LINE_FIRST
, XATTR_LINE_LAST
, // 1000 - 1016 svx/xdef.hxx
54 XATTR_FILL_FIRST
, XATTR_FILL_LAST
, // 1018 - 1046 svx/xdef.hxx
55 SDRATTR_SHADOW_FIRST
, SDRATTR_SHADOW_LAST
, // 1067 - 1078 svx/svddef.hxx
60 const USHORT nAxisWhichPairs
[] =
62 XATTR_LINE_FIRST
, XATTR_LINE_LAST
, // 1000 - 1016 svx/xdef.hxx
64 SID_ATTR_NUMBERFORMAT_VALUE
, SID_ATTR_NUMBERFORMAT_VALUE
, // 10585 - 10585 svx/svxids.hrc
65 SID_ATTR_NUMBERFORMAT_SOURCE
, SID_ATTR_NUMBERFORMAT_SOURCE
, // 11432 svx/svxids.hrc
66 SCHATTR_AXISTYPE
, SCHATTR_AXISTYPE
, // 39 sch/schattr.hxx
67 SCHATTR_TEXT_START
, SCHATTR_TEXT_END
, // 4 - 6 sch/schattr.hxx
68 SCHATTR_TEXT_DEGREES
,SCHATTR_TEXT_DEGREES
, // 53 sch/schattr.hxx
69 SCHATTR_TEXT_OVERLAP
, SCHATTR_TEXT_OVERLAP
, // 54 sch/schattr.hxx
70 SCHATTR_AXIS_START
, SCHATTR_AXIS_END
, // 70 - 95 sch/schattr.hxx
71 SCHATTR_TEXTBREAK
, SCHATTR_TEXTBREAK
, // 30587 sch/schattr.hxx
75 const USHORT nAllAxisWhichPairs
[] =
77 XATTR_LINE_FIRST
, XATTR_LINE_LAST
, // 1000 - 1016 svx/xdef.hxx
79 SCHATTR_TEXT_START
, SCHATTR_TEXT_END
, // 4 - 6 sch/schattr.hxx
80 SCHATTR_TEXT_DEGREES
,SCHATTR_TEXT_DEGREES
, // 53 sch/schattr.hxx
81 SCHATTR_TEXT_OVERLAP
, SCHATTR_TEXT_OVERLAP
, // 54 sch/schattr.hxx
82 SCHATTR_AXIS_SHOWDESCR
, SCHATTR_AXIS_SHOWDESCR
, // 85 sch/schattr.hxx
83 SCHATTR_TEXTBREAK
, SCHATTR_TEXTBREAK
, // 30587 sch/schattr.hxx
87 const USHORT nGridWhichPairs
[] =
89 XATTR_LINE_FIRST
, XATTR_LINE_LAST
, // 1000 - 1016 svx/xdef.hxx
93 const USHORT nChartWhichPairs
[] =
95 SCHATTR_STYLE_START
,SCHATTR_STYLE_END
, // 59 - 68 sch/schattr.hxx
99 const USHORT nDiagramAreaWhichPairs
[] =
101 XATTR_LINE_FIRST
, XATTR_LINE_LAST
, // 1000 - 1016 svx/xdef.hxx
102 XATTR_FILL_FIRST
, XATTR_FILL_LAST
, // 1018 - 1046 svx/xdef.hxx
106 const USHORT nAreaAndChartWhichPairs
[] = // pairs for chart AND area
108 XATTR_LINE_FIRST
, XATTR_LINE_LAST
, // 1000 - 1016 svx/xdef.hxx
109 XATTR_FILL_FIRST
, XATTR_FILL_LAST
, // 1018 - 1046 svx/xdef.hxx
110 SCHATTR_STYLE_START
,SCHATTR_STYLE_END
, // 59 - 68 sch/schattr.hxx
114 const USHORT nLegendWhichPairs
[] =
116 XATTR_LINE_FIRST
, XATTR_LINE_LAST
, // 1000 - 1016 svx/xdef.hxx
117 XATTR_FILL_FIRST
, XATTR_FILL_LAST
, // 1018 - 1046 svx/xdef.hxx
118 SDRATTR_SHADOW_FIRST
, SDRATTR_SHADOW_LAST
, // 1067 - 1078 svx/svddef.hxx
119 CHARACTER_WHICHPAIRS
,
120 SCHATTR_LEGEND_START
, SCHATTR_LEGEND_END
, // 3 - 3 sch/schattr.hxx
124 const USHORT nDataLabelWhichPairs
[] =
126 SCHATTR_DATADESCR_START
, SCHATTR_DATADESCR_END
,
127 SID_ATTR_NUMBERFORMAT_VALUE
, SID_ATTR_NUMBERFORMAT_INFO
, /* 10585 - 10585 svx/svxids.hrc */ \
128 SID_ATTR_NUMBERFORMAT_SOURCE
, SID_ATTR_NUMBERFORMAT_SOURCE
, /* 11432 svx/svxids.hrc */ \
129 SCHATTR_PERCENT_NUMBERFORMAT_VALUE
, SCHATTR_PERCENT_NUMBERFORMAT_VALUE
, /* 40 sch/schattr.hxx*/ \
130 SCHATTR_PERCENT_NUMBERFORMAT_SOURCE
, SCHATTR_PERCENT_NUMBERFORMAT_SOURCE
, /* 41 sch/schattr.hxx*/ \
131 SCHATTR_TEXT_DEGREES
,SCHATTR_TEXT_DEGREES
,
132 EE_PARA_WRITINGDIR
,EE_PARA_WRITINGDIR
,
136 #define CHART_POINT_WHICHPAIRS \
137 XATTR_LINE_FIRST, XATTR_LINE_LAST, /* 1000 - 1016 svx/xdef.hxx */ \
138 XATTR_FILL_FIRST, XATTR_FILL_LAST, /* 1018 - 1046 svx/xdef.hxx */ \
139 EE_ITEMS_START, EE_ITEMS_END, /* 3994 - 4037 svx/eeitem.hxx */ \
140 SID_CHAR_DLG_PREVIEW_STRING, SID_CHAR_DLG_PREVIEW_STRING, \
141 SCHATTR_DATADESCR_START, SCHATTR_DATADESCR_END, /* 1 - 2 sch/schattr.hxx*/ \
142 SID_ATTR_NUMBERFORMAT_VALUE, SID_ATTR_NUMBERFORMAT_INFO, /* 10585 - 10585 svx/svxids.hrc */ \
143 SID_ATTR_NUMBERFORMAT_SOURCE, SID_ATTR_NUMBERFORMAT_SOURCE, /* 11432 svx/svxids.hrc */ \
144 SCHATTR_PERCENT_NUMBERFORMAT_VALUE, SCHATTR_PERCENT_NUMBERFORMAT_VALUE, /* 40 sch/schattr.hxx*/ \
145 SCHATTR_PERCENT_NUMBERFORMAT_SOURCE, SCHATTR_PERCENT_NUMBERFORMAT_SOURCE, /* 41 sch/schattr.hxx*/ \
146 SCHATTR_TEXT_DEGREES, SCHATTR_TEXT_DEGREES, \
147 SCHATTR_STYLE_START,SCHATTR_STYLE_END, /* 59 - 68 sch/schattr.hxx*/ \
148 SCHATTR_SYMBOL_BRUSH,SCHATTR_SYMBOL_BRUSH, /* 94 sch/schattr.hxx*/ \
149 SCHATTR_SYMBOL_SIZE,SCHATTR_SYMBOL_SIZE, /* 97 sch/schattr.hxx*/ \
150 SDRATTR_3D_FIRST, SDRATTR_3D_LAST /* 1244 - 1334 svx/svddef.hxx */
152 const USHORT nDataPointWhichPairs
[] =
154 CHART_POINT_WHICHPAIRS
,
158 #define CHART_SERIES_OPTIONS_WHICHPAIRS \
159 SCHATTR_AXIS,SCHATTR_AXIS, /* 69 sch/schattr.hxx*/ \
160 SCHATTR_BAR_OVERLAP,SCHATTR_BAR_CONNECT, /* 98 - 100 (incl. SCHATTR_GAPWIDTH) */ \
161 SCHATTR_GROUP_BARS_PER_AXIS,SCHATTR_AXIS_FOR_ALL_SERIES, \
162 SCHATTR_STARTING_ANGLE,SCHATTR_STARTING_ANGLE, \
163 SCHATTR_CLOCKWISE,SCHATTR_CLOCKWISE, \
164 SCHATTR_MISSING_VALUE_TREATMENT,SCHATTR_MISSING_VALUE_TREATMENT, \
165 SCHATTR_AVAILABLE_MISSING_VALUE_TREATMENTS,SCHATTR_AVAILABLE_MISSING_VALUE_TREATMENTS, \
166 SCHATTR_INCLUDE_HIDDEN_CELLS,SCHATTR_INCLUDE_HIDDEN_CELLS
168 const USHORT nSeriesOptionsWhichPairs
[] =
170 CHART_SERIES_OPTIONS_WHICHPAIRS
,
174 const USHORT nRowWhichPairs
[] =
176 CHART_POINT_WHICHPAIRS
,
177 CHART_SERIES_OPTIONS_WHICHPAIRS
,
181 const USHORT nAreaWhichPairs
[] =
183 XATTR_LINE_FIRST
, XATTR_LINE_LAST
, // 1000 - 1016 svx/xdef.hxx
184 XATTR_FILL_FIRST
, XATTR_FILL_LAST
, // 1000 - 1016 svx/xdef.hxx
185 SDRATTR_SHADOW_FIRST
, SDRATTR_SHADOW_LAST
, // 1067 - 1078 svx/svddef.hxx
189 const USHORT nTextWhichPairs
[] =
191 CHARACTER_WHICHPAIRS
,
192 SCHATTR_TEXT_STACKED
, SCHATTR_TEXT_STACKED
, // 4 sch/schattr.hxx
193 SCHATTR_TEXT_DEGREES
,SCHATTR_TEXT_DEGREES
, // 53 sch/schattr.hxx
197 const USHORT nTextOrientWhichPairs
[] =
199 CHARACTER_WHICHPAIRS
,
200 SCHATTR_TEXT_STACKED
, SCHATTR_TEXT_STACKED
, // 4 sch/schattr.hxx
201 SCHATTR_TEXT_DEGREES
,SCHATTR_TEXT_DEGREES
, // 53 sch/schattr.hxx
205 const USHORT nStatWhichPairs
[]=
207 SCHATTR_STAT_START
, SCHATTR_STAT_END
, // 45 - 52 sch/schattr.hxx
208 SCHATTR_REGRESSION_START
, SCHATTR_REGRESSION_END
, // 108 - 109
212 const USHORT nErrorBarWhichPairs
[]=
214 SCHATTR_STAT_START
, SCHATTR_STAT_END
, // 45 - 52 sch/schattr.hxx
215 XATTR_LINE_FIRST
, XATTR_LINE_LAST
, // 1000 - 1016 svx/xdef.hxx
219 // for CharacterProperties
221 const USHORT nCharacterPropertyWhichPairs
[] =
223 CHARACTER_WHICHPAIRS
,
227 const USHORT nLinePropertyWhichPairs
[] =
229 XATTR_LINE_FIRST
, XATTR_LINE_LAST
, // 1000 - 1016 svx/xdef.hxx
233 const USHORT nFillPropertyWhichPairs
[] =
235 XATTR_FILL_FIRST
, XATTR_FILL_LAST
, // 1000 - 1016 svx/xdef.hxx
236 SDRATTR_SHADOW_FIRST
, SDRATTR_SHADOW_LAST
, // 1067 - 1078 svx/svddef.hxx
240 const USHORT nLineAndFillPropertyWhichPairs
[] =
242 XATTR_LINE_FIRST
, XATTR_LINE_LAST
, // 1000 - 1016 svx/xdef.hxx
243 XATTR_FILL_FIRST
, XATTR_FILL_LAST
, // 1000 - 1016 svx/xdef.hxx
244 SDRATTR_SHADOW_FIRST
, SDRATTR_SHADOW_LAST
, // 1067 - 1078 svx/svddef.hxx
248 const USHORT nChartStyleWhichPairs
[] =
250 SCHATTR_DIAGRAM_STYLE
, SCHATTR_DIAGRAM_STYLE
,
251 SCHATTR_STYLE_SHAPE
, SCHATTR_STYLE_SHAPE
,
252 SCHATTR_NUM_OF_LINES_FOR_BAR
, SCHATTR_NUM_OF_LINES_FOR_BAR
,
253 SCHATTR_SPLINE_ORDER
, SCHATTR_SPLINE_ORDER
,
254 SCHATTR_SPLINE_RESOLUTION
, SCHATTR_SPLINE_RESOLUTION
,
258 const USHORT nRegressionCurveWhichPairs
[] =
260 SCHATTR_REGRESSION_START
, SCHATTR_REGRESSION_END
, // 108 - 109
261 XATTR_LINE_FIRST
, XATTR_LINE_LAST
, // 1000 - 1016 svx/xdef.hxx
265 const USHORT nRegEquationWhichPairs
[] =
267 XATTR_LINE_FIRST
, XATTR_LINE_LAST
, // 1000 - 1016 svx/xdef.hxx
268 XATTR_FILL_FIRST
, XATTR_FILL_LAST
, // 1018 - 1046 svx/xdef.hxx
269 SDRATTR_SHADOW_FIRST
, SDRATTR_SHADOW_LAST
, // 1067 - 1078 svx/svddef.hxx
270 CHARACTER_WHICHPAIRS
,
271 SID_ATTR_NUMBERFORMAT_VALUE
, SID_ATTR_NUMBERFORMAT_VALUE
, // 10585 - 10585 svx/svxids.hrc
275 } // anonymous namespace
277 // CHART_SCHWHICHPAIRS_HXX