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>
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  { return Get( RES_PAPER_BIN,bInP); }
44 inline const SvxLRSpaceItem &SwAttrSet::GetLRSpace(bool bInP) const
45  { return Get( RES_LR_SPACE,bInP); }
46 inline const SvxULSpaceItem &SwAttrSet::GetULSpace(bool bInP) const
47  { return Get( RES_UL_SPACE,bInP); }
48 inline const SvxPrintItem &SwAttrSet::GetPrint(bool bInP) const
49  { return Get( RES_PRINT,bInP); }
50 inline const SvxOpaqueItem &SwAttrSet::GetOpaque(bool bInP) const
51  { return Get( RES_OPAQUE,bInP); }
52 inline const SvxProtectItem &SwAttrSet::GetProtect(bool bInP) const
53  { return Get( RES_PROTECT,bInP); }
54 inline const SvxBoxItem &SwAttrSet::GetBox(bool bInP) const
55  { return Get( RES_BOX,bInP); }
56 inline const SvxFormatKeepItem &SwAttrSet::GetKeep(bool bInP) const
57  { return Get( RES_KEEP,bInP); }
58 inline const SvxBrushItem &SwAttrSet::GetBackground(bool bInP) const
59  { return Get( RES_BACKGROUND,bInP); }
60 inline const SvxShadowItem &SwAttrSet::GetShadow(bool bInP) const
61  { return Get( RES_SHADOW,bInP); }
62 inline const SvxFormatBreakItem &SwAttrSet::GetBreak(bool bInP) const
63  { return Get( RES_BREAK,bInP); }
64 inline const SvxMacroItem &SwAttrSet::GetMacro(bool bInP) const
65  { return Get( RES_FRMMACRO,bInP); }
66 inline const SvxFrameDirectionItem &SwAttrSet::GetFrameDir(bool bInP) const
67  { return Get( RES_FRAMEDIR,bInP); }
69  { return Get( RES_TEXT_VERT_ADJUST,bInP); }
70 
71 // Implementation of FrameAttribute methods of SwFormat.
72 inline const SvxPaperBinItem &SwFormat::GetPaperBin(bool bInP) const
73  { return m_aSet.GetPaperBin(bInP); }
74 inline const SvxLRSpaceItem &SwFormat::GetLRSpace(bool bInP) const
75  { return m_aSet.GetLRSpace(bInP); }
76 inline const SvxULSpaceItem &SwFormat::GetULSpace(bool bInP) const
77  { return m_aSet.GetULSpace(bInP); }
78 inline const SvxPrintItem &SwFormat::GetPrint(bool bInP) const
79  { return m_aSet.GetPrint(bInP); }
80 inline const SvxOpaqueItem &SwFormat::GetOpaque(bool bInP) const
81  { return m_aSet.GetOpaque(bInP); }
82 inline const SvxProtectItem &SwFormat::GetProtect(bool bInP) const
83  { return m_aSet.GetProtect(bInP); }
84 inline const SvxBoxItem &SwFormat::GetBox(bool bInP) const
85  { return m_aSet.GetBox(bInP); }
86 inline const SvxFormatKeepItem &SwFormat::GetKeep(bool bInP) const
87  { return m_aSet.GetKeep(bInP); }
88 inline const SvxShadowItem &SwFormat::GetShadow(bool bInP) const
89  { return m_aSet.GetShadow(bInP); }
90 inline const SvxFormatBreakItem &SwFormat::GetBreak(bool bInP) const
91  { return m_aSet.GetBreak(bInP); }
92 inline const SvxMacroItem &SwFormat::GetMacro(bool bInP) const
93  { return m_aSet.GetMacro(bInP); }
94 inline const SvxFrameDirectionItem &SwFormat::GetFrameDir(bool bInP) const
95  { return m_aSet.GetFrameDir(bInP); }
96 inline const SdrTextVertAdjustItem &SwFormat::GetTextVertAdjust(bool bInP) const
97  { return m_aSet.GetTextVertAdjust(bInP); }
98 
99 #endif // INCLUDED_SW_INC_FRMATR_HXX
100 
101 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const SvxLRSpaceItem & GetLRSpace(bool=true) const
Definition: frmatr.hxx:44
const SvxBrushItem & GetBackground(bool=true) const
Definition: frmatr.hxx:58
#define RES_SHADOW
Definition: hintids.hxx:212
#define RES_FRAMEDIR
Definition: hintids.hxx:225
const SvxFrameDirectionItem & GetFrameDir(bool=true) const
Definition: frmatr.hxx:94
const SdrTextVertAdjustItem & GetTextVertAdjust(bool=true) const
Definition: frmatr.hxx:96
SwAttrSet m_aSet
Definition: format.hxx:48
#define RES_PROTECT
Definition: hintids.hxx:205
const SvxBoxItem & GetBox(bool=true) const
Definition: frmatr.hxx:84
const SvxFormatBreakItem & GetBreak(bool=true) const
Definition: frmatr.hxx:62
const SvxMacroItem & GetMacro(bool=true) const
Definition: frmatr.hxx:64
const SvxPrintItem & GetPrint(bool=true) const
Definition: frmatr.hxx:48
const SvxPaperBinItem & GetPaperBin(bool=true) const
Definition: frmatr.hxx:42
const SvxPrintItem & GetPrint(bool=true) const
Definition: frmatr.hxx:78
#define RES_PAPER_BIN
Definition: hintids.hxx:195
#define RES_UL_SPACE
Definition: hintids.hxx:197
const SvxFormatKeepItem & GetKeep(bool=true) const
Definition: frmatr.hxx:86
const SvxMacroItem & GetMacro(bool=true) const
Definition: frmatr.hxx:92
#define RES_PRINT
Definition: hintids.hxx:203
const SvxBoxItem & GetBox(bool=true) const
Definition: frmatr.hxx:54
const SvxFormatKeepItem & GetKeep(bool=true) const
Definition: frmatr.hxx:56
#define RES_BACKGROUND
Definition: hintids.hxx:210
const SdrTextVertAdjustItem & GetTextVertAdjust(bool=true) const
Definition: frmatr.hxx:68
const SvxProtectItem & GetProtect(bool=true) const
Definition: frmatr.hxx:52
const SvxFormatBreakItem & GetBreak(bool=true) const
Definition: frmatr.hxx:90
#define RES_LR_SPACE
Definition: hintids.hxx:196
const SvxULSpaceItem & GetULSpace(bool=true) const
Definition: frmatr.hxx:76
const SvxULSpaceItem & GetULSpace(bool=true) const
Definition: frmatr.hxx:46
const SvxOpaqueItem & GetOpaque(bool=true) const
Definition: frmatr.hxx:80
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
const SvxFrameDirectionItem & GetFrameDir(bool=true) const
Definition: frmatr.hxx:66
#define RES_OPAQUE
Definition: hintids.hxx:204
const SvxPaperBinItem & GetPaperBin(bool=true) const
Definition: frmatr.hxx:72
#define RES_KEEP
Definition: hintids.hxx:215
const SvxOpaqueItem & GetOpaque(bool=true) const
Definition: frmatr.hxx:50
#define RES_BOX
Definition: hintids.hxx:211
const SvxProtectItem & GetProtect(bool=true) const
Definition: frmatr.hxx:82
const SvxShadowItem & GetShadow(bool=true) const
Definition: frmatr.hxx:60
#define RES_FRMMACRO
Definition: hintids.hxx:213
#define RES_BREAK
Definition: hintids.hxx:199
#define RES_TEXT_VERT_ADJUST
Definition: hintids.hxx:235
const SvxLRSpaceItem & GetLRSpace(bool=true) const
Definition: frmatr.hxx:74
const SvxShadowItem & GetShadow(bool=true) const
Definition: frmatr.hxx:88