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 CHART_SCHWHICHPAIRS_HXX 24 #define CHART_SCHWHICHPAIRS_HXX 25 26 #ifndef _SVX_SVXIDS_HRC 27 #include <svx/svxids.hrc> 28 #endif 29 #include <svx/xdef.hxx> 30 #include <svx/svddef.hxx> 31 #include <editeng/eeitem.hxx> 32 33 #include "chartview/ChartSfxItemIds.hxx" 34 35 namespace 36 { 37 38 #define CHARACTER_WHICHPAIRS \ 39 EE_ITEMS_START, EE_ITEMS_END, \ 40 SID_CHAR_DLG_PREVIEW_STRING, SID_CHAR_DLG_PREVIEW_STRING 41 42 const sal_uInt16 nTitleWhichPairs[] = 43 { 44 SCHATTR_TEXT_START, SCHATTR_TEXT_END, 45 XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx 46 XATTR_FILL_FIRST, XATTR_FILL_LAST, // 1018 - 1046 svx/xdef.hxx 47 SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST, // 1067 - 1078 svx/svddef.hxx 48 CHARACTER_WHICHPAIRS, 49 0 50 }; 51 52 const sal_uInt16 nAxisWhichPairs[] = 53 { 54 XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx 55 CHARACTER_WHICHPAIRS, 56 SID_ATTR_NUMBERFORMAT_VALUE, SID_ATTR_NUMBERFORMAT_VALUE, // 10585 - 10585 svx/svxids.hrc 57 SID_ATTR_NUMBERFORMAT_SOURCE, SID_ATTR_NUMBERFORMAT_SOURCE, // 11432 svx/svxids.hrc 58 SCHATTR_AXIS_START, SCHATTR_AXIS_END, 59 SCHATTR_TEXT_START, SCHATTR_TEXT_END, 60 0 61 }; 62 63 const sal_uInt16 nAllAxisWhichPairs[] = 64 { 65 XATTR_LINE_FIRST, XATTR_LINE_LAST, 66 CHARACTER_WHICHPAIRS, 67 SCHATTR_AXIS_LABEL_START, SCHATTR_AXIS_LABEL_END, 68 SCHATTR_TEXT_START, SCHATTR_TEXT_END, 69 0 70 }; 71 72 const sal_uInt16 nGridWhichPairs[] = 73 { 74 XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx 75 0 76 }; 77 78 const sal_uInt16 nLegendWhichPairs[] = 79 { 80 XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx 81 XATTR_FILL_FIRST, XATTR_FILL_LAST, // 1018 - 1046 svx/xdef.hxx 82 SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST, // 1067 - 1078 svx/svddef.hxx 83 CHARACTER_WHICHPAIRS, 84 SCHATTR_LEGEND_START, SCHATTR_LEGEND_END, // 3 - 3 sch/schattr.hxx 85 0 86 }; 87 88 const sal_uInt16 nDataLabelWhichPairs[] = 89 { 90 SCHATTR_DATADESCR_START, SCHATTR_DATADESCR_END, 91 SID_ATTR_NUMBERFORMAT_VALUE, SID_ATTR_NUMBERFORMAT_INFO, /* 10585 - 10585 svx/svxids.hrc */ \ 92 SID_ATTR_NUMBERFORMAT_SOURCE, SID_ATTR_NUMBERFORMAT_SOURCE, /* 11432 svx/svxids.hrc */ \ 93 SCHATTR_TEXT_DEGREES,SCHATTR_TEXT_DEGREES, 94 EE_PARA_WRITINGDIR,EE_PARA_WRITINGDIR, 95 0 96 }; 97 98 #define CHART_POINT_WHICHPAIRS \ 99 XATTR_LINE_FIRST, XATTR_LINE_LAST, /* 1000 - 1016 svx/xdef.hxx */ \ 100 XATTR_FILL_FIRST, XATTR_FILL_LAST, /* 1018 - 1046 svx/xdef.hxx */ \ 101 EE_ITEMS_START, EE_ITEMS_END, /* 3994 - 4037 editeng/eeitem.hxx */ \ 102 SID_CHAR_DLG_PREVIEW_STRING, SID_CHAR_DLG_PREVIEW_STRING, \ 103 SCHATTR_DATADESCR_START, SCHATTR_DATADESCR_END, /* 1 - 2 sch/schattr.hxx*/ \ 104 SID_ATTR_NUMBERFORMAT_VALUE, SID_ATTR_NUMBERFORMAT_INFO, /* 10585 - 10585 svx/svxids.hrc */ \ 105 SID_ATTR_NUMBERFORMAT_SOURCE, SID_ATTR_NUMBERFORMAT_SOURCE, /* 11432 svx/svxids.hrc */ \ 106 SCHATTR_TEXT_DEGREES, SCHATTR_TEXT_DEGREES, \ 107 SCHATTR_STYLE_START,SCHATTR_STYLE_END, /* 59 - 68 sch/schattr.hxx*/ \ 108 SCHATTR_SYMBOL_BRUSH,SCHATTR_SYMBOL_BRUSH, /* 94 sch/schattr.hxx*/ \ 109 SCHATTR_SYMBOL_SIZE,SCHATTR_SYMBOL_SIZE, /* 97 sch/schattr.hxx*/ \ 110 SDRATTR_3D_FIRST, SDRATTR_3D_LAST /* 1244 - 1334 svx/svddef.hxx */ 111 112 const sal_uInt16 nDataPointWhichPairs[] = 113 { 114 CHART_POINT_WHICHPAIRS, 115 0 116 }; 117 118 #define CHART_SERIES_OPTIONS_WHICHPAIRS \ 119 SCHATTR_AXIS,SCHATTR_AXIS, /* 69 sch/schattr.hxx*/ \ 120 SCHATTR_BAR_OVERLAP,SCHATTR_BAR_CONNECT, /* 98 - 100 (incl. SCHATTR_GAPWIDTH) */ \ 121 SCHATTR_GROUP_BARS_PER_AXIS,SCHATTR_AXIS_FOR_ALL_SERIES, \ 122 SCHATTR_STARTING_ANGLE,SCHATTR_STARTING_ANGLE, \ 123 SCHATTR_CLOCKWISE,SCHATTR_CLOCKWISE, \ 124 SCHATTR_MISSING_VALUE_TREATMENT,SCHATTR_MISSING_VALUE_TREATMENT, \ 125 SCHATTR_AVAILABLE_MISSING_VALUE_TREATMENTS,SCHATTR_AVAILABLE_MISSING_VALUE_TREATMENTS, \ 126 SCHATTR_INCLUDE_HIDDEN_CELLS,SCHATTR_INCLUDE_HIDDEN_CELLS 127 128 const sal_uInt16 nSeriesOptionsWhichPairs[] = 129 { 130 CHART_SERIES_OPTIONS_WHICHPAIRS, 131 0 132 }; 133 134 const sal_uInt16 nRowWhichPairs[] = 135 { 136 CHART_POINT_WHICHPAIRS, 137 CHART_SERIES_OPTIONS_WHICHPAIRS, 138 0 139 }; 140 141 const sal_uInt16 nAreaWhichPairs[] = 142 { 143 XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx 144 XATTR_FILL_FIRST, XATTR_FILL_LAST, // 1000 - 1016 svx/xdef.hxx 145 SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST, // 1067 - 1078 svx/svddef.hxx 146 0 147 }; 148 149 const sal_uInt16 nTextWhichPairs[] = 150 { 151 CHARACTER_WHICHPAIRS, 152 SCHATTR_TEXT_START, SCHATTR_TEXT_END, 153 0 154 }; 155 156 const sal_uInt16 nTextOrientWhichPairs[] = 157 { 158 CHARACTER_WHICHPAIRS, 159 SCHATTR_TEXT_START, SCHATTR_TEXT_END, 160 0 161 }; 162 163 const sal_uInt16 nStatWhichPairs[]= 164 { 165 SCHATTR_STAT_START, SCHATTR_STAT_END, // 45 - 52 sch/schattr.hxx 166 SCHATTR_REGRESSION_START, SCHATTR_REGRESSION_END, // 108 - 109 167 0 168 }; 169 170 const sal_uInt16 nErrorBarWhichPairs[]= 171 { 172 SCHATTR_STAT_START, SCHATTR_STAT_END, // 45 - 52 sch/schattr.hxx 173 XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx 174 0 175 }; 176 177 // for CharacterProperties 178 179 const sal_uInt16 nCharacterPropertyWhichPairs[] = 180 { 181 CHARACTER_WHICHPAIRS, 182 0 183 }; 184 185 const sal_uInt16 nLinePropertyWhichPairs[] = 186 { 187 XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx 188 0 189 }; 190 191 const sal_uInt16 nFillPropertyWhichPairs[] = 192 { 193 XATTR_FILL_FIRST, XATTR_FILL_LAST, // 1000 - 1016 svx/xdef.hxx 194 SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST, // 1067 - 1078 svx/svddef.hxx 195 0 196 }; 197 198 const sal_uInt16 nLineAndFillPropertyWhichPairs[] = 199 { 200 XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx 201 XATTR_FILL_FIRST, XATTR_FILL_LAST, // 1000 - 1016 svx/xdef.hxx 202 SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST, // 1067 - 1078 svx/svddef.hxx 203 0 204 }; 205 206 const sal_uInt16 nChartStyleWhichPairs[] = 207 { 208 SCHATTR_DIAGRAM_STYLE, SCHATTR_DIAGRAM_STYLE, 209 SCHATTR_STYLE_SHAPE, SCHATTR_STYLE_SHAPE, 210 SCHATTR_NUM_OF_LINES_FOR_BAR, SCHATTR_NUM_OF_LINES_FOR_BAR, 211 SCHATTR_SPLINE_ORDER, SCHATTR_SPLINE_ORDER, 212 SCHATTR_SPLINE_RESOLUTION, SCHATTR_SPLINE_RESOLUTION, 213 0 214 }; 215 216 const sal_uInt16 nRegressionCurveWhichPairs[] = 217 { 218 SCHATTR_REGRESSION_START, SCHATTR_REGRESSION_END, // 108 - 109 219 XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx 220 0 221 }; 222 223 const sal_uInt16 nRegEquationWhichPairs[] = 224 { 225 XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx 226 XATTR_FILL_FIRST, XATTR_FILL_LAST, // 1018 - 1046 svx/xdef.hxx 227 SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST, // 1067 - 1078 svx/svddef.hxx 228 CHARACTER_WHICHPAIRS, 229 SID_ATTR_NUMBERFORMAT_VALUE, SID_ATTR_NUMBERFORMAT_VALUE, // 10585 - 10585 svx/svxids.hrc 230 0 231 }; 232 233 } // anonymous namespace 234 235 // CHART_SCHWHICHPAIRS_HXX 236 #endif 237