1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
23 #include <hintids.hxx>
26 // implementation of the character attribute methods of SwAttrSet
28 inline const SvxPostureItem
&SwAttrSet::GetPosture(sal_Bool bInP
) const
29 { return (const SvxPostureItem
&)Get( RES_CHRATR_POSTURE
,bInP
); }
30 inline const SvxPostureItem
&SwAttrSet::GetCJKPosture(sal_Bool bInP
) const
31 { return (const SvxPostureItem
&)Get( RES_CHRATR_CJK_POSTURE
,bInP
); }
32 inline const SvxPostureItem
&SwAttrSet::GetCTLPosture(sal_Bool bInP
) const
33 { return (const SvxPostureItem
&)Get( RES_CHRATR_CTL_POSTURE
,bInP
); }
34 inline const SvxWeightItem
&SwAttrSet::GetWeight(sal_Bool bInP
) const
35 { return (const SvxWeightItem
&)Get( RES_CHRATR_WEIGHT
,bInP
); }
36 inline const SvxWeightItem
&SwAttrSet::GetCJKWeight(sal_Bool bInP
) const
37 { return (const SvxWeightItem
&)Get( RES_CHRATR_CJK_WEIGHT
,bInP
); }
38 inline const SvxWeightItem
&SwAttrSet::GetCTLWeight(sal_Bool bInP
) const
39 { return (const SvxWeightItem
&)Get( RES_CHRATR_CTL_WEIGHT
,bInP
); }
40 inline const SvxShadowedItem
&SwAttrSet::GetShadowed(sal_Bool bInP
) const
41 { return (const SvxShadowedItem
&)Get( RES_CHRATR_SHADOWED
,bInP
); }
42 inline const SvxAutoKernItem
&SwAttrSet::GetAutoKern(sal_Bool bInP
) const
43 { return (const SvxAutoKernItem
&)Get( RES_CHRATR_AUTOKERN
,bInP
); }
44 inline const SvxWordLineModeItem
&SwAttrSet::GetWordLineMode(sal_Bool bInP
) const
45 { return (const SvxWordLineModeItem
&)Get( RES_CHRATR_WORDLINEMODE
,bInP
); }
46 inline const SvxContourItem
&SwAttrSet::GetContour(sal_Bool bInP
) const
47 { return (const SvxContourItem
&)Get( RES_CHRATR_CONTOUR
,bInP
); }
48 inline const SvxKerningItem
&SwAttrSet::GetKerning(sal_Bool bInP
) const
49 { return (const SvxKerningItem
&)Get( RES_CHRATR_KERNING
,bInP
); }
50 inline const SvxUnderlineItem
&SwAttrSet::GetUnderline(sal_Bool bInP
) const
51 { return (const SvxUnderlineItem
&)Get( RES_CHRATR_UNDERLINE
,bInP
); }
52 inline const SvxOverlineItem
&SwAttrSet::GetOverline(sal_Bool bInP
) const
53 { return (const SvxOverlineItem
&)Get( RES_CHRATR_OVERLINE
,bInP
); }
54 inline const SvxCrossedOutItem
&SwAttrSet::GetCrossedOut(sal_Bool bInP
) const
55 { return (const SvxCrossedOutItem
&)Get( RES_CHRATR_CROSSEDOUT
,bInP
); }
56 inline const SvxFontHeightItem
&SwAttrSet::GetSize(sal_Bool bInP
) const
57 { return (const SvxFontHeightItem
&)Get( RES_CHRATR_FONTSIZE
,bInP
); }
58 inline const SvxFontHeightItem
&SwAttrSet::GetCJKSize(sal_Bool bInP
) const
59 { return (const SvxFontHeightItem
&)Get( RES_CHRATR_CJK_FONTSIZE
,bInP
); }
60 inline const SvxFontHeightItem
&SwAttrSet::GetCTLSize(sal_Bool bInP
) const
61 { return (const SvxFontHeightItem
&)Get( RES_CHRATR_CTL_FONTSIZE
,bInP
); }
62 inline const SvxPropSizeItem
&SwAttrSet::GetPropSize(sal_Bool bInP
) const
63 { return (const SvxPropSizeItem
&)Get( RES_CHRATR_PROPORTIONALFONTSIZE
,bInP
); }
64 inline const SvxFontItem
&SwAttrSet::GetFont(sal_Bool bInP
) const
65 { return (const SvxFontItem
&)Get( RES_CHRATR_FONT
,bInP
); }
66 inline const SvxFontItem
&SwAttrSet::GetCJKFont(sal_Bool bInP
) const
67 { return (const SvxFontItem
&)Get( RES_CHRATR_CJK_FONT
,bInP
); }
68 inline const SvxFontItem
&SwAttrSet::GetCTLFont(sal_Bool bInP
) const
69 { return (const SvxFontItem
&)Get( RES_CHRATR_CTL_FONT
,bInP
); }
70 inline const SvxColorItem
&SwAttrSet::GetColor(sal_Bool bInP
) const
71 { return (const SvxColorItem
&)Get( RES_CHRATR_COLOR
,bInP
); }
72 inline const SvxCharSetColorItem
&SwAttrSet::GetCharSetColor(sal_Bool bInP
) const
73 { return (const SvxCharSetColorItem
&)Get( RES_CHRATR_CHARSETCOLOR
,bInP
); }
74 inline const SvxLanguageItem
&SwAttrSet::GetLanguage(sal_Bool bInP
) const
75 { return (const SvxLanguageItem
&)Get( RES_CHRATR_LANGUAGE
,bInP
); }
76 inline const SvxLanguageItem
&SwAttrSet::GetCJKLanguage(sal_Bool bInP
) const
77 { return (const SvxLanguageItem
&)Get( RES_CHRATR_CJK_LANGUAGE
,bInP
); }
78 inline const SvxLanguageItem
&SwAttrSet::GetCTLLanguage(sal_Bool bInP
) const
79 { return (const SvxLanguageItem
&)Get( RES_CHRATR_CTL_LANGUAGE
,bInP
); }
80 inline const SvxEscapementItem
&SwAttrSet::GetEscapement(sal_Bool bInP
) const
81 { return (const SvxEscapementItem
&)Get( RES_CHRATR_ESCAPEMENT
,bInP
); }
82 inline const SvxCaseMapItem
&SwAttrSet::GetCaseMap(sal_Bool bInP
) const
83 { return (const SvxCaseMapItem
&)Get( RES_CHRATR_CASEMAP
,bInP
); }
84 inline const SvxNoHyphenItem
&SwAttrSet::GetNoHyphenHere(sal_Bool bInP
) const
85 { return (const SvxNoHyphenItem
&)Get( RES_CHRATR_NOHYPHEN
,bInP
); }
86 inline const SvxBlinkItem
&SwAttrSet::GetBlink(sal_Bool bInP
) const
87 { return (const SvxBlinkItem
&)Get( RES_CHRATR_BLINK
,bInP
); }
88 inline const SvxBrushItem
&SwAttrSet::GetChrBackground( sal_Bool bInP
) const
89 { return (const SvxBrushItem
&)Get( RES_CHRATR_BACKGROUND
, bInP
); }
90 inline const SvxEmphasisMarkItem
&SwAttrSet::GetEmphasisMark( sal_Bool bInP
) const
91 { return (const SvxEmphasisMarkItem
&)Get( RES_CHRATR_EMPHASIS_MARK
, bInP
); }
92 inline const SvxTwoLinesItem
&SwAttrSet::Get2Lines( sal_Bool bInP
) const
93 { return (const SvxTwoLinesItem
&)Get( RES_CHRATR_TWO_LINES
, bInP
); }
94 inline const SvxCharScaleWidthItem
&SwAttrSet::GetCharScaleW( sal_Bool bInP
) const
95 { return (const SvxCharScaleWidthItem
&)Get( RES_CHRATR_SCALEW
, bInP
); }
96 inline const SvxCharRotateItem
&SwAttrSet::GetCharRotate( sal_Bool bInP
) const
97 { return (const SvxCharRotateItem
&)Get( RES_CHRATR_ROTATE
, bInP
); }
98 inline const SvxCharReliefItem
&SwAttrSet::GetCharRelief( sal_Bool bInP
) const
99 { return (const SvxCharReliefItem
&)Get( RES_CHRATR_RELIEF
, bInP
); }
100 inline const SvxCharHiddenItem
&SwAttrSet::GetCharHidden( sal_Bool bInP
) const
101 { return (const SvxCharHiddenItem
&)Get( RES_CHRATR_HIDDEN
, bInP
); }
103 // implementation of the character attribute methods of SwFmt
105 inline const SvxPostureItem
&SwFmt::GetPosture(sal_Bool bInP
) const
106 { return aSet
.GetPosture(bInP
); }
107 inline const SvxWeightItem
&SwFmt::GetWeight(sal_Bool bInP
) const
108 { return aSet
.GetWeight(bInP
); }
109 inline const SvxShadowedItem
&SwFmt::GetShadowed(sal_Bool bInP
) const
110 { return aSet
.GetShadowed(bInP
); }
111 inline const SvxAutoKernItem
&SwFmt::GetAutoKern(sal_Bool bInP
) const
112 { return aSet
.GetAutoKern(bInP
); }
113 inline const SvxWordLineModeItem
&SwFmt::GetWordLineMode(sal_Bool bInP
) const
114 { return aSet
.GetWordLineMode(bInP
); }
115 inline const SvxContourItem
&SwFmt::GetContour(sal_Bool bInP
) const
116 { return aSet
.GetContour(bInP
); }
117 inline const SvxKerningItem
&SwFmt::GetKerning(sal_Bool bInP
) const
118 { return aSet
.GetKerning(bInP
); }
119 inline const SvxUnderlineItem
&SwFmt::GetUnderline(sal_Bool bInP
) const
120 { return aSet
.GetUnderline(bInP
); }
121 inline const SvxOverlineItem
&SwFmt::GetOverline(sal_Bool bInP
) const
122 { return aSet
.GetOverline(bInP
); }
123 inline const SvxCrossedOutItem
&SwFmt::GetCrossedOut(sal_Bool bInP
) const
124 { return aSet
.GetCrossedOut(bInP
); }
125 inline const SvxFontHeightItem
&SwFmt::GetSize(sal_Bool bInP
) const
126 { return aSet
.GetSize(bInP
); }
127 inline const SvxPropSizeItem
&SwFmt::GetPropSize(sal_Bool bInP
) const
128 { return aSet
.GetPropSize(bInP
); }
129 inline const SvxFontItem
&SwFmt::GetFont(sal_Bool bInP
) const
130 { return aSet
.GetFont(bInP
); }
131 inline const SvxFontItem
&SwFmt::GetCJKFont(sal_Bool bInP
) const
132 { return aSet
.GetCJKFont(bInP
); }
133 inline const SvxFontItem
&SwFmt::GetCTLFont(sal_Bool bInP
) const
134 { return aSet
.GetCTLFont(bInP
); }
135 inline const SvxColorItem
&SwFmt::GetColor(sal_Bool bInP
) const
136 { return aSet
.GetColor(bInP
); }
137 inline const SvxCharSetColorItem
&SwFmt::GetCharSetColor(sal_Bool bInP
) const
138 { return aSet
.GetCharSetColor(bInP
); }
139 inline const SvxLanguageItem
&SwFmt::GetLanguage(sal_Bool bInP
) const
140 { return aSet
.GetLanguage(bInP
); }
141 inline const SvxEscapementItem
&SwFmt::GetEscapement(sal_Bool bInP
) const
142 { return aSet
.GetEscapement(bInP
); }
143 inline const SvxCaseMapItem
&SwFmt::GetCaseMap(sal_Bool bInP
) const
144 { return aSet
.GetCaseMap(bInP
); }
145 inline const SvxNoHyphenItem
&SwFmt::GetNoHyphenHere(sal_Bool bInP
) const
146 { return aSet
.GetNoHyphenHere(bInP
); }
147 inline const SvxBlinkItem
&SwFmt::GetBlink(sal_Bool bInP
) const
148 { return aSet
.GetBlink(bInP
); }
149 inline const SvxBrushItem
&SwFmt::GetChrBackground(sal_Bool bInP
) const
150 { return aSet
.GetChrBackground(bInP
); }
151 inline const SvxEmphasisMarkItem
&SwFmt::GetEmphasisMark( sal_Bool bInP
) const
152 { return aSet
.GetEmphasisMark(bInP
); }
153 inline const SvxTwoLinesItem
&SwFmt::Get2Lines( sal_Bool bInP
) const
154 { return aSet
.Get2Lines(bInP
); }
155 inline const SvxCharScaleWidthItem
&SwFmt::GetCharScaleW( sal_Bool bInP
) const
156 { return aSet
.GetCharScaleW(bInP
); }
157 inline const SvxCharRotateItem
&SwFmt::GetCharRotate( sal_Bool bInP
) const
158 { return aSet
.GetCharRotate(bInP
); }
159 inline const SvxCharReliefItem
&SwFmt::GetCharRelief( sal_Bool bInP
) const
160 { return aSet
.GetCharRelief(bInP
); }
161 inline const SvxCharHiddenItem
&SwFmt::GetCharHidden( sal_Bool bInP
) const
162 { return aSet
.GetCharHidden(bInP
); }
166 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */