Coverage Report

Created: 2025-07-07 10:01

/src/libreoffice/sw/inc/charatr.hxx
Line
Count
Source (jump to first uncovered line)
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
#pragma once
20
21
#include "format.hxx"
22
#include "hintids.hxx"
23
#include <editeng/postitem.hxx>
24
#include <editeng/wghtitem.hxx>
25
#include <editeng/shdditem.hxx>
26
#include <editeng/autokernitem.hxx>
27
#include <editeng/wrlmitem.hxx>
28
#include <editeng/contouritem.hxx>
29
#include <editeng/kernitem.hxx>
30
#include <editeng/udlnitem.hxx>
31
#include <editeng/crossedoutitem.hxx>
32
#include <editeng/fhgtitem.hxx>
33
#include <editeng/fontitem.hxx>
34
#include <editeng/escapementitem.hxx>
35
#include <editeng/cmapitem.hxx>
36
#include <editeng/nhypitem.hxx>
37
#include <editeng/emphasismarkitem.hxx>
38
#include <editeng/twolinesitem.hxx>
39
#include <editeng/charscaleitem.hxx>
40
#include <editeng/charrotateitem.hxx>
41
#include <editeng/charreliefitem.hxx>
42
#include <editeng/charhiddenitem.hxx>
43
#include <editeng/langitem.hxx>
44
#include <editeng/colritem.hxx>
45
#include <editeng/scripthintitem.hxx>
46
47
// implementation of the character attribute methods of SwAttrSet
48
49
inline const SvxPostureItem      &SwAttrSet::GetPosture(bool bInP) const
50
75.9k
    {   return Get( RES_CHRATR_POSTURE,bInP); }
51
inline const SvxPostureItem      &SwAttrSet::GetCJKPosture(bool bInP) const
52
75.9k
    {   return Get( RES_CHRATR_CJK_POSTURE,bInP); }
53
inline const SvxPostureItem      &SwAttrSet::GetCTLPosture(bool bInP) const
54
75.9k
    {   return Get( RES_CHRATR_CTL_POSTURE,bInP); }
55
inline const SvxWeightItem       &SwAttrSet::GetWeight(bool bInP) const
56
75.9k
    {   return Get( RES_CHRATR_WEIGHT,bInP); }
57
inline const SvxWeightItem       &SwAttrSet::GetCJKWeight(bool bInP) const
58
75.9k
    {   return Get( RES_CHRATR_CJK_WEIGHT,bInP); }
59
inline const SvxWeightItem       &SwAttrSet::GetCTLWeight(bool bInP) const
60
75.9k
    {   return Get( RES_CHRATR_CTL_WEIGHT,bInP); }
61
inline const SvxShadowedItem     &SwAttrSet::GetShadowed(bool bInP) const
62
75.9k
    {   return Get( RES_CHRATR_SHADOWED,bInP); }
63
inline const SvxAutoKernItem     &SwAttrSet::GetAutoKern(bool bInP) const
64
75.9k
    {   return Get( RES_CHRATR_AUTOKERN,bInP); }
65
inline const SvxWordLineModeItem &SwAttrSet::GetWordLineMode(bool bInP) const
66
75.9k
    {   return Get( RES_CHRATR_WORDLINEMODE,bInP); }
67
inline const SvxContourItem      &SwAttrSet::GetContour(bool bInP) const
68
75.9k
    {   return Get( RES_CHRATR_CONTOUR,bInP); }
69
inline const SvxKerningItem      &SwAttrSet::GetKerning(bool bInP) const
70
75.9k
    {   return Get( RES_CHRATR_KERNING,bInP); }
71
inline const SvxUnderlineItem    &SwAttrSet::GetUnderline(bool bInP) const
72
151k
    {   return Get( RES_CHRATR_UNDERLINE,bInP); }
73
inline const SvxOverlineItem     &SwAttrSet::GetOverline(bool bInP) const
74
151k
    {   return Get( RES_CHRATR_OVERLINE,bInP); }
75
inline const SvxCrossedOutItem   &SwAttrSet::GetCrossedOut(bool bInP) const
76
75.9k
    {   return Get( RES_CHRATR_CROSSEDOUT,bInP); }
77
inline const SvxFontHeightItem   &SwAttrSet::GetSize(bool bInP) const
78
76.7k
    {   return Get( RES_CHRATR_FONTSIZE,bInP); }
79
inline const SvxFontHeightItem   &SwAttrSet::GetCJKSize(bool bInP) const
80
75.9k
    {   return Get( RES_CHRATR_CJK_FONTSIZE,bInP); }
81
inline const SvxFontHeightItem   &SwAttrSet::GetCTLSize(bool bInP) const
82
75.9k
    {   return Get( RES_CHRATR_CTL_FONTSIZE,bInP); }
83
inline const SvxFontItem         &SwAttrSet::GetFont(bool bInP) const
84
100k
    {   return Get( RES_CHRATR_FONT,bInP); }
85
inline const SvxFontItem         &SwAttrSet::GetCJKFont(bool bInP) const
86
75.9k
    {   return Get( RES_CHRATR_CJK_FONT,bInP); }
87
inline const SvxFontItem         &SwAttrSet::GetCTLFont(bool bInP) const
88
75.9k
    {   return Get( RES_CHRATR_CTL_FONT,bInP); }
89
inline const SvxColorItem        &SwAttrSet::GetColor(bool bInP) const
90
227k
    {   return Get( RES_CHRATR_COLOR,bInP); }
91
inline const SvxLanguageItem     &SwAttrSet::GetLanguage(bool bInP) const
92
75.9k
    {   return Get( RES_CHRATR_LANGUAGE,bInP); }
93
inline const SvxLanguageItem     &SwAttrSet::GetCJKLanguage(bool bInP) const
94
75.9k
    {   return Get( RES_CHRATR_CJK_LANGUAGE,bInP); }
95
inline const SvxLanguageItem     &SwAttrSet::GetCTLLanguage(bool bInP) const
96
75.9k
    {   return Get( RES_CHRATR_CTL_LANGUAGE,bInP); }
97
inline const SvxEscapementItem   &SwAttrSet::GetEscapement(bool bInP) const
98
75.9k
    {   return Get( RES_CHRATR_ESCAPEMENT,bInP); }
99
inline const SvxCaseMapItem      &SwAttrSet::GetCaseMap(bool bInP) const
100
75.9k
    {   return Get( RES_CHRATR_CASEMAP,bInP); }
101
inline const SvxNoHyphenItem     &SwAttrSet::GetNoHyphenHere(bool bInP) const
102
0
    {   return Get( RES_CHRATR_NOHYPHEN,bInP); }
103
inline const SvxEmphasisMarkItem &SwAttrSet::GetEmphasisMark( bool bInP ) const
104
75.9k
    {   return Get( RES_CHRATR_EMPHASIS_MARK, bInP ); }
105
inline const SvxTwoLinesItem     &SwAttrSet::Get2Lines( bool bInP ) const
106
75.9k
    {   return Get( RES_CHRATR_TWO_LINES, bInP ); }
107
inline const SvxCharScaleWidthItem  &SwAttrSet::GetCharScaleW( bool bInP ) const
108
75.9k
    {   return Get( RES_CHRATR_SCALEW, bInP ); }
109
inline const SvxCharRotateItem   &SwAttrSet::GetCharRotate( bool bInP ) const
110
75.9k
    {   return Get( RES_CHRATR_ROTATE, bInP ); }
111
inline const SvxCharReliefItem   &SwAttrSet::GetCharRelief( bool bInP ) const
112
75.9k
    {   return Get( RES_CHRATR_RELIEF, bInP ); }
113
inline const SvxCharHiddenItem   &SwAttrSet::GetCharHidden( bool bInP ) const
114
75.9k
    {   return Get( RES_CHRATR_HIDDEN, bInP ); }
115
116
// implementation of the character attribute methods of SwFormat
117
118
inline const SvxUnderlineItem        &SwFormat::GetUnderline(bool bInP) const
119
0
    {   return m_aSet.GetUnderline(bInP); }
120
inline const SvxFontHeightItem             &SwFormat::GetSize(bool bInP) const
121
820
    {   return m_aSet.GetSize(bInP); }
122
inline const SvxFontItem             &SwFormat::GetFont(bool bInP) const
123
24.6k
    {   return m_aSet.GetFont(bInP); }
124
inline const SvxFontItem         &SwFormat::GetCJKFont(bool bInP) const
125
0
    {   return m_aSet.GetCJKFont(bInP); }
126
inline const SvxFontItem         &SwFormat::GetCTLFont(bool bInP) const
127
0
    {   return m_aSet.GetCTLFont(bInP); }
128
inline const SvxColorItem            &SwFormat::GetColor(bool bInP) const
129
151k
    {   return m_aSet.GetColor(bInP); }
130
131
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */