xref: /aoo41x/main/sw/inc/charatr.hxx (revision 1d2dbeb0)
1*1d2dbeb0SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*1d2dbeb0SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*1d2dbeb0SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*1d2dbeb0SAndrew Rist  * distributed with this work for additional information
6*1d2dbeb0SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*1d2dbeb0SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*1d2dbeb0SAndrew Rist  * "License"); you may not use this file except in compliance
9*1d2dbeb0SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*1d2dbeb0SAndrew Rist  *
11*1d2dbeb0SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*1d2dbeb0SAndrew Rist  *
13*1d2dbeb0SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*1d2dbeb0SAndrew Rist  * software distributed under the License is distributed on an
15*1d2dbeb0SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*1d2dbeb0SAndrew Rist  * KIND, either express or implied.  See the License for the
17*1d2dbeb0SAndrew Rist  * specific language governing permissions and limitations
18*1d2dbeb0SAndrew Rist  * under the License.
19*1d2dbeb0SAndrew Rist  *
20*1d2dbeb0SAndrew Rist  *************************************************************/
21*1d2dbeb0SAndrew Rist 
22*1d2dbeb0SAndrew Rist 
23cdf0e10cSrcweir #ifndef _CHARATR_HXX
24cdf0e10cSrcweir #define _CHARATR_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #include <format.hxx>
27cdf0e10cSrcweir #include <hintids.hxx>		// fuer die WhichIds
28cdf0e10cSrcweir 
29cdf0e10cSrcweir 
30cdf0e10cSrcweir /******************************************************************************
31cdf0e10cSrcweir  *	Implementierung der Charakter-Attribut Methoden vom SwAttrSet
32cdf0e10cSrcweir  *  AMA 12.10.94: Umstellung auf SvxItems.
33cdf0e10cSrcweir  ******************************************************************************/
34cdf0e10cSrcweir 
GetPosture(sal_Bool bInP) const35cdf0e10cSrcweir inline const SvxPostureItem      &SwAttrSet::GetPosture(sal_Bool bInP) const
36cdf0e10cSrcweir 	{   return (const SvxPostureItem&)Get( RES_CHRATR_POSTURE,bInP); }
GetCJKPosture(sal_Bool bInP) const37cdf0e10cSrcweir inline const SvxPostureItem      &SwAttrSet::GetCJKPosture(sal_Bool bInP) const
38cdf0e10cSrcweir 	{   return (const SvxPostureItem&)Get( RES_CHRATR_CJK_POSTURE,bInP); }
GetCTLPosture(sal_Bool bInP) const39cdf0e10cSrcweir inline const SvxPostureItem      &SwAttrSet::GetCTLPosture(sal_Bool bInP) const
40cdf0e10cSrcweir 	{   return (const SvxPostureItem&)Get( RES_CHRATR_CTL_POSTURE,bInP); }
GetWeight(sal_Bool bInP) const41cdf0e10cSrcweir inline const SvxWeightItem       &SwAttrSet::GetWeight(sal_Bool bInP) const
42cdf0e10cSrcweir 	{   return (const SvxWeightItem&)Get( RES_CHRATR_WEIGHT,bInP); }
GetCJKWeight(sal_Bool bInP) const43cdf0e10cSrcweir inline const SvxWeightItem       &SwAttrSet::GetCJKWeight(sal_Bool bInP) const
44cdf0e10cSrcweir 	{   return (const SvxWeightItem&)Get( RES_CHRATR_CJK_WEIGHT,bInP); }
GetCTLWeight(sal_Bool bInP) const45cdf0e10cSrcweir inline const SvxWeightItem       &SwAttrSet::GetCTLWeight(sal_Bool bInP) const
46cdf0e10cSrcweir 	{   return (const SvxWeightItem&)Get( RES_CHRATR_CTL_WEIGHT,bInP); }
GetShadowed(sal_Bool bInP) const47cdf0e10cSrcweir inline const SvxShadowedItem     &SwAttrSet::GetShadowed(sal_Bool bInP) const
48cdf0e10cSrcweir 	{   return (const SvxShadowedItem&)Get( RES_CHRATR_SHADOWED,bInP); }
GetAutoKern(sal_Bool bInP) const49cdf0e10cSrcweir inline const SvxAutoKernItem     &SwAttrSet::GetAutoKern(sal_Bool bInP) const
50cdf0e10cSrcweir 	{   return (const SvxAutoKernItem&)Get( RES_CHRATR_AUTOKERN,bInP); }
GetWordLineMode(sal_Bool bInP) const51cdf0e10cSrcweir inline const SvxWordLineModeItem     &SwAttrSet::GetWordLineMode(sal_Bool bInP) const
52cdf0e10cSrcweir 	{   return (const SvxWordLineModeItem&)Get( RES_CHRATR_WORDLINEMODE,bInP); }
GetContour(sal_Bool bInP) const53cdf0e10cSrcweir inline const SvxContourItem      &SwAttrSet::GetContour(sal_Bool bInP) const
54cdf0e10cSrcweir 	{   return (const SvxContourItem&)Get( RES_CHRATR_CONTOUR,bInP); }
GetKerning(sal_Bool bInP) const55cdf0e10cSrcweir inline const SvxKerningItem      &SwAttrSet::GetKerning(sal_Bool bInP) const
56cdf0e10cSrcweir 	{   return (const SvxKerningItem&)Get( RES_CHRATR_KERNING,bInP); }
GetUnderline(sal_Bool bInP) const57cdf0e10cSrcweir inline const SvxUnderlineItem    &SwAttrSet::GetUnderline(sal_Bool bInP) const
58cdf0e10cSrcweir 	{   return (const SvxUnderlineItem&)Get( RES_CHRATR_UNDERLINE,bInP); }
GetOverline(sal_Bool bInP) const59cdf0e10cSrcweir inline const SvxOverlineItem     &SwAttrSet::GetOverline(sal_Bool bInP) const
60cdf0e10cSrcweir 	{   return (const SvxOverlineItem&)Get( RES_CHRATR_OVERLINE,bInP); }
GetCrossedOut(sal_Bool bInP) const61cdf0e10cSrcweir inline const SvxCrossedOutItem   &SwAttrSet::GetCrossedOut(sal_Bool bInP) const
62cdf0e10cSrcweir 	{   return (const SvxCrossedOutItem&)Get( RES_CHRATR_CROSSEDOUT,bInP); }
GetSize(sal_Bool bInP) const63cdf0e10cSrcweir inline const SvxFontHeightItem         &SwAttrSet::GetSize(sal_Bool bInP) const
64cdf0e10cSrcweir 	{   return (const SvxFontHeightItem&)Get( RES_CHRATR_FONTSIZE,bInP); }
GetCJKSize(sal_Bool bInP) const65cdf0e10cSrcweir inline const SvxFontHeightItem         &SwAttrSet::GetCJKSize(sal_Bool bInP) const
66cdf0e10cSrcweir 	{   return (const SvxFontHeightItem&)Get( RES_CHRATR_CJK_FONTSIZE,bInP); }
GetCTLSize(sal_Bool bInP) const67cdf0e10cSrcweir inline const SvxFontHeightItem         &SwAttrSet::GetCTLSize(sal_Bool bInP) const
68cdf0e10cSrcweir 	{   return (const SvxFontHeightItem&)Get( RES_CHRATR_CTL_FONTSIZE,bInP); }
GetPropSize(sal_Bool bInP) const69cdf0e10cSrcweir inline const SvxPropSizeItem     &SwAttrSet::GetPropSize(sal_Bool bInP) const
70cdf0e10cSrcweir 	{   return (const SvxPropSizeItem&)Get( RES_CHRATR_PROPORTIONALFONTSIZE,bInP); }
GetFont(sal_Bool bInP) const71cdf0e10cSrcweir inline const SvxFontItem         &SwAttrSet::GetFont(sal_Bool bInP) const
72cdf0e10cSrcweir 	{   return (const SvxFontItem&)Get( RES_CHRATR_FONT,bInP); }
GetCJKFont(sal_Bool bInP) const73cdf0e10cSrcweir inline const SvxFontItem         &SwAttrSet::GetCJKFont(sal_Bool bInP) const
74cdf0e10cSrcweir 	{   return (const SvxFontItem&)Get( RES_CHRATR_CJK_FONT,bInP); }
GetCTLFont(sal_Bool bInP) const75cdf0e10cSrcweir inline const SvxFontItem         &SwAttrSet::GetCTLFont(sal_Bool bInP) const
76cdf0e10cSrcweir 	{   return (const SvxFontItem&)Get( RES_CHRATR_CTL_FONT,bInP); }
GetColor(sal_Bool bInP) const77cdf0e10cSrcweir inline const SvxColorItem        &SwAttrSet::GetColor(sal_Bool bInP) const
78cdf0e10cSrcweir 	{   return (const SvxColorItem&)Get( RES_CHRATR_COLOR,bInP); }
GetCharSetColor(sal_Bool bInP) const79cdf0e10cSrcweir inline const SvxCharSetColorItem &SwAttrSet::GetCharSetColor(sal_Bool bInP) const
80cdf0e10cSrcweir 	{   return (const SvxCharSetColorItem&)Get( RES_CHRATR_CHARSETCOLOR,bInP); }
GetLanguage(sal_Bool bInP) const81cdf0e10cSrcweir inline const SvxLanguageItem     &SwAttrSet::GetLanguage(sal_Bool bInP) const
82cdf0e10cSrcweir 	{   return (const SvxLanguageItem&)Get( RES_CHRATR_LANGUAGE,bInP); }
GetCJKLanguage(sal_Bool bInP) const83cdf0e10cSrcweir inline const SvxLanguageItem     &SwAttrSet::GetCJKLanguage(sal_Bool bInP) const
84cdf0e10cSrcweir 	{   return (const SvxLanguageItem&)Get( RES_CHRATR_CJK_LANGUAGE,bInP); }
GetCTLLanguage(sal_Bool bInP) const85cdf0e10cSrcweir inline const SvxLanguageItem     &SwAttrSet::GetCTLLanguage(sal_Bool bInP) const
86cdf0e10cSrcweir 	{   return (const SvxLanguageItem&)Get( RES_CHRATR_CTL_LANGUAGE,bInP); }
GetEscapement(sal_Bool bInP) const87cdf0e10cSrcweir inline const SvxEscapementItem   &SwAttrSet::GetEscapement(sal_Bool bInP) const
88cdf0e10cSrcweir 	{   return (const SvxEscapementItem&)Get( RES_CHRATR_ESCAPEMENT,bInP); }
GetCaseMap(sal_Bool bInP) const89cdf0e10cSrcweir inline const SvxCaseMapItem		&SwAttrSet::GetCaseMap(sal_Bool bInP) const
90cdf0e10cSrcweir 	{   return (const SvxCaseMapItem&)Get( RES_CHRATR_CASEMAP,bInP); }
GetNoHyphenHere(sal_Bool bInP) const91cdf0e10cSrcweir inline const SvxNoHyphenItem	&SwAttrSet::GetNoHyphenHere(sal_Bool bInP) const
92cdf0e10cSrcweir 	{   return (const SvxNoHyphenItem&)Get( RES_CHRATR_NOHYPHEN,bInP); }
GetBlink(sal_Bool bInP) const93cdf0e10cSrcweir inline const SvxBlinkItem  &SwAttrSet::GetBlink(sal_Bool bInP) const
94cdf0e10cSrcweir 	{   return (const SvxBlinkItem&)Get( RES_CHRATR_BLINK,bInP); }
GetChrBackground(sal_Bool bInP) const95cdf0e10cSrcweir inline const SvxBrushItem &SwAttrSet::GetChrBackground( sal_Bool bInP ) const
96cdf0e10cSrcweir 	{   return (const SvxBrushItem&)Get( RES_CHRATR_BACKGROUND, bInP ); }
GetEmphasisMark(sal_Bool bInP) const97cdf0e10cSrcweir inline const SvxEmphasisMarkItem &SwAttrSet::GetEmphasisMark( sal_Bool bInP ) const
98cdf0e10cSrcweir 	{   return (const SvxEmphasisMarkItem&)Get( RES_CHRATR_EMPHASIS_MARK, bInP ); }
Get2Lines(sal_Bool bInP) const99cdf0e10cSrcweir inline const SvxTwoLinesItem	&SwAttrSet::Get2Lines( sal_Bool bInP ) const
100cdf0e10cSrcweir 	{   return (const SvxTwoLinesItem&)Get( RES_CHRATR_TWO_LINES, bInP ); }
GetCharScaleW(sal_Bool bInP) const101cdf0e10cSrcweir inline const SvxCharScaleWidthItem	&SwAttrSet::GetCharScaleW( sal_Bool bInP ) const
102cdf0e10cSrcweir 	{   return (const SvxCharScaleWidthItem&)Get( RES_CHRATR_SCALEW, bInP ); }
GetCharRotate(sal_Bool bInP) const103cdf0e10cSrcweir inline const SvxCharRotateItem	&SwAttrSet::GetCharRotate( sal_Bool bInP ) const
104cdf0e10cSrcweir 	{   return (const SvxCharRotateItem&)Get( RES_CHRATR_ROTATE, bInP ); }
GetCharRelief(sal_Bool bInP) const105cdf0e10cSrcweir inline const SvxCharReliefItem	&SwAttrSet::GetCharRelief( sal_Bool bInP ) const
106cdf0e10cSrcweir 	{   return (const SvxCharReliefItem&)Get( RES_CHRATR_RELIEF, bInP ); }
GetCharHidden(sal_Bool bInP) const107cdf0e10cSrcweir inline const SvxCharHiddenItem  &SwAttrSet::GetCharHidden( sal_Bool bInP ) const
108cdf0e10cSrcweir     {   return (const SvxCharHiddenItem&)Get( RES_CHRATR_HIDDEN, bInP ); }
109cdf0e10cSrcweir 
110cdf0e10cSrcweir /******************************************************************************
111cdf0e10cSrcweir  *	Implementierung der Charakter-Attribut Methoden vom SwFmt
112cdf0e10cSrcweir  *  AMA: 12.10.94: Umstellung auf SvxItems.
113cdf0e10cSrcweir  ******************************************************************************/
114cdf0e10cSrcweir 
GetPosture(sal_Bool bInP) const115cdf0e10cSrcweir inline const SvxPostureItem          &SwFmt::GetPosture(sal_Bool bInP) const
116cdf0e10cSrcweir     {   return aSet.GetPosture(bInP); }
GetWeight(sal_Bool bInP) const117cdf0e10cSrcweir inline const SvxWeightItem           &SwFmt::GetWeight(sal_Bool bInP) const
118cdf0e10cSrcweir     {   return aSet.GetWeight(bInP); }
GetShadowed(sal_Bool bInP) const119cdf0e10cSrcweir inline const SvxShadowedItem         &SwFmt::GetShadowed(sal_Bool bInP) const
120cdf0e10cSrcweir     {   return aSet.GetShadowed(bInP); }
GetAutoKern(sal_Bool bInP) const121cdf0e10cSrcweir inline const SvxAutoKernItem         &SwFmt::GetAutoKern(sal_Bool bInP) const
122cdf0e10cSrcweir     {   return aSet.GetAutoKern(bInP); }
GetWordLineMode(sal_Bool bInP) const123cdf0e10cSrcweir inline const SvxWordLineModeItem     &SwFmt::GetWordLineMode(sal_Bool bInP) const
124cdf0e10cSrcweir     {   return aSet.GetWordLineMode(bInP); }
GetContour(sal_Bool bInP) const125cdf0e10cSrcweir inline const SvxContourItem          &SwFmt::GetContour(sal_Bool bInP) const
126cdf0e10cSrcweir     {   return aSet.GetContour(bInP); }
GetKerning(sal_Bool bInP) const127cdf0e10cSrcweir inline const SvxKerningItem          &SwFmt::GetKerning(sal_Bool bInP) const
128cdf0e10cSrcweir     {   return aSet.GetKerning(bInP); }
GetUnderline(sal_Bool bInP) const129cdf0e10cSrcweir inline const SvxUnderlineItem        &SwFmt::GetUnderline(sal_Bool bInP) const
130cdf0e10cSrcweir     {   return aSet.GetUnderline(bInP); }
GetOverline(sal_Bool bInP) const131cdf0e10cSrcweir inline const SvxOverlineItem         &SwFmt::GetOverline(sal_Bool bInP) const
132cdf0e10cSrcweir     {   return aSet.GetOverline(bInP); }
GetCrossedOut(sal_Bool bInP) const133cdf0e10cSrcweir inline const SvxCrossedOutItem       &SwFmt::GetCrossedOut(sal_Bool bInP) const
134cdf0e10cSrcweir     {   return aSet.GetCrossedOut(bInP); }
GetSize(sal_Bool bInP) const135cdf0e10cSrcweir inline const SvxFontHeightItem             &SwFmt::GetSize(sal_Bool bInP) const
136cdf0e10cSrcweir     {   return aSet.GetSize(bInP); }
GetPropSize(sal_Bool bInP) const137cdf0e10cSrcweir inline const SvxPropSizeItem         &SwFmt::GetPropSize(sal_Bool bInP) const
138cdf0e10cSrcweir     {   return aSet.GetPropSize(bInP); }
GetFont(sal_Bool bInP) const139cdf0e10cSrcweir inline const SvxFontItem             &SwFmt::GetFont(sal_Bool bInP) const
140cdf0e10cSrcweir     {   return aSet.GetFont(bInP); }
GetCJKFont(sal_Bool bInP) const141cdf0e10cSrcweir inline const SvxFontItem         &SwFmt::GetCJKFont(sal_Bool bInP) const
142cdf0e10cSrcweir     {   return aSet.GetCJKFont(bInP); }
GetCTLFont(sal_Bool bInP) const143cdf0e10cSrcweir inline const SvxFontItem         &SwFmt::GetCTLFont(sal_Bool bInP) const
144cdf0e10cSrcweir     {   return aSet.GetCTLFont(bInP); }
GetColor(sal_Bool bInP) const145cdf0e10cSrcweir inline const SvxColorItem            &SwFmt::GetColor(sal_Bool bInP) const
146cdf0e10cSrcweir 	{   return aSet.GetColor(bInP); }
GetCharSetColor(sal_Bool bInP) const147cdf0e10cSrcweir     inline const SvxCharSetColorItem    &SwFmt::GetCharSetColor(sal_Bool bInP) const
148cdf0e10cSrcweir     {   return aSet.GetCharSetColor(bInP); }
GetLanguage(sal_Bool bInP) const149cdf0e10cSrcweir inline const SvxLanguageItem         &SwFmt::GetLanguage(sal_Bool bInP) const
150cdf0e10cSrcweir     {   return aSet.GetLanguage(bInP); }
GetEscapement(sal_Bool bInP) const151cdf0e10cSrcweir inline const SvxEscapementItem       &SwFmt::GetEscapement(sal_Bool bInP) const
152cdf0e10cSrcweir     {   return aSet.GetEscapement(bInP); }
GetCaseMap(sal_Bool bInP) const153cdf0e10cSrcweir inline const SvxCaseMapItem          &SwFmt::GetCaseMap(sal_Bool bInP) const
154cdf0e10cSrcweir     {   return aSet.GetCaseMap(bInP); }
GetNoHyphenHere(sal_Bool bInP) const155cdf0e10cSrcweir inline const SvxNoHyphenItem        &SwFmt::GetNoHyphenHere(sal_Bool bInP) const
156cdf0e10cSrcweir     {   return aSet.GetNoHyphenHere(bInP); }
GetBlink(sal_Bool bInP) const157cdf0e10cSrcweir inline const SvxBlinkItem           &SwFmt::GetBlink(sal_Bool bInP) const
158cdf0e10cSrcweir     {   return aSet.GetBlink(bInP); }
GetChrBackground(sal_Bool bInP) const159cdf0e10cSrcweir inline const SvxBrushItem           &SwFmt::GetChrBackground(sal_Bool bInP) const
160cdf0e10cSrcweir     {   return aSet.GetChrBackground(bInP); }
GetEmphasisMark(sal_Bool bInP) const161cdf0e10cSrcweir inline const SvxEmphasisMarkItem   &SwFmt::GetEmphasisMark( sal_Bool bInP ) const
162cdf0e10cSrcweir     {   return aSet.GetEmphasisMark(bInP); }
Get2Lines(sal_Bool bInP) const163cdf0e10cSrcweir inline const SvxTwoLinesItem       &SwFmt::Get2Lines( sal_Bool bInP ) const
164cdf0e10cSrcweir     {   return aSet.Get2Lines(bInP); }
GetCharScaleW(sal_Bool bInP) const165cdf0e10cSrcweir inline const SvxCharScaleWidthItem &SwFmt::GetCharScaleW( sal_Bool bInP ) const
166cdf0e10cSrcweir     {   return aSet.GetCharScaleW(bInP); }
GetCharRotate(sal_Bool bInP) const167cdf0e10cSrcweir inline const SvxCharRotateItem     &SwFmt::GetCharRotate( sal_Bool bInP ) const
168cdf0e10cSrcweir     {   return aSet.GetCharRotate(bInP); }
GetCharRelief(sal_Bool bInP) const169cdf0e10cSrcweir inline const SvxCharReliefItem     &SwFmt::GetCharRelief( sal_Bool bInP ) const
170cdf0e10cSrcweir     {   return aSet.GetCharRelief(bInP); }
GetCharHidden(sal_Bool bInP) const171cdf0e10cSrcweir inline const SvxCharHiddenItem      &SwFmt::GetCharHidden( sal_Bool bInP ) const
172cdf0e10cSrcweir     {   return aSet.GetCharHidden(bInP); }
173cdf0e10cSrcweir 
174cdf0e10cSrcweir #endif
175