Update ooo320-m1
[ooovba.git] / sw / inc / charatr.hxx
blob9c82b6b12c027ee61107f38360ec1cc8a82ac3b0
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: charatr.hxx,v $
10 * $Revision: 1.15.210.1 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _CHARATR_HXX
31 #define _CHARATR_HXX
33 #include <format.hxx>
34 #include <hintids.hxx> // fuer die WhichIds
37 /******************************************************************************
38 * Implementierung der Charakter-Attribut Methoden vom SwAttrSet
39 * AMA 12.10.94: Umstellung auf SvxItems.
40 ******************************************************************************/
42 inline const SvxPostureItem &SwAttrSet::GetPosture(BOOL bInP) const
43 { return (const SvxPostureItem&)Get( RES_CHRATR_POSTURE,bInP); }
44 inline const SvxPostureItem &SwAttrSet::GetCJKPosture(BOOL bInP) const
45 { return (const SvxPostureItem&)Get( RES_CHRATR_CJK_POSTURE,bInP); }
46 inline const SvxPostureItem &SwAttrSet::GetCTLPosture(BOOL bInP) const
47 { return (const SvxPostureItem&)Get( RES_CHRATR_CTL_POSTURE,bInP); }
48 inline const SvxWeightItem &SwAttrSet::GetWeight(BOOL bInP) const
49 { return (const SvxWeightItem&)Get( RES_CHRATR_WEIGHT,bInP); }
50 inline const SvxWeightItem &SwAttrSet::GetCJKWeight(BOOL bInP) const
51 { return (const SvxWeightItem&)Get( RES_CHRATR_CJK_WEIGHT,bInP); }
52 inline const SvxWeightItem &SwAttrSet::GetCTLWeight(BOOL bInP) const
53 { return (const SvxWeightItem&)Get( RES_CHRATR_CTL_WEIGHT,bInP); }
54 inline const SvxShadowedItem &SwAttrSet::GetShadowed(BOOL bInP) const
55 { return (const SvxShadowedItem&)Get( RES_CHRATR_SHADOWED,bInP); }
56 inline const SvxAutoKernItem &SwAttrSet::GetAutoKern(BOOL bInP) const
57 { return (const SvxAutoKernItem&)Get( RES_CHRATR_AUTOKERN,bInP); }
58 inline const SvxWordLineModeItem &SwAttrSet::GetWordLineMode(BOOL bInP) const
59 { return (const SvxWordLineModeItem&)Get( RES_CHRATR_WORDLINEMODE,bInP); }
60 inline const SvxContourItem &SwAttrSet::GetContour(BOOL bInP) const
61 { return (const SvxContourItem&)Get( RES_CHRATR_CONTOUR,bInP); }
62 inline const SvxKerningItem &SwAttrSet::GetKerning(BOOL bInP) const
63 { return (const SvxKerningItem&)Get( RES_CHRATR_KERNING,bInP); }
64 inline const SvxUnderlineItem &SwAttrSet::GetUnderline(BOOL bInP) const
65 { return (const SvxUnderlineItem&)Get( RES_CHRATR_UNDERLINE,bInP); }
66 inline const SvxOverlineItem &SwAttrSet::GetOverline(BOOL bInP) const
67 { return (const SvxOverlineItem&)Get( RES_CHRATR_OVERLINE,bInP); }
68 inline const SvxCrossedOutItem &SwAttrSet::GetCrossedOut(BOOL bInP) const
69 { return (const SvxCrossedOutItem&)Get( RES_CHRATR_CROSSEDOUT,bInP); }
70 inline const SvxFontHeightItem &SwAttrSet::GetSize(BOOL bInP) const
71 { return (const SvxFontHeightItem&)Get( RES_CHRATR_FONTSIZE,bInP); }
72 inline const SvxFontHeightItem &SwAttrSet::GetCJKSize(BOOL bInP) const
73 { return (const SvxFontHeightItem&)Get( RES_CHRATR_CJK_FONTSIZE,bInP); }
74 inline const SvxFontHeightItem &SwAttrSet::GetCTLSize(BOOL bInP) const
75 { return (const SvxFontHeightItem&)Get( RES_CHRATR_CTL_FONTSIZE,bInP); }
76 inline const SvxPropSizeItem &SwAttrSet::GetPropSize(BOOL bInP) const
77 { return (const SvxPropSizeItem&)Get( RES_CHRATR_PROPORTIONALFONTSIZE,bInP); }
78 inline const SvxFontItem &SwAttrSet::GetFont(BOOL bInP) const
79 { return (const SvxFontItem&)Get( RES_CHRATR_FONT,bInP); }
80 inline const SvxFontItem &SwAttrSet::GetCJKFont(BOOL bInP) const
81 { return (const SvxFontItem&)Get( RES_CHRATR_CJK_FONT,bInP); }
82 inline const SvxFontItem &SwAttrSet::GetCTLFont(BOOL bInP) const
83 { return (const SvxFontItem&)Get( RES_CHRATR_CTL_FONT,bInP); }
84 inline const SvxColorItem &SwAttrSet::GetColor(BOOL bInP) const
85 { return (const SvxColorItem&)Get( RES_CHRATR_COLOR,bInP); }
86 inline const SvxCharSetColorItem &SwAttrSet::GetCharSetColor(BOOL bInP) const
87 { return (const SvxCharSetColorItem&)Get( RES_CHRATR_CHARSETCOLOR,bInP); }
88 inline const SvxLanguageItem &SwAttrSet::GetLanguage(BOOL bInP) const
89 { return (const SvxLanguageItem&)Get( RES_CHRATR_LANGUAGE,bInP); }
90 inline const SvxLanguageItem &SwAttrSet::GetCJKLanguage(BOOL bInP) const
91 { return (const SvxLanguageItem&)Get( RES_CHRATR_CJK_LANGUAGE,bInP); }
92 inline const SvxLanguageItem &SwAttrSet::GetCTLLanguage(BOOL bInP) const
93 { return (const SvxLanguageItem&)Get( RES_CHRATR_CTL_LANGUAGE,bInP); }
94 inline const SvxEscapementItem &SwAttrSet::GetEscapement(BOOL bInP) const
95 { return (const SvxEscapementItem&)Get( RES_CHRATR_ESCAPEMENT,bInP); }
96 inline const SvxCaseMapItem &SwAttrSet::GetCaseMap(BOOL bInP) const
97 { return (const SvxCaseMapItem&)Get( RES_CHRATR_CASEMAP,bInP); }
98 inline const SvxNoHyphenItem &SwAttrSet::GetNoHyphenHere(BOOL bInP) const
99 { return (const SvxNoHyphenItem&)Get( RES_CHRATR_NOHYPHEN,bInP); }
100 inline const SvxBlinkItem &SwAttrSet::GetBlink(BOOL bInP) const
101 { return (const SvxBlinkItem&)Get( RES_CHRATR_BLINK,bInP); }
102 inline const SvxBrushItem &SwAttrSet::GetChrBackground( BOOL bInP ) const
103 { return (const SvxBrushItem&)Get( RES_CHRATR_BACKGROUND, bInP ); }
104 inline const SvxEmphasisMarkItem &SwAttrSet::GetEmphasisMark( BOOL bInP ) const
105 { return (const SvxEmphasisMarkItem&)Get( RES_CHRATR_EMPHASIS_MARK, bInP ); }
106 inline const SvxTwoLinesItem &SwAttrSet::Get2Lines( BOOL bInP ) const
107 { return (const SvxTwoLinesItem&)Get( RES_CHRATR_TWO_LINES, bInP ); }
108 inline const SvxCharScaleWidthItem &SwAttrSet::GetCharScaleW( BOOL bInP ) const
109 { return (const SvxCharScaleWidthItem&)Get( RES_CHRATR_SCALEW, bInP ); }
110 inline const SvxCharRotateItem &SwAttrSet::GetCharRotate( BOOL bInP ) const
111 { return (const SvxCharRotateItem&)Get( RES_CHRATR_ROTATE, bInP ); }
112 inline const SvxCharReliefItem &SwAttrSet::GetCharRelief( BOOL bInP ) const
113 { return (const SvxCharReliefItem&)Get( RES_CHRATR_RELIEF, bInP ); }
114 inline const SvxCharHiddenItem &SwAttrSet::GetCharHidden( BOOL bInP ) const
115 { return (const SvxCharHiddenItem&)Get( RES_CHRATR_HIDDEN, bInP ); }
117 /******************************************************************************
118 * Implementierung der Charakter-Attribut Methoden vom SwFmt
119 * AMA: 12.10.94: Umstellung auf SvxItems.
120 ******************************************************************************/
122 inline const SvxPostureItem &SwFmt::GetPosture(BOOL bInP) const
123 { return aSet.GetPosture(bInP); }
124 inline const SvxWeightItem &SwFmt::GetWeight(BOOL bInP) const
125 { return aSet.GetWeight(bInP); }
126 inline const SvxShadowedItem &SwFmt::GetShadowed(BOOL bInP) const
127 { return aSet.GetShadowed(bInP); }
128 inline const SvxAutoKernItem &SwFmt::GetAutoKern(BOOL bInP) const
129 { return aSet.GetAutoKern(bInP); }
130 inline const SvxWordLineModeItem &SwFmt::GetWordLineMode(BOOL bInP) const
131 { return aSet.GetWordLineMode(bInP); }
132 inline const SvxContourItem &SwFmt::GetContour(BOOL bInP) const
133 { return aSet.GetContour(bInP); }
134 inline const SvxKerningItem &SwFmt::GetKerning(BOOL bInP) const
135 { return aSet.GetKerning(bInP); }
136 inline const SvxUnderlineItem &SwFmt::GetUnderline(BOOL bInP) const
137 { return aSet.GetUnderline(bInP); }
138 inline const SvxOverlineItem &SwFmt::GetOverline(BOOL bInP) const
139 { return aSet.GetOverline(bInP); }
140 inline const SvxCrossedOutItem &SwFmt::GetCrossedOut(BOOL bInP) const
141 { return aSet.GetCrossedOut(bInP); }
142 inline const SvxFontHeightItem &SwFmt::GetSize(BOOL bInP) const
143 { return aSet.GetSize(bInP); }
144 inline const SvxPropSizeItem &SwFmt::GetPropSize(BOOL bInP) const
145 { return aSet.GetPropSize(bInP); }
146 inline const SvxFontItem &SwFmt::GetFont(BOOL bInP) const
147 { return aSet.GetFont(bInP); }
148 inline const SvxFontItem &SwFmt::GetCJKFont(BOOL bInP) const
149 { return aSet.GetCJKFont(bInP); }
150 inline const SvxFontItem &SwFmt::GetCTLFont(BOOL bInP) const
151 { return aSet.GetCTLFont(bInP); }
152 inline const SvxColorItem &SwFmt::GetColor(BOOL bInP) const
153 { return aSet.GetColor(bInP); }
154 inline const SvxCharSetColorItem &SwFmt::GetCharSetColor(BOOL bInP) const
155 { return aSet.GetCharSetColor(bInP); }
156 inline const SvxLanguageItem &SwFmt::GetLanguage(BOOL bInP) const
157 { return aSet.GetLanguage(bInP); }
158 inline const SvxEscapementItem &SwFmt::GetEscapement(BOOL bInP) const
159 { return aSet.GetEscapement(bInP); }
160 inline const SvxCaseMapItem &SwFmt::GetCaseMap(BOOL bInP) const
161 { return aSet.GetCaseMap(bInP); }
162 inline const SvxNoHyphenItem &SwFmt::GetNoHyphenHere(BOOL bInP) const
163 { return aSet.GetNoHyphenHere(bInP); }
164 inline const SvxBlinkItem &SwFmt::GetBlink(BOOL bInP) const
165 { return aSet.GetBlink(bInP); }
166 inline const SvxBrushItem &SwFmt::GetChrBackground(BOOL bInP) const
167 { return aSet.GetChrBackground(bInP); }
168 inline const SvxEmphasisMarkItem &SwFmt::GetEmphasisMark( BOOL bInP ) const
169 { return aSet.GetEmphasisMark(bInP); }
170 inline const SvxTwoLinesItem &SwFmt::Get2Lines( BOOL bInP ) const
171 { return aSet.Get2Lines(bInP); }
172 inline const SvxCharScaleWidthItem &SwFmt::GetCharScaleW( BOOL bInP ) const
173 { return aSet.GetCharScaleW(bInP); }
174 inline const SvxCharRotateItem &SwFmt::GetCharRotate( BOOL bInP ) const
175 { return aSet.GetCharRotate(bInP); }
176 inline const SvxCharReliefItem &SwFmt::GetCharRelief( BOOL bInP ) const
177 { return aSet.GetCharRelief(bInP); }
178 inline const SvxCharHiddenItem &SwFmt::GetCharHidden( BOOL bInP ) const
179 { return aSet.GetCharHidden(bInP); }
181 #endif