1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef CHART_SCHWHICHPAIRS_HXX
28 #define CHART_SCHWHICHPAIRS_HXX
29 
30 #ifndef _SVX_SVXIDS_HRC
31 #include <svx/svxids.hrc>
32 #endif
33 #include <svx/xdef.hxx>
34 #include <svx/svddef.hxx>
35 #include <editeng/eeitem.hxx>
36 
37 #include "chartview/ChartSfxItemIds.hxx"
38 
39 namespace
40 {
41 
42 #define CHARACTER_WHICHPAIRS \
43     EE_ITEMS_START, EE_ITEMS_END,  \
44     SID_CHAR_DLG_PREVIEW_STRING, SID_CHAR_DLG_PREVIEW_STRING
45 
46 const sal_uInt16 nTitleWhichPairs[] =
47 {
48 	SCHATTR_TEXT_START, SCHATTR_TEXT_END,
49     XATTR_LINE_FIRST, XATTR_LINE_LAST,              //  1000 -  1016  svx/xdef.hxx
50 	XATTR_FILL_FIRST, XATTR_FILL_LAST,              //  1018 -  1046  svx/xdef.hxx
51 	SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST,      //  1067 -  1078  svx/svddef.hxx
52     CHARACTER_WHICHPAIRS,
53 	0
54 };
55 
56 const sal_uInt16 nAxisWhichPairs[] =
57 {
58 	XATTR_LINE_FIRST, XATTR_LINE_LAST,							//  1000 -  1016  svx/xdef.hxx
59     CHARACTER_WHICHPAIRS,
60 	SID_ATTR_NUMBERFORMAT_VALUE, SID_ATTR_NUMBERFORMAT_VALUE,	// 10585 - 10585  svx/svxids.hrc
61 	SID_ATTR_NUMBERFORMAT_SOURCE, SID_ATTR_NUMBERFORMAT_SOURCE, // 11432          svx/svxids.hrc
62 	SCHATTR_AXIS_START, SCHATTR_AXIS_END,
63     SCHATTR_TEXT_START, SCHATTR_TEXT_END,
64 	0
65 };
66 
67 const sal_uInt16 nAllAxisWhichPairs[] =
68 {
69 	XATTR_LINE_FIRST, XATTR_LINE_LAST,
70     CHARACTER_WHICHPAIRS,
71     SCHATTR_AXIS_LABEL_START, SCHATTR_AXIS_LABEL_END,
72 	SCHATTR_TEXT_START, SCHATTR_TEXT_END,
73 	0
74 };
75 
76 const sal_uInt16 nGridWhichPairs[] =
77 {
78 	XATTR_LINE_FIRST, XATTR_LINE_LAST,				//  1000 -  1016  svx/xdef.hxx
79     0
80 };
81 
82 const sal_uInt16 nLegendWhichPairs[] =
83 {
84 	XATTR_LINE_FIRST, XATTR_LINE_LAST,				//  1000 -  1016  svx/xdef.hxx
85 	XATTR_FILL_FIRST, XATTR_FILL_LAST,				//  1018 -  1046  svx/xdef.hxx
86 	SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST,      //  1067 -  1078  svx/svddef.hxx
87     CHARACTER_WHICHPAIRS,
88 	SCHATTR_LEGEND_START, SCHATTR_LEGEND_END,		//     3 -     3  sch/schattr.hxx
89 	0
90 };
91 
92 const sal_uInt16 nDataLabelWhichPairs[] =
93 {
94 	SCHATTR_DATADESCR_START, SCHATTR_DATADESCR_END,
95     SID_ATTR_NUMBERFORMAT_VALUE, SID_ATTR_NUMBERFORMAT_INFO,	/* 10585 - 10585  svx/svxids.hrc */ \
96     SID_ATTR_NUMBERFORMAT_SOURCE, SID_ATTR_NUMBERFORMAT_SOURCE, /* 11432          svx/svxids.hrc */ \
97     SCHATTR_TEXT_DEGREES,SCHATTR_TEXT_DEGREES,
98     EE_PARA_WRITINGDIR,EE_PARA_WRITINGDIR,
99     0
100 };
101 
102 #define CHART_POINT_WHICHPAIRS 	\
103 	XATTR_LINE_FIRST, XATTR_LINE_LAST,				/*  1000 -  1016  svx/xdef.hxx	 */	\
104 	XATTR_FILL_FIRST, XATTR_FILL_LAST,				/*  1018 -  1046  svx/xdef.hxx	 */	\
105     EE_ITEMS_START, EE_ITEMS_END,					/*  3994 -  4037  editeng/eeitem.hxx */	\
106     SID_CHAR_DLG_PREVIEW_STRING, SID_CHAR_DLG_PREVIEW_STRING, \
107 	SCHATTR_DATADESCR_START, SCHATTR_DATADESCR_END,	/*     1 -     2  sch/schattr.hxx*/	\
108     SID_ATTR_NUMBERFORMAT_VALUE, SID_ATTR_NUMBERFORMAT_INFO,	/* 10585 - 10585  svx/svxids.hrc */ \
109     SID_ATTR_NUMBERFORMAT_SOURCE, SID_ATTR_NUMBERFORMAT_SOURCE, /* 11432          svx/svxids.hrc */ \
110     SCHATTR_TEXT_DEGREES, SCHATTR_TEXT_DEGREES, \
111     SCHATTR_STYLE_START,SCHATTR_STYLE_END,			/*    59 -    68  sch/schattr.hxx*/	\
112 	SCHATTR_SYMBOL_BRUSH,SCHATTR_SYMBOL_BRUSH,		/*    94          sch/schattr.hxx*/	\
113 	SCHATTR_SYMBOL_SIZE,SCHATTR_SYMBOL_SIZE,        /*    97          sch/schattr.hxx*/	\
114 	SDRATTR_3D_FIRST, SDRATTR_3D_LAST				/*  1244 -  1334  svx/svddef.hxx */
115 
116 const sal_uInt16 nDataPointWhichPairs[] =
117 {
118     CHART_POINT_WHICHPAIRS,
119     0
120 };
121 
122 #define CHART_SERIES_OPTIONS_WHICHPAIRS \
123     SCHATTR_AXIS,SCHATTR_AXIS,						/*    69          sch/schattr.hxx*/	\
124     SCHATTR_BAR_OVERLAP,SCHATTR_BAR_CONNECT,         /*    98 - 100 (incl. SCHATTR_GAPWIDTH) */  \
125     SCHATTR_GROUP_BARS_PER_AXIS,SCHATTR_AXIS_FOR_ALL_SERIES, \
126     SCHATTR_STARTING_ANGLE,SCHATTR_STARTING_ANGLE, \
127     SCHATTR_CLOCKWISE,SCHATTR_CLOCKWISE, \
128     SCHATTR_MISSING_VALUE_TREATMENT,SCHATTR_MISSING_VALUE_TREATMENT, \
129     SCHATTR_AVAILABLE_MISSING_VALUE_TREATMENTS,SCHATTR_AVAILABLE_MISSING_VALUE_TREATMENTS, \
130     SCHATTR_INCLUDE_HIDDEN_CELLS,SCHATTR_INCLUDE_HIDDEN_CELLS
131 
132 const sal_uInt16 nSeriesOptionsWhichPairs[] =
133 {
134     CHART_SERIES_OPTIONS_WHICHPAIRS,
135     0
136 };
137 
138 const sal_uInt16 nRowWhichPairs[] =
139 {
140 	CHART_POINT_WHICHPAIRS,
141     CHART_SERIES_OPTIONS_WHICHPAIRS,
142     0
143 };
144 
145 const sal_uInt16 nAreaWhichPairs[] =
146 {
147 	XATTR_LINE_FIRST, XATTR_LINE_LAST,				//  1000 -  1016  svx/xdef.hxx
148 	XATTR_FILL_FIRST, XATTR_FILL_LAST,				//  1000 -  1016  svx/xdef.hxx
149 	SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST,		//  1067 -  1078  svx/svddef.hxx
150 	0
151 };
152 
153 const sal_uInt16 nTextWhichPairs[] =
154 {
155     CHARACTER_WHICHPAIRS,
156     SCHATTR_TEXT_START, SCHATTR_TEXT_END,
157 	0
158 };
159 
160 const sal_uInt16 nTextOrientWhichPairs[] =
161 {
162     CHARACTER_WHICHPAIRS,
163 	SCHATTR_TEXT_START, SCHATTR_TEXT_END,
164 	0
165 };
166 
167 const sal_uInt16 nStatWhichPairs[]=
168 {
169 	SCHATTR_STAT_START, SCHATTR_STAT_END,			//    45 -    52  sch/schattr.hxx
170     SCHATTR_REGRESSION_START, SCHATTR_REGRESSION_END, // 108 -   109
171     0
172 };
173 
174 const sal_uInt16 nErrorBarWhichPairs[]=
175 {
176 	SCHATTR_STAT_START, SCHATTR_STAT_END,			//    45 -    52  sch/schattr.hxx
177 	XATTR_LINE_FIRST, XATTR_LINE_LAST,				//  1000 -  1016  svx/xdef.hxx
178     0
179 };
180 
181 // for CharacterProperties
182 
183 const sal_uInt16 nCharacterPropertyWhichPairs[] =
184 {
185     CHARACTER_WHICHPAIRS,
186     0
187 };
188 
189 const sal_uInt16 nLinePropertyWhichPairs[] =
190 {
191 	XATTR_LINE_FIRST, XATTR_LINE_LAST,				//  1000 -  1016  svx/xdef.hxx
192     0
193 };
194 
195 const sal_uInt16 nFillPropertyWhichPairs[] =
196 {
197 	XATTR_FILL_FIRST, XATTR_FILL_LAST,				//  1000 -  1016  svx/xdef.hxx
198 	SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST,		//  1067 -  1078  svx/svddef.hxx
199     0
200 };
201 
202 const sal_uInt16 nLineAndFillPropertyWhichPairs[] =
203 {
204 	XATTR_LINE_FIRST, XATTR_LINE_LAST,				//  1000 -  1016  svx/xdef.hxx
205 	XATTR_FILL_FIRST, XATTR_FILL_LAST,				//  1000 -  1016  svx/xdef.hxx
206 	SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST,		//  1067 -  1078  svx/svddef.hxx
207     0
208 };
209 
210 const sal_uInt16 nChartStyleWhichPairs[] =
211 {
212     SCHATTR_DIAGRAM_STYLE,                SCHATTR_DIAGRAM_STYLE,
213     SCHATTR_STYLE_SHAPE,                  SCHATTR_STYLE_SHAPE,
214     SCHATTR_NUM_OF_LINES_FOR_BAR,         SCHATTR_NUM_OF_LINES_FOR_BAR,
215     SCHATTR_SPLINE_ORDER,                 SCHATTR_SPLINE_ORDER,
216     SCHATTR_SPLINE_RESOLUTION,            SCHATTR_SPLINE_RESOLUTION,
217     0
218 };
219 
220 const sal_uInt16 nRegressionCurveWhichPairs[] =
221 {
222     SCHATTR_REGRESSION_START, SCHATTR_REGRESSION_END, // 108 -   109
223 	XATTR_LINE_FIRST, XATTR_LINE_LAST,				//  1000 -  1016  svx/xdef.hxx
224     0
225 };
226 
227 const sal_uInt16 nRegEquationWhichPairs[] =
228 {
229     XATTR_LINE_FIRST, XATTR_LINE_LAST,              //  1000 -  1016  svx/xdef.hxx
230 	XATTR_FILL_FIRST, XATTR_FILL_LAST,              //  1018 -  1046  svx/xdef.hxx
231 	SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST,      //  1067 -  1078  svx/svddef.hxx
232     CHARACTER_WHICHPAIRS,
233 	SID_ATTR_NUMBERFORMAT_VALUE, SID_ATTR_NUMBERFORMAT_VALUE,	// 10585 - 10585  svx/svxids.hrc
234 	0
235 };
236 
237 } //  anonymous namespace
238 
239 // CHART_SCHWHICHPAIRS_HXX
240 #endif
241