LibreOffice Module sw (master) 1
frmatr.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_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>
36#include <svl/macitem.hxx>
37#include <svx/sdtaitm.hxx>
38
39// Inlines
40
41// Implementation of FrameAttribute methods of SwAttrSet.
42inline const SvxPaperBinItem &SwAttrSet::GetPaperBin(bool bInP) const
43 { return Get( RES_PAPER_BIN,bInP); }
44inline const SvxLeftMarginItem& SwAttrSet::GetLeftMargin(bool const bInP) const
45 { return Get(RES_MARGIN_LEFT, bInP); }
46inline const SvxTextLeftMarginItem& SwAttrSet::GetTextLeftMargin(bool const bInP) const
47 { return Get(RES_MARGIN_TEXTLEFT, bInP); }
48inline const SvxFirstLineIndentItem& SwAttrSet::GetFirstLineIndent(bool const bInP) const
49 { return Get(RES_MARGIN_FIRSTLINE, bInP); }
50inline const SvxRightMarginItem& SwAttrSet::GetRightMargin(bool const bInP) const
51 { return Get(RES_MARGIN_RIGHT, bInP); }
52inline const SvxGutterLeftMarginItem& SwAttrSet::GetGutterLeftMargin(bool const bInP) const
53 { return Get(RES_MARGIN_GUTTER, bInP); }
55 { return Get(RES_MARGIN_GUTTER_RIGHT, bInP); }
56inline const SvxLRSpaceItem &SwAttrSet::GetLRSpace(bool bInP) const
57 { return Get( RES_LR_SPACE,bInP); }
58inline const SvxULSpaceItem &SwAttrSet::GetULSpace(bool bInP) const
59 { return Get( RES_UL_SPACE,bInP); }
60inline const SvxPrintItem &SwAttrSet::GetPrint(bool bInP) const
61 { return Get( RES_PRINT,bInP); }
62inline const SvxOpaqueItem &SwAttrSet::GetOpaque(bool bInP) const
63 { return Get( RES_OPAQUE,bInP); }
64inline const SvxProtectItem &SwAttrSet::GetProtect(bool bInP) const
65 { return Get( RES_PROTECT,bInP); }
66inline const SvxBoxItem &SwAttrSet::GetBox(bool bInP) const
67 { return Get( RES_BOX,bInP); }
68inline const SvxFormatKeepItem &SwAttrSet::GetKeep(bool bInP) const
69 { return Get( RES_KEEP,bInP); }
70inline const SvxBrushItem &SwAttrSet::GetBackground(bool bInP) const
71 { return Get( RES_BACKGROUND,bInP); }
72inline const SvxShadowItem &SwAttrSet::GetShadow(bool bInP) const
73 { return Get( RES_SHADOW,bInP); }
74inline const SvxFormatBreakItem &SwAttrSet::GetBreak(bool bInP) const
75 { return Get( RES_BREAK,bInP); }
76inline const SvxMacroItem &SwAttrSet::GetMacro(bool bInP) const
77 { return Get( RES_FRMMACRO,bInP); }
78inline const SvxFrameDirectionItem &SwAttrSet::GetFrameDir(bool bInP) const
79 { return Get( RES_FRAMEDIR,bInP); }
81 { return Get( RES_TEXT_VERT_ADJUST,bInP); }
82
83// Implementation of FrameAttribute methods of SwFormat.
84inline const SvxPaperBinItem &SwFormat::GetPaperBin(bool bInP) const
85 { return m_aSet.GetPaperBin(bInP); }
86inline const SvxLeftMarginItem& SwFormat::GetLeftMargin(bool bInP) const
87 { return m_aSet.GetLeftMargin(bInP); }
88inline const SvxTextLeftMarginItem& SwFormat::GetTextLeftMargin(bool const bInP) const
89 { return m_aSet.GetTextLeftMargin(bInP); }
90inline const SvxFirstLineIndentItem& SwFormat::GetFirstLineIndent(bool const bInP) const
91 { return m_aSet.GetFirstLineIndent(bInP); }
92inline const SvxRightMarginItem& SwFormat::GetRightMargin(bool const bInP) const
93 { return m_aSet.GetRightMargin(bInP); }
94inline const SvxGutterLeftMarginItem& SwFormat::GetGutterLeftMargin(bool const bInP) const
95 { return m_aSet.GetGutterLeftMargin(bInP); }
96inline const SvxGutterRightMarginItem& SwFormat::GetGutterRightMargin(bool const bInP) const
97 { return m_aSet.GetGutterRightMargin(bInP); }
98inline const SvxLRSpaceItem &SwFormat::GetLRSpace(bool bInP) const
99 { return m_aSet.GetLRSpace(bInP); }
100inline const SvxULSpaceItem &SwFormat::GetULSpace(bool bInP) const
101 { return m_aSet.GetULSpace(bInP); }
102inline const SvxPrintItem &SwFormat::GetPrint(bool bInP) const
103 { return m_aSet.GetPrint(bInP); }
104inline const SvxOpaqueItem &SwFormat::GetOpaque(bool bInP) const
105 { return m_aSet.GetOpaque(bInP); }
106inline const SvxProtectItem &SwFormat::GetProtect(bool bInP) const
107 { return m_aSet.GetProtect(bInP); }
108inline const SvxBoxItem &SwFormat::GetBox(bool bInP) const
109 { return m_aSet.GetBox(bInP); }
110inline const SvxFormatKeepItem &SwFormat::GetKeep(bool bInP) const
111 { return m_aSet.GetKeep(bInP); }
112inline const SvxShadowItem &SwFormat::GetShadow(bool bInP) const
113 { return m_aSet.GetShadow(bInP); }
114inline const SvxFormatBreakItem &SwFormat::GetBreak(bool bInP) const
115 { return m_aSet.GetBreak(bInP); }
116inline const SvxMacroItem &SwFormat::GetMacro(bool bInP) const
117 { return m_aSet.GetMacro(bInP); }
118inline const SvxFrameDirectionItem &SwFormat::GetFrameDir(bool bInP) const
119 { return m_aSet.GetFrameDir(bInP); }
121 { return m_aSet.GetTextVertAdjust(bInP); }
122
123#endif // INCLUDED_SW_INC_FRMATR_HXX
124
125/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
const SvxGutterRightMarginItem & GetGutterRightMargin(bool=true) const
Definition: frmatr.hxx:54
const SvxFormatBreakItem & GetBreak(bool=true) const
Definition: frmatr.hxx:74
const SvxGutterLeftMarginItem & GetGutterLeftMargin(bool=true) const
Definition: frmatr.hxx:52
const SvxFirstLineIndentItem & GetFirstLineIndent(bool=true) const
Definition: frmatr.hxx:48
const SdrTextVertAdjustItem & GetTextVertAdjust(bool=true) const
Definition: frmatr.hxx:80
const SvxFrameDirectionItem & GetFrameDir(bool=true) const
Definition: frmatr.hxx:78
const SvxPaperBinItem & GetPaperBin(bool=true) const
Definition: frmatr.hxx:42
const SvxBrushItem & GetBackground(bool=true) const
Definition: frmatr.hxx:70
const SvxBoxItem & GetBox(bool=true) const
Definition: frmatr.hxx:66
const SvxShadowItem & GetShadow(bool=true) const
Definition: frmatr.hxx:72
const SvxLRSpaceItem & GetLRSpace(bool=true) const
Definition: frmatr.hxx:56
const SvxOpaqueItem & GetOpaque(bool=true) const
Definition: frmatr.hxx:62
const SvxPrintItem & GetPrint(bool=true) const
Definition: frmatr.hxx:60
const SvxULSpaceItem & GetULSpace(bool=true) const
Definition: frmatr.hxx:58
const SvxLeftMarginItem & GetLeftMargin(bool=true) const
Definition: frmatr.hxx:44
const SvxTextLeftMarginItem & GetTextLeftMargin(bool=true) const
Definition: frmatr.hxx:46
const SvxFormatKeepItem & GetKeep(bool=true) const
Definition: frmatr.hxx:68
const SvxMacroItem & GetMacro(bool=true) const
Definition: frmatr.hxx:76
const SvxProtectItem & GetProtect(bool=true) const
Definition: frmatr.hxx:64
const SvxRightMarginItem & GetRightMargin(bool=true) const
Definition: frmatr.hxx:50
const SvxFrameDirectionItem & GetFrameDir(bool=true) const
Definition: frmatr.hxx:118
const SvxPaperBinItem & GetPaperBin(bool=true) const
Definition: frmatr.hxx:84
const SvxGutterLeftMarginItem & GetGutterLeftMargin(bool=true) const
Definition: frmatr.hxx:94
const SvxBoxItem & GetBox(bool=true) const
Definition: frmatr.hxx:108
const SvxFormatKeepItem & GetKeep(bool=true) const
Definition: frmatr.hxx:110
const SvxOpaqueItem & GetOpaque(bool=true) const
Definition: frmatr.hxx:104
const SvxLRSpaceItem & GetLRSpace(bool=true) const
Definition: frmatr.hxx:98
const SvxPrintItem & GetPrint(bool=true) const
Definition: frmatr.hxx:102
const SvxProtectItem & GetProtect(bool=true) const
Definition: frmatr.hxx:106
const SvxShadowItem & GetShadow(bool=true) const
Definition: frmatr.hxx:112
const SvxRightMarginItem & GetRightMargin(bool=true) const
Definition: frmatr.hxx:92
const SvxTextLeftMarginItem & GetTextLeftMargin(bool=true) const
Definition: frmatr.hxx:88
const SvxFirstLineIndentItem & GetFirstLineIndent(bool=true) const
Definition: frmatr.hxx:90
const SvxLeftMarginItem & GetLeftMargin(bool=true) const
Definition: frmatr.hxx:86
const SvxFormatBreakItem & GetBreak(bool=true) const
Definition: frmatr.hxx:114
SwAttrSet m_aSet
Definition: format.hxx:51
const SdrTextVertAdjustItem & GetTextVertAdjust(bool=true) const
Definition: frmatr.hxx:120
const SvxULSpaceItem & GetULSpace(bool=true) const
Definition: frmatr.hxx:100
const SvxMacroItem & GetMacro(bool=true) const
Definition: frmatr.hxx:116
const SvxGutterRightMarginItem & GetGutterRightMargin(bool=true) const
Definition: frmatr.hxx:96
constexpr TypedWhichId< SvxFrameDirectionItem > RES_FRAMEDIR(126)
constexpr TypedWhichId< SvxFormatKeepItem > RES_KEEP(116)
constexpr TypedWhichId< SvxLeftMarginItem > RES_MARGIN_LEFT(94)
constexpr TypedWhichId< SvxFirstLineIndentItem > RES_MARGIN_FIRSTLINE(91)
constexpr TypedWhichId< SvxShadowItem > RES_SHADOW(113)
constexpr TypedWhichId< SvxBrushItem > RES_BACKGROUND(111)
constexpr TypedWhichId< SvxGutterRightMarginItem > RES_MARGIN_GUTTER_RIGHT(96)
constexpr TypedWhichId< SvxGutterLeftMarginItem > RES_MARGIN_GUTTER(95)
constexpr TypedWhichId< SvxOpaqueItem > RES_OPAQUE(105)
constexpr TypedWhichId< SvxProtectItem > RES_PROTECT(106)
constexpr TypedWhichId< SvxMacroItem > RES_FRMMACRO(114)
constexpr TypedWhichId< SvxBoxItem > RES_BOX(112)
constexpr TypedWhichId< SvxFormatBreakItem > RES_BREAK(100)
constexpr TypedWhichId< SdrTextVertAdjustItem > RES_TEXT_VERT_ADJUST(137)
constexpr TypedWhichId< SvxRightMarginItem > RES_MARGIN_RIGHT(93)
constexpr TypedWhichId< SvxTextLeftMarginItem > RES_MARGIN_TEXTLEFT(92)
constexpr TypedWhichId< SvxPaperBinItem > RES_PAPER_BIN(90)
constexpr TypedWhichId< SvxLRSpaceItem > RES_LR_SPACE(97)
constexpr TypedWhichId< SvxULSpaceItem > RES_UL_SPACE(98)
constexpr TypedWhichId< SvxPrintItem > RES_PRINT(104)