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