Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_sw / frmatr.hxx
blobd011f4dda5e22479bf5a9b1dbfbea9b78fce0ccd
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: frmatr.hxx,v $
10 * $Revision: 1.6 $
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 ************************************************************************/
30 #ifndef _FRMATR_HXX
31 #define _FRMATR_HXX
33 #ifndef _FORMAT_HXX
34 #include <format.hxx> //fuer Implementierung der inlines
35 #endif
36 namespace binfilter {
38 //------------------------ Inlines ---------------------------------
41 /******************************************************************************
42 * Implementierung der FrameAttribut Methoden vom SwAttrSet
43 ******************************************************************************/
45 #if ! (defined(MACOSX) && ( __GNUC__ < 3 ))
46 // GrP moved to gcc_outl.cxx; revisit with gcc3
47 inline const SvxPaperBinItem &SwAttrSet::GetPaperBin(BOOL bInP) const
48 { return (const SvxPaperBinItem&)Get( RES_PAPER_BIN,bInP); }
49 inline const SvxLRSpaceItem &SwAttrSet::GetLRSpace(BOOL bInP) const
50 { return (const SvxLRSpaceItem&)Get( RES_LR_SPACE,bInP); }
51 inline const SvxULSpaceItem &SwAttrSet::GetULSpace(BOOL bInP) const
52 { return (const SvxULSpaceItem&)Get( RES_UL_SPACE,bInP); }
53 inline const SvxPrintItem &SwAttrSet::GetPrint(BOOL bInP) const
54 { return (const SvxPrintItem&)Get( RES_PRINT,bInP); }
55 inline const SvxOpaqueItem &SwAttrSet::GetOpaque(BOOL bInP) const
56 { return (const SvxOpaqueItem&)Get( RES_OPAQUE,bInP); }
57 inline const SvxProtectItem &SwAttrSet::GetProtect(BOOL bInP) const
58 { return (const SvxProtectItem&)Get( RES_PROTECT,bInP); }
59 inline const SvxBoxItem &SwAttrSet::GetBox(BOOL bInP) const
60 { return (const SvxBoxItem&)Get( RES_BOX,bInP); }
61 inline const SvxFmtKeepItem &SwAttrSet::GetKeep(BOOL bInP) const
62 { return (const SvxFmtKeepItem&)Get( RES_KEEP,bInP); }
63 inline const SvxBrushItem &SwAttrSet::GetBackground(BOOL bInP) const
64 { return (const SvxBrushItem&)Get( RES_BACKGROUND,bInP); }
65 inline const SvxShadowItem &SwAttrSet::GetShadow(BOOL bInP) const
66 { return (const SvxShadowItem&)Get( RES_SHADOW,bInP); }
67 inline const SvxFmtBreakItem &SwAttrSet::GetBreak(BOOL bInP) const
68 { return (const SvxFmtBreakItem&)Get( RES_BREAK,bInP); }
69 inline const SvxMacroItem &SwAttrSet::GetMacro(BOOL bInP) const
70 { return (const SvxMacroItem&)Get( RES_FRMMACRO,bInP); }
71 inline const SvxFrameDirectionItem &SwAttrSet::GetFrmDir(BOOL bInP) const
72 { return (const SvxFrameDirectionItem&)Get( RES_FRAMEDIR,bInP); }
75 /******************************************************************************
76 * Implementierung der FrameAttribut Methoden vom SwFmt
77 ******************************************************************************/
79 inline const SvxPaperBinItem &SwFmt::GetPaperBin(BOOL bInP) const
80 { return aSet.GetPaperBin(bInP); }
81 inline const SvxLRSpaceItem &SwFmt::GetLRSpace(BOOL bInP) const
82 { return aSet.GetLRSpace(bInP); }
83 inline const SvxULSpaceItem &SwFmt::GetULSpace(BOOL bInP) const
84 { return aSet.GetULSpace(bInP); }
85 inline const SvxPrintItem &SwFmt::GetPrint(BOOL bInP) const
86 { return aSet.GetPrint(bInP); }
87 inline const SvxOpaqueItem &SwFmt::GetOpaque(BOOL bInP) const
88 { return aSet.GetOpaque(bInP); }
89 inline const SvxProtectItem &SwFmt::GetProtect(BOOL bInP) const
90 { return aSet.GetProtect(bInP); }
91 inline const SvxBoxItem &SwFmt::GetBox(BOOL bInP) const
92 { return aSet.GetBox(bInP); }
93 inline const SvxFmtKeepItem &SwFmt::GetKeep(BOOL bInP) const
94 { return aSet.GetKeep(bInP); }
95 inline const SvxBrushItem &SwFmt::GetBackground(BOOL bInP) const
96 { return aSet.GetBackground(bInP); }
97 inline const SvxShadowItem &SwFmt::GetShadow(BOOL bInP) const
98 { return aSet.GetShadow(bInP); }
99 inline const SvxFmtBreakItem &SwFmt::GetBreak(BOOL bInP) const
100 { return aSet.GetBreak(bInP); }
101 inline const SvxMacroItem &SwFmt::GetMacro(BOOL bInP) const
102 { return aSet.GetMacro(bInP); }
103 inline const SvxFrameDirectionItem &SwFmt::GetFrmDir(BOOL bInP) const
104 { return aSet.GetFrmDir(bInP); }
106 #endif
108 } //namespace binfilter
109 #endif //_FRMATR_HXX