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_EDITENG_EEITEM_HXX
21 #define INCLUDED_EDITENG_EEITEM_HXX
23 #include <svl/solar.hrc>
24 #include <svl/typedwhich.hxx>
30 class SvxAutoKernItem
;
32 class SvxCharReliefItem
;
33 class SvxCharScaleWidthItem
;
36 class SvxCrossedOutItem
;
37 class SvxEmphasisMarkItem
;
38 class SvxEscapementItem
;
40 class SvxFontHeightItem
;
42 class SvxForbiddenRuleItem
;
43 class SvxFrameDirectionItem
;
44 class SvxHangingPunctuationItem
;
46 class SvxLanguageItem
;
47 class SvxLineSpacingItem
;
49 class SvxOverlineItem
;
51 class SvXMLAttrContainerItem
;
52 class SvxScriptSpaceItem
;
53 class SvxShadowedItem
;
56 class SvxUnderlineItem
;
58 class SvxWordLineModeItem
;
60 class SvxNumBulletItem
;
61 class SvxJustifyMethodItem
;
62 class SvxVerJustifyItem
;
66 * NOTE: Changes in this file will probably require
67 * consistent changes in eerdll.cxx and editdoc.cxx
71 inline constexpr sal_uInt16
EE_ITEMS_START(OWN_ATTR_VALUE_END
+ 1);
73 // Paragraph attributes:
74 inline constexpr sal_uInt16
EE_PARA_START (EE_ITEMS_START
+ 0);
75 inline constexpr TypedWhichId
<SvxFrameDirectionItem
> EE_PARA_WRITINGDIR (EE_PARA_START
+0);
76 inline constexpr TypedWhichId
<SvXMLAttrContainerItem
> EE_PARA_XMLATTRIBS (EE_PARA_START
+1);
77 inline constexpr TypedWhichId
<SvxHangingPunctuationItem
> EE_PARA_HANGINGPUNCTUATION (EE_PARA_START
+2);
78 inline constexpr TypedWhichId
<SvxForbiddenRuleItem
> EE_PARA_FORBIDDENRULES (EE_PARA_START
+3);
79 inline constexpr TypedWhichId
<SvxScriptSpaceItem
> EE_PARA_ASIANCJKSPACING (EE_PARA_START
+4);
80 inline constexpr TypedWhichId
<SvxNumBulletItem
> EE_PARA_NUMBULLET (EE_PARA_START
+5);
81 inline constexpr TypedWhichId
<SfxBoolItem
> EE_PARA_HYPHENATE (EE_PARA_START
+6);
82 inline constexpr TypedWhichId
<SfxBoolItem
> EE_PARA_HYPHENATE_NO_CAPS (EE_PARA_START
+7);
83 inline constexpr TypedWhichId
<SfxBoolItem
> EE_PARA_HYPHENATE_NO_LAST_WORD (EE_PARA_START
+8);
84 inline constexpr TypedWhichId
<SfxBoolItem
> EE_PARA_BULLETSTATE (EE_PARA_START
+9);
85 inline constexpr TypedWhichId
<SvxLRSpaceItem
> EE_PARA_OUTLLRSPACE (EE_PARA_START
+10);
86 inline constexpr TypedWhichId
<SfxInt16Item
> EE_PARA_OUTLLEVEL (EE_PARA_START
+11);
87 inline constexpr TypedWhichId
<SvxBulletItem
> EE_PARA_BULLET (EE_PARA_START
+12);
88 inline constexpr TypedWhichId
<SvxLRSpaceItem
> EE_PARA_LRSPACE (EE_PARA_START
+13);
89 inline constexpr TypedWhichId
<SvxULSpaceItem
> EE_PARA_ULSPACE (EE_PARA_START
+14);
90 inline constexpr TypedWhichId
<SvxLineSpacingItem
> EE_PARA_SBL (EE_PARA_START
+15);
91 inline constexpr TypedWhichId
<SvxAdjustItem
> EE_PARA_JUST (EE_PARA_START
+16);
92 inline constexpr TypedWhichId
<SvxTabStopItem
> EE_PARA_TABS (EE_PARA_START
+17);
93 inline constexpr TypedWhichId
<SvxJustifyMethodItem
> EE_PARA_JUST_METHOD (EE_PARA_START
+18);
94 inline constexpr TypedWhichId
<SvxVerJustifyItem
> EE_PARA_VER_JUST (EE_PARA_START
+19);
95 inline constexpr sal_uInt16
EE_PARA_END (EE_PARA_START
+ 19);
97 // Character attributes:
98 inline constexpr sal_uInt16
EE_CHAR_START (EE_PARA_END
+ 1);
99 inline constexpr TypedWhichId
<SvxColorItem
> EE_CHAR_COLOR (EE_CHAR_START
+0);
100 inline constexpr TypedWhichId
<SvxFontItem
> EE_CHAR_FONTINFO (EE_CHAR_START
+1);
101 inline constexpr TypedWhichId
<SvxFontHeightItem
> EE_CHAR_FONTHEIGHT (EE_CHAR_START
+2);
102 inline constexpr TypedWhichId
<SvxCharScaleWidthItem
> EE_CHAR_FONTWIDTH (EE_CHAR_START
+3);
103 inline constexpr TypedWhichId
<SvxWeightItem
> EE_CHAR_WEIGHT (EE_CHAR_START
+4);
104 inline constexpr TypedWhichId
<SvxUnderlineItem
> EE_CHAR_UNDERLINE (EE_CHAR_START
+5);
105 inline constexpr TypedWhichId
<SvxCrossedOutItem
> EE_CHAR_STRIKEOUT (EE_CHAR_START
+6);
106 inline constexpr TypedWhichId
<SvxPostureItem
> EE_CHAR_ITALIC (EE_CHAR_START
+7);
107 inline constexpr TypedWhichId
<SvxContourItem
> EE_CHAR_OUTLINE (EE_CHAR_START
+8);
108 inline constexpr TypedWhichId
<SvxShadowedItem
> EE_CHAR_SHADOW (EE_CHAR_START
+9);
109 inline constexpr TypedWhichId
<SvxEscapementItem
> EE_CHAR_ESCAPEMENT (EE_CHAR_START
+10);
110 inline constexpr TypedWhichId
<SvxAutoKernItem
> EE_CHAR_PAIRKERNING (EE_CHAR_START
+11);
111 inline constexpr TypedWhichId
<SvxKerningItem
> EE_CHAR_KERNING (EE_CHAR_START
+12);
112 inline constexpr TypedWhichId
<SvxWordLineModeItem
> EE_CHAR_WLM (EE_CHAR_START
+13);
113 inline constexpr TypedWhichId
<SvxLanguageItem
> EE_CHAR_LANGUAGE (EE_CHAR_START
+14);
114 inline constexpr TypedWhichId
<SvxLanguageItem
> EE_CHAR_LANGUAGE_CJK (EE_CHAR_START
+15);
115 inline constexpr TypedWhichId
<SvxLanguageItem
> EE_CHAR_LANGUAGE_CTL (EE_CHAR_START
+16);
116 inline constexpr TypedWhichId
<SvxFontItem
> EE_CHAR_FONTINFO_CJK (EE_CHAR_START
+17);
117 inline constexpr TypedWhichId
<SvxFontItem
> EE_CHAR_FONTINFO_CTL (EE_CHAR_START
+18);
118 inline constexpr TypedWhichId
<SvxFontHeightItem
> EE_CHAR_FONTHEIGHT_CJK (EE_CHAR_START
+19);
119 inline constexpr TypedWhichId
<SvxFontHeightItem
> EE_CHAR_FONTHEIGHT_CTL (EE_CHAR_START
+20);
120 inline constexpr TypedWhichId
<SvxWeightItem
> EE_CHAR_WEIGHT_CJK (EE_CHAR_START
+21);
121 inline constexpr TypedWhichId
<SvxWeightItem
> EE_CHAR_WEIGHT_CTL (EE_CHAR_START
+22);
122 inline constexpr TypedWhichId
<SvxPostureItem
> EE_CHAR_ITALIC_CJK (EE_CHAR_START
+23);
123 inline constexpr TypedWhichId
<SvxPostureItem
> EE_CHAR_ITALIC_CTL (EE_CHAR_START
+24);
124 inline constexpr TypedWhichId
<SvxEmphasisMarkItem
> EE_CHAR_EMPHASISMARK (EE_CHAR_START
+25);
125 inline constexpr TypedWhichId
<SvxCharReliefItem
> EE_CHAR_RELIEF (EE_CHAR_START
+26);
126 inline constexpr TypedWhichId
<SvXMLAttrContainerItem
> EE_CHAR_XMLATTRIBS (EE_CHAR_START
+27);
127 inline constexpr TypedWhichId
<SvxOverlineItem
> EE_CHAR_OVERLINE (EE_CHAR_START
+28);
128 inline constexpr TypedWhichId
<SvxCaseMapItem
> EE_CHAR_CASEMAP (EE_CHAR_START
+29);
129 inline constexpr TypedWhichId
<SfxGrabBagItem
> EE_CHAR_GRABBAG (EE_CHAR_START
+30);
130 inline constexpr TypedWhichId
<SvxColorItem
> EE_CHAR_BKGCOLOR (EE_CHAR_START
+31);
132 inline constexpr sal_uInt16
EE_CHAR_END (EE_CHAR_START
+ 31);
134 inline constexpr sal_uInt16
EE_FEATURE_START (EE_CHAR_END
+ 1);
135 inline constexpr sal_uInt16
EE_FEATURE_TAB (EE_FEATURE_START
+ 0);
136 inline constexpr sal_uInt16
EE_FEATURE_LINEBR (EE_FEATURE_TAB
+ 1);
137 inline constexpr sal_uInt16
EE_FEATURE_NOTCONV (EE_FEATURE_LINEBR
+ 1);
138 inline constexpr TypedWhichId
<SvxFieldItem
> EE_FEATURE_FIELD (EE_FEATURE_NOTCONV
+ 1);
139 inline constexpr sal_uInt16
EE_FEATURE_END (EE_FEATURE_FIELD
+ 0);
141 inline constexpr sal_uInt16
EE_ITEMS_END (EE_FEATURE_END
);
143 inline constexpr sal_uInt16
EDITITEMCOUNT (EE_ITEMS_END
- EE_ITEMS_START
+ 1);
145 #endif // _ INCLUDED_EDITENG_EEITEM_HXX
147 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */