1*de7b3f82SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*de7b3f82SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*de7b3f82SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*de7b3f82SAndrew Rist * distributed with this work for additional information 6*de7b3f82SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*de7b3f82SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*de7b3f82SAndrew Rist * "License"); you may not use this file except in compliance 9*de7b3f82SAndrew Rist * with the License. You may obtain a copy of the License at 10*de7b3f82SAndrew Rist * 11*de7b3f82SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*de7b3f82SAndrew Rist * 13*de7b3f82SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*de7b3f82SAndrew Rist * software distributed under the License is distributed on an 15*de7b3f82SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*de7b3f82SAndrew Rist * KIND, either express or implied. See the License for the 17*de7b3f82SAndrew Rist * specific language governing permissions and limitations 18*de7b3f82SAndrew Rist * under the License. 19*de7b3f82SAndrew Rist * 20*de7b3f82SAndrew Rist *************************************************************/ 21*de7b3f82SAndrew Rist 22*de7b3f82SAndrew Rist 23cdf0e10cSrcweir #ifndef CHART_SCHWHICHPAIRS_HXX 24cdf0e10cSrcweir #define CHART_SCHWHICHPAIRS_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir #ifndef _SVX_SVXIDS_HRC 27cdf0e10cSrcweir #include <svx/svxids.hrc> 28cdf0e10cSrcweir #endif 29cdf0e10cSrcweir #include <svx/xdef.hxx> 30cdf0e10cSrcweir #include <svx/svddef.hxx> 31cdf0e10cSrcweir #include <editeng/eeitem.hxx> 32cdf0e10cSrcweir 33cdf0e10cSrcweir #include "chartview/ChartSfxItemIds.hxx" 34cdf0e10cSrcweir 35cdf0e10cSrcweir namespace 36cdf0e10cSrcweir { 37cdf0e10cSrcweir 38cdf0e10cSrcweir #define CHARACTER_WHICHPAIRS \ 39cdf0e10cSrcweir EE_ITEMS_START, EE_ITEMS_END, \ 40cdf0e10cSrcweir SID_CHAR_DLG_PREVIEW_STRING, SID_CHAR_DLG_PREVIEW_STRING 41cdf0e10cSrcweir 42cdf0e10cSrcweir const sal_uInt16 nTitleWhichPairs[] = 43cdf0e10cSrcweir { 44cdf0e10cSrcweir SCHATTR_TEXT_START, SCHATTR_TEXT_END, 45cdf0e10cSrcweir XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx 46cdf0e10cSrcweir XATTR_FILL_FIRST, XATTR_FILL_LAST, // 1018 - 1046 svx/xdef.hxx 47cdf0e10cSrcweir SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST, // 1067 - 1078 svx/svddef.hxx 48cdf0e10cSrcweir CHARACTER_WHICHPAIRS, 49cdf0e10cSrcweir 0 50cdf0e10cSrcweir }; 51cdf0e10cSrcweir 52cdf0e10cSrcweir const sal_uInt16 nAxisWhichPairs[] = 53cdf0e10cSrcweir { 54cdf0e10cSrcweir XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx 55cdf0e10cSrcweir CHARACTER_WHICHPAIRS, 56cdf0e10cSrcweir SID_ATTR_NUMBERFORMAT_VALUE, SID_ATTR_NUMBERFORMAT_VALUE, // 10585 - 10585 svx/svxids.hrc 57cdf0e10cSrcweir SID_ATTR_NUMBERFORMAT_SOURCE, SID_ATTR_NUMBERFORMAT_SOURCE, // 11432 svx/svxids.hrc 58cdf0e10cSrcweir SCHATTR_AXIS_START, SCHATTR_AXIS_END, 59cdf0e10cSrcweir SCHATTR_TEXT_START, SCHATTR_TEXT_END, 60cdf0e10cSrcweir 0 61cdf0e10cSrcweir }; 62cdf0e10cSrcweir 63cdf0e10cSrcweir const sal_uInt16 nAllAxisWhichPairs[] = 64cdf0e10cSrcweir { 65cdf0e10cSrcweir XATTR_LINE_FIRST, XATTR_LINE_LAST, 66cdf0e10cSrcweir CHARACTER_WHICHPAIRS, 67cdf0e10cSrcweir SCHATTR_AXIS_LABEL_START, SCHATTR_AXIS_LABEL_END, 68cdf0e10cSrcweir SCHATTR_TEXT_START, SCHATTR_TEXT_END, 69cdf0e10cSrcweir 0 70cdf0e10cSrcweir }; 71cdf0e10cSrcweir 72cdf0e10cSrcweir const sal_uInt16 nGridWhichPairs[] = 73cdf0e10cSrcweir { 74cdf0e10cSrcweir XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx 75cdf0e10cSrcweir 0 76cdf0e10cSrcweir }; 77cdf0e10cSrcweir 78cdf0e10cSrcweir const sal_uInt16 nLegendWhichPairs[] = 79cdf0e10cSrcweir { 80cdf0e10cSrcweir XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx 81cdf0e10cSrcweir XATTR_FILL_FIRST, XATTR_FILL_LAST, // 1018 - 1046 svx/xdef.hxx 82cdf0e10cSrcweir SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST, // 1067 - 1078 svx/svddef.hxx 83cdf0e10cSrcweir CHARACTER_WHICHPAIRS, 84cdf0e10cSrcweir SCHATTR_LEGEND_START, SCHATTR_LEGEND_END, // 3 - 3 sch/schattr.hxx 85cdf0e10cSrcweir 0 86cdf0e10cSrcweir }; 87cdf0e10cSrcweir 88cdf0e10cSrcweir const sal_uInt16 nDataLabelWhichPairs[] = 89cdf0e10cSrcweir { 90cdf0e10cSrcweir SCHATTR_DATADESCR_START, SCHATTR_DATADESCR_END, 91cdf0e10cSrcweir SID_ATTR_NUMBERFORMAT_VALUE, SID_ATTR_NUMBERFORMAT_INFO, /* 10585 - 10585 svx/svxids.hrc */ \ 92cdf0e10cSrcweir SID_ATTR_NUMBERFORMAT_SOURCE, SID_ATTR_NUMBERFORMAT_SOURCE, /* 11432 svx/svxids.hrc */ \ 93cdf0e10cSrcweir SCHATTR_TEXT_DEGREES,SCHATTR_TEXT_DEGREES, 94cdf0e10cSrcweir EE_PARA_WRITINGDIR,EE_PARA_WRITINGDIR, 95cdf0e10cSrcweir 0 96cdf0e10cSrcweir }; 97cdf0e10cSrcweir 98cdf0e10cSrcweir #define CHART_POINT_WHICHPAIRS \ 99cdf0e10cSrcweir XATTR_LINE_FIRST, XATTR_LINE_LAST, /* 1000 - 1016 svx/xdef.hxx */ \ 100cdf0e10cSrcweir XATTR_FILL_FIRST, XATTR_FILL_LAST, /* 1018 - 1046 svx/xdef.hxx */ \ 101cdf0e10cSrcweir EE_ITEMS_START, EE_ITEMS_END, /* 3994 - 4037 editeng/eeitem.hxx */ \ 102cdf0e10cSrcweir SID_CHAR_DLG_PREVIEW_STRING, SID_CHAR_DLG_PREVIEW_STRING, \ 103cdf0e10cSrcweir SCHATTR_DATADESCR_START, SCHATTR_DATADESCR_END, /* 1 - 2 sch/schattr.hxx*/ \ 104cdf0e10cSrcweir SID_ATTR_NUMBERFORMAT_VALUE, SID_ATTR_NUMBERFORMAT_INFO, /* 10585 - 10585 svx/svxids.hrc */ \ 105cdf0e10cSrcweir SID_ATTR_NUMBERFORMAT_SOURCE, SID_ATTR_NUMBERFORMAT_SOURCE, /* 11432 svx/svxids.hrc */ \ 106cdf0e10cSrcweir SCHATTR_TEXT_DEGREES, SCHATTR_TEXT_DEGREES, \ 107cdf0e10cSrcweir SCHATTR_STYLE_START,SCHATTR_STYLE_END, /* 59 - 68 sch/schattr.hxx*/ \ 108cdf0e10cSrcweir SCHATTR_SYMBOL_BRUSH,SCHATTR_SYMBOL_BRUSH, /* 94 sch/schattr.hxx*/ \ 109cdf0e10cSrcweir SCHATTR_SYMBOL_SIZE,SCHATTR_SYMBOL_SIZE, /* 97 sch/schattr.hxx*/ \ 110cdf0e10cSrcweir SDRATTR_3D_FIRST, SDRATTR_3D_LAST /* 1244 - 1334 svx/svddef.hxx */ 111cdf0e10cSrcweir 112cdf0e10cSrcweir const sal_uInt16 nDataPointWhichPairs[] = 113cdf0e10cSrcweir { 114cdf0e10cSrcweir CHART_POINT_WHICHPAIRS, 115cdf0e10cSrcweir 0 116cdf0e10cSrcweir }; 117cdf0e10cSrcweir 118cdf0e10cSrcweir #define CHART_SERIES_OPTIONS_WHICHPAIRS \ 119cdf0e10cSrcweir SCHATTR_AXIS,SCHATTR_AXIS, /* 69 sch/schattr.hxx*/ \ 120cdf0e10cSrcweir SCHATTR_BAR_OVERLAP,SCHATTR_BAR_CONNECT, /* 98 - 100 (incl. SCHATTR_GAPWIDTH) */ \ 121cdf0e10cSrcweir SCHATTR_GROUP_BARS_PER_AXIS,SCHATTR_AXIS_FOR_ALL_SERIES, \ 122cdf0e10cSrcweir SCHATTR_STARTING_ANGLE,SCHATTR_STARTING_ANGLE, \ 123cdf0e10cSrcweir SCHATTR_CLOCKWISE,SCHATTR_CLOCKWISE, \ 124cdf0e10cSrcweir SCHATTR_MISSING_VALUE_TREATMENT,SCHATTR_MISSING_VALUE_TREATMENT, \ 125cdf0e10cSrcweir SCHATTR_AVAILABLE_MISSING_VALUE_TREATMENTS,SCHATTR_AVAILABLE_MISSING_VALUE_TREATMENTS, \ 126cdf0e10cSrcweir SCHATTR_INCLUDE_HIDDEN_CELLS,SCHATTR_INCLUDE_HIDDEN_CELLS 127cdf0e10cSrcweir 128cdf0e10cSrcweir const sal_uInt16 nSeriesOptionsWhichPairs[] = 129cdf0e10cSrcweir { 130cdf0e10cSrcweir CHART_SERIES_OPTIONS_WHICHPAIRS, 131cdf0e10cSrcweir 0 132cdf0e10cSrcweir }; 133cdf0e10cSrcweir 134cdf0e10cSrcweir const sal_uInt16 nRowWhichPairs[] = 135cdf0e10cSrcweir { 136cdf0e10cSrcweir CHART_POINT_WHICHPAIRS, 137cdf0e10cSrcweir CHART_SERIES_OPTIONS_WHICHPAIRS, 138cdf0e10cSrcweir 0 139cdf0e10cSrcweir }; 140cdf0e10cSrcweir 141cdf0e10cSrcweir const sal_uInt16 nAreaWhichPairs[] = 142cdf0e10cSrcweir { 143cdf0e10cSrcweir XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx 144cdf0e10cSrcweir XATTR_FILL_FIRST, XATTR_FILL_LAST, // 1000 - 1016 svx/xdef.hxx 145cdf0e10cSrcweir SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST, // 1067 - 1078 svx/svddef.hxx 146cdf0e10cSrcweir 0 147cdf0e10cSrcweir }; 148cdf0e10cSrcweir 149cdf0e10cSrcweir const sal_uInt16 nTextWhichPairs[] = 150cdf0e10cSrcweir { 151cdf0e10cSrcweir CHARACTER_WHICHPAIRS, 152cdf0e10cSrcweir SCHATTR_TEXT_START, SCHATTR_TEXT_END, 153cdf0e10cSrcweir 0 154cdf0e10cSrcweir }; 155cdf0e10cSrcweir 156cdf0e10cSrcweir const sal_uInt16 nTextOrientWhichPairs[] = 157cdf0e10cSrcweir { 158cdf0e10cSrcweir CHARACTER_WHICHPAIRS, 159cdf0e10cSrcweir SCHATTR_TEXT_START, SCHATTR_TEXT_END, 160cdf0e10cSrcweir 0 161cdf0e10cSrcweir }; 162cdf0e10cSrcweir 163cdf0e10cSrcweir const sal_uInt16 nStatWhichPairs[]= 164cdf0e10cSrcweir { 165cdf0e10cSrcweir SCHATTR_STAT_START, SCHATTR_STAT_END, // 45 - 52 sch/schattr.hxx 166cdf0e10cSrcweir SCHATTR_REGRESSION_START, SCHATTR_REGRESSION_END, // 108 - 109 167cdf0e10cSrcweir 0 168cdf0e10cSrcweir }; 169cdf0e10cSrcweir 170cdf0e10cSrcweir const sal_uInt16 nErrorBarWhichPairs[]= 171cdf0e10cSrcweir { 172cdf0e10cSrcweir SCHATTR_STAT_START, SCHATTR_STAT_END, // 45 - 52 sch/schattr.hxx 173cdf0e10cSrcweir XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx 174cdf0e10cSrcweir 0 175cdf0e10cSrcweir }; 176cdf0e10cSrcweir 177cdf0e10cSrcweir // for CharacterProperties 178cdf0e10cSrcweir 179cdf0e10cSrcweir const sal_uInt16 nCharacterPropertyWhichPairs[] = 180cdf0e10cSrcweir { 181cdf0e10cSrcweir CHARACTER_WHICHPAIRS, 182cdf0e10cSrcweir 0 183cdf0e10cSrcweir }; 184cdf0e10cSrcweir 185cdf0e10cSrcweir const sal_uInt16 nLinePropertyWhichPairs[] = 186cdf0e10cSrcweir { 187cdf0e10cSrcweir XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx 188cdf0e10cSrcweir 0 189cdf0e10cSrcweir }; 190cdf0e10cSrcweir 191cdf0e10cSrcweir const sal_uInt16 nFillPropertyWhichPairs[] = 192cdf0e10cSrcweir { 193cdf0e10cSrcweir XATTR_FILL_FIRST, XATTR_FILL_LAST, // 1000 - 1016 svx/xdef.hxx 194cdf0e10cSrcweir SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST, // 1067 - 1078 svx/svddef.hxx 195cdf0e10cSrcweir 0 196cdf0e10cSrcweir }; 197cdf0e10cSrcweir 198cdf0e10cSrcweir const sal_uInt16 nLineAndFillPropertyWhichPairs[] = 199cdf0e10cSrcweir { 200cdf0e10cSrcweir XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx 201cdf0e10cSrcweir XATTR_FILL_FIRST, XATTR_FILL_LAST, // 1000 - 1016 svx/xdef.hxx 202cdf0e10cSrcweir SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST, // 1067 - 1078 svx/svddef.hxx 203cdf0e10cSrcweir 0 204cdf0e10cSrcweir }; 205cdf0e10cSrcweir 206cdf0e10cSrcweir const sal_uInt16 nChartStyleWhichPairs[] = 207cdf0e10cSrcweir { 208cdf0e10cSrcweir SCHATTR_DIAGRAM_STYLE, SCHATTR_DIAGRAM_STYLE, 209cdf0e10cSrcweir SCHATTR_STYLE_SHAPE, SCHATTR_STYLE_SHAPE, 210cdf0e10cSrcweir SCHATTR_NUM_OF_LINES_FOR_BAR, SCHATTR_NUM_OF_LINES_FOR_BAR, 211cdf0e10cSrcweir SCHATTR_SPLINE_ORDER, SCHATTR_SPLINE_ORDER, 212cdf0e10cSrcweir SCHATTR_SPLINE_RESOLUTION, SCHATTR_SPLINE_RESOLUTION, 213cdf0e10cSrcweir 0 214cdf0e10cSrcweir }; 215cdf0e10cSrcweir 216cdf0e10cSrcweir const sal_uInt16 nRegressionCurveWhichPairs[] = 217cdf0e10cSrcweir { 218cdf0e10cSrcweir SCHATTR_REGRESSION_START, SCHATTR_REGRESSION_END, // 108 - 109 219cdf0e10cSrcweir XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx 220cdf0e10cSrcweir 0 221cdf0e10cSrcweir }; 222cdf0e10cSrcweir 223cdf0e10cSrcweir const sal_uInt16 nRegEquationWhichPairs[] = 224cdf0e10cSrcweir { 225cdf0e10cSrcweir XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx 226cdf0e10cSrcweir XATTR_FILL_FIRST, XATTR_FILL_LAST, // 1018 - 1046 svx/xdef.hxx 227cdf0e10cSrcweir SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST, // 1067 - 1078 svx/svddef.hxx 228cdf0e10cSrcweir CHARACTER_WHICHPAIRS, 229cdf0e10cSrcweir SID_ATTR_NUMBERFORMAT_VALUE, SID_ATTR_NUMBERFORMAT_VALUE, // 10585 - 10585 svx/svxids.hrc 230cdf0e10cSrcweir 0 231cdf0e10cSrcweir }; 232cdf0e10cSrcweir 233cdf0e10cSrcweir } // anonymous namespace 234cdf0e10cSrcweir 235cdf0e10cSrcweir // CHART_SCHWHICHPAIRS_HXX 236cdf0e10cSrcweir #endif 237