1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 #ifndef INCLUDED_SC_INC_SCITEMS_HXX
21 #define INCLUDED_SC_INC_SCITEMS_HXX
23 #include <svl/typedwhich.hxx>
26 class SvxCharReliefItem
;
29 class SvxCrossedOutItem
;
30 class SvxEmphasisMarkItem
;
31 class SvxFontHeightItem
;
33 class SvxForbiddenRuleItem
;
34 class SvxFrameDirectionItem
;
35 class SvxHangingPunctuationItem
;
36 class SvxLanguageItem
;
38 class SvxOverlineItem
;
40 class SvXMLAttrContainerItem
;
41 class SvxScriptSpaceItem
;
42 class SvxShadowedItem
;
44 class SvxUnderlineItem
;
46 class SvxWordLineModeItem
;
48 class SvxHorJustifyItem
;
49 class SvxVerJustifyItem
;
52 class ScCondFormatItem
;
54 class SvxRotateModeItem
;
58 // EditEngine is not allowed to define its own ITEMID's
59 #define INCLUDED_EDITENG_EEITEMID_HXX
61 // Item-IDs for UI-MsgPool:
63 //! shall be moved to the below-1000 range!
65 #define MSGPOOL_START 1100
67 #define SCITEM_STRING 1100
68 #define SCITEM_SEARCHDATA 1101
69 #define SCITEM_SORTDATA 1102
70 #define SCITEM_QUERYDATA 1103
71 #define SCITEM_SUBTDATA 1104
72 #define SCITEM_CONSOLIDATEDATA 1105
73 #define SCITEM_PIVOTDATA 1106
74 #define SCITEM_SOLVEDATA 1107
75 #define SCITEM_USERLIST 1108
76 #define SCITEM_CONDFORMATDLGDATA 1109
78 #define MSGPOOL_END 1109
80 // Item-IDs for attributes:
82 #define ATTR_STARTINDEX 100 // begin of attributes
84 #define ATTR_PATTERN_START 100 // begin of cell-attribute-pattern
86 #define ATTR_FONT TypedWhichId<SvxFontItem>(100) // begin of cell-attributes
87 #define ATTR_FONT_HEIGHT TypedWhichId<SvxFontHeightItem>(101)
88 #define ATTR_FONT_WEIGHT TypedWhichId<SvxWeightItem>(102)
89 #define ATTR_FONT_POSTURE TypedWhichId<SvxPostureItem>(103)
90 #define ATTR_FONT_UNDERLINE TypedWhichId<SvxUnderlineItem>(104)
91 #define ATTR_FONT_OVERLINE TypedWhichId<SvxOverlineItem>(105)
92 #define ATTR_FONT_CROSSEDOUT TypedWhichId<SvxCrossedOutItem>(106)
93 #define ATTR_FONT_CONTOUR TypedWhichId<SvxContourItem>(107)
94 #define ATTR_FONT_SHADOWED TypedWhichId<SvxShadowedItem>(108)
95 #define ATTR_FONT_COLOR TypedWhichId<SvxColorItem>(109)
96 #define ATTR_FONT_LANGUAGE TypedWhichId<SvxLanguageItem>(110)
97 #define ATTR_CJK_FONT TypedWhichId<SvxFontItem>(111)
98 #define ATTR_CJK_FONT_HEIGHT TypedWhichId<SvxFontHeightItem>(112)
99 #define ATTR_CJK_FONT_WEIGHT TypedWhichId<SvxWeightItem>(113)
100 #define ATTR_CJK_FONT_POSTURE TypedWhichId<SvxPostureItem>(114)
101 #define ATTR_CJK_FONT_LANGUAGE TypedWhichId<SvxLanguageItem>(115)
102 #define ATTR_CTL_FONT TypedWhichId<SvxFontItem>(116)
103 #define ATTR_CTL_FONT_HEIGHT TypedWhichId<SvxFontHeightItem>(117)
104 #define ATTR_CTL_FONT_WEIGHT TypedWhichId<SvxWeightItem>(118)
105 #define ATTR_CTL_FONT_POSTURE TypedWhichId<SvxPostureItem>(119)
106 #define ATTR_CTL_FONT_LANGUAGE TypedWhichId<SvxLanguageItem>(120)
107 #define ATTR_FONT_EMPHASISMARK TypedWhichId<SvxEmphasisMarkItem>(121)
108 #define ATTR_USERDEF TypedWhichId<SvXMLAttrContainerItem>(122) // not saved in binary files
109 #define ATTR_FONT_WORDLINE TypedWhichId<SvxWordLineModeItem>(123)
110 #define ATTR_FONT_RELIEF TypedWhichId<SvxCharReliefItem>(124)
111 #define ATTR_HYPHENATE TypedWhichId<SfxBoolItem>(125)
112 #define ATTR_SCRIPTSPACE TypedWhichId<SvxScriptSpaceItem>(126)
113 #define ATTR_HANGPUNCTUATION TypedWhichId<SvxHangingPunctuationItem>(127)
114 #define ATTR_FORBIDDEN_RULES TypedWhichId<SvxForbiddenRuleItem>(128)
115 #define ATTR_HOR_JUSTIFY TypedWhichId<SvxHorJustifyItem>(129)
116 #define ATTR_HOR_JUSTIFY_METHOD TypedWhichId<SvxJustifyMethodItem>(130)
117 #define ATTR_INDENT TypedWhichId<SfxUInt16Item>(131)
118 #define ATTR_VER_JUSTIFY TypedWhichId<SvxVerJustifyItem>(132)
119 #define ATTR_VER_JUSTIFY_METHOD TypedWhichId<SvxJustifyMethodItem>(133)
120 #define ATTR_STACKED TypedWhichId<SfxBoolItem>(134)
121 #define ATTR_ROTATE_VALUE TypedWhichId<SfxInt32Item>(135)
122 #define ATTR_ROTATE_MODE TypedWhichId<SvxRotateModeItem>(136)
123 #define ATTR_VERTICAL_ASIAN TypedWhichId<SfxBoolItem>(137)
124 #define ATTR_WRITINGDIR TypedWhichId<SvxFrameDirectionItem>(138)
125 #define ATTR_LINEBREAK TypedWhichId<SfxBoolItem>(139)
126 #define ATTR_SHRINKTOFIT TypedWhichId<SfxBoolItem>(140)
127 #define ATTR_BORDER_TLBR TypedWhichId<SvxLineItem>(141)
128 #define ATTR_BORDER_BLTR TypedWhichId<SvxLineItem>(142)
129 #define ATTR_MARGIN TypedWhichId<SvxMarginItem>(143)
130 #define ATTR_MERGE TypedWhichId<ScMergeAttr>(144)
131 #define ATTR_MERGE_FLAG TypedWhichId<ScMergeFlagAttr>(145)
132 #define ATTR_VALUE_FORMAT TypedWhichId<SfxUInt32Item>(146)
133 #define ATTR_LANGUAGE_FORMAT TypedWhichId<SvxLanguageItem>(147)
134 #define ATTR_BACKGROUND TypedWhichId<SvxBrushItem>(148)
135 #define ATTR_PROTECTION TypedWhichId<ScProtectionAttr>(149)
136 #define ATTR_BORDER TypedWhichId<SvxBoxItem>(150)
137 #define ATTR_BORDER_INNER TypedWhichId<SvxBoxInfoItem>(151) // inside, because of template-EditDialog
138 #define ATTR_SHADOW TypedWhichId<SvxShadowItem>(152)
139 #define ATTR_VALIDDATA TypedWhichId<SfxUInt32Item>(153)
140 #define ATTR_CONDITIONAL TypedWhichId<ScCondFormatItem>(154)
141 #define ATTR_HYPERLINK TypedWhichId<SfxStringItem>(155)
143 #define ATTR_PATTERN_END 155 // end cell-attribute-pattern
145 #define ATTR_PATTERN TypedWhichId<ScPatternAttr>(156)
147 #define ATTR_LRSPACE TypedWhichId<SvxLRSpaceItem>(157) // editor: PageDesc-TabPage
148 #define ATTR_ULSPACE TypedWhichId<SvxULSpaceItem>(158)
149 #define ATTR_PAGE TypedWhichId<SvxPageItem>(159)
150 #define ATTR_PAGE_PAPERBIN TypedWhichId<SvxPaperBinItem>(160)
151 #define ATTR_PAGE_SIZE TypedWhichId<SvxSizeItem>(161)
152 #define ATTR_PAGE_HORCENTER TypedWhichId<SfxBoolItem>(162)
153 #define ATTR_PAGE_VERCENTER TypedWhichId<SfxBoolItem>(163)
155 #define ATTR_PAGE_ON TypedWhichId<SfxBoolItem>(164) // editor: header/footer-page
156 #define ATTR_PAGE_DYNAMIC TypedWhichId<SfxBoolItem>(165)
157 #define ATTR_PAGE_SHARED TypedWhichId<SfxBoolItem>(166)
159 #define ATTR_PAGE_NOTES TypedWhichId<SfxBoolItem>(167) // editor: table
160 #define ATTR_PAGE_GRID TypedWhichId<SfxBoolItem>(168)
161 #define ATTR_PAGE_HEADERS TypedWhichId<SfxBoolItem>(169)
162 #define ATTR_PAGE_CHARTS TypedWhichId<ScViewObjectModeItem>(170)
163 #define ATTR_PAGE_OBJECTS TypedWhichId<ScViewObjectModeItem>(171)
164 #define ATTR_PAGE_DRAWINGS TypedWhichId<ScViewObjectModeItem>(172)
165 #define ATTR_PAGE_TOPDOWN TypedWhichId<SfxBoolItem>(173)
166 #define ATTR_PAGE_SCALE TypedWhichId<SfxUInt16Item>(174)
167 #define ATTR_PAGE_SCALETOPAGES TypedWhichId<SfxUInt16Item>(175)
168 #define ATTR_PAGE_FIRSTPAGENO TypedWhichId<SfxUInt16Item>(176)
170 #define ATTR_PAGE_HEADERLEFT TypedWhichId<ScPageHFItem>(177) // contents of header/
171 #define ATTR_PAGE_FOOTERLEFT TypedWhichId<ScPageHFItem>(178) // footer (left)
172 #define ATTR_PAGE_HEADERRIGHT TypedWhichId<ScPageHFItem>(179) // contents of header/
173 #define ATTR_PAGE_FOOTERRIGHT TypedWhichId<ScPageHFItem>(180) // footer (right)
174 #define ATTR_PAGE_HEADERSET TypedWhichId<SvxSetItem>(181) // the corresponding sets
175 #define ATTR_PAGE_FOOTERSET TypedWhichId<SvxSetItem>(182)
177 #define ATTR_PAGE_FORMULAS TypedWhichId<SfxBoolItem>(183)
178 #define ATTR_PAGE_NULLVALS TypedWhichId<SfxBoolItem>(184)
180 #define ATTR_PAGE_SCALETO TypedWhichId<ScPageScaleToItem>(185) // #i8868# scale printout to width/height
182 #define ATTR_HIDDEN TypedWhichId<SfxBoolItem>(186)
184 #define ATTR_ENDINDEX ATTR_HIDDEN // end of pool-range
186 // Dummy Slot-IDs for dialogs
188 #define SID_SCATTR_PAGE_NOTES ATTR_PAGE_NOTES
189 #define SID_SCATTR_PAGE_GRID ATTR_PAGE_GRID
190 #define SID_SCATTR_PAGE_HEADERS ATTR_PAGE_HEADERS
191 #define SID_SCATTR_PAGE_CHARTS ATTR_PAGE_CHARTS
192 #define SID_SCATTR_PAGE_OBJECTS ATTR_PAGE_OBJECTS
193 #define SID_SCATTR_PAGE_DRAWINGS ATTR_PAGE_DRAWINGS
194 #define SID_SCATTR_PAGE_TOPDOWN ATTR_PAGE_TOPDOWN
195 #define SID_SCATTR_PAGE_SCALE ATTR_PAGE_SCALE
196 #define SID_SCATTR_PAGE_SCALETOPAGES ATTR_PAGE_SCALETOPAGES
197 #define SID_SCATTR_PAGE_FIRSTPAGENO ATTR_PAGE_FIRSTPAGENO
198 #define SID_SCATTR_PAGE_HEADERLEFT ATTR_PAGE_HEADERLEFT
199 #define SID_SCATTR_PAGE_FOOTERLEFT ATTR_PAGE_FOOTERLEFT
200 #define SID_SCATTR_PAGE_HEADERRIGHT ATTR_PAGE_HEADERRIGHT
201 #define SID_SCATTR_PAGE_FOOTERRIGHT ATTR_PAGE_FOOTERRIGHT
202 #define SID_SCATTR_PAGE_FORMULAS ATTR_PAGE_FORMULAS
203 #define SID_SCATTR_PAGE_NULLVALS ATTR_PAGE_NULLVALS
204 #define SID_SCATTR_PAGE_SCALETO ATTR_PAGE_SCALETO
208 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */