LibreOffice Module sw (master)  1
hintids.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 #ifndef INCLUDED_SW_INC_HINTIDS_HXX
20 #define INCLUDED_SW_INC_HINTIDS_HXX
21 
22 #include <sal/types.h>
23 #include <svx/xdef.hxx>
24 #include "swdllapi.h"
25 #include <svl/typedwhich.hxx>
26 #include <vector>
27 
28 class SfxStringItem;
29 class SwFormatChg;
30 class SwUpdateAttr;
31 class SwAttrSetChg;
32 class SwDocPosUpdate;
33 class SwFormatMeta;
35 class SwMsgPoolItem;
36 class SwPtrMsgPoolItem;
37 class SfxBoolItem;
38 class SvxColorItem;
39 class SvxLRSpaceItem;
41 class SfxGrabBagItem;
42 class SfxInt16Item;
43 class SfxUInt16Item;
44 class SvxAdjustItem;
45 class SvxAutoKernItem;
46 class SvxBlinkItem;
47 class SvxBoxItem;
48 class SvxBrushItem;
49 class SvxCaseMapItem;
50 class SvxCharHiddenItem;
51 class SvxCharReliefItem;
52 class SvxCharRotateItem;
54 class SvxContourItem;
55 class SvxCrossedOutItem;
57 class SvxEscapementItem;
58 class SvxFontHeightItem;
59 class SvxFontItem;
61 class SvxFormatBreakItem;
62 class SvxFormatKeepItem;
63 class SvxFormatSplitItem;
66 class SvxHyphenZoneItem;
67 class SvxKerningItem;
68 class SvxLanguageItem;
69 class SvxLineSpacingItem;
70 class SvxNoHyphenItem;
71 class SvxOpaqueItem;
72 class SvxOrphansItem;
73 class SvxOverlineItem;
74 class SvxPaperBinItem;
75 class SvxParaGridItem;
77 class SvxPostureItem;
78 class SvxPrintItem;
79 class SvxProtectItem;
80 class SvxRsidItem;
81 class SvxScriptSpaceItem;
82 class SvxShadowedItem;
83 class SvxShadowItem;
84 class SvxTabStopItem;
85 class SvxTwoLinesItem;
86 class SvxULSpaceItem;
87 class SvxUnderlineItem;
88 class SvxWeightItem;
89 class SvxWidowsItem;
91 class SwChannelBGrf;
92 class SwChannelGGrf;
93 class SwChannelRGrf;
94 class SwContrastGrf;
95 class SwCropGrf;
96 class SwDrawModeGrf;
97 class SwFormatAnchor;
98 class SwFormatAutoFormat;
99 class SwFormatChain;
100 class SwFormatCharFormat;
101 class SwFormatCol;
102 class SwFormatDrop;
105 class SwFormatFlyCnt;
108 class SwFormatFrameSize;
109 class SwFormatHoriOrient;
110 class SwFormatINetFormat;
111 class SwFormatLayoutSplit;
112 class SwFormatLineNumber;
114 class SwFormatPageDesc;
115 class SwFormatRowSplit;
116 class SwFormatSurround;
117 class SwFormatURL;
118 class SwFormatVertOrient;
120 class SwGammaGrf;
122 class SwInvertGrf;
123 class SwLuminanceGrf;
124 class SwMirrorGrf;
125 class SwNumRuleItem;
127 class SwRegisterItem;
128 class SwRotationGrf;
129 class SwTableBoxNumFormat;
130 class SwTextGridItem;
131 class SwTransparencyGrf;
132 class SwFormatRuby;
133 
134 // For SwTextHints without end index the following char is added:
135 
136 #define CH_TXTATR_BREAKWORD u'\x0001'
137 #define CH_TXTATR_INWORD u'\xFFF9'
138 #define CH_TXTATR_TAB u'\t'
139 #define CH_TXTATR_NEWLINE u'\n'
140 #define CH_TXT_ATR_INPUTFIELDSTART u'\x0004'
141 #define CH_TXT_ATR_INPUTFIELDEND u'\x0005'
142 
143 #define CH_TXT_ATR_FORMELEMENT u'\x0006'
144 
145 #define CH_TXT_ATR_FIELDSTART u'\x0007'
146 #define CH_TXT_ATR_FIELDSEP u'\x0003'
147 #define CH_TXT_ATR_FIELDEND u'\x0008'
148 #define CH_TXT_ATR_SUBST_FIELDSTART ("[")
149 #define CH_TXT_ATR_SUBST_FIELDEND ("]")
150 
151 /*
152  * Enums for the hints
153  */
154 
155 #define HINT_BEGIN 1
156 
157 #define POOLATTR_BEGIN HINT_BEGIN
158 #define POOLATTR_END RES_UNKNOWNATR_END
159 
160 // Ranges for the IDs of the format-attributes.
161 // Which-values for character-format attributes.
162 #define RES_CHRATR_BEGIN HINT_BEGIN
163 #define RES_CHRATR_CASEMAP TypedWhichId<SvxCaseMapItem>(RES_CHRATR_BEGIN) // 1
164 #define RES_CHRATR_CHARSETCOLOR TypedWhichId<SvxColorItem>(2)
165 #define RES_CHRATR_COLOR TypedWhichId<SvxColorItem>(3)
166 #define RES_CHRATR_CONTOUR TypedWhichId<SvxContourItem>(4)
167 #define RES_CHRATR_CROSSEDOUT TypedWhichId<SvxCrossedOutItem>(5)
168 #define RES_CHRATR_ESCAPEMENT TypedWhichId<SvxEscapementItem>(6)
169 #define RES_CHRATR_FONT TypedWhichId<SvxFontItem>(7)
170 #define RES_CHRATR_FONTSIZE TypedWhichId<SvxFontHeightItem>(8)
171 #define RES_CHRATR_KERNING TypedWhichId<SvxKerningItem>(9)
172 #define RES_CHRATR_LANGUAGE TypedWhichId<SvxLanguageItem>(10)
173 #define RES_CHRATR_POSTURE TypedWhichId<SvxPostureItem>(11)
174 #define RES_CHRATR_UNUSED1 TypedWhichId<SfxVoidItem>(12)
175 #define RES_CHRATR_SHADOWED TypedWhichId<SvxShadowedItem>(13)
176 #define RES_CHRATR_UNDERLINE TypedWhichId<SvxUnderlineItem>(14)
177 #define RES_CHRATR_WEIGHT TypedWhichId<SvxWeightItem>(15)
178 #define RES_CHRATR_WORDLINEMODE TypedWhichId<SvxWordLineModeItem>(16)
179 #define RES_CHRATR_AUTOKERN TypedWhichId<SvxAutoKernItem>(17)
180 #define RES_CHRATR_BLINK TypedWhichId<SvxBlinkItem>(18)
181 #define RES_CHRATR_NOHYPHEN TypedWhichId<SvxNoHyphenItem>(19)
182 #define RES_CHRATR_UNUSED2 TypedWhichId<SfxVoidItem>(20)
183 #define RES_CHRATR_BACKGROUND TypedWhichId<SvxBrushItem>(21)
184 #define RES_CHRATR_CJK_FONT TypedWhichId<SvxFontItem>(22)
185 #define RES_CHRATR_CJK_FONTSIZE TypedWhichId<SvxFontHeightItem>(23)
186 #define RES_CHRATR_CJK_LANGUAGE TypedWhichId<SvxLanguageItem>(24)
187 #define RES_CHRATR_CJK_POSTURE TypedWhichId<SvxPostureItem>(25)
188 #define RES_CHRATR_CJK_WEIGHT TypedWhichId<SvxWeightItem>(26)
189 #define RES_CHRATR_CTL_FONT TypedWhichId<SvxFontItem>(27)
190 #define RES_CHRATR_CTL_FONTSIZE TypedWhichId<SvxFontHeightItem>(28)
191 #define RES_CHRATR_CTL_LANGUAGE TypedWhichId<SvxLanguageItem>(29)
192 #define RES_CHRATR_CTL_POSTURE TypedWhichId<SvxPostureItem>(30)
193 #define RES_CHRATR_CTL_WEIGHT TypedWhichId<SvxWeightItem>(31)
194 #define RES_CHRATR_ROTATE TypedWhichId<SvxCharRotateItem>(32)
195 #define RES_CHRATR_EMPHASIS_MARK TypedWhichId<SvxEmphasisMarkItem>(33)
196 #define RES_CHRATR_TWO_LINES TypedWhichId<SvxTwoLinesItem>(34)
197 #define RES_CHRATR_SCALEW TypedWhichId<SvxCharScaleWidthItem>(35)
198 #define RES_CHRATR_RELIEF TypedWhichId<SvxCharReliefItem>(36)
199 #define RES_CHRATR_HIDDEN TypedWhichId<SvxCharHiddenItem>(37)
200 #define RES_CHRATR_OVERLINE TypedWhichId<SvxOverlineItem>(38)
201 #define RES_CHRATR_RSID TypedWhichId<SvxRsidItem>(39)
202 #define RES_CHRATR_BOX TypedWhichId<SvxBoxItem>(40)
203 #define RES_CHRATR_SHADOW TypedWhichId<SvxShadowItem>(41)
204 #define RES_CHRATR_HIGHLIGHT TypedWhichId<SvxBrushItem>(42)
205 #define RES_CHRATR_GRABBAG TypedWhichId<SfxGrabBagItem>(43)
206 #define RES_CHRATR_BIDIRTL TypedWhichId<SfxInt16Item>(44)
207 #define RES_CHRATR_IDCTHINT TypedWhichId<SfxInt16Item>(45)
208 #define RES_CHRATR_END (46)
209 
210 // this Attribute used only in a TextNodes SwpAttr-Array
211 #define RES_TXTATR_BEGIN RES_CHRATR_END
212 
229 #define RES_TXTATR_WITHEND_BEGIN RES_TXTATR_BEGIN
230 #define RES_TXTATR_REFMARK TypedWhichId<SwFormatRefMark>(RES_TXTATR_WITHEND_BEGIN) // 46
231 #define RES_TXTATR_TOXMARK TypedWhichId<SwTOXMark>(47)
232 #define RES_TXTATR_META TypedWhichId<SwFormatMeta>(48)
233 #define RES_TXTATR_METAFIELD TypedWhichId<SwFormatMeta>(49)
234 #define RES_TXTATR_AUTOFMT TypedWhichId<SwFormatAutoFormat>(50)
235 #define RES_TXTATR_INETFMT TypedWhichId<SwFormatINetFormat>(51)
236 #define RES_TXTATR_CHARFMT TypedWhichId<SwFormatCharFormat>(52)
237 #define RES_TXTATR_CJK_RUBY TypedWhichId<SwFormatRuby>(53)
238 #define RES_TXTATR_UNKNOWN_CONTAINER TypedWhichId<SvXMLAttrContainerItem>(54)
239 #define RES_TXTATR_INPUTFIELD TypedWhichId<SwFormatField>(55)
240 #define RES_TXTATR_WITHEND_END 56
241 
242 // all TextAttributes without an end
243 #define RES_TXTATR_NOEND_BEGIN RES_TXTATR_WITHEND_END
244 #define RES_TXTATR_FIELD TypedWhichId<SwFormatField>(RES_TXTATR_NOEND_BEGIN) // 56
245 #define RES_TXTATR_FLYCNT TypedWhichId<SwFormatFlyCnt>(57)
246 #define RES_TXTATR_FTN TypedWhichId<SwFormatFootnote>(58)
247 #define RES_TXTATR_ANNOTATION TypedWhichId<SwFormatField>(59)
248 #define RES_TXTATR_DUMMY3 TypedWhichId<SfxBoolItem>(60)
249 #define RES_TXTATR_DUMMY1 TypedWhichId<SfxBoolItem>(61)
250 #define RES_TXTATR_DUMMY2 TypedWhichId<SfxBoolItem>(62)
251 #define RES_TXTATR_NOEND_END 63
252 #define RES_TXTATR_END RES_TXTATR_NOEND_END
253 
254 #define RES_PARATR_BEGIN RES_TXTATR_END
255 #define RES_PARATR_LINESPACING TypedWhichId<SvxLineSpacingItem>(RES_PARATR_BEGIN) // 63
256 #define RES_PARATR_ADJUST TypedWhichId<SvxAdjustItem>(64)
257 #define RES_PARATR_SPLIT TypedWhichId<SvxFormatSplitItem>(65)
258 #define RES_PARATR_ORPHANS TypedWhichId<SvxOrphansItem>(66)
259 #define RES_PARATR_WIDOWS TypedWhichId<SvxWidowsItem>(67)
260 #define RES_PARATR_TABSTOP TypedWhichId<SvxTabStopItem>(68)
261 #define RES_PARATR_HYPHENZONE TypedWhichId<SvxHyphenZoneItem>(69)
262 #define RES_PARATR_DROP TypedWhichId<SwFormatDrop>(70)
263 #define RES_PARATR_REGISTER TypedWhichId<SwRegisterItem>(71)
264 #define RES_PARATR_NUMRULE TypedWhichId<SwNumRuleItem>(72)
265 #define RES_PARATR_SCRIPTSPACE TypedWhichId<SvxScriptSpaceItem>(73)
266 #define RES_PARATR_HANGINGPUNCTUATION TypedWhichId<SvxHangingPunctuationItem>(74)
267 #define RES_PARATR_FORBIDDEN_RULES TypedWhichId<SvxForbiddenRuleItem>(75)
268 #define RES_PARATR_VERTALIGN TypedWhichId<SvxParaVertAlignItem>(76)
269 #define RES_PARATR_SNAPTOGRID TypedWhichId<SvxParaGridItem>(77)
270 #define RES_PARATR_CONNECT_BORDER TypedWhichId<SwParaConnectBorderItem>(78)
271 #define RES_PARATR_OUTLINELEVEL TypedWhichId<SfxUInt16Item>(79)
272 #define RES_PARATR_RSID TypedWhichId<SvxRsidItem>(80)
273 #define RES_PARATR_GRABBAG TypedWhichId<SfxGrabBagItem>(81)
274 #define RES_PARATR_END (82)
275 
276 // list attributes for paragraphs.
277 // intentionally these list attributes are not contained in paragraph styles
278 #define RES_PARATR_LIST_BEGIN RES_PARATR_END
279 #define RES_PARATR_LIST_ID TypedWhichId<SfxStringItem>(RES_PARATR_LIST_BEGIN) // 82
280 #define RES_PARATR_LIST_LEVEL TypedWhichId<SfxInt16Item>(83)
281 #define RES_PARATR_LIST_ISRESTART TypedWhichId<SfxBoolItem>(84)
282 #define RES_PARATR_LIST_RESTARTVALUE TypedWhichId<SfxInt16Item>(85)
283 #define RES_PARATR_LIST_ISCOUNTED TypedWhichId<SfxBoolItem>(86)
284 #define RES_PARATR_LIST_AUTOFMT TypedWhichId<SwFormatAutoFormat>(87)//TypedWhichId<SfxSetItem>(87)
285 #define RES_PARATR_LIST_END (88)
286 
287 #define RES_FRMATR_BEGIN RES_PARATR_LIST_END
288 #define RES_FILL_ORDER TypedWhichId<SwFormatFillOrder>(RES_FRMATR_BEGIN)
289 #define RES_FRM_SIZE TypedWhichId<SwFormatFrameSize>(89)
290 #define RES_PAPER_BIN TypedWhichId<SvxPaperBinItem>(90)
291 #define RES_LR_SPACE TypedWhichId<SvxLRSpaceItem>(91)
292 #define RES_UL_SPACE TypedWhichId<SvxULSpaceItem>(92)
293 #define RES_PAGEDESC TypedWhichId<SwFormatPageDesc>(93)
294 #define RES_BREAK TypedWhichId<SvxFormatBreakItem>(94)
295 #define RES_CNTNT TypedWhichId<SwFormatContent>(95)
296 #define RES_HEADER TypedWhichId<SwFormatHeader>(96)
297 #define RES_FOOTER TypedWhichId<SwFormatFooter>(97)
298 #define RES_PRINT TypedWhichId<SvxPrintItem>(98)
299 #define RES_OPAQUE TypedWhichId<SvxOpaqueItem>(99)
300 #define RES_PROTECT TypedWhichId<SvxProtectItem>(100)
301 #define RES_SURROUND TypedWhichId<SwFormatSurround>(101)
302 #define RES_VERT_ORIENT TypedWhichId<SwFormatVertOrient>(102)
303 #define RES_HORI_ORIENT TypedWhichId<SwFormatHoriOrient>(103)
304 #define RES_ANCHOR TypedWhichId<SwFormatAnchor>(104)
305 #define RES_BACKGROUND TypedWhichId<SvxBrushItem>(105)
306 #define RES_BOX TypedWhichId<SvxBoxItem>(106)
307 #define RES_SHADOW TypedWhichId<SvxShadowItem>(107)
308 #define RES_FRMMACRO TypedWhichId<SvxMacroItem>(108)
309 #define RES_COL TypedWhichId<SwFormatCol>(109)
310 #define RES_KEEP TypedWhichId<SvxFormatKeepItem>(110)
311 #define RES_URL TypedWhichId<SwFormatURL>(111)
312 #define RES_EDIT_IN_READONLY TypedWhichId<SwFormatEditInReadonly>(112)
313 #define RES_LAYOUT_SPLIT TypedWhichId<SwFormatLayoutSplit>(113)
314 #define RES_CHAIN TypedWhichId<SwFormatChain>(114)
315 #define RES_TEXTGRID TypedWhichId<SwTextGridItem>(115)
316 #define RES_LINENUMBER TypedWhichId<SwFormatLineNumber>(116)
317 #define RES_FTN_AT_TXTEND TypedWhichId<SwFormatFootnoteAtTextEnd>(117)
318 #define RES_END_AT_TXTEND TypedWhichId<SwFormatEndAtTextEnd>(118)
319 #define RES_COLUMNBALANCE TypedWhichId<SwFormatNoBalancedColumns>(119)
320 #define RES_FRAMEDIR TypedWhichId<SvxFrameDirectionItem>(120)
321 #define RES_HEADER_FOOTER_EAT_SPACING TypedWhichId<SwHeaderAndFooterEatSpacingItem>(121)
322 #define RES_ROW_SPLIT TypedWhichId<SwFormatRowSplit>(122)
323 #define RES_FOLLOW_TEXT_FLOW TypedWhichId<SwFormatFollowTextFlow>(123)
324 #define RES_COLLAPSING_BORDERS TypedWhichId<SfxBoolItem>(124)
325 #define RES_WRAP_INFLUENCE_ON_OBJPOS TypedWhichId<SwFormatWrapInfluenceOnObjPos>(125)
326 #define RES_AUTO_STYLE TypedWhichId<SwFormatAutoFormat>(126)
327 #define RES_FRMATR_STYLE_NAME TypedWhichId<SfxStringItem>(127)
328 #define RES_FRMATR_CONDITIONAL_STYLE_NAME TypedWhichId<SfxStringItem>(128)
329 #define RES_FRMATR_GRABBAG TypedWhichId<SfxGrabBagItem>(129)
330 #define RES_TEXT_VERT_ADJUST TypedWhichId<SdrTextVertAdjustItem>(130)
331 #define RES_FRMATR_END 131
332 
333 #define RES_GRFATR_BEGIN RES_FRMATR_END
334 #define RES_GRFATR_MIRRORGRF TypedWhichId<SwMirrorGrf>(RES_GRFATR_BEGIN) // 131
335 #define RES_GRFATR_CROPGRF TypedWhichId<SwCropGrf>(132)
336 
337 #define RES_GRFATR_ROTATION TypedWhichId<SwRotationGrf>(133)
338 #define RES_GRFATR_LUMINANCE TypedWhichId<SwLuminanceGrf>(134)
339 #define RES_GRFATR_CONTRAST TypedWhichId<SwContrastGrf>(135)
340 #define RES_GRFATR_CHANNELR TypedWhichId<SwChannelRGrf>(136)
341 #define RES_GRFATR_CHANNELG TypedWhichId<SwChannelGGrf>(137)
342 #define RES_GRFATR_CHANNELB TypedWhichId<SwChannelBGrf>(138)
343 #define RES_GRFATR_GAMMA TypedWhichId<SwGammaGrf>(139)
344 #define RES_GRFATR_INVERT TypedWhichId<SwInvertGrf>(140)
345 #define RES_GRFATR_TRANSPARENCY TypedWhichId<SwTransparencyGrf>(141)
346 #define RES_GRFATR_DRAWMODE TypedWhichId<SwDrawModeGrf>(142)
347 
348 #define RES_GRFATR_DUMMY1 TypedWhichId<SfxBoolItem>(143)
349 #define RES_GRFATR_DUMMY2 TypedWhichId<SfxBoolItem>(144)
350 #define RES_GRFATR_DUMMY3 TypedWhichId<SfxBoolItem>(145)
351 #define RES_GRFATR_DUMMY4 TypedWhichId<SfxBoolItem>(146)
352 #define RES_GRFATR_DUMMY5 TypedWhichId<SfxBoolItem>(147)
353 #define RES_GRFATR_END (148)
354 
355 #define RES_BOXATR_BEGIN RES_GRFATR_END
356 #define RES_BOXATR_FORMAT TypedWhichId<SwTableBoxNumFormat>(RES_BOXATR_BEGIN) // 148
357 #define RES_BOXATR_FORMULA TypedWhichId<SwTableBoxFormula>(149)
358 #define RES_BOXATR_VALUE TypedWhichId<SwTableBoxValue>(150)
359 #define RES_BOXATR_END (151)
360 
361 #define RES_UNKNOWNATR_BEGIN RES_BOXATR_END
362 #define RES_UNKNOWNATR_CONTAINER TypedWhichId<SvXMLAttrContainerItem>(RES_UNKNOWNATR_BEGIN)// 151
363 #define RES_UNKNOWNATR_END (152)
364 
365 // Format IDs
366 #define RES_FMT_BEGIN RES_UNKNOWNATR_END
367 #define RES_CHRFMT TypedWhichId<SwCharFormat>(RES_FMT_BEGIN) // 152
368 #define RES_FRMFMT TypedWhichId<SwFrameFormat>(153)
369 #define RES_FLYFRMFMT TypedWhichId<SwFlyFrameFormat>(154)
370 #define RES_TXTFMTCOLL TypedWhichId<SwTextFormatColl>(155)
371 #define RES_GRFFMTCOLL TypedWhichId<SwGrfFormatColl>(156)
372 #define RES_DRAWFRMFMT TypedWhichId<SwDrawFrameFormat>(157)
373 #define RES_CONDTXTFMTCOLL TypedWhichId<SwConditionTextFormatColl>(158)
374 #define RES_FMT_END 159
375 
376 // ID's for Messages in the Formats
377 #define RES_MSG_BEGIN RES_FMT_END
378 #define RES_OBJECTDYING TypedWhichId<SwPtrMsgPoolItem>(RES_MSG_BEGIN) // 159
379 #define RES_FMT_CHG TypedWhichId<SwFormatChg>(160)
380 #define RES_ATTRSET_CHG TypedWhichId<SwAttrSetChg>(161)
381 #define RES_INS_TXT TypedWhichId<SwInsText>(162)
382 #define RES_DEL_CHR TypedWhichId<SwDelChr>(163)
383 #define RES_DEL_TXT TypedWhichId<SwDelText>(164)
384 #define RES_UPDATE_ATTR TypedWhichId<SwUpdateAttr>(165)
385 #define RES_REFMARKFLD_UPDATE TypedWhichId<SwRefMarkFieldUpdate>(166)
386 #define RES_DOCPOS_UPDATE TypedWhichId<SwDocPosUpdate>(167)
387 #define RES_TABLEFML_UPDATE TypedWhichId<SwTableFormulaUpdate>(168)
388 #define RES_UPDATEDDETBL TypedWhichId<SwMsgPoolItem>(169)
389 #define RES_TBLHEADLINECHG TypedWhichId<SwMsgPoolItem>(170)
390 #define RES_AUTOFMT_DOCNODE TypedWhichId<SwAutoFormatGetDocNode>(171)
391 #define RES_SECTION_HIDDEN TypedWhichId<SwMsgPoolItem>(172)
392 #define RES_SECTION_NOT_HIDDEN TypedWhichId<SwMsgPoolItem>(173)
393 #define RES_GRAPHIC_ARRIVED TypedWhichId<SwMsgPoolItem>(174)
394 #define RES_GRAPHIC_PIECE_ARRIVED TypedWhichId<SwMsgPoolItem>(175)
395 #define RES_HIDDENPARA_PRINT TypedWhichId<SwMsgPoolItem>(176)
396 #define RES_CONDCOLL_CONDCHG TypedWhichId<SwCondCollCondChg>(177)
397 #define RES_VIRTPAGENUM_INFO TypedWhichId<SwVirtPageNumInfo>(178)
398 #define RES_REMOVE_UNO_OBJECT TypedWhichId<SwPtrMsgPoolItem>(179)
399 #define RES_GRF_REREAD_AND_INCACHE TypedWhichId<SwMsgPoolItem>(180)
400 // empty
401 #define RES_FINDNEARESTNODE TypedWhichId<SwFindNearestNode>(182)
402 #define RES_CONTENT_VISIBLE TypedWhichId<SwPtrMsgPoolItem>(183)
403 #define RES_GRAPHIC_SWAPIN TypedWhichId<SwMsgPoolItem>(184)
404 #define RES_NAME_CHANGED TypedWhichId<SwStringMsgPoolItem>(185)
405 #define RES_TITLE_CHANGED TypedWhichId<SwStringMsgPoolItem>(186)
406 #define RES_DESCRIPTION_CHANGED TypedWhichId<SwStringMsgPoolItem>(187)
407 #define RES_LINKED_GRAPHIC_STREAM_ARRIVED TypedWhichId<SwMsgPoolItem>(187)
408 #define RES_MSG_END (188)
409 
410 // An ID for the RTF-reader. The stylesheets are treated like attributes,
411 // i.e. there is a StyleSheet-attribute. To avoid collision with other
412 // Which()-values, the value is listed here. (The help system too defines
413 // new attributes!)
414 #define RES_FLTRATTR_BEGIN RES_MSG_END
415 #define RES_FLTR_BOOKMARK TypedWhichId<SfxStringItem>(RES_FLTRATTR_BEGIN)
416 #define RES_FLTR_ANCHOR TypedWhichId<SwFltAnchor>(189)
417 #define RES_FLTR_NUMRULE TypedWhichId<SfxStringItem>(190)
418 #define RES_FLTR_TOX TypedWhichId<SwFltTOX>(191)
419 #define RES_FLTR_REDLINE TypedWhichId<SwFltRedline>(192)
420 #define RES_FLTR_ANNOTATIONMARK TypedWhichId<CntUInt16Item>(193)
421 #define RES_FLTR_RDFMARK TypedWhichId<SwFltRDFMark>(194)
422 #define RES_FLTRATTR_END 195
423 
424 #define RES_TBX_DUMMY RES_FLTRATTR_END + 1
425 
426 #define HINT_END RES_TBX_DUMMY
427 
428 // Error recognition!!
429 #define INVALID_HINT HINT_END
430 #define RES_WHICHHINT_END HINT_END
431 
432 inline bool isATR(const sal_uInt16 nWhich)
433 {
434  return (RES_CHRATR_BEGIN <= nWhich) && (RES_UNKNOWNATR_END > nWhich);
435 }
436 inline bool isCHRATR(const sal_uInt16 nWhich)
437 {
438  return (RES_CHRATR_BEGIN <= nWhich) && (RES_CHRATR_END > nWhich);
439 }
440 inline bool isTXTATR_WITHEND(const sal_uInt16 nWhich)
441 {
442  return (RES_TXTATR_WITHEND_BEGIN <= nWhich)
443  && (RES_TXTATR_WITHEND_END > nWhich);
444 }
445 inline bool isTXTATR_NOEND(const sal_uInt16 nWhich)
446 {
447  return (RES_TXTATR_NOEND_BEGIN <= nWhich)
448  && (RES_TXTATR_NOEND_END > nWhich);
449 }
450 inline bool isTXTATR(const sal_uInt16 nWhich)
451 {
452  return (RES_TXTATR_BEGIN <= nWhich) && (RES_TXTATR_END > nWhich);
453 }
454 inline bool isPARATR(const sal_uInt16 nWhich)
455 {
456  return (RES_PARATR_BEGIN <= nWhich) && (RES_PARATR_END > nWhich);
457 }
458 inline bool isPARATR_LIST(const sal_uInt16 nWhich)
459 {
460  return (RES_PARATR_LIST_BEGIN <= nWhich) && (RES_PARATR_LIST_END > nWhich);
461 }
462 inline bool isFRMATR(const sal_uInt16 nWhich)
463 {
464  return (RES_FRMATR_BEGIN <= nWhich) && (RES_FRMATR_END > nWhich);
465 }
466 inline bool isDrawingLayerAttribute(const sal_uInt16 nWhich)
467 {
468  return (XATTR_START <= nWhich) && (XATTR_END > nWhich);
469 }
470 inline bool isGRFATR(const sal_uInt16 nWhich)
471 {
472  return (RES_GRFATR_BEGIN <= nWhich) && (RES_GRFATR_END > nWhich);
473 }
474 inline bool isBOXATR(const sal_uInt16 nWhich)
475 {
476  return (RES_BOXATR_BEGIN <= nWhich) && (RES_BOXATR_END > nWhich);
477 }
478 inline bool isUNKNOWNATR(const sal_uInt16 nWhich)
479 {
480  return (RES_UNKNOWNATR_BEGIN <= nWhich) && (RES_UNKNOWNATR_END > nWhich);
481 }
482 
483 // Take the respective default attribute from the statistical default
484 // attributes table over the Which-value.
485 // If none exists, return a 0 pointer!!!
486 // This function is implemented in Init.cxx. It is declared here as external
487 // in order to allow the formats to access it.
488 // Inline in PRODUCT.
489 class SfxPoolItem;
490 struct SfxItemInfo;
491 typedef std::vector<SfxPoolItem*> SwDfltAttrTab;
492 
493 extern SwDfltAttrTab aAttrTab;
494 extern SfxItemInfo aSlotTab[];
495 
501 SW_DLLPUBLIC const SfxPoolItem* GetDfltAttr( sal_uInt16 nWhich );
502 
503 template<class T> inline const T* GetDfltAttr( TypedWhichId<T> nWhich )
504 { return static_cast<const T*>(GetDfltAttr(sal_uInt16(nWhich))); }
505 
506 SW_DLLPUBLIC sal_uInt16 GetWhichOfScript( sal_uInt16 nWhich, sal_uInt16 nScript );
507 
508 // return for the given TextAttribute without an end the correct character.
509 // This function returns
510 // CH_TXTATR_BREAKWORD for Textattribute which breaks a word (default)
511 // CH_TXTATR_INWORD for Textattribute which doesn't breaks a word
512 class SwTextAttr;
514 
515 // all Sets defined in init.cxx
516 
517 // AttrSet-Range for the 3 Break-Attribute
518 extern sal_uInt16 const aBreakSetRange[];
519 // AttrSet-Range for TextFormatColl
520 extern sal_uInt16 const aTextFormatCollSetRange[];
521 // AttrSet-Range for GrfFormatColl
522 extern sal_uInt16 const aGrfFormatCollSetRange[];
523 // AttrSet-Range for TextNode
524 SW_DLLPUBLIC extern sal_uInt16 const aTextNodeSetRange[];
525 // AttrSet-Range for NoTextNode
526 extern sal_uInt16 const aNoTextNodeSetRange[];
527 // AttrSet-Range for SwTable
528 extern sal_uInt16 const aTableSetRange[];
529 // AttrSet-Range for SwTableLine
530 extern sal_uInt16 const aTableLineSetRange[];
531 // AttrSet-Range for SwTableBox
532 extern sal_uInt16 const aTableBoxSetRange[];
533 // AttrSet-Range for SwFrameFormat
534 SW_DLLPUBLIC extern sal_uInt16 const aFrameFormatSetRange[];
535 // AttrSet-Range for SwCharFormat
536 extern sal_uInt16 const aCharFormatSetRange[];
537 // AttrSet-Range for the autostyles
538 extern sal_uInt16 const aCharAutoFormatSetRange[];
539 // AttrSet-Range for SwPageDescFormat
540 extern sal_uInt16 const aPgFrameFormatSetRange[];
541 
542 // check if ID is InRange of AttrSet-Ids
543 bool IsInRange( const sal_uInt16* pRange, const sal_uInt16 nId );
544 
545 #endif
546 
547 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
bool isUNKNOWNATR(const sal_uInt16 nWhich)
Definition: hintids.hxx:478
#define RES_BOXATR_BEGIN
Definition: hintids.hxx:355
SW_DLLPUBLIC sal_uInt16 const aTextNodeSetRange[]
Definition: init.cxx:171
sal_uInt16 const aTableBoxSetRange[]
Definition: init.cxx:220
#define RES_GRFATR_END
Definition: hintids.hxx:353
sal_Unicode GetCharOfTextAttr(const SwTextAttr &rAttr)
Definition: thints.cxx:3467
sal_uInt16 const aCharFormatSetRange[]
Definition: init.cxx:245
Pagedescriptor Client of SwPageDesc that is "described" by the attribute.
Definition: fmtpdsc.hxx:35
bool isCHRATR(const sal_uInt16 nWhich)
Definition: hintids.hxx:436
SW_DLLPUBLIC const SfxPoolItem * GetDfltAttr(sal_uInt16 nWhich)
Get the default attribute from corresponding default attribute table.
Definition: hints.cxx:153
bool isFRMATR(const sal_uInt16 nWhich)
Definition: hintids.hxx:462
bool isTXTATR_WITHEND(const sal_uInt16 nWhich)
Definition: hintids.hxx:440
bool isTXTATR(const sal_uInt16 nWhich)
Definition: hintids.hxx:450
bool isTXTATR_NOEND(const sal_uInt16 nWhich)
Definition: hintids.hxx:445
#define RES_FRMATR_END
Definition: hintids.hxx:331
If text in multi-column sections should be evenly distributed.
Definition: fmtclbl.hxx:28
bool isATR(const sal_uInt16 nWhich)
Definition: hintids.hxx:432
sal_uInt16 const aBreakSetRange[]
Definition: init.cxx:142
bool isDrawingLayerAttribute(const sal_uInt16 nWhich)
Definition: hintids.hxx:466
#define RES_PARATR_LIST_END
Definition: hintids.hxx:285
#define RES_TXTATR_END
Definition: hintids.hxx:252
sal_uInt16 sal_Unicode
#define RES_CHRATR_END
Definition: hintids.hxx:208
SW_DLLPUBLIC sal_uInt16 GetWhichOfScript(sal_uInt16 nWhich, sal_uInt16 nScript)
Definition: hints.cxx:195
sal_uInt16 const aCharAutoFormatSetRange[]
Definition: init.cxx:252
bool isGRFATR(const sal_uInt16 nWhich)
Definition: hintids.hxx:470
sal_uInt16 const aTableLineSetRange[]
Definition: init.cxx:208
#define RES_TXTATR_WITHEND_END
Definition: hintids.hxx:240
#define RES_PARATR_BEGIN
Definition: hintids.hxx:254
#define RES_TXTATR_BEGIN
Definition: hintids.hxx:211
sal_uInt16 const aTableSetRange[]
Definition: init.cxx:192
#define RES_TXTATR_NOEND_BEGIN
Definition: hintids.hxx:243
FlyAnchors.
Definition: fmtanchr.hxx:34
#define RES_BOXATR_END
Definition: hintids.hxx:359
#define RES_CHRATR_BEGIN
Definition: hintids.hxx:162
Connection (text flow) between two FlyFrames.
Definition: fmtcnct.hxx:31
#define RES_TXTATR_NOEND_END
Definition: hintids.hxx:251
#define RES_UNKNOWNATR_BEGIN
Definition: hintids.hxx:361
#define SW_DLLPUBLIC
Definition: swdllapi.h:28
#define RES_PARATR_LIST_BEGIN
Definition: hintids.hxx:278
sal_uInt16 const aGrfFormatCollSetRange[]
Definition: init.cxx:163
#define RES_GRFATR_BEGIN
Definition: hintids.hxx:333
bool isPARATR(const sal_uInt16 nWhich)
Definition: hintids.hxx:454
#define RES_TXTATR_WITHEND_BEGIN
text attributes with start and end.
Definition: hintids.hxx:229
SwDfltAttrTab aAttrTab
Format of a fly content.
Definition: fmtflcnt.hxx:32
SwDocPosUpdate is sent to signal that only the frames from or to a specified document-global position...
Definition: hints.hxx:183
SfxItemInfo aSlotTab[]
Definition: init.cxx:269
std::vector< SfxPoolItem * > SwDfltAttrTab
Definition: hintids.hxx:490
sal_uInt16 const aTextFormatCollSetRange[]
Definition: init.cxx:150
sal_uInt16 const aPgFrameFormatSetRange[]
Definition: init.cxx:260
#define RES_UNKNOWNATR_END
Definition: hintids.hxx:363
#define XATTR_END
If SwFormatDrop is a Client, it is the CharFormat that describes the font for the DropCaps...
Definition: paratr.hxx:50
sal_uInt16 const aNoTextNodeSetRange[]
Definition: init.cxx:185
bool isBOXATR(const sal_uInt16 nWhich)
Definition: hintids.hxx:474
#define RES_FRMATR_BEGIN
Definition: hintids.hxx:287
constexpr auto XATTR_START
#define RES_PARATR_END
Definition: hintids.hxx:274
bool isPARATR_LIST(const sal_uInt16 nWhich)
Definition: hintids.hxx:458
SW_DLLPUBLIC sal_uInt16 const aFrameFormatSetRange[]
Definition: init.cxx:234
bool IsInRange(const sal_uInt16 *pRange, const sal_uInt16 nId)
check if ID is in range of attribute set IDs
Definition: swatrset.cxx:458