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