1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 #ifndef _CHARATR_HXX 28 #define _CHARATR_HXX 29 30 #include <format.hxx> 31 #include <hintids.hxx> // fuer die WhichIds 32 33 34 /****************************************************************************** 35 * Implementierung der Charakter-Attribut Methoden vom SwAttrSet 36 * AMA 12.10.94: Umstellung auf SvxItems. 37 ******************************************************************************/ 38 39 inline const SvxPostureItem &SwAttrSet::GetPosture(sal_Bool bInP) const 40 { return (const SvxPostureItem&)Get( RES_CHRATR_POSTURE,bInP); } 41 inline const SvxPostureItem &SwAttrSet::GetCJKPosture(sal_Bool bInP) const 42 { return (const SvxPostureItem&)Get( RES_CHRATR_CJK_POSTURE,bInP); } 43 inline const SvxPostureItem &SwAttrSet::GetCTLPosture(sal_Bool bInP) const 44 { return (const SvxPostureItem&)Get( RES_CHRATR_CTL_POSTURE,bInP); } 45 inline const SvxWeightItem &SwAttrSet::GetWeight(sal_Bool bInP) const 46 { return (const SvxWeightItem&)Get( RES_CHRATR_WEIGHT,bInP); } 47 inline const SvxWeightItem &SwAttrSet::GetCJKWeight(sal_Bool bInP) const 48 { return (const SvxWeightItem&)Get( RES_CHRATR_CJK_WEIGHT,bInP); } 49 inline const SvxWeightItem &SwAttrSet::GetCTLWeight(sal_Bool bInP) const 50 { return (const SvxWeightItem&)Get( RES_CHRATR_CTL_WEIGHT,bInP); } 51 inline const SvxShadowedItem &SwAttrSet::GetShadowed(sal_Bool bInP) const 52 { return (const SvxShadowedItem&)Get( RES_CHRATR_SHADOWED,bInP); } 53 inline const SvxAutoKernItem &SwAttrSet::GetAutoKern(sal_Bool bInP) const 54 { return (const SvxAutoKernItem&)Get( RES_CHRATR_AUTOKERN,bInP); } 55 inline const SvxWordLineModeItem &SwAttrSet::GetWordLineMode(sal_Bool bInP) const 56 { return (const SvxWordLineModeItem&)Get( RES_CHRATR_WORDLINEMODE,bInP); } 57 inline const SvxContourItem &SwAttrSet::GetContour(sal_Bool bInP) const 58 { return (const SvxContourItem&)Get( RES_CHRATR_CONTOUR,bInP); } 59 inline const SvxKerningItem &SwAttrSet::GetKerning(sal_Bool bInP) const 60 { return (const SvxKerningItem&)Get( RES_CHRATR_KERNING,bInP); } 61 inline const SvxUnderlineItem &SwAttrSet::GetUnderline(sal_Bool bInP) const 62 { return (const SvxUnderlineItem&)Get( RES_CHRATR_UNDERLINE,bInP); } 63 inline const SvxOverlineItem &SwAttrSet::GetOverline(sal_Bool bInP) const 64 { return (const SvxOverlineItem&)Get( RES_CHRATR_OVERLINE,bInP); } 65 inline const SvxCrossedOutItem &SwAttrSet::GetCrossedOut(sal_Bool bInP) const 66 { return (const SvxCrossedOutItem&)Get( RES_CHRATR_CROSSEDOUT,bInP); } 67 inline const SvxFontHeightItem &SwAttrSet::GetSize(sal_Bool bInP) const 68 { return (const SvxFontHeightItem&)Get( RES_CHRATR_FONTSIZE,bInP); } 69 inline const SvxFontHeightItem &SwAttrSet::GetCJKSize(sal_Bool bInP) const 70 { return (const SvxFontHeightItem&)Get( RES_CHRATR_CJK_FONTSIZE,bInP); } 71 inline const SvxFontHeightItem &SwAttrSet::GetCTLSize(sal_Bool bInP) const 72 { return (const SvxFontHeightItem&)Get( RES_CHRATR_CTL_FONTSIZE,bInP); } 73 inline const SvxPropSizeItem &SwAttrSet::GetPropSize(sal_Bool bInP) const 74 { return (const SvxPropSizeItem&)Get( RES_CHRATR_PROPORTIONALFONTSIZE,bInP); } 75 inline const SvxFontItem &SwAttrSet::GetFont(sal_Bool bInP) const 76 { return (const SvxFontItem&)Get( RES_CHRATR_FONT,bInP); } 77 inline const SvxFontItem &SwAttrSet::GetCJKFont(sal_Bool bInP) const 78 { return (const SvxFontItem&)Get( RES_CHRATR_CJK_FONT,bInP); } 79 inline const SvxFontItem &SwAttrSet::GetCTLFont(sal_Bool bInP) const 80 { return (const SvxFontItem&)Get( RES_CHRATR_CTL_FONT,bInP); } 81 inline const SvxColorItem &SwAttrSet::GetColor(sal_Bool bInP) const 82 { return (const SvxColorItem&)Get( RES_CHRATR_COLOR,bInP); } 83 inline const SvxCharSetColorItem &SwAttrSet::GetCharSetColor(sal_Bool bInP) const 84 { return (const SvxCharSetColorItem&)Get( RES_CHRATR_CHARSETCOLOR,bInP); } 85 inline const SvxLanguageItem &SwAttrSet::GetLanguage(sal_Bool bInP) const 86 { return (const SvxLanguageItem&)Get( RES_CHRATR_LANGUAGE,bInP); } 87 inline const SvxLanguageItem &SwAttrSet::GetCJKLanguage(sal_Bool bInP) const 88 { return (const SvxLanguageItem&)Get( RES_CHRATR_CJK_LANGUAGE,bInP); } 89 inline const SvxLanguageItem &SwAttrSet::GetCTLLanguage(sal_Bool bInP) const 90 { return (const SvxLanguageItem&)Get( RES_CHRATR_CTL_LANGUAGE,bInP); } 91 inline const SvxEscapementItem &SwAttrSet::GetEscapement(sal_Bool bInP) const 92 { return (const SvxEscapementItem&)Get( RES_CHRATR_ESCAPEMENT,bInP); } 93 inline const SvxCaseMapItem &SwAttrSet::GetCaseMap(sal_Bool bInP) const 94 { return (const SvxCaseMapItem&)Get( RES_CHRATR_CASEMAP,bInP); } 95 inline const SvxNoHyphenItem &SwAttrSet::GetNoHyphenHere(sal_Bool bInP) const 96 { return (const SvxNoHyphenItem&)Get( RES_CHRATR_NOHYPHEN,bInP); } 97 inline const SvxBlinkItem &SwAttrSet::GetBlink(sal_Bool bInP) const 98 { return (const SvxBlinkItem&)Get( RES_CHRATR_BLINK,bInP); } 99 inline const SvxBrushItem &SwAttrSet::GetChrBackground( sal_Bool bInP ) const 100 { return (const SvxBrushItem&)Get( RES_CHRATR_BACKGROUND, bInP ); } 101 inline const SvxEmphasisMarkItem &SwAttrSet::GetEmphasisMark( sal_Bool bInP ) const 102 { return (const SvxEmphasisMarkItem&)Get( RES_CHRATR_EMPHASIS_MARK, bInP ); } 103 inline const SvxTwoLinesItem &SwAttrSet::Get2Lines( sal_Bool bInP ) const 104 { return (const SvxTwoLinesItem&)Get( RES_CHRATR_TWO_LINES, bInP ); } 105 inline const SvxCharScaleWidthItem &SwAttrSet::GetCharScaleW( sal_Bool bInP ) const 106 { return (const SvxCharScaleWidthItem&)Get( RES_CHRATR_SCALEW, bInP ); } 107 inline const SvxCharRotateItem &SwAttrSet::GetCharRotate( sal_Bool bInP ) const 108 { return (const SvxCharRotateItem&)Get( RES_CHRATR_ROTATE, bInP ); } 109 inline const SvxCharReliefItem &SwAttrSet::GetCharRelief( sal_Bool bInP ) const 110 { return (const SvxCharReliefItem&)Get( RES_CHRATR_RELIEF, bInP ); } 111 inline const SvxCharHiddenItem &SwAttrSet::GetCharHidden( sal_Bool bInP ) const 112 { return (const SvxCharHiddenItem&)Get( RES_CHRATR_HIDDEN, bInP ); } 113 114 /****************************************************************************** 115 * Implementierung der Charakter-Attribut Methoden vom SwFmt 116 * AMA: 12.10.94: Umstellung auf SvxItems. 117 ******************************************************************************/ 118 119 inline const SvxPostureItem &SwFmt::GetPosture(sal_Bool bInP) const 120 { return aSet.GetPosture(bInP); } 121 inline const SvxWeightItem &SwFmt::GetWeight(sal_Bool bInP) const 122 { return aSet.GetWeight(bInP); } 123 inline const SvxShadowedItem &SwFmt::GetShadowed(sal_Bool bInP) const 124 { return aSet.GetShadowed(bInP); } 125 inline const SvxAutoKernItem &SwFmt::GetAutoKern(sal_Bool bInP) const 126 { return aSet.GetAutoKern(bInP); } 127 inline const SvxWordLineModeItem &SwFmt::GetWordLineMode(sal_Bool bInP) const 128 { return aSet.GetWordLineMode(bInP); } 129 inline const SvxContourItem &SwFmt::GetContour(sal_Bool bInP) const 130 { return aSet.GetContour(bInP); } 131 inline const SvxKerningItem &SwFmt::GetKerning(sal_Bool bInP) const 132 { return aSet.GetKerning(bInP); } 133 inline const SvxUnderlineItem &SwFmt::GetUnderline(sal_Bool bInP) const 134 { return aSet.GetUnderline(bInP); } 135 inline const SvxOverlineItem &SwFmt::GetOverline(sal_Bool bInP) const 136 { return aSet.GetOverline(bInP); } 137 inline const SvxCrossedOutItem &SwFmt::GetCrossedOut(sal_Bool bInP) const 138 { return aSet.GetCrossedOut(bInP); } 139 inline const SvxFontHeightItem &SwFmt::GetSize(sal_Bool bInP) const 140 { return aSet.GetSize(bInP); } 141 inline const SvxPropSizeItem &SwFmt::GetPropSize(sal_Bool bInP) const 142 { return aSet.GetPropSize(bInP); } 143 inline const SvxFontItem &SwFmt::GetFont(sal_Bool bInP) const 144 { return aSet.GetFont(bInP); } 145 inline const SvxFontItem &SwFmt::GetCJKFont(sal_Bool bInP) const 146 { return aSet.GetCJKFont(bInP); } 147 inline const SvxFontItem &SwFmt::GetCTLFont(sal_Bool bInP) const 148 { return aSet.GetCTLFont(bInP); } 149 inline const SvxColorItem &SwFmt::GetColor(sal_Bool bInP) const 150 { return aSet.GetColor(bInP); } 151 inline const SvxCharSetColorItem &SwFmt::GetCharSetColor(sal_Bool bInP) const 152 { return aSet.GetCharSetColor(bInP); } 153 inline const SvxLanguageItem &SwFmt::GetLanguage(sal_Bool bInP) const 154 { return aSet.GetLanguage(bInP); } 155 inline const SvxEscapementItem &SwFmt::GetEscapement(sal_Bool bInP) const 156 { return aSet.GetEscapement(bInP); } 157 inline const SvxCaseMapItem &SwFmt::GetCaseMap(sal_Bool bInP) const 158 { return aSet.GetCaseMap(bInP); } 159 inline const SvxNoHyphenItem &SwFmt::GetNoHyphenHere(sal_Bool bInP) const 160 { return aSet.GetNoHyphenHere(bInP); } 161 inline const SvxBlinkItem &SwFmt::GetBlink(sal_Bool bInP) const 162 { return aSet.GetBlink(bInP); } 163 inline const SvxBrushItem &SwFmt::GetChrBackground(sal_Bool bInP) const 164 { return aSet.GetChrBackground(bInP); } 165 inline const SvxEmphasisMarkItem &SwFmt::GetEmphasisMark( sal_Bool bInP ) const 166 { return aSet.GetEmphasisMark(bInP); } 167 inline const SvxTwoLinesItem &SwFmt::Get2Lines( sal_Bool bInP ) const 168 { return aSet.Get2Lines(bInP); } 169 inline const SvxCharScaleWidthItem &SwFmt::GetCharScaleW( sal_Bool bInP ) const 170 { return aSet.GetCharScaleW(bInP); } 171 inline const SvxCharRotateItem &SwFmt::GetCharRotate( sal_Bool bInP ) const 172 { return aSet.GetCharRotate(bInP); } 173 inline const SvxCharReliefItem &SwFmt::GetCharRelief( sal_Bool bInP ) const 174 { return aSet.GetCharRelief(bInP); } 175 inline const SvxCharHiddenItem &SwFmt::GetCharHidden( sal_Bool bInP ) const 176 { return aSet.GetCharHidden(bInP); } 177 178 #endif 179