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 10cdf0e10cSrcweir * 11*1d2dbeb0SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 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. 19cdf0e10cSrcweir * 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 35cdf0e10cSrcweir inline const SvxPostureItem &SwAttrSet::GetPosture(sal_Bool bInP) const 36cdf0e10cSrcweir { return (const SvxPostureItem&)Get( RES_CHRATR_POSTURE,bInP); } 37cdf0e10cSrcweir inline const SvxPostureItem &SwAttrSet::GetCJKPosture(sal_Bool bInP) const 38cdf0e10cSrcweir { return (const SvxPostureItem&)Get( RES_CHRATR_CJK_POSTURE,bInP); } 39cdf0e10cSrcweir inline const SvxPostureItem &SwAttrSet::GetCTLPosture(sal_Bool bInP) const 40cdf0e10cSrcweir { return (const SvxPostureItem&)Get( RES_CHRATR_CTL_POSTURE,bInP); } 41cdf0e10cSrcweir inline const SvxWeightItem &SwAttrSet::GetWeight(sal_Bool bInP) const 42cdf0e10cSrcweir { return (const SvxWeightItem&)Get( RES_CHRATR_WEIGHT,bInP); } 43cdf0e10cSrcweir inline const SvxWeightItem &SwAttrSet::GetCJKWeight(sal_Bool bInP) const 44cdf0e10cSrcweir { return (const SvxWeightItem&)Get( RES_CHRATR_CJK_WEIGHT,bInP); } 45cdf0e10cSrcweir inline const SvxWeightItem &SwAttrSet::GetCTLWeight(sal_Bool bInP) const 46cdf0e10cSrcweir { return (const SvxWeightItem&)Get( RES_CHRATR_CTL_WEIGHT,bInP); } 47cdf0e10cSrcweir inline const SvxShadowedItem &SwAttrSet::GetShadowed(sal_Bool bInP) const 48cdf0e10cSrcweir { return (const SvxShadowedItem&)Get( RES_CHRATR_SHADOWED,bInP); } 49cdf0e10cSrcweir inline const SvxAutoKernItem &SwAttrSet::GetAutoKern(sal_Bool bInP) const 50cdf0e10cSrcweir { return (const SvxAutoKernItem&)Get( RES_CHRATR_AUTOKERN,bInP); } 51cdf0e10cSrcweir inline const SvxWordLineModeItem &SwAttrSet::GetWordLineMode(sal_Bool bInP) const 52cdf0e10cSrcweir { return (const SvxWordLineModeItem&)Get( RES_CHRATR_WORDLINEMODE,bInP); } 53cdf0e10cSrcweir inline const SvxContourItem &SwAttrSet::GetContour(sal_Bool bInP) const 54cdf0e10cSrcweir { return (const SvxContourItem&)Get( RES_CHRATR_CONTOUR,bInP); } 55cdf0e10cSrcweir inline const SvxKerningItem &SwAttrSet::GetKerning(sal_Bool bInP) const 56cdf0e10cSrcweir { return (const SvxKerningItem&)Get( RES_CHRATR_KERNING,bInP); } 57cdf0e10cSrcweir inline const SvxUnderlineItem &SwAttrSet::GetUnderline(sal_Bool bInP) const 58cdf0e10cSrcweir { return (const SvxUnderlineItem&)Get( RES_CHRATR_UNDERLINE,bInP); } 59cdf0e10cSrcweir inline const SvxOverlineItem &SwAttrSet::GetOverline(sal_Bool bInP) const 60cdf0e10cSrcweir { return (const SvxOverlineItem&)Get( RES_CHRATR_OVERLINE,bInP); } 61cdf0e10cSrcweir inline const SvxCrossedOutItem &SwAttrSet::GetCrossedOut(sal_Bool bInP) const 62cdf0e10cSrcweir { return (const SvxCrossedOutItem&)Get( RES_CHRATR_CROSSEDOUT,bInP); } 63cdf0e10cSrcweir inline const SvxFontHeightItem &SwAttrSet::GetSize(sal_Bool bInP) const 64cdf0e10cSrcweir { return (const SvxFontHeightItem&)Get( RES_CHRATR_FONTSIZE,bInP); } 65cdf0e10cSrcweir inline const SvxFontHeightItem &SwAttrSet::GetCJKSize(sal_Bool bInP) const 66cdf0e10cSrcweir { return (const SvxFontHeightItem&)Get( RES_CHRATR_CJK_FONTSIZE,bInP); } 67cdf0e10cSrcweir inline const SvxFontHeightItem &SwAttrSet::GetCTLSize(sal_Bool bInP) const 68cdf0e10cSrcweir { return (const SvxFontHeightItem&)Get( RES_CHRATR_CTL_FONTSIZE,bInP); } 69cdf0e10cSrcweir inline const SvxPropSizeItem &SwAttrSet::GetPropSize(sal_Bool bInP) const 70cdf0e10cSrcweir { return (const SvxPropSizeItem&)Get( RES_CHRATR_PROPORTIONALFONTSIZE,bInP); } 71cdf0e10cSrcweir inline const SvxFontItem &SwAttrSet::GetFont(sal_Bool bInP) const 72cdf0e10cSrcweir { return (const SvxFontItem&)Get( RES_CHRATR_FONT,bInP); } 73cdf0e10cSrcweir inline const SvxFontItem &SwAttrSet::GetCJKFont(sal_Bool bInP) const 74cdf0e10cSrcweir { return (const SvxFontItem&)Get( RES_CHRATR_CJK_FONT,bInP); } 75cdf0e10cSrcweir inline const SvxFontItem &SwAttrSet::GetCTLFont(sal_Bool bInP) const 76cdf0e10cSrcweir { return (const SvxFontItem&)Get( RES_CHRATR_CTL_FONT,bInP); } 77cdf0e10cSrcweir inline const SvxColorItem &SwAttrSet::GetColor(sal_Bool bInP) const 78cdf0e10cSrcweir { return (const SvxColorItem&)Get( RES_CHRATR_COLOR,bInP); } 79cdf0e10cSrcweir inline const SvxCharSetColorItem &SwAttrSet::GetCharSetColor(sal_Bool bInP) const 80cdf0e10cSrcweir { return (const SvxCharSetColorItem&)Get( RES_CHRATR_CHARSETCOLOR,bInP); } 81cdf0e10cSrcweir inline const SvxLanguageItem &SwAttrSet::GetLanguage(sal_Bool bInP) const 82cdf0e10cSrcweir { return (const SvxLanguageItem&)Get( RES_CHRATR_LANGUAGE,bInP); } 83cdf0e10cSrcweir inline const SvxLanguageItem &SwAttrSet::GetCJKLanguage(sal_Bool bInP) const 84cdf0e10cSrcweir { return (const SvxLanguageItem&)Get( RES_CHRATR_CJK_LANGUAGE,bInP); } 85cdf0e10cSrcweir inline const SvxLanguageItem &SwAttrSet::GetCTLLanguage(sal_Bool bInP) const 86cdf0e10cSrcweir { return (const SvxLanguageItem&)Get( RES_CHRATR_CTL_LANGUAGE,bInP); } 87cdf0e10cSrcweir inline const SvxEscapementItem &SwAttrSet::GetEscapement(sal_Bool bInP) const 88cdf0e10cSrcweir { return (const SvxEscapementItem&)Get( RES_CHRATR_ESCAPEMENT,bInP); } 89cdf0e10cSrcweir inline const SvxCaseMapItem &SwAttrSet::GetCaseMap(sal_Bool bInP) const 90cdf0e10cSrcweir { return (const SvxCaseMapItem&)Get( RES_CHRATR_CASEMAP,bInP); } 91cdf0e10cSrcweir inline const SvxNoHyphenItem &SwAttrSet::GetNoHyphenHere(sal_Bool bInP) const 92cdf0e10cSrcweir { return (const SvxNoHyphenItem&)Get( RES_CHRATR_NOHYPHEN,bInP); } 93cdf0e10cSrcweir inline const SvxBlinkItem &SwAttrSet::GetBlink(sal_Bool bInP) const 94cdf0e10cSrcweir { return (const SvxBlinkItem&)Get( RES_CHRATR_BLINK,bInP); } 95cdf0e10cSrcweir inline const SvxBrushItem &SwAttrSet::GetChrBackground( sal_Bool bInP ) const 96cdf0e10cSrcweir { return (const SvxBrushItem&)Get( RES_CHRATR_BACKGROUND, bInP ); } 97cdf0e10cSrcweir inline const SvxEmphasisMarkItem &SwAttrSet::GetEmphasisMark( sal_Bool bInP ) const 98cdf0e10cSrcweir { return (const SvxEmphasisMarkItem&)Get( RES_CHRATR_EMPHASIS_MARK, bInP ); } 99cdf0e10cSrcweir inline const SvxTwoLinesItem &SwAttrSet::Get2Lines( sal_Bool bInP ) const 100cdf0e10cSrcweir { return (const SvxTwoLinesItem&)Get( RES_CHRATR_TWO_LINES, bInP ); } 101cdf0e10cSrcweir inline const SvxCharScaleWidthItem &SwAttrSet::GetCharScaleW( sal_Bool bInP ) const 102cdf0e10cSrcweir { return (const SvxCharScaleWidthItem&)Get( RES_CHRATR_SCALEW, bInP ); } 103cdf0e10cSrcweir inline const SvxCharRotateItem &SwAttrSet::GetCharRotate( sal_Bool bInP ) const 104cdf0e10cSrcweir { return (const SvxCharRotateItem&)Get( RES_CHRATR_ROTATE, bInP ); } 105cdf0e10cSrcweir inline const SvxCharReliefItem &SwAttrSet::GetCharRelief( sal_Bool bInP ) const 106cdf0e10cSrcweir { return (const SvxCharReliefItem&)Get( RES_CHRATR_RELIEF, bInP ); } 107cdf0e10cSrcweir 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 115cdf0e10cSrcweir inline const SvxPostureItem &SwFmt::GetPosture(sal_Bool bInP) const 116cdf0e10cSrcweir { return aSet.GetPosture(bInP); } 117cdf0e10cSrcweir inline const SvxWeightItem &SwFmt::GetWeight(sal_Bool bInP) const 118cdf0e10cSrcweir { return aSet.GetWeight(bInP); } 119cdf0e10cSrcweir inline const SvxShadowedItem &SwFmt::GetShadowed(sal_Bool bInP) const 120cdf0e10cSrcweir { return aSet.GetShadowed(bInP); } 121cdf0e10cSrcweir inline const SvxAutoKernItem &SwFmt::GetAutoKern(sal_Bool bInP) const 122cdf0e10cSrcweir { return aSet.GetAutoKern(bInP); } 123cdf0e10cSrcweir inline const SvxWordLineModeItem &SwFmt::GetWordLineMode(sal_Bool bInP) const 124cdf0e10cSrcweir { return aSet.GetWordLineMode(bInP); } 125cdf0e10cSrcweir inline const SvxContourItem &SwFmt::GetContour(sal_Bool bInP) const 126cdf0e10cSrcweir { return aSet.GetContour(bInP); } 127cdf0e10cSrcweir inline const SvxKerningItem &SwFmt::GetKerning(sal_Bool bInP) const 128cdf0e10cSrcweir { return aSet.GetKerning(bInP); } 129cdf0e10cSrcweir inline const SvxUnderlineItem &SwFmt::GetUnderline(sal_Bool bInP) const 130cdf0e10cSrcweir { return aSet.GetUnderline(bInP); } 131cdf0e10cSrcweir inline const SvxOverlineItem &SwFmt::GetOverline(sal_Bool bInP) const 132cdf0e10cSrcweir { return aSet.GetOverline(bInP); } 133cdf0e10cSrcweir inline const SvxCrossedOutItem &SwFmt::GetCrossedOut(sal_Bool bInP) const 134cdf0e10cSrcweir { return aSet.GetCrossedOut(bInP); } 135cdf0e10cSrcweir inline const SvxFontHeightItem &SwFmt::GetSize(sal_Bool bInP) const 136cdf0e10cSrcweir { return aSet.GetSize(bInP); } 137cdf0e10cSrcweir inline const SvxPropSizeItem &SwFmt::GetPropSize(sal_Bool bInP) const 138cdf0e10cSrcweir { return aSet.GetPropSize(bInP); } 139cdf0e10cSrcweir inline const SvxFontItem &SwFmt::GetFont(sal_Bool bInP) const 140cdf0e10cSrcweir { return aSet.GetFont(bInP); } 141cdf0e10cSrcweir inline const SvxFontItem &SwFmt::GetCJKFont(sal_Bool bInP) const 142cdf0e10cSrcweir { return aSet.GetCJKFont(bInP); } 143cdf0e10cSrcweir inline const SvxFontItem &SwFmt::GetCTLFont(sal_Bool bInP) const 144cdf0e10cSrcweir { return aSet.GetCTLFont(bInP); } 145cdf0e10cSrcweir inline const SvxColorItem &SwFmt::GetColor(sal_Bool bInP) const 146cdf0e10cSrcweir { return aSet.GetColor(bInP); } 147cdf0e10cSrcweir inline const SvxCharSetColorItem &SwFmt::GetCharSetColor(sal_Bool bInP) const 148cdf0e10cSrcweir { return aSet.GetCharSetColor(bInP); } 149cdf0e10cSrcweir inline const SvxLanguageItem &SwFmt::GetLanguage(sal_Bool bInP) const 150cdf0e10cSrcweir { return aSet.GetLanguage(bInP); } 151cdf0e10cSrcweir inline const SvxEscapementItem &SwFmt::GetEscapement(sal_Bool bInP) const 152cdf0e10cSrcweir { return aSet.GetEscapement(bInP); } 153cdf0e10cSrcweir inline const SvxCaseMapItem &SwFmt::GetCaseMap(sal_Bool bInP) const 154cdf0e10cSrcweir { return aSet.GetCaseMap(bInP); } 155cdf0e10cSrcweir inline const SvxNoHyphenItem &SwFmt::GetNoHyphenHere(sal_Bool bInP) const 156cdf0e10cSrcweir { return aSet.GetNoHyphenHere(bInP); } 157cdf0e10cSrcweir inline const SvxBlinkItem &SwFmt::GetBlink(sal_Bool bInP) const 158cdf0e10cSrcweir { return aSet.GetBlink(bInP); } 159cdf0e10cSrcweir inline const SvxBrushItem &SwFmt::GetChrBackground(sal_Bool bInP) const 160cdf0e10cSrcweir { return aSet.GetChrBackground(bInP); } 161cdf0e10cSrcweir inline const SvxEmphasisMarkItem &SwFmt::GetEmphasisMark( sal_Bool bInP ) const 162cdf0e10cSrcweir { return aSet.GetEmphasisMark(bInP); } 163cdf0e10cSrcweir inline const SvxTwoLinesItem &SwFmt::Get2Lines( sal_Bool bInP ) const 164cdf0e10cSrcweir { return aSet.Get2Lines(bInP); } 165cdf0e10cSrcweir inline const SvxCharScaleWidthItem &SwFmt::GetCharScaleW( sal_Bool bInP ) const 166cdf0e10cSrcweir { return aSet.GetCharScaleW(bInP); } 167cdf0e10cSrcweir inline const SvxCharRotateItem &SwFmt::GetCharRotate( sal_Bool bInP ) const 168cdf0e10cSrcweir { return aSet.GetCharRotate(bInP); } 169cdf0e10cSrcweir inline const SvxCharReliefItem &SwFmt::GetCharRelief( sal_Bool bInP ) const 170cdf0e10cSrcweir { return aSet.GetCharRelief(bInP); } 171cdf0e10cSrcweir inline const SvxCharHiddenItem &SwFmt::GetCharHidden( sal_Bool bInP ) const 172cdf0e10cSrcweir { return aSet.GetCharHidden(bInP); } 173cdf0e10cSrcweir 174cdf0e10cSrcweir #endif 175