Line data Source code
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 191 : inline const SvxPaperBinItem &SwAttrSet::GetPaperBin(bool bInP) const
43 191 : { return static_cast<const SvxPaperBinItem&>(Get( RES_PAPER_BIN,bInP)); }
44 686190 : inline const SvxLRSpaceItem &SwAttrSet::GetLRSpace(bool bInP) const
45 686190 : { return static_cast<const SvxLRSpaceItem&>(Get( RES_LR_SPACE,bInP)); }
46 152483 : inline const SvxULSpaceItem &SwAttrSet::GetULSpace(bool bInP) const
47 152483 : { return static_cast<const SvxULSpaceItem&>(Get( RES_UL_SPACE,bInP)); }
48 3375 : inline const SvxPrintItem &SwAttrSet::GetPrint(bool bInP) const
49 3375 : { return static_cast<const SvxPrintItem&>(Get( RES_PRINT,bInP)); }
50 2798 : inline const SvxOpaqueItem &SwAttrSet::GetOpaque(bool bInP) const
51 2798 : { return static_cast<const SvxOpaqueItem&>(Get( RES_OPAQUE,bInP)); }
52 65336 : inline const SvxProtectItem &SwAttrSet::GetProtect(bool bInP) const
53 65336 : { return static_cast<const SvxProtectItem&>(Get( RES_PROTECT,bInP)); }
54 243055 : inline const SvxBoxItem &SwAttrSet::GetBox(bool bInP) const
55 243055 : { return static_cast<const SvxBoxItem&>(Get( RES_BOX,bInP)); }
56 177264 : inline const SvxFormatKeepItem &SwAttrSet::GetKeep(bool bInP) const
57 177264 : { return static_cast<const SvxFormatKeepItem&>(Get( RES_KEEP,bInP)); }
58 265690 : inline const SvxBrushItem &SwAttrSet::GetBackground(bool bInP) const
59 265690 : { return static_cast<const SvxBrushItem&>(Get( RES_BACKGROUND,bInP)); }
60 76378 : inline const SvxShadowItem &SwAttrSet::GetShadow(bool bInP) const
61 76378 : { return static_cast<const SvxShadowItem&>(Get( RES_SHADOW,bInP)); }
62 138967 : inline const SvxFormatBreakItem &SwAttrSet::GetBreak(bool bInP) const
63 138967 : { return static_cast<const SvxFormatBreakItem&>(Get( RES_BREAK,bInP)); }
64 2 : inline const SvxMacroItem &SwAttrSet::GetMacro(bool bInP) const
65 2 : { return static_cast<const SvxMacroItem&>(Get( RES_FRMMACRO,bInP)); }
66 81052 : inline const SvxFrameDirectionItem &SwAttrSet::GetFrmDir(bool bInP) const
67 81052 : { return static_cast<const SvxFrameDirectionItem&>(Get( RES_FRAMEDIR,bInP)); }
68 8971 : inline const SdrTextVertAdjustItem &SwAttrSet::GetTextVertAdjust(bool bInP) const
69 8971 : { return static_cast<const SdrTextVertAdjustItem&>(Get( RES_TEXT_VERT_ADJUST,bInP)); }
70 :
71 : // Implementation of FrameAttribute methods of SwFormat.
72 191 : inline const SvxPaperBinItem &SwFormat::GetPaperBin(bool bInP) const
73 191 : { return m_aSet.GetPaperBin(bInP); }
74 40371 : inline const SvxLRSpaceItem &SwFormat::GetLRSpace(bool bInP) const
75 40371 : { return m_aSet.GetLRSpace(bInP); }
76 28075 : inline const SvxULSpaceItem &SwFormat::GetULSpace(bool bInP) const
77 28075 : { return m_aSet.GetULSpace(bInP); }
78 3375 : inline const SvxPrintItem &SwFormat::GetPrint(bool bInP) const
79 3375 : { return m_aSet.GetPrint(bInP); }
80 2798 : inline const SvxOpaqueItem &SwFormat::GetOpaque(bool bInP) const
81 2798 : { return m_aSet.GetOpaque(bInP); }
82 65336 : inline const SvxProtectItem &SwFormat::GetProtect(bool bInP) const
83 65336 : { return m_aSet.GetProtect(bInP); }
84 14743 : inline const SvxBoxItem &SwFormat::GetBox(bool bInP) const
85 14743 : { return m_aSet.GetBox(bInP); }
86 0 : inline const SvxFormatKeepItem &SwFormat::GetKeep(bool bInP) const
87 0 : { return m_aSet.GetKeep(bInP); }
88 934 : inline const SvxShadowItem &SwFormat::GetShadow(bool bInP) const
89 934 : { return m_aSet.GetShadow(bInP); }
90 205 : inline const SvxFormatBreakItem &SwFormat::GetBreak(bool bInP) const
91 205 : { return m_aSet.GetBreak(bInP); }
92 2 : inline const SvxMacroItem &SwFormat::GetMacro(bool bInP) const
93 2 : { return m_aSet.GetMacro(bInP); }
94 15051 : inline const SvxFrameDirectionItem &SwFormat::GetFrmDir(bool bInP) const
95 15051 : { return m_aSet.GetFrmDir(bInP); }
96 8971 : inline const SdrTextVertAdjustItem &SwFormat::GetTextVertAdjust(bool bInP) const
97 8971 : { return m_aSet.GetTextVertAdjust(bInP); }
98 :
99 : #endif // INCLUDED_SW_INC_FRMATR_HXX
100 :
101 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|