cid#1640468 Dereference after null check
[LibreOffice.git] / chart2 / source / controller / itemsetwrapper / SchWhichPairs.hxx
blob676527f3fef3f678faee8e2e7c39d08b703d2a02
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #pragma once
21 #include <svl/whichranges.hxx>
22 #include <svx/svxids.hrc>
23 #include <svx/xdef.hxx>
24 #include <svx/svddef.hxx>
25 #include <editeng/eeitem.hxx>
27 #include <chartview/ChartSfxItemIds.hxx>
29 const WhichRangesContainer nTitleWhichPairs(svl::Items<
30 SCHATTR_TEXT_START, SCHATTR_TEXT_END,
31 XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx
32 XATTR_FILL_FIRST, XATTR_FILL_LAST, // 1018 - 1046 svx/xdef.hxx
33 SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST, // 1067 - 1078 svx/svddef.hxx
34 EE_ITEMS_START, EE_ITEMS_END, // Characters
35 SID_CHAR_DLG_PREVIEW_STRING, SID_CHAR_DLG_PREVIEW_STRING // Characters
36 >);
38 const WhichRangesContainer nAxisWhichPairs(svl::Items<
39 SCHATTR_TEXT_START, SCHATTR_TEXT_END,
40 SCHATTR_AXIS_START, SCHATTR_AXIS_END,
41 XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx
42 EE_ITEMS_START, EE_ITEMS_END, // Characters
43 SID_ATTR_NUMBERFORMAT_VALUE, SID_ATTR_NUMBERFORMAT_VALUE, // 10585 - 10585 svx/svxids.hrc
44 SID_ATTR_NUMBERFORMAT_SOURCE, SID_ATTR_NUMBERFORMAT_SOURCE, // 11432 svx/svxids.hrc
45 SID_CHAR_DLG_PREVIEW_STRING, SID_CHAR_DLG_PREVIEW_STRING // Characters
46 >);
48 const WhichRangesContainer nAllAxisWhichPairs(svl::Items<
49 SCHATTR_TEXT_START, SCHATTR_TEXT_END,
50 SCHATTR_AXIS_LABEL_START, SCHATTR_AXIS_LABEL_END,
51 XATTR_LINE_FIRST, XATTR_LINE_LAST,
52 EE_ITEMS_START, EE_ITEMS_END, // Characters
53 SID_CHAR_DLG_PREVIEW_STRING, SID_CHAR_DLG_PREVIEW_STRING // Characters
54 >);
56 const WhichRangesContainer nGridWhichPairs(svl::Items<
57 XATTR_LINE_FIRST, XATTR_LINE_LAST // 1000 - 1016 svx/xdef.hxx
58 >);
60 const WhichRangesContainer nLegendWhichPairs(svl::Items<
61 SCHATTR_LEGEND_START, SCHATTR_LEGEND_END, // 3 - 3 sch/schattr.hxx
62 XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx
63 XATTR_FILL_FIRST, XATTR_FILL_LAST, // 1018 - 1046 svx/xdef.hxx
64 SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST, // 1067 - 1078 svx/svddef.hxx
65 EE_ITEMS_START, EE_ITEMS_END, // Characters
66 SID_CHAR_DLG_PREVIEW_STRING, SID_CHAR_DLG_PREVIEW_STRING // Characters
67 >);
69 const WhichRangesContainer nDataLabelWhichPairs(svl::Items<
70 SCHATTR_DATADESCR_START, SCHATTR_DATADESCR_END,
71 SCHATTR_TEXT_DEGREES,SCHATTR_TEXT_DEGREES,
72 EE_PARA_WRITINGDIR,EE_PARA_WRITINGDIR,
73 SID_ATTR_NUMBERFORMAT_VALUE, SID_ATTR_NUMBERFORMAT_INFO, /* 10585 - 10585 svx/svxids.hrc */
74 SID_ATTR_NUMBERFORMAT_SOURCE, SID_ATTR_NUMBERFORMAT_SOURCE /* 11432 svx/svxids.hrc */
75 >);
77 const WhichRangesContainer nDataPointWhichPairs(svl::Items<
78 SCHATTR_DATADESCR_START, SCHATTR_DATADESCR_END, /* 1 - 2 sch/schattr.hxx*/
79 SCHATTR_TEXT_DEGREES, SCHATTR_TEXT_DEGREES,
80 SCHATTR_STYLE_START,SCHATTR_STYLE_END, /* 59 - 68 sch/schattr.hxx*/
81 SCHATTR_SYMBOL_BRUSH,SCHATTR_SYMBOL_BRUSH, /* 94 sch/schattr.hxx*/
82 SCHATTR_SYMBOL_SIZE,SCHATTR_SYMBOL_SIZE, /* 97 sch/schattr.hxx*/
83 SCHATTR_HIDE_DATA_POINT_LEGEND_ENTRY, SCHATTR_HIDE_DATA_POINT_LEGEND_ENTRY,
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_3D_FIRST, SDRATTR_3D_LAST, /* 1244 - 1334 svx/svddef.hxx */
87 EE_ITEMS_START, EE_ITEMS_END, /* 3994 - 4037 editeng/eeitem.hxx */
88 SID_ATTR_NUMBERFORMAT_VALUE, SID_ATTR_NUMBERFORMAT_INFO, /* 10585 - 10585 svx/svxids.hrc */
89 SID_ATTR_NUMBERFORMAT_SOURCE, SID_ATTR_NUMBERFORMAT_SOURCE, /* 11432 svx/svxids.hrc */
90 SID_CHAR_DLG_PREVIEW_STRING, SID_CHAR_DLG_PREVIEW_STRING
91 >);
93 const WhichRangesContainer nTextLabelWhichPairs(svl::Items<
94 SCHATTR_DATADESCR_START, SCHATTR_DATADESCR_END,
95 SCHATTR_TEXT_DEGREES, SCHATTR_TEXT_DEGREES,
96 SCHATTR_STYLE_SYMBOL, SCHATTR_STYLE_SYMBOL,
97 SCHATTR_SYMBOL_BRUSH, SCHATTR_SYMBOL_BRUSH,
98 SCHATTR_SYMBOL_SIZE, SCHATTR_SYMBOL_SIZE,
99 XATTR_LINESTYLE, XATTR_LINECOLOR,
100 XATTR_LINETRANSPARENCE, XATTR_LINETRANSPARENCE,
101 EE_ITEMS_START, EE_ITEMS_END,
102 SID_ATTR_NUMBERFORMAT_VALUE, SID_ATTR_NUMBERFORMAT_INFO,
103 SID_ATTR_NUMBERFORMAT_SOURCE, SID_ATTR_NUMBERFORMAT_SOURCE,
104 SID_CHAR_DLG_PREVIEW_STRING, SID_CHAR_DLG_PREVIEW_STRING
107 const WhichRangesContainer nSeriesOptionsWhichPairs(svl::Items<
108 SCHATTR_AXIS,SCHATTR_AXIS, /* 69 sch/schattr.hxx*/
109 SCHATTR_BAR_OVERLAP,SCHATTR_BAR_CONNECT, /* 98 - 100 (incl. SCHATTR_GAPWIDTH) */
110 SCHATTR_GROUP_BARS_PER_AXIS,SCHATTR_AXIS_FOR_ALL_SERIES
113 // nDataPointWhichPairs + nSeriesOptionsWhichPairs
114 const WhichRangesContainer nRowWhichPairs(svl::Items<
115 SCHATTR_DATADESCR_START, SCHATTR_DATADESCR_END, /* 1 - 2 sch/schattr.hxx*/
116 SCHATTR_TEXT_DEGREES, SCHATTR_TEXT_DEGREES,
117 SCHATTR_STYLE_START,SCHATTR_STYLE_END, /* 59 - 68 sch/schattr.hxx*/
118 SCHATTR_AXIS,SCHATTR_AXIS, /* 69 sch/schattr.hxx*/
119 SCHATTR_SYMBOL_BRUSH,SCHATTR_SYMBOL_BRUSH, /* 94 sch/schattr.hxx*/
120 SCHATTR_SYMBOL_SIZE,SCHATTR_SYMBOL_SIZE, /* 97 sch/schattr.hxx*/
121 SCHATTR_HIDE_DATA_POINT_LEGEND_ENTRY, SCHATTR_HIDE_DATA_POINT_LEGEND_ENTRY,
122 SCHATTR_BAR_OVERLAP,SCHATTR_BAR_CONNECT, /* 98 - 100 (incl. SCHATTR_GAPWIDTH) */
123 SCHATTR_GROUP_BARS_PER_AXIS,SCHATTR_AXIS_FOR_ALL_SERIES,
124 XATTR_LINE_FIRST, XATTR_LINE_LAST, /* 1000 - 1016 svx/xdef.hxx */
125 XATTR_FILL_FIRST, XATTR_FILL_LAST, /* 1018 - 1046 svx/xdef.hxx */
126 SDRATTR_3D_FIRST, SDRATTR_3D_LAST, /* 1244 - 1334 svx/svddef.hxx */
127 EE_ITEMS_START, EE_ITEMS_END, /* 3994 - 4037 editeng/eeitem.hxx */
128 SID_ATTR_NUMBERFORMAT_VALUE, SID_ATTR_NUMBERFORMAT_INFO, /* 10585 - 10585 svx/svxids.hrc */
129 SID_ATTR_NUMBERFORMAT_SOURCE, SID_ATTR_NUMBERFORMAT_SOURCE, /* 11432 svx/svxids.hrc */
130 SID_CHAR_DLG_PREVIEW_STRING, SID_CHAR_DLG_PREVIEW_STRING
133 const WhichRangesContainer nStatWhichPairs(svl::Items<
134 SCHATTR_STAT_START, SCHATTR_STAT_END, // 45 - 52 sch/schattr.hxx
135 SCHATTR_REGRESSION_START, SCHATTR_REGRESSION_END // 108 - 109
138 const WhichRangesContainer nErrorBarWhichPairs(svl::Items<
139 SCHATTR_STAT_START, SCHATTR_STAT_END, // 45 - 52 sch/schattr.hxx
140 XATTR_LINE_FIRST, XATTR_LINE_LAST // 1000 - 1016 svx/xdef.hxx
143 // for CharacterProperties
145 const WhichRangesContainer nCharacterPropertyWhichPairs(svl::Items<
146 EE_ITEMS_START, EE_ITEMS_END, // Characters
147 SID_CHAR_DLG_PREVIEW_STRING, SID_CHAR_DLG_PREVIEW_STRING // Characters
150 const WhichRangesContainer nLinePropertyWhichPairs(svl::Items<
151 XATTR_LINE_FIRST, XATTR_LINE_LAST // 1000 - 1016 svx/xdef.hxx
154 const WhichRangesContainer nLineAndFillPropertyWhichPairs(svl::Items<
155 XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx
156 XATTR_FILL_FIRST, XATTR_FILL_LAST, // 1000 - 1016 svx/xdef.hxx
157 SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST // 1067 - 1078 svx/svddef.hxx
160 const WhichRangesContainer nRegressionCurveWhichPairs(svl::Items<
161 SCHATTR_REGRESSION_START, SCHATTR_REGRESSION_END, // 108 - 109
162 XATTR_LINE_FIRST, XATTR_LINE_LAST // 1000 - 1016 svx/xdef.hxx
165 const WhichRangesContainer nRegEquationWhichPairs(svl::Items<
166 XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx
167 XATTR_FILL_FIRST, XATTR_FILL_LAST, // 1018 - 1046 svx/xdef.hxx
168 SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST, // 1067 - 1078 svx/svddef.hxx
169 EE_ITEMS_START, EE_ITEMS_END, // Characters
170 SID_ATTR_NUMBERFORMAT_VALUE, SID_ATTR_NUMBERFORMAT_VALUE, // 10585 - 10585 svx/svxids.hrc
171 SID_CHAR_DLG_PREVIEW_STRING, SID_CHAR_DLG_PREVIEW_STRING // Characters
174 const WhichRangesContainer nDataTableWhichPairs(svl::Items<
175 SCHATTR_DATA_TABLE_START, SCHATTR_DATA_TABLE_END,
176 XATTR_LINE_FIRST, XATTR_LINE_LAST, // 1000 - 1016 svx/xdef.hxx
177 XATTR_FILL_FIRST, XATTR_FILL_LAST, // 1018 - 1046 svx/xdef.hxx
178 EE_ITEMS_START, EE_ITEMS_END
181 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */