Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_sw / charatr.hxx
bloba7d534052cd07a95b2f7d2ba588507699a98fbc9
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.6 $
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 #ifndef _FORMAT_HXX
34 #include <format.hxx>
35 #endif
36 namespace binfilter {
39 /******************************************************************************
40 * Implementierung der Charakter-Attribut Methoden vom SwAttrSet
41 * AMA 12.10.94: Umstellung auf SvxItems.
42 ******************************************************************************/
44 inline const SvxPostureItem &SwAttrSet::GetPosture(BOOL bInP) const
45 { return (const SvxPostureItem&)Get( RES_CHRATR_POSTURE,bInP); }
46 inline const SvxPostureItem &SwAttrSet::GetCJKPosture(BOOL bInP) const
47 { return (const SvxPostureItem&)Get( RES_CHRATR_CJK_POSTURE,bInP); }
48 inline const SvxPostureItem &SwAttrSet::GetCTLPosture(BOOL bInP) const
49 { return (const SvxPostureItem&)Get( RES_CHRATR_CTL_POSTURE,bInP); }
50 inline const SvxWeightItem &SwAttrSet::GetWeight(BOOL bInP) const
51 { return (const SvxWeightItem&)Get( RES_CHRATR_WEIGHT,bInP); }
52 inline const SvxWeightItem &SwAttrSet::GetCJKWeight(BOOL bInP) const
53 { return (const SvxWeightItem&)Get( RES_CHRATR_CJK_WEIGHT,bInP); }
54 inline const SvxWeightItem &SwAttrSet::GetCTLWeight(BOOL bInP) const
55 { return (const SvxWeightItem&)Get( RES_CHRATR_CTL_WEIGHT,bInP); }
56 inline const SvxShadowedItem &SwAttrSet::GetShadowed(BOOL bInP) const
57 { return (const SvxShadowedItem&)Get( RES_CHRATR_SHADOWED,bInP); }
58 inline const SvxAutoKernItem &SwAttrSet::GetAutoKern(BOOL bInP) const
59 { return (const SvxAutoKernItem&)Get( RES_CHRATR_AUTOKERN,bInP); }
60 inline const SvxWordLineModeItem &SwAttrSet::GetWordLineMode(BOOL bInP) const
61 { return (const SvxWordLineModeItem&)Get( RES_CHRATR_WORDLINEMODE,bInP); }
62 inline const SvxContourItem &SwAttrSet::GetContour(BOOL bInP) const
63 { return (const SvxContourItem&)Get( RES_CHRATR_CONTOUR,bInP); }
64 inline const SvxKerningItem &SwAttrSet::GetKerning(BOOL bInP) const
65 { return (const SvxKerningItem&)Get( RES_CHRATR_KERNING,bInP); }
66 inline const SvxUnderlineItem &SwAttrSet::GetUnderline(BOOL bInP) const
67 { return (const SvxUnderlineItem&)Get( RES_CHRATR_UNDERLINE,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); }
79 #if !(defined(MACOSX) && ( __GNUC__ < 3 ))
80 // GrP moved to gcc_outl.cxx; revisit with gcc3
81 inline const SvxFontItem &SwAttrSet::GetFont(BOOL bInP) const
82 { return (const SvxFontItem&)Get( RES_CHRATR_FONT,bInP); }
83 #endif
84 inline const SvxFontItem &SwAttrSet::GetCJKFont(BOOL bInP) const
85 { return (const SvxFontItem&)Get( RES_CHRATR_CJK_FONT,bInP); }
86 inline const SvxFontItem &SwAttrSet::GetCTLFont(BOOL bInP) const
87 { return (const SvxFontItem&)Get( RES_CHRATR_CTL_FONT,bInP); }
88 inline const SvxColorItem &SwAttrSet::GetColor(BOOL bInP) const
89 { return (const SvxColorItem&)Get( RES_CHRATR_COLOR,bInP); }
90 inline const SvxCharSetColorItem &SwAttrSet::GetCharSetColor(BOOL bInP) const
91 { return (const SvxCharSetColorItem&)Get( RES_CHRATR_CHARSETCOLOR,bInP); }
92 inline const SvxLanguageItem &SwAttrSet::GetLanguage(BOOL bInP) const
93 { return (const SvxLanguageItem&)Get( RES_CHRATR_LANGUAGE,bInP); }
94 inline const SvxLanguageItem &SwAttrSet::GetCJKLanguage(BOOL bInP) const
95 { return (const SvxLanguageItem&)Get( RES_CHRATR_CJK_LANGUAGE,bInP); }
96 inline const SvxLanguageItem &SwAttrSet::GetCTLLanguage(BOOL bInP) const
97 { return (const SvxLanguageItem&)Get( RES_CHRATR_CTL_LANGUAGE,bInP); }
98 inline const SvxEscapementItem &SwAttrSet::GetEscapement(BOOL bInP) const
99 { return (const SvxEscapementItem&)Get( RES_CHRATR_ESCAPEMENT,bInP); }
100 inline const SvxCaseMapItem &SwAttrSet::GetCaseMap(BOOL bInP) const
101 { return (const SvxCaseMapItem&)Get( RES_CHRATR_CASEMAP,bInP); }
102 inline const SvxNoHyphenItem &SwAttrSet::GetNoHyphenHere(BOOL bInP) const
103 { return (const SvxNoHyphenItem&)Get( RES_CHRATR_NOHYPHEN,bInP); }
104 inline const SvxBlinkItem &SwAttrSet::GetBlink(BOOL bInP) const
105 { return (const SvxBlinkItem&)Get( RES_CHRATR_BLINK,bInP); }
106 inline const SvxBrushItem &SwAttrSet::GetChrBackground( BOOL bInP ) const
107 { return (const SvxBrushItem&)Get( RES_CHRATR_BACKGROUND, bInP ); }
108 inline const SvxEmphasisMarkItem &SwAttrSet::GetEmphasisMark( BOOL bInP ) const
109 { return (const SvxEmphasisMarkItem&)Get( RES_CHRATR_EMPHASIS_MARK, bInP ); }
110 inline const SvxTwoLinesItem &SwAttrSet::Get2Lines( BOOL bInP ) const
111 { return (const SvxTwoLinesItem&)Get( RES_CHRATR_TWO_LINES, bInP ); }
112 inline const SvxCharScaleWidthItem &SwAttrSet::GetCharScaleW( BOOL bInP ) const
113 { return (const SvxCharScaleWidthItem&)Get( RES_CHRATR_SCALEW, bInP ); }
114 inline const SvxCharRotateItem &SwAttrSet::GetCharRotate( BOOL bInP ) const
115 { return (const SvxCharRotateItem&)Get( RES_CHRATR_ROTATE, bInP ); }
116 inline const SvxCharReliefItem &SwAttrSet::GetCharRelief( BOOL bInP ) const
117 { return (const SvxCharReliefItem&)Get( RES_CHRATR_RELIEF, bInP ); }
119 /******************************************************************************
120 * Implementierung der Charakter-Attribut Methoden vom SwFmt
121 * AMA: 12.10.94: Umstellung auf SvxItems.
122 ******************************************************************************/
124 inline const SvxPostureItem &SwFmt::GetPosture(BOOL bInP) const
125 { return aSet.GetPosture(bInP); }
126 inline const SvxWeightItem &SwFmt::GetWeight(BOOL bInP) const
127 { return aSet.GetWeight(bInP); }
128 inline const SvxShadowedItem &SwFmt::GetShadowed(BOOL bInP) const
129 { return aSet.GetShadowed(bInP); }
130 inline const SvxAutoKernItem &SwFmt::GetAutoKern(BOOL bInP) const
131 { return aSet.GetAutoKern(bInP); }
132 inline const SvxWordLineModeItem &SwFmt::GetWordLineMode(BOOL bInP) const
133 { return aSet.GetWordLineMode(bInP); }
134 inline const SvxContourItem &SwFmt::GetContour(BOOL bInP) const
135 { return aSet.GetContour(bInP); }
136 inline const SvxKerningItem &SwFmt::GetKerning(BOOL bInP) const
137 { return aSet.GetKerning(bInP); }
138 inline const SvxUnderlineItem &SwFmt::GetUnderline(BOOL bInP) const
139 { return aSet.GetUnderline(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 #if !(defined(MACOSX) && ( __GNUC__ < 3 ))
147 // GrP moved to gcc_outl.cxx; revisit with gcc3
148 inline const SvxFontItem &SwFmt::GetFont(BOOL bInP) const
149 { return aSet.GetFont(bInP); }
150 #endif
151 inline const SvxFontItem &SwFmt::GetCJKFont(BOOL bInP) const
152 { return aSet.GetCJKFont(bInP); }
153 inline const SvxFontItem &SwFmt::GetCTLFont(BOOL bInP) const
154 { return aSet.GetCTLFont(bInP); }
155 inline const SvxColorItem &SwFmt::GetColor(BOOL bInP) const
156 { return aSet.GetColor(bInP); }
157 inline const SvxCharSetColorItem &SwFmt::GetCharSetColor(BOOL bInP) const
158 { return aSet.GetCharSetColor(bInP); }
159 inline const SvxLanguageItem &SwFmt::GetLanguage(BOOL bInP) const
160 { return aSet.GetLanguage(bInP); }
161 inline const SvxEscapementItem &SwFmt::GetEscapement(BOOL bInP) const
162 { return aSet.GetEscapement(bInP); }
163 inline const SvxCaseMapItem &SwFmt::GetCaseMap(BOOL bInP) const
164 { return aSet.GetCaseMap(bInP); }
165 inline const SvxNoHyphenItem &SwFmt::GetNoHyphenHere(BOOL bInP) const
166 { return aSet.GetNoHyphenHere(bInP); }
167 inline const SvxBlinkItem &SwFmt::GetBlink(BOOL bInP) const
168 { return aSet.GetBlink(bInP); }
169 inline const SvxBrushItem &SwFmt::GetChrBackground(BOOL bInP) const
170 { return aSet.GetChrBackground(bInP); }
171 inline const SvxEmphasisMarkItem &SwFmt::GetEmphasisMark( BOOL bInP ) const
172 { return aSet.GetEmphasisMark(bInP); }
173 inline const SvxTwoLinesItem &SwFmt::Get2Lines( BOOL bInP ) const
174 { return aSet.Get2Lines(bInP); }
175 inline const SvxCharScaleWidthItem &SwFmt::GetCharScaleW( BOOL bInP ) const
176 { return aSet.GetCharScaleW(bInP); }
177 inline const SvxCharRotateItem &SwFmt::GetCharRotate( BOOL bInP ) const
178 { return aSet.GetCharRotate(bInP); }
179 inline const SvxCharReliefItem &SwFmt::GetCharRelief( BOOL bInP ) const
180 { return aSet.GetCharRelief(bInP); }
182 } //namespace binfilter
183 #endif