Coverage Report

Created: 2026-07-10 11:04

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/sw/inc/frmatr.hxx
Line
Count
Source
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_FRMATR_HXX
20
#define INCLUDED_SW_INC_FRMATR_HXX
21
22
#include "hintids.hxx"
23
#include "format.hxx"
24
#include <editeng/pbinitem.hxx>
25
#include <editeng/lrspitem.hxx>
26
#include <editeng/ulspitem.hxx>
27
#include <editeng/prntitem.hxx>
28
#include <editeng/opaqitem.hxx>
29
#include <editeng/protitem.hxx>
30
#include <editeng/boxitem.hxx>
31
#include <editeng/keepitem.hxx>
32
#include <editeng/brushitem.hxx>
33
#include <editeng/shaditem.hxx>
34
#include <editeng/formatbreakitem.hxx>
35
#include <editeng/frmdiritem.hxx>
36
#include <svl/macitem.hxx>
37
#include <svx/sdtaitm.hxx>
38
39
// Inlines
40
41
// Implementation of FrameAttribute methods of SwAttrSet.
42
inline const SvxPaperBinItem &SwAttrSet::GetPaperBin(bool bInP) const
43
5.51k
    { return Get( RES_PAPER_BIN,bInP); }
44
inline const SvxLeftMarginItem& SwAttrSet::GetLeftMargin(bool const bInP) const
45
0
    { return Get(RES_MARGIN_LEFT, bInP); }
46
inline const SvxTextLeftMarginItem& SwAttrSet::GetTextLeftMargin(bool const bInP) const
47
1.70M
    { return Get(RES_MARGIN_TEXTLEFT, bInP); }
48
inline const SvxFirstLineIndentItem& SwAttrSet::GetFirstLineIndent(bool const bInP) const
49
1.41M
    { return Get(RES_MARGIN_FIRSTLINE, bInP); }
50
inline const SvxRightMarginItem& SwAttrSet::GetRightMargin(bool const bInP) const
51
1.18M
    { return Get(RES_MARGIN_RIGHT, bInP); }
52
inline const SvxGutterLeftMarginItem& SwAttrSet::GetGutterLeftMargin(bool const bInP) const
53
0
    { return Get(RES_MARGIN_GUTTER, bInP); }
54
inline const SvxGutterRightMarginItem& SwAttrSet::GetGutterRightMargin(bool const bInP) const
55
0
    { return Get(RES_MARGIN_GUTTER_RIGHT, bInP); }
56
inline const SvxLRSpaceItem &SwAttrSet::GetLRSpace(bool bInP) const
57
142k
    { return Get( RES_LR_SPACE,bInP); }
58
inline const SvxULSpaceItem &SwAttrSet::GetULSpace(bool bInP) const
59
257k
    { return Get( RES_UL_SPACE,bInP); }
60
inline const SvxPrintItem &SwAttrSet::GetPrint(bool bInP) const
61
4.87k
    { return Get( RES_PRINT,bInP); }
62
inline const SvxOpaqueItem &SwAttrSet::GetOpaque(bool bInP) const
63
2.30k
    { return Get( RES_OPAQUE,bInP); }
64
inline const SvxProtectItem &SwAttrSet::GetProtect(bool bInP) const
65
108k
    { return Get( RES_PROTECT,bInP); }
66
inline const SvxBoxItem &SwAttrSet::GetBox(bool bInP) const
67
79.3k
    { return Get( RES_BOX,bInP); }
68
inline const SvxFormatKeepItem &SwAttrSet::GetKeep(bool bInP) const
69
358k
    { return Get( RES_KEEP,bInP); }
70
inline const SvxBrushItem &SwAttrSet::GetBackground(bool bInP) const
71
2.24M
    { return Get( RES_BACKGROUND,bInP); }
72
inline const SvxShadowItem &SwAttrSet::GetShadow(bool bInP) const
73
46.0k
    { return Get( RES_SHADOW,bInP); }
74
inline const SvxFormatBreakItem &SwAttrSet::GetBreak(bool bInP) const
75
236k
    { return Get( RES_BREAK,bInP); }
76
inline const SvxMacroItem &SwAttrSet::GetMacro(bool bInP) const
77
458
    { return Get( RES_FRMMACRO,bInP); }
78
inline const SvxFrameDirectionItem &SwAttrSet::GetFrameDir(bool bInP) const
79
4.36M
    { return Get( RES_FRAMEDIR,bInP); }
80
inline const SdrTextVertAdjustItem &SwAttrSet::GetTextVertAdjust(bool bInP) const
81
10.0k
    { return Get( RES_TEXT_VERT_ADJUST,bInP); }
82
83
// Implementation of FrameAttribute methods of SwFormat.
84
inline const SvxPaperBinItem &SwFormat::GetPaperBin(bool bInP) const
85
5.51k
    { return m_aSet.GetPaperBin(bInP); }
86
inline const SvxLeftMarginItem& SwFormat::GetLeftMargin(bool bInP) const
87
0
    { return m_aSet.GetLeftMargin(bInP); }
88
inline const SvxTextLeftMarginItem& SwFormat::GetTextLeftMargin(bool const bInP) const
89
697k
    { return m_aSet.GetTextLeftMargin(bInP); }
90
inline const SvxFirstLineIndentItem& SwFormat::GetFirstLineIndent(bool const bInP) const
91
692k
    { return m_aSet.GetFirstLineIndent(bInP); }
92
inline const SvxRightMarginItem& SwFormat::GetRightMargin(bool const bInP) const
93
697k
    { return m_aSet.GetRightMargin(bInP); }
94
inline const SvxGutterLeftMarginItem& SwFormat::GetGutterLeftMargin(bool const bInP) const
95
0
    { return m_aSet.GetGutterLeftMargin(bInP); }
96
inline const SvxGutterRightMarginItem& SwFormat::GetGutterRightMargin(bool const bInP) const
97
0
    { return m_aSet.GetGutterRightMargin(bInP); }
98
inline const SvxLRSpaceItem &SwFormat::GetLRSpace(bool bInP) const
99
125k
    { return m_aSet.GetLRSpace(bInP); }
100
inline const SvxULSpaceItem &SwFormat::GetULSpace(bool bInP) const
101
197k
    { return m_aSet.GetULSpace(bInP); }
102
inline const SvxPrintItem &SwFormat::GetPrint(bool bInP) const
103
4.87k
    { return m_aSet.GetPrint(bInP); }
104
inline const SvxOpaqueItem &SwFormat::GetOpaque(bool bInP) const
105
2.30k
    { return m_aSet.GetOpaque(bInP); }
106
inline const SvxProtectItem &SwFormat::GetProtect(bool bInP) const
107
108k
    { return m_aSet.GetProtect(bInP); }
108
inline const SvxBoxItem &SwFormat::GetBox(bool bInP) const
109
33.2k
    { return m_aSet.GetBox(bInP); }
110
inline const SvxFormatKeepItem &SwFormat::GetKeep(bool bInP) const
111
0
    { return m_aSet.GetKeep(bInP); }
112
inline const SvxShadowItem &SwFormat::GetShadow(bool bInP) const
113
5.51k
    { return m_aSet.GetShadow(bInP); }
114
inline const SvxFormatBreakItem &SwFormat::GetBreak(bool bInP) const
115
21.6k
    { return m_aSet.GetBreak(bInP); }
116
inline const SvxMacroItem &SwFormat::GetMacro(bool bInP) const
117
458
    { return m_aSet.GetMacro(bInP); }
118
inline const SvxFrameDirectionItem  &SwFormat::GetFrameDir(bool bInP) const
119
4.27M
    { return m_aSet.GetFrameDir(bInP); }
120
inline const SdrTextVertAdjustItem &SwFormat::GetTextVertAdjust(bool bInP) const
121
10.0k
    { return m_aSet.GetTextVertAdjust(bInP); }
122
123
#endif // INCLUDED_SW_INC_FRMATR_HXX
124
125
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */