xref: /aoo42x/main/sw/inc/charatr.hxx (revision 1d2dbeb0)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _CHARATR_HXX
24 #define _CHARATR_HXX
25 
26 #include <format.hxx>
27 #include <hintids.hxx>		// fuer die WhichIds
28 
29 
30 /******************************************************************************
31  *	Implementierung der Charakter-Attribut Methoden vom SwAttrSet
32  *  AMA 12.10.94: Umstellung auf SvxItems.
33  ******************************************************************************/
34 
GetPosture(sal_Bool bInP) const35 inline const SvxPostureItem      &SwAttrSet::GetPosture(sal_Bool bInP) const
36 	{   return (const SvxPostureItem&)Get( RES_CHRATR_POSTURE,bInP); }
GetCJKPosture(sal_Bool bInP) const37 inline const SvxPostureItem      &SwAttrSet::GetCJKPosture(sal_Bool bInP) const
38 	{   return (const SvxPostureItem&)Get( RES_CHRATR_CJK_POSTURE,bInP); }
GetCTLPosture(sal_Bool bInP) const39 inline const SvxPostureItem      &SwAttrSet::GetCTLPosture(sal_Bool bInP) const
40 	{   return (const SvxPostureItem&)Get( RES_CHRATR_CTL_POSTURE,bInP); }
GetWeight(sal_Bool bInP) const41 inline const SvxWeightItem       &SwAttrSet::GetWeight(sal_Bool bInP) const
42 	{   return (const SvxWeightItem&)Get( RES_CHRATR_WEIGHT,bInP); }
GetCJKWeight(sal_Bool bInP) const43 inline const SvxWeightItem       &SwAttrSet::GetCJKWeight(sal_Bool bInP) const
44 	{   return (const SvxWeightItem&)Get( RES_CHRATR_CJK_WEIGHT,bInP); }
GetCTLWeight(sal_Bool bInP) const45 inline const SvxWeightItem       &SwAttrSet::GetCTLWeight(sal_Bool bInP) const
46 	{   return (const SvxWeightItem&)Get( RES_CHRATR_CTL_WEIGHT,bInP); }
GetShadowed(sal_Bool bInP) const47 inline const SvxShadowedItem     &SwAttrSet::GetShadowed(sal_Bool bInP) const
48 	{   return (const SvxShadowedItem&)Get( RES_CHRATR_SHADOWED,bInP); }
GetAutoKern(sal_Bool bInP) const49 inline const SvxAutoKernItem     &SwAttrSet::GetAutoKern(sal_Bool bInP) const
50 	{   return (const SvxAutoKernItem&)Get( RES_CHRATR_AUTOKERN,bInP); }
GetWordLineMode(sal_Bool bInP) const51 inline const SvxWordLineModeItem     &SwAttrSet::GetWordLineMode(sal_Bool bInP) const
52 	{   return (const SvxWordLineModeItem&)Get( RES_CHRATR_WORDLINEMODE,bInP); }
GetContour(sal_Bool bInP) const53 inline const SvxContourItem      &SwAttrSet::GetContour(sal_Bool bInP) const
54 	{   return (const SvxContourItem&)Get( RES_CHRATR_CONTOUR,bInP); }
GetKerning(sal_Bool bInP) const55 inline const SvxKerningItem      &SwAttrSet::GetKerning(sal_Bool bInP) const
56 	{   return (const SvxKerningItem&)Get( RES_CHRATR_KERNING,bInP); }
GetUnderline(sal_Bool bInP) const57 inline const SvxUnderlineItem    &SwAttrSet::GetUnderline(sal_Bool bInP) const
58 	{   return (const SvxUnderlineItem&)Get( RES_CHRATR_UNDERLINE,bInP); }
GetOverline(sal_Bool bInP) const59 inline const SvxOverlineItem     &SwAttrSet::GetOverline(sal_Bool bInP) const
60 	{   return (const SvxOverlineItem&)Get( RES_CHRATR_OVERLINE,bInP); }
GetCrossedOut(sal_Bool bInP) const61 inline const SvxCrossedOutItem   &SwAttrSet::GetCrossedOut(sal_Bool bInP) const
62 	{   return (const SvxCrossedOutItem&)Get( RES_CHRATR_CROSSEDOUT,bInP); }
GetSize(sal_Bool bInP) const63 inline const SvxFontHeightItem         &SwAttrSet::GetSize(sal_Bool bInP) const
64 	{   return (const SvxFontHeightItem&)Get( RES_CHRATR_FONTSIZE,bInP); }
GetCJKSize(sal_Bool bInP) const65 inline const SvxFontHeightItem         &SwAttrSet::GetCJKSize(sal_Bool bInP) const
66 	{   return (const SvxFontHeightItem&)Get( RES_CHRATR_CJK_FONTSIZE,bInP); }
GetCTLSize(sal_Bool bInP) const67 inline const SvxFontHeightItem         &SwAttrSet::GetCTLSize(sal_Bool bInP) const
68 	{   return (const SvxFontHeightItem&)Get( RES_CHRATR_CTL_FONTSIZE,bInP); }
GetPropSize(sal_Bool bInP) const69 inline const SvxPropSizeItem     &SwAttrSet::GetPropSize(sal_Bool bInP) const
70 	{   return (const SvxPropSizeItem&)Get( RES_CHRATR_PROPORTIONALFONTSIZE,bInP); }
GetFont(sal_Bool bInP) const71 inline const SvxFontItem         &SwAttrSet::GetFont(sal_Bool bInP) const
72 	{   return (const SvxFontItem&)Get( RES_CHRATR_FONT,bInP); }
GetCJKFont(sal_Bool bInP) const73 inline const SvxFontItem         &SwAttrSet::GetCJKFont(sal_Bool bInP) const
74 	{   return (const SvxFontItem&)Get( RES_CHRATR_CJK_FONT,bInP); }
GetCTLFont(sal_Bool bInP) const75 inline const SvxFontItem         &SwAttrSet::GetCTLFont(sal_Bool bInP) const
76 	{   return (const SvxFontItem&)Get( RES_CHRATR_CTL_FONT,bInP); }
GetColor(sal_Bool bInP) const77 inline const SvxColorItem        &SwAttrSet::GetColor(sal_Bool bInP) const
78 	{   return (const SvxColorItem&)Get( RES_CHRATR_COLOR,bInP); }
GetCharSetColor(sal_Bool bInP) const79 inline const SvxCharSetColorItem &SwAttrSet::GetCharSetColor(sal_Bool bInP) const
80 	{   return (const SvxCharSetColorItem&)Get( RES_CHRATR_CHARSETCOLOR,bInP); }
GetLanguage(sal_Bool bInP) const81 inline const SvxLanguageItem     &SwAttrSet::GetLanguage(sal_Bool bInP) const
82 	{   return (const SvxLanguageItem&)Get( RES_CHRATR_LANGUAGE,bInP); }
GetCJKLanguage(sal_Bool bInP) const83 inline const SvxLanguageItem     &SwAttrSet::GetCJKLanguage(sal_Bool bInP) const
84 	{   return (const SvxLanguageItem&)Get( RES_CHRATR_CJK_LANGUAGE,bInP); }
GetCTLLanguage(sal_Bool bInP) const85 inline const SvxLanguageItem     &SwAttrSet::GetCTLLanguage(sal_Bool bInP) const
86 	{   return (const SvxLanguageItem&)Get( RES_CHRATR_CTL_LANGUAGE,bInP); }
GetEscapement(sal_Bool bInP) const87 inline const SvxEscapementItem   &SwAttrSet::GetEscapement(sal_Bool bInP) const
88 	{   return (const SvxEscapementItem&)Get( RES_CHRATR_ESCAPEMENT,bInP); }
GetCaseMap(sal_Bool bInP) const89 inline const SvxCaseMapItem		&SwAttrSet::GetCaseMap(sal_Bool bInP) const
90 	{   return (const SvxCaseMapItem&)Get( RES_CHRATR_CASEMAP,bInP); }
GetNoHyphenHere(sal_Bool bInP) const91 inline const SvxNoHyphenItem	&SwAttrSet::GetNoHyphenHere(sal_Bool bInP) const
92 	{   return (const SvxNoHyphenItem&)Get( RES_CHRATR_NOHYPHEN,bInP); }
GetBlink(sal_Bool bInP) const93 inline const SvxBlinkItem  &SwAttrSet::GetBlink(sal_Bool bInP) const
94 	{   return (const SvxBlinkItem&)Get( RES_CHRATR_BLINK,bInP); }
GetChrBackground(sal_Bool bInP) const95 inline const SvxBrushItem &SwAttrSet::GetChrBackground( sal_Bool bInP ) const
96 	{   return (const SvxBrushItem&)Get( RES_CHRATR_BACKGROUND, bInP ); }
GetEmphasisMark(sal_Bool bInP) const97 inline const SvxEmphasisMarkItem &SwAttrSet::GetEmphasisMark( sal_Bool bInP ) const
98 	{   return (const SvxEmphasisMarkItem&)Get( RES_CHRATR_EMPHASIS_MARK, bInP ); }
Get2Lines(sal_Bool bInP) const99 inline const SvxTwoLinesItem	&SwAttrSet::Get2Lines( sal_Bool bInP ) const
100 	{   return (const SvxTwoLinesItem&)Get( RES_CHRATR_TWO_LINES, bInP ); }
GetCharScaleW(sal_Bool bInP) const101 inline const SvxCharScaleWidthItem	&SwAttrSet::GetCharScaleW( sal_Bool bInP ) const
102 	{   return (const SvxCharScaleWidthItem&)Get( RES_CHRATR_SCALEW, bInP ); }
GetCharRotate(sal_Bool bInP) const103 inline const SvxCharRotateItem	&SwAttrSet::GetCharRotate( sal_Bool bInP ) const
104 	{   return (const SvxCharRotateItem&)Get( RES_CHRATR_ROTATE, bInP ); }
GetCharRelief(sal_Bool bInP) const105 inline const SvxCharReliefItem	&SwAttrSet::GetCharRelief( sal_Bool bInP ) const
106 	{   return (const SvxCharReliefItem&)Get( RES_CHRATR_RELIEF, bInP ); }
GetCharHidden(sal_Bool bInP) const107 inline const SvxCharHiddenItem  &SwAttrSet::GetCharHidden( sal_Bool bInP ) const
108     {   return (const SvxCharHiddenItem&)Get( RES_CHRATR_HIDDEN, bInP ); }
109 
110 /******************************************************************************
111  *	Implementierung der Charakter-Attribut Methoden vom SwFmt
112  *  AMA: 12.10.94: Umstellung auf SvxItems.
113  ******************************************************************************/
114 
GetPosture(sal_Bool bInP) const115 inline const SvxPostureItem          &SwFmt::GetPosture(sal_Bool bInP) const
116     {   return aSet.GetPosture(bInP); }
GetWeight(sal_Bool bInP) const117 inline const SvxWeightItem           &SwFmt::GetWeight(sal_Bool bInP) const
118     {   return aSet.GetWeight(bInP); }
GetShadowed(sal_Bool bInP) const119 inline const SvxShadowedItem         &SwFmt::GetShadowed(sal_Bool bInP) const
120     {   return aSet.GetShadowed(bInP); }
GetAutoKern(sal_Bool bInP) const121 inline const SvxAutoKernItem         &SwFmt::GetAutoKern(sal_Bool bInP) const
122     {   return aSet.GetAutoKern(bInP); }
GetWordLineMode(sal_Bool bInP) const123 inline const SvxWordLineModeItem     &SwFmt::GetWordLineMode(sal_Bool bInP) const
124     {   return aSet.GetWordLineMode(bInP); }
GetContour(sal_Bool bInP) const125 inline const SvxContourItem          &SwFmt::GetContour(sal_Bool bInP) const
126     {   return aSet.GetContour(bInP); }
GetKerning(sal_Bool bInP) const127 inline const SvxKerningItem          &SwFmt::GetKerning(sal_Bool bInP) const
128     {   return aSet.GetKerning(bInP); }
GetUnderline(sal_Bool bInP) const129 inline const SvxUnderlineItem        &SwFmt::GetUnderline(sal_Bool bInP) const
130     {   return aSet.GetUnderline(bInP); }
GetOverline(sal_Bool bInP) const131 inline const SvxOverlineItem         &SwFmt::GetOverline(sal_Bool bInP) const
132     {   return aSet.GetOverline(bInP); }
GetCrossedOut(sal_Bool bInP) const133 inline const SvxCrossedOutItem       &SwFmt::GetCrossedOut(sal_Bool bInP) const
134     {   return aSet.GetCrossedOut(bInP); }
GetSize(sal_Bool bInP) const135 inline const SvxFontHeightItem             &SwFmt::GetSize(sal_Bool bInP) const
136     {   return aSet.GetSize(bInP); }
GetPropSize(sal_Bool bInP) const137 inline const SvxPropSizeItem         &SwFmt::GetPropSize(sal_Bool bInP) const
138     {   return aSet.GetPropSize(bInP); }
GetFont(sal_Bool bInP) const139 inline const SvxFontItem             &SwFmt::GetFont(sal_Bool bInP) const
140     {   return aSet.GetFont(bInP); }
GetCJKFont(sal_Bool bInP) const141 inline const SvxFontItem         &SwFmt::GetCJKFont(sal_Bool bInP) const
142     {   return aSet.GetCJKFont(bInP); }
GetCTLFont(sal_Bool bInP) const143 inline const SvxFontItem         &SwFmt::GetCTLFont(sal_Bool bInP) const
144     {   return aSet.GetCTLFont(bInP); }
GetColor(sal_Bool bInP) const145 inline const SvxColorItem            &SwFmt::GetColor(sal_Bool bInP) const
146 	{   return aSet.GetColor(bInP); }
GetCharSetColor(sal_Bool bInP) const147     inline const SvxCharSetColorItem    &SwFmt::GetCharSetColor(sal_Bool bInP) const
148     {   return aSet.GetCharSetColor(bInP); }
GetLanguage(sal_Bool bInP) const149 inline const SvxLanguageItem         &SwFmt::GetLanguage(sal_Bool bInP) const
150     {   return aSet.GetLanguage(bInP); }
GetEscapement(sal_Bool bInP) const151 inline const SvxEscapementItem       &SwFmt::GetEscapement(sal_Bool bInP) const
152     {   return aSet.GetEscapement(bInP); }
GetCaseMap(sal_Bool bInP) const153 inline const SvxCaseMapItem          &SwFmt::GetCaseMap(sal_Bool bInP) const
154     {   return aSet.GetCaseMap(bInP); }
GetNoHyphenHere(sal_Bool bInP) const155 inline const SvxNoHyphenItem        &SwFmt::GetNoHyphenHere(sal_Bool bInP) const
156     {   return aSet.GetNoHyphenHere(bInP); }
GetBlink(sal_Bool bInP) const157 inline const SvxBlinkItem           &SwFmt::GetBlink(sal_Bool bInP) const
158     {   return aSet.GetBlink(bInP); }
GetChrBackground(sal_Bool bInP) const159 inline const SvxBrushItem           &SwFmt::GetChrBackground(sal_Bool bInP) const
160     {   return aSet.GetChrBackground(bInP); }
GetEmphasisMark(sal_Bool bInP) const161 inline const SvxEmphasisMarkItem   &SwFmt::GetEmphasisMark( sal_Bool bInP ) const
162     {   return aSet.GetEmphasisMark(bInP); }
Get2Lines(sal_Bool bInP) const163 inline const SvxTwoLinesItem       &SwFmt::Get2Lines( sal_Bool bInP ) const
164     {   return aSet.Get2Lines(bInP); }
GetCharScaleW(sal_Bool bInP) const165 inline const SvxCharScaleWidthItem &SwFmt::GetCharScaleW( sal_Bool bInP ) const
166     {   return aSet.GetCharScaleW(bInP); }
GetCharRotate(sal_Bool bInP) const167 inline const SvxCharRotateItem     &SwFmt::GetCharRotate( sal_Bool bInP ) const
168     {   return aSet.GetCharRotate(bInP); }
GetCharRelief(sal_Bool bInP) const169 inline const SvxCharReliefItem     &SwFmt::GetCharRelief( sal_Bool bInP ) const
170     {   return aSet.GetCharRelief(bInP); }
GetCharHidden(sal_Bool bInP) const171 inline const SvxCharHiddenItem      &SwFmt::GetCharHidden( sal_Bool bInP ) const
172     {   return aSet.GetCharHidden(bInP); }
173 
174 #endif
175