LanguageTool: don't crash if REST protocol isn't set
[LibreOffice.git] / sc / inc / scitems.hxx
blobeb9771b0d3af77a769ba87d350b51dff687a1c61
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 .
20 #pragma once
22 #include <svl/typedwhich.hxx>
24 class SfxBoolItem;
25 class SvxCharReliefItem;
26 class SvxColorItem;
27 class SvxContourItem;
28 class SvxCrossedOutItem;
29 class SvxEmphasisMarkItem;
30 class SvxFontHeightItem;
31 class SvxFontItem;
32 class SvxForbiddenRuleItem;
33 class SvxFrameDirectionItem;
34 class SvxHangingPunctuationItem;
35 class SvxLanguageItem;
36 class SvxLRSpaceItem;
37 class SvxOverlineItem;
38 class SvxPostureItem;
39 class SvXMLAttrContainerItem;
40 class SvxScriptSpaceItem;
41 class SvxShadowedItem;
42 class SvxULSpaceItem;
43 class SvxUnderlineItem;
44 class SvxWeightItem;
45 class SvxWordLineModeItem;
46 class SvxShadowItem;
47 class SvxHorJustifyItem;
48 class SvxVerJustifyItem;
49 class SvxBrushItem;
50 class SvxBoxItem;
51 class ScCondFormatItem;
52 class ScLineBreakCell;
53 class ScRotateValueItem;
54 class ScVerticalStackCell;
55 class SvxLineItem;
56 class SvxRotateModeItem;
57 class SfxStringItem;
58 class SvxSizeItem;
59 class SvxJustifyMethodItem;
60 class SvxMarginItem;
61 class SvxPaperBinItem;
62 class ScHyphenateCell;
63 class SfxUInt32Item;
64 class ScIndentItem;
65 class ScShrinkToFitCell;
66 class ScMergeAttr;
67 class ScMergeFlagAttr;
68 class ScProtectionAttr;
69 class SvxBoxInfoItem;
70 class ScPatternAttr;
71 class SvxPageItem;
72 class ScViewObjectModeItem;
73 class SfxUInt16Item;
74 class ScPageHFItem;
75 class ScPageScaleToItem;
76 class SvxSetItem;
78 // EditEngine is not allowed to define its own ITEMID's
79 #define INCLUDED_EDITENG_EEITEMID_HXX
81 // Item-IDs for UI-MsgPool:
83 //! shall be moved to the below-1000 range!
85 #define MSGPOOL_START 1100
87 #define SCITEM_STRING 1100
88 #define SCITEM_SEARCHDATA 1101
89 #define SCITEM_SORTDATA 1102
90 #define SCITEM_QUERYDATA 1103
91 #define SCITEM_SUBTDATA 1104
92 #define SCITEM_CONSOLIDATEDATA 1105
93 #define SCITEM_PIVOTDATA 1106
94 #define SCITEM_SOLVEDATA 1107
95 #define SCITEM_USERLIST 1108
96 #define SCITEM_CONDFORMATDLGDATA 1109
98 #define MSGPOOL_END 1109
100 // Item-IDs for attributes:
102 constexpr sal_uInt16 ATTR_STARTINDEX(100); // begin of attributes
104 constexpr sal_uInt16 ATTR_PATTERN_START(100); // begin of cell-attribute-pattern
106 constexpr TypedWhichId<SvxFontItem> ATTR_FONT (100); // begin of cell-attributes
107 constexpr TypedWhichId<SvxFontHeightItem> ATTR_FONT_HEIGHT (101);
108 constexpr TypedWhichId<SvxWeightItem> ATTR_FONT_WEIGHT (102);
109 constexpr TypedWhichId<SvxPostureItem> ATTR_FONT_POSTURE (103);
110 constexpr TypedWhichId<SvxUnderlineItem> ATTR_FONT_UNDERLINE (104);
111 constexpr TypedWhichId<SvxOverlineItem> ATTR_FONT_OVERLINE (105);
112 constexpr TypedWhichId<SvxCrossedOutItem> ATTR_FONT_CROSSEDOUT (106);
113 constexpr TypedWhichId<SvxContourItem> ATTR_FONT_CONTOUR (107);
114 constexpr TypedWhichId<SvxShadowedItem> ATTR_FONT_SHADOWED (108);
115 constexpr TypedWhichId<SvxColorItem> ATTR_FONT_COLOR (109);
116 constexpr TypedWhichId<SvxLanguageItem> ATTR_FONT_LANGUAGE (110);
117 constexpr TypedWhichId<SvxFontItem> ATTR_CJK_FONT (111);
118 constexpr TypedWhichId<SvxFontHeightItem> ATTR_CJK_FONT_HEIGHT (112);
119 constexpr TypedWhichId<SvxWeightItem> ATTR_CJK_FONT_WEIGHT (113);
120 constexpr TypedWhichId<SvxPostureItem> ATTR_CJK_FONT_POSTURE (114);
121 constexpr TypedWhichId<SvxLanguageItem> ATTR_CJK_FONT_LANGUAGE (115);
122 constexpr TypedWhichId<SvxFontItem> ATTR_CTL_FONT (116);
123 constexpr TypedWhichId<SvxFontHeightItem> ATTR_CTL_FONT_HEIGHT (117);
124 constexpr TypedWhichId<SvxWeightItem> ATTR_CTL_FONT_WEIGHT (118);
125 constexpr TypedWhichId<SvxPostureItem> ATTR_CTL_FONT_POSTURE (119);
126 constexpr TypedWhichId<SvxLanguageItem> ATTR_CTL_FONT_LANGUAGE (120);
127 constexpr TypedWhichId<SvxEmphasisMarkItem> ATTR_FONT_EMPHASISMARK (121);
128 constexpr TypedWhichId<SvXMLAttrContainerItem> ATTR_USERDEF (122); // not saved in binary files
129 constexpr TypedWhichId<SvxWordLineModeItem> ATTR_FONT_WORDLINE (123);
130 constexpr TypedWhichId<SvxCharReliefItem> ATTR_FONT_RELIEF (124);
131 constexpr TypedWhichId<ScHyphenateCell> ATTR_HYPHENATE (125);
132 constexpr TypedWhichId<SvxScriptSpaceItem> ATTR_SCRIPTSPACE (126);
133 constexpr TypedWhichId<SvxHangingPunctuationItem> ATTR_HANGPUNCTUATION (127);
134 constexpr TypedWhichId<SvxForbiddenRuleItem> ATTR_FORBIDDEN_RULES (128);
135 constexpr TypedWhichId<SvxHorJustifyItem> ATTR_HOR_JUSTIFY (129);
136 constexpr TypedWhichId<SvxJustifyMethodItem> ATTR_HOR_JUSTIFY_METHOD (130);
137 constexpr TypedWhichId<ScIndentItem> ATTR_INDENT (131);
138 constexpr TypedWhichId<SvxVerJustifyItem> ATTR_VER_JUSTIFY (132);
139 constexpr TypedWhichId<SvxJustifyMethodItem> ATTR_VER_JUSTIFY_METHOD (133);
140 constexpr TypedWhichId<ScVerticalStackCell> ATTR_STACKED (134);
141 constexpr TypedWhichId<ScRotateValueItem> ATTR_ROTATE_VALUE (135);
142 constexpr TypedWhichId<SvxRotateModeItem> ATTR_ROTATE_MODE (136);
143 constexpr TypedWhichId<SfxBoolItem> ATTR_VERTICAL_ASIAN (137);
144 constexpr TypedWhichId<SvxFrameDirectionItem> ATTR_WRITINGDIR (138);
145 constexpr TypedWhichId<ScLineBreakCell> ATTR_LINEBREAK (139);
146 constexpr TypedWhichId<ScShrinkToFitCell> ATTR_SHRINKTOFIT (140);
147 constexpr TypedWhichId<SvxLineItem> ATTR_BORDER_TLBR (141);
148 constexpr TypedWhichId<SvxLineItem> ATTR_BORDER_BLTR (142);
149 constexpr TypedWhichId<SvxMarginItem> ATTR_MARGIN (143);
150 constexpr TypedWhichId<ScMergeAttr> ATTR_MERGE (144);
151 constexpr TypedWhichId<ScMergeFlagAttr> ATTR_MERGE_FLAG (145);
152 constexpr TypedWhichId<SfxUInt32Item> ATTR_VALUE_FORMAT (146);
153 constexpr TypedWhichId<SvxLanguageItem> ATTR_LANGUAGE_FORMAT (147);
154 constexpr TypedWhichId<SvxBrushItem> ATTR_BACKGROUND (148);
155 constexpr TypedWhichId<ScProtectionAttr> ATTR_PROTECTION (149);
156 constexpr TypedWhichId<SvxBoxItem> ATTR_BORDER (150);
157 constexpr TypedWhichId<SvxBoxInfoItem> ATTR_BORDER_INNER (151); // inside, because of template-EditDialog
158 constexpr TypedWhichId<SvxShadowItem> ATTR_SHADOW (152);
159 constexpr TypedWhichId<SfxUInt32Item> ATTR_VALIDDATA (153);
160 constexpr TypedWhichId<ScCondFormatItem> ATTR_CONDITIONAL (154);
161 constexpr TypedWhichId<SfxStringItem> ATTR_HYPERLINK (155);
163 constexpr sal_uInt16 ATTR_PATTERN_END(155); // end cell-attribute-pattern
165 constexpr TypedWhichId<ScPatternAttr> ATTR_PATTERN (156);
166 // page attributes
167 constexpr TypedWhichId<SvxLRSpaceItem> ATTR_LRSPACE (157); // editor: PageDesc-TabPage
168 constexpr TypedWhichId<SvxULSpaceItem> ATTR_ULSPACE (158);
169 constexpr TypedWhichId<SvxPageItem> ATTR_PAGE (159);
170 constexpr TypedWhichId<SvxPaperBinItem> ATTR_PAGE_PAPERBIN (160);
171 constexpr TypedWhichId<SvxSizeItem> ATTR_PAGE_SIZE (161);
172 constexpr TypedWhichId<SfxBoolItem> ATTR_PAGE_HORCENTER (162);
173 constexpr TypedWhichId<SfxBoolItem> ATTR_PAGE_VERCENTER (163);
175 constexpr TypedWhichId<SfxBoolItem> ATTR_PAGE_ON (164); // editor: header/footer-page
176 constexpr TypedWhichId<SfxBoolItem> ATTR_PAGE_DYNAMIC (165);
177 constexpr TypedWhichId<SfxBoolItem> ATTR_PAGE_SHARED (166);
178 constexpr TypedWhichId<SfxBoolItem> ATTR_PAGE_SHARED_FIRST (167);
180 constexpr TypedWhichId<SfxBoolItem> ATTR_PAGE_NOTES (168); // editor: table
181 constexpr TypedWhichId<SfxBoolItem> ATTR_PAGE_GRID (169);
182 constexpr TypedWhichId<SfxBoolItem> ATTR_PAGE_HEADERS (170);
183 constexpr TypedWhichId<ScViewObjectModeItem> ATTR_PAGE_CHARTS (171);
184 constexpr TypedWhichId<ScViewObjectModeItem> ATTR_PAGE_OBJECTS (172);
185 constexpr TypedWhichId<ScViewObjectModeItem> ATTR_PAGE_DRAWINGS (173);
186 constexpr TypedWhichId<SfxBoolItem> ATTR_PAGE_TOPDOWN (174);
187 constexpr TypedWhichId<SfxUInt16Item> ATTR_PAGE_SCALE (175);
188 constexpr TypedWhichId<SfxUInt16Item> ATTR_PAGE_SCALETOPAGES (176);
189 constexpr TypedWhichId<SfxUInt16Item> ATTR_PAGE_FIRSTPAGENO (177);
191 constexpr TypedWhichId<ScPageHFItem> ATTR_PAGE_HEADERLEFT (178); // contents of header/
192 constexpr TypedWhichId<ScPageHFItem> ATTR_PAGE_FOOTERLEFT (179); // footer (left)
193 constexpr TypedWhichId<ScPageHFItem> ATTR_PAGE_HEADERRIGHT (180); // contents of header/
194 constexpr TypedWhichId<ScPageHFItem> ATTR_PAGE_FOOTERRIGHT (181); // footer (right)
195 constexpr TypedWhichId<ScPageHFItem> ATTR_PAGE_HEADERFIRST (182); // contents of header/
196 constexpr TypedWhichId<ScPageHFItem> ATTR_PAGE_FOOTERFIRST (183); // footer (first page)
197 constexpr TypedWhichId<SvxSetItem> ATTR_PAGE_HEADERSET (184); // the corresponding sets
198 constexpr TypedWhichId<SvxSetItem> ATTR_PAGE_FOOTERSET (185);
200 constexpr TypedWhichId<SfxBoolItem> ATTR_PAGE_FORMULAS (186);
201 constexpr TypedWhichId<SfxBoolItem> ATTR_PAGE_NULLVALS (187);
203 constexpr TypedWhichId<ScPageScaleToItem> ATTR_PAGE_SCALETO (188); // #i8868# scale printout to width/height
205 constexpr TypedWhichId<SfxBoolItem> ATTR_HIDDEN (189);
207 constexpr sal_uInt16 ATTR_ENDINDEX(ATTR_HIDDEN); // end of pool-range
209 // Dummy Slot-IDs for dialogs
211 #define SID_SCATTR_PAGE_NOTES ATTR_PAGE_NOTES
212 #define SID_SCATTR_PAGE_GRID ATTR_PAGE_GRID
213 #define SID_SCATTR_PAGE_HEADERS ATTR_PAGE_HEADERS
214 #define SID_SCATTR_PAGE_CHARTS ATTR_PAGE_CHARTS
215 #define SID_SCATTR_PAGE_OBJECTS ATTR_PAGE_OBJECTS
216 #define SID_SCATTR_PAGE_DRAWINGS ATTR_PAGE_DRAWINGS
217 #define SID_SCATTR_PAGE_TOPDOWN ATTR_PAGE_TOPDOWN
218 #define SID_SCATTR_PAGE_SCALE ATTR_PAGE_SCALE
219 #define SID_SCATTR_PAGE_SCALETOPAGES ATTR_PAGE_SCALETOPAGES
220 #define SID_SCATTR_PAGE_FIRSTPAGENO ATTR_PAGE_FIRSTPAGENO
221 #define SID_SCATTR_PAGE_HEADERLEFT ATTR_PAGE_HEADERLEFT
222 #define SID_SCATTR_PAGE_FOOTERLEFT ATTR_PAGE_FOOTERLEFT
223 #define SID_SCATTR_PAGE_HEADERRIGHT ATTR_PAGE_HEADERRIGHT
224 #define SID_SCATTR_PAGE_FOOTERRIGHT ATTR_PAGE_FOOTERRIGHT
225 #define SID_SCATTR_PAGE_HEADERFIRST ATTR_PAGE_HEADERFIRST
226 #define SID_SCATTR_PAGE_FOOTERFIRST ATTR_PAGE_FOOTERFIRST
227 #define SID_SCATTR_PAGE_FORMULAS ATTR_PAGE_FORMULAS
228 #define SID_SCATTR_PAGE_NULLVALS ATTR_PAGE_NULLVALS
229 #define SID_SCATTR_PAGE_SCALETO ATTR_PAGE_SCALETO
231 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */