LibreOffice Module sw (master)  1
charatr.hxx
Go to the documentation of this file.
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 INCLUDED_SW_INC_CHARATR_HXX
20 #define INCLUDED_SW_INC_CHARATR_HXX
21 
22 #include "format.hxx"
23 #include "hintids.hxx"
24 #include <editeng/postitem.hxx>
25 #include <editeng/wghtitem.hxx>
26 #include <editeng/shdditem.hxx>
27 #include <editeng/autokernitem.hxx>
28 #include <editeng/wrlmitem.hxx>
29 #include <editeng/contouritem.hxx>
30 #include <editeng/kernitem.hxx>
31 #include <editeng/udlnitem.hxx>
33 #include <editeng/fhgtitem.hxx>
34 #include <editeng/fontitem.hxx>
36 #include <editeng/cmapitem.hxx>
37 #include <editeng/nhypitem.hxx>
38 #include <editeng/blinkitem.hxx>
40 #include <editeng/twolinesitem.hxx>
45 #include <editeng/langitem.hxx>
46 #include <editeng/colritem.hxx>
47 
48 // implementation of the character attribute methods of SwAttrSet
49 
50 inline const SvxPostureItem &SwAttrSet::GetPosture(bool bInP) const
51  { return Get( RES_CHRATR_POSTURE,bInP); }
52 inline const SvxPostureItem &SwAttrSet::GetCJKPosture(bool bInP) const
53  { return Get( RES_CHRATR_CJK_POSTURE,bInP); }
54 inline const SvxPostureItem &SwAttrSet::GetCTLPosture(bool bInP) const
55  { return Get( RES_CHRATR_CTL_POSTURE,bInP); }
56 inline const SvxWeightItem &SwAttrSet::GetWeight(bool bInP) const
57  { return Get( RES_CHRATR_WEIGHT,bInP); }
58 inline const SvxWeightItem &SwAttrSet::GetCJKWeight(bool bInP) const
59  { return Get( RES_CHRATR_CJK_WEIGHT,bInP); }
60 inline const SvxWeightItem &SwAttrSet::GetCTLWeight(bool bInP) const
61  { return Get( RES_CHRATR_CTL_WEIGHT,bInP); }
62 inline const SvxShadowedItem &SwAttrSet::GetShadowed(bool bInP) const
63  { return Get( RES_CHRATR_SHADOWED,bInP); }
64 inline const SvxAutoKernItem &SwAttrSet::GetAutoKern(bool bInP) const
65  { return Get( RES_CHRATR_AUTOKERN,bInP); }
66 inline const SvxWordLineModeItem &SwAttrSet::GetWordLineMode(bool bInP) const
67  { return Get( RES_CHRATR_WORDLINEMODE,bInP); }
68 inline const SvxContourItem &SwAttrSet::GetContour(bool bInP) const
69  { return Get( RES_CHRATR_CONTOUR,bInP); }
70 inline const SvxKerningItem &SwAttrSet::GetKerning(bool bInP) const
71  { return Get( RES_CHRATR_KERNING,bInP); }
72 inline const SvxUnderlineItem &SwAttrSet::GetUnderline(bool bInP) const
73  { return Get( RES_CHRATR_UNDERLINE,bInP); }
74 inline const SvxOverlineItem &SwAttrSet::GetOverline(bool bInP) const
75  { return Get( RES_CHRATR_OVERLINE,bInP); }
76 inline const SvxCrossedOutItem &SwAttrSet::GetCrossedOut(bool bInP) const
77  { return Get( RES_CHRATR_CROSSEDOUT,bInP); }
78 inline const SvxFontHeightItem &SwAttrSet::GetSize(bool bInP) const
79  { return Get( RES_CHRATR_FONTSIZE,bInP); }
80 inline const SvxFontHeightItem &SwAttrSet::GetCJKSize(bool bInP) const
81  { return Get( RES_CHRATR_CJK_FONTSIZE,bInP); }
82 inline const SvxFontHeightItem &SwAttrSet::GetCTLSize(bool bInP) const
83  { return Get( RES_CHRATR_CTL_FONTSIZE,bInP); }
84 inline const SvxFontItem &SwAttrSet::GetFont(bool bInP) const
85  { return Get( RES_CHRATR_FONT,bInP); }
86 inline const SvxFontItem &SwAttrSet::GetCJKFont(bool bInP) const
87  { return Get( RES_CHRATR_CJK_FONT,bInP); }
88 inline const SvxFontItem &SwAttrSet::GetCTLFont(bool bInP) const
89  { return Get( RES_CHRATR_CTL_FONT,bInP); }
90 inline const SvxColorItem &SwAttrSet::GetColor(bool bInP) const
91  { return Get( RES_CHRATR_COLOR,bInP); }
92 inline const SvxLanguageItem &SwAttrSet::GetLanguage(bool bInP) const
93  { return Get( RES_CHRATR_LANGUAGE,bInP); }
94 inline const SvxLanguageItem &SwAttrSet::GetCJKLanguage(bool bInP) const
95  { return Get( RES_CHRATR_CJK_LANGUAGE,bInP); }
96 inline const SvxLanguageItem &SwAttrSet::GetCTLLanguage(bool bInP) const
97  { return Get( RES_CHRATR_CTL_LANGUAGE,bInP); }
98 inline const SvxEscapementItem &SwAttrSet::GetEscapement(bool bInP) const
99  { return Get( RES_CHRATR_ESCAPEMENT,bInP); }
100 inline const SvxCaseMapItem &SwAttrSet::GetCaseMap(bool bInP) const
101  { return Get( RES_CHRATR_CASEMAP,bInP); }
102 inline const SvxNoHyphenItem &SwAttrSet::GetNoHyphenHere(bool bInP) const
103  { return Get( RES_CHRATR_NOHYPHEN,bInP); }
104 inline const SvxBlinkItem &SwAttrSet::GetBlink(bool bInP) const
105  { return Get( RES_CHRATR_BLINK,bInP); }
106 inline const SvxEmphasisMarkItem &SwAttrSet::GetEmphasisMark( bool bInP ) const
107  { return Get( RES_CHRATR_EMPHASIS_MARK, bInP ); }
108 inline const SvxTwoLinesItem &SwAttrSet::Get2Lines( bool bInP ) const
109  { return Get( RES_CHRATR_TWO_LINES, bInP ); }
110 inline const SvxCharScaleWidthItem &SwAttrSet::GetCharScaleW( bool bInP ) const
111  { return Get( RES_CHRATR_SCALEW, bInP ); }
112 inline const SvxCharRotateItem &SwAttrSet::GetCharRotate( bool bInP ) const
113  { return Get( RES_CHRATR_ROTATE, bInP ); }
114 inline const SvxCharReliefItem &SwAttrSet::GetCharRelief( bool bInP ) const
115  { return Get( RES_CHRATR_RELIEF, bInP ); }
116 inline const SvxCharHiddenItem &SwAttrSet::GetCharHidden( bool bInP ) const
117  { return Get( RES_CHRATR_HIDDEN, bInP ); }
118 
119 // implementation of the character attribute methods of SwFormat
120 
121 inline const SvxUnderlineItem &SwFormat::GetUnderline(bool bInP) const
122  { return m_aSet.GetUnderline(bInP); }
123 inline const SvxFontHeightItem &SwFormat::GetSize(bool bInP) const
124  { return m_aSet.GetSize(bInP); }
125 inline const SvxFontItem &SwFormat::GetFont(bool bInP) const
126  { return m_aSet.GetFont(bInP); }
127 inline const SvxFontItem &SwFormat::GetCJKFont(bool bInP) const
128  { return m_aSet.GetCJKFont(bInP); }
129 inline const SvxFontItem &SwFormat::GetCTLFont(bool bInP) const
130  { return m_aSet.GetCTLFont(bInP); }
131 inline const SvxColorItem &SwFormat::GetColor(bool bInP) const
132  { return m_aSet.GetColor(bInP); }
133 
134 #endif
135 
136 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const SvxFontItem & GetCTLFont(bool=true) const
Definition: charatr.hxx:88
const SvxBlinkItem & GetBlink(bool=true) const
Definition: charatr.hxx:104
#define RES_CHRATR_WEIGHT
Definition: hintids.hxx:84
const SvxColorItem & GetColor(bool=true) const
Definition: charatr.hxx:131
const SvxColorItem & GetColor(bool=true) const
Definition: charatr.hxx:90
const SvxFontHeightItem & GetSize(bool=true) const
Definition: charatr.hxx:78
#define RES_CHRATR_CJK_LANGUAGE
Definition: hintids.hxx:93
const SvxUnderlineItem & GetUnderline(bool=true) const
GetMethods: Bool indicates whether to search only in Set (FALSE) or also in Parents.
Definition: charatr.hxx:121
const SvxContourItem & GetContour(bool=true) const
Definition: charatr.hxx:68
const SvxCharRotateItem & GetCharRotate(bool=true) const
Definition: charatr.hxx:112
#define RES_CHRATR_FONTSIZE
Definition: hintids.hxx:77
#define RES_CHRATR_LANGUAGE
Definition: hintids.hxx:79
#define RES_CHRATR_RELIEF
Definition: hintids.hxx:105
const SvxUnderlineItem & GetUnderline(bool=true) const
Definition: charatr.hxx:72
const SvxOverlineItem & GetOverline(bool=true) const
Definition: charatr.hxx:74
const SvxPostureItem & GetCTLPosture(bool=true) const
Definition: charatr.hxx:54
#define RES_CHRATR_CJK_POSTURE
Definition: hintids.hxx:94
const SvxShadowedItem & GetShadowed(bool=true) const
Definition: charatr.hxx:62
#define RES_CHRATR_WORDLINEMODE
Definition: hintids.hxx:85
const SvxLanguageItem & GetLanguage(bool=true) const
Definition: charatr.hxx:92
const SvxCrossedOutItem & GetCrossedOut(bool=true) const
Definition: charatr.hxx:76
const SvxFontItem & GetFont(bool=true) const
Definition: charatr.hxx:125
const SvxCharHiddenItem & GetCharHidden(bool=true) const
Definition: charatr.hxx:116
const SvxLanguageItem & GetCJKLanguage(bool=true) const
Definition: charatr.hxx:94
#define RES_CHRATR_CJK_WEIGHT
Definition: hintids.hxx:95
#define RES_CHRATR_FONT
Definition: hintids.hxx:76
#define RES_CHRATR_BLINK
Definition: hintids.hxx:87
const SvxNoHyphenItem & GetNoHyphenHere(bool=true) const
Definition: charatr.hxx:102
#define RES_CHRATR_CJK_FONT
Definition: hintids.hxx:91
#define RES_CHRATR_CJK_FONTSIZE
Definition: hintids.hxx:92
SwAttrSet m_aSet
Definition: format.hxx:48
const SvxFontItem & GetCJKFont(bool=true) const
Definition: charatr.hxx:127
#define RES_CHRATR_TWO_LINES
Definition: hintids.hxx:103
const SvxFontHeightItem & GetCJKSize(bool=true) const
Definition: charatr.hxx:80
#define RES_CHRATR_CTL_FONTSIZE
Definition: hintids.hxx:97
const SvxCaseMapItem & GetCaseMap(bool=true) const
Definition: charatr.hxx:100
const SvxFontHeightItem & GetCTLSize(bool=true) const
Definition: charatr.hxx:82
const SvxAutoKernItem & GetAutoKern(bool=true) const
Definition: charatr.hxx:64
#define RES_CHRATR_CASEMAP
Definition: hintids.hxx:70
const SvxFontHeightItem & GetSize(bool=true) const
Definition: charatr.hxx:123
#define RES_CHRATR_COLOR
Definition: hintids.hxx:72
const SvxWeightItem & GetCTLWeight(bool=true) const
Definition: charatr.hxx:60
#define RES_CHRATR_NOHYPHEN
Definition: hintids.hxx:88
const SvxCharScaleWidthItem & GetCharScaleW(bool=true) const
Definition: charatr.hxx:110
#define RES_CHRATR_OVERLINE
Definition: hintids.hxx:107
#define RES_CHRATR_CTL_FONT
Definition: hintids.hxx:96
const SvxTwoLinesItem & Get2Lines(bool=true) const
Definition: charatr.hxx:108
const SvxFontItem & GetCJKFont(bool=true) const
Definition: charatr.hxx:86
#define RES_CHRATR_UNDERLINE
Definition: hintids.hxx:83
const SvxLanguageItem & GetCTLLanguage(bool=true) const
Definition: charatr.hxx:96
#define RES_CHRATR_ESCAPEMENT
Definition: hintids.hxx:75
const SvxEscapementItem & GetEscapement(bool=true) const
Definition: charatr.hxx:98
#define RES_CHRATR_CONTOUR
Definition: hintids.hxx:73
const SvxEmphasisMarkItem & GetEmphasisMark(bool=true) const
Definition: charatr.hxx:106
#define RES_CHRATR_KERNING
Definition: hintids.hxx:78
#define RES_CHRATR_EMPHASIS_MARK
Definition: hintids.hxx:102
#define RES_CHRATR_ROTATE
Definition: hintids.hxx:101
const SvxWeightItem & GetCJKWeight(bool=true) const
Definition: charatr.hxx:58
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
#define RES_CHRATR_CTL_LANGUAGE
Definition: hintids.hxx:98
#define RES_CHRATR_POSTURE
Definition: hintids.hxx:80
#define RES_CHRATR_CTL_WEIGHT
Definition: hintids.hxx:100
#define RES_CHRATR_CTL_POSTURE
Definition: hintids.hxx:99
const SvxKerningItem & GetKerning(bool=true) const
Definition: charatr.hxx:70
const SvxPostureItem & GetPosture(bool=true) const
Definition: charatr.hxx:50
const SvxFontItem & GetCTLFont(bool=true) const
Definition: charatr.hxx:129
const SvxWordLineModeItem & GetWordLineMode(bool=true) const
Definition: charatr.hxx:66
#define RES_CHRATR_SHADOWED
Definition: hintids.hxx:82
#define RES_CHRATR_AUTOKERN
Definition: hintids.hxx:86
#define RES_CHRATR_HIDDEN
Definition: hintids.hxx:106
#define RES_CHRATR_CROSSEDOUT
Definition: hintids.hxx:74
#define RES_CHRATR_SCALEW
Definition: hintids.hxx:104
const SvxWeightItem & GetWeight(bool=true) const
Definition: charatr.hxx:56
const SvxFontItem & GetFont(bool=true) const
Definition: charatr.hxx:84
const SvxPostureItem & GetCJKPosture(bool=true) const
Definition: charatr.hxx:52
const SvxCharReliefItem & GetCharRelief(bool=true) const
Definition: charatr.hxx:114