Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*
3 : : * This file is part of the LibreOffice project.
4 : : *
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/.
8 : : *
9 : : * This file incorporates work covered by the following license notice:
10 : : *
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 .
18 : : */
19 : : #ifndef _CHARATR_HXX
20 : : #define _CHARATR_HXX
21 : :
22 : : #include <format.hxx>
23 : : #include <hintids.hxx>
24 : :
25 : :
26 : : // implementation of the character attribute methods of SwAttrSet
27 : :
28 : 6950 : inline const SvxPostureItem &SwAttrSet::GetPosture(sal_Bool bInP) const
29 : 6950 : { return (const SvxPostureItem&)Get( RES_CHRATR_POSTURE,bInP); }
30 : 6950 : inline const SvxPostureItem &SwAttrSet::GetCJKPosture(sal_Bool bInP) const
31 : 6950 : { return (const SvxPostureItem&)Get( RES_CHRATR_CJK_POSTURE,bInP); }
32 : 6950 : inline const SvxPostureItem &SwAttrSet::GetCTLPosture(sal_Bool bInP) const
33 : 6950 : { return (const SvxPostureItem&)Get( RES_CHRATR_CTL_POSTURE,bInP); }
34 : 6950 : inline const SvxWeightItem &SwAttrSet::GetWeight(sal_Bool bInP) const
35 : 6950 : { return (const SvxWeightItem&)Get( RES_CHRATR_WEIGHT,bInP); }
36 : 6950 : inline const SvxWeightItem &SwAttrSet::GetCJKWeight(sal_Bool bInP) const
37 : 6950 : { return (const SvxWeightItem&)Get( RES_CHRATR_CJK_WEIGHT,bInP); }
38 : 6950 : inline const SvxWeightItem &SwAttrSet::GetCTLWeight(sal_Bool bInP) const
39 : 6950 : { return (const SvxWeightItem&)Get( RES_CHRATR_CTL_WEIGHT,bInP); }
40 : 6950 : inline const SvxShadowedItem &SwAttrSet::GetShadowed(sal_Bool bInP) const
41 : 6950 : { return (const SvxShadowedItem&)Get( RES_CHRATR_SHADOWED,bInP); }
42 : 6950 : inline const SvxAutoKernItem &SwAttrSet::GetAutoKern(sal_Bool bInP) const
43 : 6950 : { return (const SvxAutoKernItem&)Get( RES_CHRATR_AUTOKERN,bInP); }
44 : 6950 : inline const SvxWordLineModeItem &SwAttrSet::GetWordLineMode(sal_Bool bInP) const
45 : 6950 : { return (const SvxWordLineModeItem&)Get( RES_CHRATR_WORDLINEMODE,bInP); }
46 : 6950 : inline const SvxContourItem &SwAttrSet::GetContour(sal_Bool bInP) const
47 : 6950 : { return (const SvxContourItem&)Get( RES_CHRATR_CONTOUR,bInP); }
48 : 6950 : inline const SvxKerningItem &SwAttrSet::GetKerning(sal_Bool bInP) const
49 : 6950 : { return (const SvxKerningItem&)Get( RES_CHRATR_KERNING,bInP); }
50 : 13908 : inline const SvxUnderlineItem &SwAttrSet::GetUnderline(sal_Bool bInP) const
51 : 13908 : { return (const SvxUnderlineItem&)Get( RES_CHRATR_UNDERLINE,bInP); }
52 : 13900 : inline const SvxOverlineItem &SwAttrSet::GetOverline(sal_Bool bInP) const
53 : 13900 : { return (const SvxOverlineItem&)Get( RES_CHRATR_OVERLINE,bInP); }
54 : 6950 : inline const SvxCrossedOutItem &SwAttrSet::GetCrossedOut(sal_Bool bInP) const
55 : 6950 : { return (const SvxCrossedOutItem&)Get( RES_CHRATR_CROSSEDOUT,bInP); }
56 : 6950 : inline const SvxFontHeightItem &SwAttrSet::GetSize(sal_Bool bInP) const
57 : 6950 : { return (const SvxFontHeightItem&)Get( RES_CHRATR_FONTSIZE,bInP); }
58 : 6950 : inline const SvxFontHeightItem &SwAttrSet::GetCJKSize(sal_Bool bInP) const
59 : 6950 : { return (const SvxFontHeightItem&)Get( RES_CHRATR_CJK_FONTSIZE,bInP); }
60 : 6950 : inline const SvxFontHeightItem &SwAttrSet::GetCTLSize(sal_Bool bInP) const
61 : 6950 : { 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 : 7511 : inline const SvxFontItem &SwAttrSet::GetFont(sal_Bool bInP) const
65 : 7511 : { return (const SvxFontItem&)Get( RES_CHRATR_FONT,bInP); }
66 : 6950 : inline const SvxFontItem &SwAttrSet::GetCJKFont(sal_Bool bInP) const
67 : 6950 : { return (const SvxFontItem&)Get( RES_CHRATR_CJK_FONT,bInP); }
68 : 6950 : inline const SvxFontItem &SwAttrSet::GetCTLFont(sal_Bool bInP) const
69 : 6950 : { return (const SvxFontItem&)Get( RES_CHRATR_CTL_FONT,bInP); }
70 : 6958 : inline const SvxColorItem &SwAttrSet::GetColor(sal_Bool bInP) const
71 : 6958 : { 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 : 6950 : inline const SvxLanguageItem &SwAttrSet::GetLanguage(sal_Bool bInP) const
75 : 6950 : { return (const SvxLanguageItem&)Get( RES_CHRATR_LANGUAGE,bInP); }
76 : 6950 : inline const SvxLanguageItem &SwAttrSet::GetCJKLanguage(sal_Bool bInP) const
77 : 6950 : { return (const SvxLanguageItem&)Get( RES_CHRATR_CJK_LANGUAGE,bInP); }
78 : 6950 : inline const SvxLanguageItem &SwAttrSet::GetCTLLanguage(sal_Bool bInP) const
79 : 6950 : { return (const SvxLanguageItem&)Get( RES_CHRATR_CTL_LANGUAGE,bInP); }
80 : 6950 : inline const SvxEscapementItem &SwAttrSet::GetEscapement(sal_Bool bInP) const
81 : 6950 : { return (const SvxEscapementItem&)Get( RES_CHRATR_ESCAPEMENT,bInP); }
82 : 6950 : inline const SvxCaseMapItem &SwAttrSet::GetCaseMap(sal_Bool bInP) const
83 : 6950 : { return (const SvxCaseMapItem&)Get( RES_CHRATR_CASEMAP,bInP); }
84 : 6950 : inline const SvxNoHyphenItem &SwAttrSet::GetNoHyphenHere(sal_Bool bInP) const
85 : 6950 : { return (const SvxNoHyphenItem&)Get( RES_CHRATR_NOHYPHEN,bInP); }
86 : 6950 : inline const SvxBlinkItem &SwAttrSet::GetBlink(sal_Bool bInP) const
87 : 6950 : { 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 : 6950 : inline const SvxEmphasisMarkItem &SwAttrSet::GetEmphasisMark( sal_Bool bInP ) const
91 : 6950 : { return (const SvxEmphasisMarkItem&)Get( RES_CHRATR_EMPHASIS_MARK, bInP ); }
92 : 6950 : inline const SvxTwoLinesItem &SwAttrSet::Get2Lines( sal_Bool bInP ) const
93 : 6950 : { return (const SvxTwoLinesItem&)Get( RES_CHRATR_TWO_LINES, bInP ); }
94 : 6950 : inline const SvxCharScaleWidthItem &SwAttrSet::GetCharScaleW( sal_Bool bInP ) const
95 : 6950 : { return (const SvxCharScaleWidthItem&)Get( RES_CHRATR_SCALEW, bInP ); }
96 : 6630 : inline const SvxCharRotateItem &SwAttrSet::GetCharRotate( sal_Bool bInP ) const
97 : 6630 : { return (const SvxCharRotateItem&)Get( RES_CHRATR_ROTATE, bInP ); }
98 : 6950 : inline const SvxCharReliefItem &SwAttrSet::GetCharRelief( sal_Bool bInP ) const
99 : 6950 : { return (const SvxCharReliefItem&)Get( RES_CHRATR_RELIEF, bInP ); }
100 : 6950 : inline const SvxCharHiddenItem &SwAttrSet::GetCharHidden( sal_Bool bInP ) const
101 : 6950 : { return (const SvxCharHiddenItem&)Get( RES_CHRATR_HIDDEN, bInP ); }
102 : :
103 : : // implementation of the character attribute methods of SwFmt
104 : :
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 : 8 : inline const SvxUnderlineItem &SwFmt::GetUnderline(sal_Bool bInP) const
120 : 8 : { 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 : 0 : inline const SvxFontHeightItem &SwFmt::GetSize(sal_Bool bInP) const
126 : 0 : { return aSet.GetSize(bInP); }
127 : : inline const SvxPropSizeItem &SwFmt::GetPropSize(sal_Bool bInP) const
128 : : { return aSet.GetPropSize(bInP); }
129 : 561 : inline const SvxFontItem &SwFmt::GetFont(sal_Bool bInP) const
130 : 561 : { return aSet.GetFont(bInP); }
131 : 0 : inline const SvxFontItem &SwFmt::GetCJKFont(sal_Bool bInP) const
132 : 0 : { return aSet.GetCJKFont(bInP); }
133 : 0 : inline const SvxFontItem &SwFmt::GetCTLFont(sal_Bool bInP) const
134 : 0 : { return aSet.GetCTLFont(bInP); }
135 : 8 : inline const SvxColorItem &SwFmt::GetColor(sal_Bool bInP) const
136 : 8 : { 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); }
163 : :
164 : : #endif
165 : :
166 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|