Branch libreoffice-5-0-4
[LibreOffice.git] / sw / inc / charatr.hxx
blob9634ce66f0c8ba45cdeecea5e38f65db8bf6b285
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 .
19 #ifndef INCLUDED_SW_INC_CHARATR_HXX
20 #define INCLUDED_SW_INC_CHARATR_HXX
22 #include <format.hxx>
23 #include <hintids.hxx>
24 #include <editeng/postitem.hxx>
25 #include <editeng/wghtitem.hxx>
26 #include <editeng/shdditem.hxx>
27 #include <editeng/autokernitem.hxx>
28 #include <editeng/wrlmitem.hxx>
29 #include <editeng/contouritem.hxx>
30 #include <editeng/kernitem.hxx>
31 #include <editeng/udlnitem.hxx>
32 #include <editeng/crossedoutitem.hxx>
33 #include <editeng/fhgtitem.hxx>
34 #include <editeng/prszitem.hxx>
35 #include <editeng/fontitem.hxx>
36 #include <editeng/charsetcoloritem.hxx>
37 #include <editeng/escapementitem.hxx>
38 #include <editeng/cmapitem.hxx>
39 #include <editeng/nhypitem.hxx>
40 #include <editeng/blinkitem.hxx>
41 #include <editeng/brushitem.hxx>
42 #include <editeng/emphasismarkitem.hxx>
43 #include <editeng/twolinesitem.hxx>
44 #include <editeng/charscaleitem.hxx>
45 #include <editeng/charrotateitem.hxx>
46 #include <editeng/charreliefitem.hxx>
47 #include <editeng/charhiddenitem.hxx>
48 #include <editeng/boxitem.hxx>
49 #include <editeng/shaditem.hxx>
50 #include <editeng/langitem.hxx>
52 // implementation of the character attribute methods of SwAttrSet
54 inline const SvxPostureItem &SwAttrSet::GetPosture(bool bInP) const
55 { return static_cast<const SvxPostureItem&>(Get( RES_CHRATR_POSTURE,bInP)); }
56 inline const SvxPostureItem &SwAttrSet::GetCJKPosture(bool bInP) const
57 { return static_cast<const SvxPostureItem&>(Get( RES_CHRATR_CJK_POSTURE,bInP)); }
58 inline const SvxPostureItem &SwAttrSet::GetCTLPosture(bool bInP) const
59 { return static_cast<const SvxPostureItem&>(Get( RES_CHRATR_CTL_POSTURE,bInP)); }
60 inline const SvxWeightItem &SwAttrSet::GetWeight(bool bInP) const
61 { return static_cast<const SvxWeightItem&>(Get( RES_CHRATR_WEIGHT,bInP)); }
62 inline const SvxWeightItem &SwAttrSet::GetCJKWeight(bool bInP) const
63 { return static_cast<const SvxWeightItem&>(Get( RES_CHRATR_CJK_WEIGHT,bInP)); }
64 inline const SvxWeightItem &SwAttrSet::GetCTLWeight(bool bInP) const
65 { return static_cast<const SvxWeightItem&>(Get( RES_CHRATR_CTL_WEIGHT,bInP)); }
66 inline const SvxShadowedItem &SwAttrSet::GetShadowed(bool bInP) const
67 { return static_cast<const SvxShadowedItem&>(Get( RES_CHRATR_SHADOWED,bInP)); }
68 inline const SvxAutoKernItem &SwAttrSet::GetAutoKern(bool bInP) const
69 { return static_cast<const SvxAutoKernItem&>(Get( RES_CHRATR_AUTOKERN,bInP)); }
70 inline const SvxWordLineModeItem &SwAttrSet::GetWordLineMode(bool bInP) const
71 { return static_cast<const SvxWordLineModeItem&>(Get( RES_CHRATR_WORDLINEMODE,bInP)); }
72 inline const SvxContourItem &SwAttrSet::GetContour(bool bInP) const
73 { return static_cast<const SvxContourItem&>(Get( RES_CHRATR_CONTOUR,bInP)); }
74 inline const SvxKerningItem &SwAttrSet::GetKerning(bool bInP) const
75 { return static_cast<const SvxKerningItem&>(Get( RES_CHRATR_KERNING,bInP)); }
76 inline const SvxUnderlineItem &SwAttrSet::GetUnderline(bool bInP) const
77 { return static_cast<const SvxUnderlineItem&>(Get( RES_CHRATR_UNDERLINE,bInP)); }
78 inline const SvxOverlineItem &SwAttrSet::GetOverline(bool bInP) const
79 { return static_cast<const SvxOverlineItem&>(Get( RES_CHRATR_OVERLINE,bInP)); }
80 inline const SvxCrossedOutItem &SwAttrSet::GetCrossedOut(bool bInP) const
81 { return static_cast<const SvxCrossedOutItem&>(Get( RES_CHRATR_CROSSEDOUT,bInP)); }
82 inline const SvxFontHeightItem &SwAttrSet::GetSize(bool bInP) const
83 { return static_cast<const SvxFontHeightItem&>(Get( RES_CHRATR_FONTSIZE,bInP)); }
84 inline const SvxFontHeightItem &SwAttrSet::GetCJKSize(bool bInP) const
85 { return static_cast<const SvxFontHeightItem&>(Get( RES_CHRATR_CJK_FONTSIZE,bInP)); }
86 inline const SvxFontHeightItem &SwAttrSet::GetCTLSize(bool bInP) const
87 { return static_cast<const SvxFontHeightItem&>(Get( RES_CHRATR_CTL_FONTSIZE,bInP)); }
88 inline const SvxPropSizeItem &SwAttrSet::GetPropSize(bool bInP) const
89 { return static_cast<const SvxPropSizeItem&>(Get( RES_CHRATR_PROPORTIONALFONTSIZE,bInP)); }
90 inline const SvxFontItem &SwAttrSet::GetFont(bool bInP) const
91 { return static_cast<const SvxFontItem&>(Get( RES_CHRATR_FONT,bInP)); }
92 inline const SvxFontItem &SwAttrSet::GetCJKFont(bool bInP) const
93 { return static_cast<const SvxFontItem&>(Get( RES_CHRATR_CJK_FONT,bInP)); }
94 inline const SvxFontItem &SwAttrSet::GetCTLFont(bool bInP) const
95 { return static_cast<const SvxFontItem&>(Get( RES_CHRATR_CTL_FONT,bInP)); }
96 inline const SvxColorItem &SwAttrSet::GetColor(bool bInP) const
97 { return static_cast<const SvxColorItem&>(Get( RES_CHRATR_COLOR,bInP)); }
98 inline const SvxCharSetColorItem &SwAttrSet::GetCharSetColor(bool bInP) const
99 { return static_cast<const SvxCharSetColorItem&>(Get( RES_CHRATR_CHARSETCOLOR,bInP)); }
100 inline const SvxLanguageItem &SwAttrSet::GetLanguage(bool bInP) const
101 { return static_cast<const SvxLanguageItem&>(Get( RES_CHRATR_LANGUAGE,bInP)); }
102 inline const SvxLanguageItem &SwAttrSet::GetCJKLanguage(bool bInP) const
103 { return static_cast<const SvxLanguageItem&>(Get( RES_CHRATR_CJK_LANGUAGE,bInP)); }
104 inline const SvxLanguageItem &SwAttrSet::GetCTLLanguage(bool bInP) const
105 { return static_cast<const SvxLanguageItem&>(Get( RES_CHRATR_CTL_LANGUAGE,bInP)); }
106 inline const SvxEscapementItem &SwAttrSet::GetEscapement(bool bInP) const
107 { return static_cast<const SvxEscapementItem&>(Get( RES_CHRATR_ESCAPEMENT,bInP)); }
108 inline const SvxCaseMapItem &SwAttrSet::GetCaseMap(bool bInP) const
109 { return static_cast<const SvxCaseMapItem&>(Get( RES_CHRATR_CASEMAP,bInP)); }
110 inline const SvxNoHyphenItem &SwAttrSet::GetNoHyphenHere(bool bInP) const
111 { return static_cast<const SvxNoHyphenItem&>(Get( RES_CHRATR_NOHYPHEN,bInP)); }
112 inline const SvxBlinkItem &SwAttrSet::GetBlink(bool bInP) const
113 { return static_cast<const SvxBlinkItem&>(Get( RES_CHRATR_BLINK,bInP)); }
114 inline const SvxBrushItem &SwAttrSet::GetChrBackground( bool bInP ) const
115 { return static_cast<const SvxBrushItem&>(Get( RES_CHRATR_BACKGROUND, bInP )); }
116 inline const SvxBrushItem &SwAttrSet::GetChrHighlight( bool bInP ) const
117 { return static_cast<const SvxBrushItem&>(Get( RES_CHRATR_HIGHLIGHT, bInP )); }
118 inline const SvxEmphasisMarkItem &SwAttrSet::GetEmphasisMark( bool bInP ) const
119 { return static_cast<const SvxEmphasisMarkItem&>(Get( RES_CHRATR_EMPHASIS_MARK, bInP )); }
120 inline const SvxTwoLinesItem &SwAttrSet::Get2Lines( bool bInP ) const
121 { return static_cast<const SvxTwoLinesItem&>(Get( RES_CHRATR_TWO_LINES, bInP )); }
122 inline const SvxCharScaleWidthItem &SwAttrSet::GetCharScaleW( bool bInP ) const
123 { return static_cast<const SvxCharScaleWidthItem&>(Get( RES_CHRATR_SCALEW, bInP )); }
124 inline const SvxCharRotateItem &SwAttrSet::GetCharRotate( bool bInP ) const
125 { return static_cast<const SvxCharRotateItem&>(Get( RES_CHRATR_ROTATE, bInP )); }
126 inline const SvxCharReliefItem &SwAttrSet::GetCharRelief( bool bInP ) const
127 { return static_cast<const SvxCharReliefItem&>(Get( RES_CHRATR_RELIEF, bInP )); }
128 inline const SvxCharHiddenItem &SwAttrSet::GetCharHidden( bool bInP ) const
129 { return static_cast<const SvxCharHiddenItem&>(Get( RES_CHRATR_HIDDEN, bInP )); }
130 inline const SvxBoxItem &SwAttrSet::GetCharBorder( bool bInP ) const
131 { return static_cast<const SvxBoxItem&>(Get( RES_CHRATR_BOX, bInP )); }
132 inline const SvxShadowItem &SwAttrSet::GetCharShadow( bool bInP ) const
133 { return static_cast<const SvxShadowItem&>(Get( RES_CHRATR_SHADOW, bInP )); }
135 // implementation of the character attribute methods of SwFormat
137 inline const SvxPostureItem &SwFormat::GetPosture(bool bInP) const
138 { return m_aSet.GetPosture(bInP); }
139 inline const SvxWeightItem &SwFormat::GetWeight(bool bInP) const
140 { return m_aSet.GetWeight(bInP); }
141 inline const SvxShadowedItem &SwFormat::GetShadowed(bool bInP) const
142 { return m_aSet.GetShadowed(bInP); }
143 inline const SvxAutoKernItem &SwFormat::GetAutoKern(bool bInP) const
144 { return m_aSet.GetAutoKern(bInP); }
145 inline const SvxWordLineModeItem &SwFormat::GetWordLineMode(bool bInP) const
146 { return m_aSet.GetWordLineMode(bInP); }
147 inline const SvxContourItem &SwFormat::GetContour(bool bInP) const
148 { return m_aSet.GetContour(bInP); }
149 inline const SvxKerningItem &SwFormat::GetKerning(bool bInP) const
150 { return m_aSet.GetKerning(bInP); }
151 inline const SvxUnderlineItem &SwFormat::GetUnderline(bool bInP) const
152 { return m_aSet.GetUnderline(bInP); }
153 inline const SvxOverlineItem &SwFormat::GetOverline(bool bInP) const
154 { return m_aSet.GetOverline(bInP); }
155 inline const SvxCrossedOutItem &SwFormat::GetCrossedOut(bool bInP) const
156 { return m_aSet.GetCrossedOut(bInP); }
157 inline const SvxFontHeightItem &SwFormat::GetSize(bool bInP) const
158 { return m_aSet.GetSize(bInP); }
159 inline const SvxPropSizeItem &SwFormat::GetPropSize(bool bInP) const
160 { return m_aSet.GetPropSize(bInP); }
161 inline const SvxFontItem &SwFormat::GetFont(bool bInP) const
162 { return m_aSet.GetFont(bInP); }
163 inline const SvxFontItem &SwFormat::GetCJKFont(bool bInP) const
164 { return m_aSet.GetCJKFont(bInP); }
165 inline const SvxFontItem &SwFormat::GetCTLFont(bool bInP) const
166 { return m_aSet.GetCTLFont(bInP); }
167 inline const SvxColorItem &SwFormat::GetColor(bool bInP) const
168 { return m_aSet.GetColor(bInP); }
169 inline const SvxCharSetColorItem &SwFormat::GetCharSetColor(bool bInP) const
170 { return m_aSet.GetCharSetColor(bInP); }
171 inline const SvxLanguageItem &SwFormat::GetLanguage(bool bInP) const
172 { return m_aSet.GetLanguage(bInP); }
173 inline const SvxEscapementItem &SwFormat::GetEscapement(bool bInP) const
174 { return m_aSet.GetEscapement(bInP); }
175 inline const SvxCaseMapItem &SwFormat::GetCaseMap(bool bInP) const
176 { return m_aSet.GetCaseMap(bInP); }
177 inline const SvxNoHyphenItem &SwFormat::GetNoHyphenHere(bool bInP) const
178 { return m_aSet.GetNoHyphenHere(bInP); }
179 inline const SvxBlinkItem &SwFormat::GetBlink(bool bInP) const
180 { return m_aSet.GetBlink(bInP); }
181 inline const SvxBrushItem &SwFormat::GetChrBackground(bool bInP) const
182 { return m_aSet.GetChrBackground(bInP); }
183 inline const SvxBrushItem &SwFormat::GetChrHighlight(bool bInP) const
184 { return m_aSet.GetChrHighlight(bInP); }
185 inline const SvxEmphasisMarkItem &SwFormat::GetEmphasisMark( bool bInP ) const
186 { return m_aSet.GetEmphasisMark(bInP); }
187 inline const SvxTwoLinesItem &SwFormat::Get2Lines( bool bInP ) const
188 { return m_aSet.Get2Lines(bInP); }
189 inline const SvxCharScaleWidthItem &SwFormat::GetCharScaleW( bool bInP ) const
190 { return m_aSet.GetCharScaleW(bInP); }
191 inline const SvxCharRotateItem &SwFormat::GetCharRotate( bool bInP ) const
192 { return m_aSet.GetCharRotate(bInP); }
193 inline const SvxCharReliefItem &SwFormat::GetCharRelief( bool bInP ) const
194 { return m_aSet.GetCharRelief(bInP); }
195 inline const SvxCharHiddenItem &SwFormat::GetCharHidden( bool bInP ) const
196 { return m_aSet.GetCharHidden(bInP); }
197 inline const SvxBoxItem &SwFormat::GetCharBorder( bool bInP ) const
198 { return m_aSet.GetCharBorder(bInP); }
199 inline const SvxShadowItem &SwFormat::GetCharShadow( bool bInP ) const
200 { return m_aSet.GetCharShadow(bInP); }
202 #endif
204 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */