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