merged tag ooo/OOO330_m14
[LibreOffice.git] / sw / inc / frmatr.hxx
blob93f7a60123c5a83184d113285915866bcf6effa3
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef _FRMATR_HXX
28 #define _FRMATR_HXX
30 #include <hintids.hxx> //die Ids der Attribute, vor frmitems damit die
31 #include <format.hxx> //fuer Implementierung der inlines
33 //------------------------ Inlines ---------------------------------
36 /******************************************************************************
37 * Implementierung der FrameAttribut Methoden vom SwAttrSet
38 ******************************************************************************/
40 inline const SvxPaperBinItem &SwAttrSet::GetPaperBin(BOOL bInP) const
41 { return (const SvxPaperBinItem&)Get( RES_PAPER_BIN,bInP); }
42 inline const SvxLRSpaceItem &SwAttrSet::GetLRSpace(BOOL bInP) const
43 { return (const SvxLRSpaceItem&)Get( RES_LR_SPACE,bInP); }
44 inline const SvxULSpaceItem &SwAttrSet::GetULSpace(BOOL bInP) const
45 { return (const SvxULSpaceItem&)Get( RES_UL_SPACE,bInP); }
46 inline const SvxPrintItem &SwAttrSet::GetPrint(BOOL bInP) const
47 { return (const SvxPrintItem&)Get( RES_PRINT,bInP); }
48 inline const SvxOpaqueItem &SwAttrSet::GetOpaque(BOOL bInP) const
49 { return (const SvxOpaqueItem&)Get( RES_OPAQUE,bInP); }
50 inline const SvxProtectItem &SwAttrSet::GetProtect(BOOL bInP) const
51 { return (const SvxProtectItem&)Get( RES_PROTECT,bInP); }
52 inline const SvxBoxItem &SwAttrSet::GetBox(BOOL bInP) const
53 { return (const SvxBoxItem&)Get( RES_BOX,bInP); }
54 inline const SvxFmtKeepItem &SwAttrSet::GetKeep(BOOL bInP) const
55 { return (const SvxFmtKeepItem&)Get( RES_KEEP,bInP); }
56 inline const SvxBrushItem &SwAttrSet::GetBackground(BOOL bInP) const
57 { return (const SvxBrushItem&)Get( RES_BACKGROUND,bInP); }
58 inline const SvxShadowItem &SwAttrSet::GetShadow(BOOL bInP) const
59 { return (const SvxShadowItem&)Get( RES_SHADOW,bInP); }
60 inline const SvxFmtBreakItem &SwAttrSet::GetBreak(BOOL bInP) const
61 { return (const SvxFmtBreakItem&)Get( RES_BREAK,bInP); }
62 inline const SvxMacroItem &SwAttrSet::GetMacro(BOOL bInP) const
63 { return (const SvxMacroItem&)Get( RES_FRMMACRO,bInP); }
64 inline const SvxFrameDirectionItem &SwAttrSet::GetFrmDir(BOOL bInP) const
65 { return (const SvxFrameDirectionItem&)Get( RES_FRAMEDIR,bInP); }
68 /******************************************************************************
69 * Implementierung der FrameAttribut Methoden vom SwFmt
70 ******************************************************************************/
72 inline const SvxPaperBinItem &SwFmt::GetPaperBin(BOOL bInP) const
73 { return aSet.GetPaperBin(bInP); }
74 inline const SvxLRSpaceItem &SwFmt::GetLRSpace(BOOL bInP) const
75 { return aSet.GetLRSpace(bInP); }
76 inline const SvxULSpaceItem &SwFmt::GetULSpace(BOOL bInP) const
77 { return aSet.GetULSpace(bInP); }
78 inline const SvxPrintItem &SwFmt::GetPrint(BOOL bInP) const
79 { return aSet.GetPrint(bInP); }
80 inline const SvxOpaqueItem &SwFmt::GetOpaque(BOOL bInP) const
81 { return aSet.GetOpaque(bInP); }
82 inline const SvxProtectItem &SwFmt::GetProtect(BOOL bInP) const
83 { return aSet.GetProtect(bInP); }
84 inline const SvxBoxItem &SwFmt::GetBox(BOOL bInP) const
85 { return aSet.GetBox(bInP); }
86 inline const SvxFmtKeepItem &SwFmt::GetKeep(BOOL bInP) const
87 { return aSet.GetKeep(bInP); }
88 inline const SvxBrushItem &SwFmt::GetBackground(BOOL bInP) const
89 { return aSet.GetBackground(bInP); }
90 inline const SvxShadowItem &SwFmt::GetShadow(BOOL bInP) const
91 { return aSet.GetShadow(bInP); }
92 inline const SvxFmtBreakItem &SwFmt::GetBreak(BOOL bInP) const
93 { return aSet.GetBreak(bInP); }
94 inline const SvxMacroItem &SwFmt::GetMacro(BOOL bInP) const
95 { return aSet.GetMacro(bInP); }
96 inline const SvxFrameDirectionItem &SwFmt::GetFrmDir(BOOL bInP) const
97 { return aSet.GetFrmDir(bInP); }
99 #endif //_FRMATR_HXX