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