1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SW_INC_CHARATR_HXX
#define INCLUDED_SW_INC_CHARATR_HXX
#include <format.hxx>
#include <hintids.hxx>
#include <editeng/postitem.hxx>
#include <editeng/wghtitem.hxx>
#include <editeng/shdditem.hxx>
#include <editeng/autokernitem.hxx>
#include <editeng/wrlmitem.hxx>
#include <editeng/contouritem.hxx>
#include <editeng/kernitem.hxx>
#include <editeng/udlnitem.hxx>
#include <editeng/crossedoutitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/prszitem.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/charsetcoloritem.hxx>
#include <editeng/escapementitem.hxx>
#include <editeng/cmapitem.hxx>
#include <editeng/nhypitem.hxx>
#include <editeng/blinkitem.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/emphasismarkitem.hxx>
#include <editeng/twolinesitem.hxx>
#include <editeng/charscaleitem.hxx>
#include <editeng/charrotateitem.hxx>
#include <editeng/charreliefitem.hxx>
#include <editeng/charhiddenitem.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/shaditem.hxx>
#include <editeng/langitem.hxx>
// implementation of the character attribute methods of SwAttrSet
inline const SvxPostureItem &SwAttrSet::GetPosture(bool bInP) const
{ return static_cast<const SvxPostureItem&>(Get( RES_CHRATR_POSTURE,bInP)); }
inline const SvxPostureItem &SwAttrSet::GetCJKPosture(bool bInP) const
{ return static_cast<const SvxPostureItem&>(Get( RES_CHRATR_CJK_POSTURE,bInP)); }
inline const SvxPostureItem &SwAttrSet::GetCTLPosture(bool bInP) const
{ return static_cast<const SvxPostureItem&>(Get( RES_CHRATR_CTL_POSTURE,bInP)); }
inline const SvxWeightItem &SwAttrSet::GetWeight(bool bInP) const
{ return static_cast<const SvxWeightItem&>(Get( RES_CHRATR_WEIGHT,bInP)); }
inline const SvxWeightItem &SwAttrSet::GetCJKWeight(bool bInP) const
{ return static_cast<const SvxWeightItem&>(Get( RES_CHRATR_CJK_WEIGHT,bInP)); }
inline const SvxWeightItem &SwAttrSet::GetCTLWeight(bool bInP) const
{ return static_cast<const SvxWeightItem&>(Get( RES_CHRATR_CTL_WEIGHT,bInP)); }
inline const SvxShadowedItem &SwAttrSet::GetShadowed(bool bInP) const
{ return static_cast<const SvxShadowedItem&>(Get( RES_CHRATR_SHADOWED,bInP)); }
inline const SvxAutoKernItem &SwAttrSet::GetAutoKern(bool bInP) const
{ return static_cast<const SvxAutoKernItem&>(Get( RES_CHRATR_AUTOKERN,bInP)); }
inline const SvxWordLineModeItem &SwAttrSet::GetWordLineMode(bool bInP) const
{ return static_cast<const SvxWordLineModeItem&>(Get( RES_CHRATR_WORDLINEMODE,bInP)); }
inline const SvxContourItem &SwAttrSet::GetContour(bool bInP) const
{ return static_cast<const SvxContourItem&>(Get( RES_CHRATR_CONTOUR,bInP)); }
inline const SvxKerningItem &SwAttrSet::GetKerning(bool bInP) const
{ return static_cast<const SvxKerningItem&>(Get( RES_CHRATR_KERNING,bInP)); }
inline const SvxUnderlineItem &SwAttrSet::GetUnderline(bool bInP) const
{ return static_cast<const SvxUnderlineItem&>(Get( RES_CHRATR_UNDERLINE,bInP)); }
inline const SvxOverlineItem &SwAttrSet::GetOverline(bool bInP) const
{ return static_cast<const SvxOverlineItem&>(Get( RES_CHRATR_OVERLINE,bInP)); }
inline const SvxCrossedOutItem &SwAttrSet::GetCrossedOut(bool bInP) const
{ return static_cast<const SvxCrossedOutItem&>(Get( RES_CHRATR_CROSSEDOUT,bInP)); }
inline const SvxFontHeightItem &SwAttrSet::GetSize(bool bInP) const
{ return static_cast<const SvxFontHeightItem&>(Get( RES_CHRATR_FONTSIZE,bInP)); }
inline const SvxFontHeightItem &SwAttrSet::GetCJKSize(bool bInP) const
{ return static_cast<const SvxFontHeightItem&>(Get( RES_CHRATR_CJK_FONTSIZE,bInP)); }
inline const SvxFontHeightItem &SwAttrSet::GetCTLSize(bool bInP) const
{ return static_cast<const SvxFontHeightItem&>(Get( RES_CHRATR_CTL_FONTSIZE,bInP)); }
inline const SvxPropSizeItem &SwAttrSet::GetPropSize(bool bInP) const
{ return static_cast<const SvxPropSizeItem&>(Get( RES_CHRATR_PROPORTIONALFONTSIZE,bInP)); }
inline const SvxFontItem &SwAttrSet::GetFont(bool bInP) const
{ return static_cast<const SvxFontItem&>(Get( RES_CHRATR_FONT,bInP)); }
inline const SvxFontItem &SwAttrSet::GetCJKFont(bool bInP) const
{ return static_cast<const SvxFontItem&>(Get( RES_CHRATR_CJK_FONT,bInP)); }
inline const SvxFontItem &SwAttrSet::GetCTLFont(bool bInP) const
{ return static_cast<const SvxFontItem&>(Get( RES_CHRATR_CTL_FONT,bInP)); }
inline const SvxColorItem &SwAttrSet::GetColor(bool bInP) const
{ return static_cast<const SvxColorItem&>(Get( RES_CHRATR_COLOR,bInP)); }
inline const SvxCharSetColorItem &SwAttrSet::GetCharSetColor(bool bInP) const
{ return static_cast<const SvxCharSetColorItem&>(Get( RES_CHRATR_CHARSETCOLOR,bInP)); }
inline const SvxLanguageItem &SwAttrSet::GetLanguage(bool bInP) const
{ return static_cast<const SvxLanguageItem&>(Get( RES_CHRATR_LANGUAGE,bInP)); }
inline const SvxLanguageItem &SwAttrSet::GetCJKLanguage(bool bInP) const
{ return static_cast<const SvxLanguageItem&>(Get( RES_CHRATR_CJK_LANGUAGE,bInP)); }
inline const SvxLanguageItem &SwAttrSet::GetCTLLanguage(bool bInP) const
{ return static_cast<const SvxLanguageItem&>(Get( RES_CHRATR_CTL_LANGUAGE,bInP)); }
inline const SvxEscapementItem &SwAttrSet::GetEscapement(bool bInP) const
{ return static_cast<const SvxEscapementItem&>(Get( RES_CHRATR_ESCAPEMENT,bInP)); }
inline const SvxCaseMapItem &SwAttrSet::GetCaseMap(bool bInP) const
{ return static_cast<const SvxCaseMapItem&>(Get( RES_CHRATR_CASEMAP,bInP)); }
inline const SvxNoHyphenItem &SwAttrSet::GetNoHyphenHere(bool bInP) const
{ return static_cast<const SvxNoHyphenItem&>(Get( RES_CHRATR_NOHYPHEN,bInP)); }
inline const SvxBlinkItem &SwAttrSet::GetBlink(bool bInP) const
{ return static_cast<const SvxBlinkItem&>(Get( RES_CHRATR_BLINK,bInP)); }
inline const SvxBrushItem &SwAttrSet::GetChrBackground( bool bInP ) const
{ return static_cast<const SvxBrushItem&>(Get( RES_CHRATR_BACKGROUND, bInP )); }
inline const SvxBrushItem &SwAttrSet::GetChrHighlight( bool bInP ) const
{ return static_cast<const SvxBrushItem&>(Get( RES_CHRATR_HIGHLIGHT, bInP )); }
inline const SvxEmphasisMarkItem &SwAttrSet::GetEmphasisMark( bool bInP ) const
{ return static_cast<const SvxEmphasisMarkItem&>(Get( RES_CHRATR_EMPHASIS_MARK, bInP )); }
inline const SvxTwoLinesItem &SwAttrSet::Get2Lines( bool bInP ) const
{ return static_cast<const SvxTwoLinesItem&>(Get( RES_CHRATR_TWO_LINES, bInP )); }
inline const SvxCharScaleWidthItem &SwAttrSet::GetCharScaleW( bool bInP ) const
{ return static_cast<const SvxCharScaleWidthItem&>(Get( RES_CHRATR_SCALEW, bInP )); }
inline const SvxCharRotateItem &SwAttrSet::GetCharRotate( bool bInP ) const
{ return static_cast<const SvxCharRotateItem&>(Get( RES_CHRATR_ROTATE, bInP )); }
inline const SvxCharReliefItem &SwAttrSet::GetCharRelief( bool bInP ) const
{ return static_cast<const SvxCharReliefItem&>(Get( RES_CHRATR_RELIEF, bInP )); }
inline const SvxCharHiddenItem &SwAttrSet::GetCharHidden( bool bInP ) const
{ return static_cast<const SvxCharHiddenItem&>(Get( RES_CHRATR_HIDDEN, bInP )); }
inline const SvxBoxItem &SwAttrSet::GetCharBorder( bool bInP ) const
{ return static_cast<const SvxBoxItem&>(Get( RES_CHRATR_BOX, bInP )); }
inline const SvxShadowItem &SwAttrSet::GetCharShadow( bool bInP ) const
{ return static_cast<const SvxShadowItem&>(Get( RES_CHRATR_SHADOW, bInP )); }
// implementation of the character attribute methods of SwFmt
inline const SvxPostureItem &SwFmt::GetPosture(bool bInP) const
{ return aSet.GetPosture(bInP); }
inline const SvxWeightItem &SwFmt::GetWeight(bool bInP) const
{ return aSet.GetWeight(bInP); }
inline const SvxShadowedItem &SwFmt::GetShadowed(bool bInP) const
{ return aSet.GetShadowed(bInP); }
inline const SvxAutoKernItem &SwFmt::GetAutoKern(bool bInP) const
{ return aSet.GetAutoKern(bInP); }
inline const SvxWordLineModeItem &SwFmt::GetWordLineMode(bool bInP) const
{ return aSet.GetWordLineMode(bInP); }
inline const SvxContourItem &SwFmt::GetContour(bool bInP) const
{ return aSet.GetContour(bInP); }
inline const SvxKerningItem &SwFmt::GetKerning(bool bInP) const
{ return aSet.GetKerning(bInP); }
inline const SvxUnderlineItem &SwFmt::GetUnderline(bool bInP) const
{ return aSet.GetUnderline(bInP); }
inline const SvxOverlineItem &SwFmt::GetOverline(bool bInP) const
{ return aSet.GetOverline(bInP); }
inline const SvxCrossedOutItem &SwFmt::GetCrossedOut(bool bInP) const
{ return aSet.GetCrossedOut(bInP); }
inline const SvxFontHeightItem &SwFmt::GetSize(bool bInP) const
{ return aSet.GetSize(bInP); }
inline const SvxPropSizeItem &SwFmt::GetPropSize(bool bInP) const
{ return aSet.GetPropSize(bInP); }
inline const SvxFontItem &SwFmt::GetFont(bool bInP) const
{ return aSet.GetFont(bInP); }
inline const SvxFontItem &SwFmt::GetCJKFont(bool bInP) const
{ return aSet.GetCJKFont(bInP); }
inline const SvxFontItem &SwFmt::GetCTLFont(bool bInP) const
{ return aSet.GetCTLFont(bInP); }
inline const SvxColorItem &SwFmt::GetColor(bool bInP) const
{ return aSet.GetColor(bInP); }
inline const SvxCharSetColorItem &SwFmt::GetCharSetColor(bool bInP) const
{ return aSet.GetCharSetColor(bInP); }
inline const SvxLanguageItem &SwFmt::GetLanguage(bool bInP) const
{ return aSet.GetLanguage(bInP); }
inline const SvxEscapementItem &SwFmt::GetEscapement(bool bInP) const
{ return aSet.GetEscapement(bInP); }
inline const SvxCaseMapItem &SwFmt::GetCaseMap(bool bInP) const
{ return aSet.GetCaseMap(bInP); }
inline const SvxNoHyphenItem &SwFmt::GetNoHyphenHere(bool bInP) const
{ return aSet.GetNoHyphenHere(bInP); }
inline const SvxBlinkItem &SwFmt::GetBlink(bool bInP) const
{ return aSet.GetBlink(bInP); }
inline const SvxBrushItem &SwFmt::GetChrBackground(bool bInP) const
{ return aSet.GetChrBackground(bInP); }
inline const SvxBrushItem &SwFmt::GetChrHighlight(bool bInP) const
{ return aSet.GetChrHighlight(bInP); }
inline const SvxEmphasisMarkItem &SwFmt::GetEmphasisMark( bool bInP ) const
{ return aSet.GetEmphasisMark(bInP); }
inline const SvxTwoLinesItem &SwFmt::Get2Lines( bool bInP ) const
{ return aSet.Get2Lines(bInP); }
inline const SvxCharScaleWidthItem &SwFmt::GetCharScaleW( bool bInP ) const
{ return aSet.GetCharScaleW(bInP); }
inline const SvxCharRotateItem &SwFmt::GetCharRotate( bool bInP ) const
{ return aSet.GetCharRotate(bInP); }
inline const SvxCharReliefItem &SwFmt::GetCharRelief( bool bInP ) const
{ return aSet.GetCharRelief(bInP); }
inline const SvxCharHiddenItem &SwFmt::GetCharHidden( bool bInP ) const
{ return aSet.GetCharHidden(bInP); }
inline const SvxBoxItem &SwFmt::GetCharBorder( bool bInP ) const
{ return aSet.GetCharBorder(bInP); }
inline const SvxShadowItem &SwFmt::GetCharShadow( bool bInP ) const
{ return aSet.GetCharShadow(bInP); }
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|