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