1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 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. 14 * 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). 20 * 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. 25 * 26 ************************************************************************/ 27 #ifndef _FRMATR_HXX 28 #define _FRMATR_HXX 29 30 #include <hintids.hxx> //die Ids der Attribute, vor frmitems damit die 31 #include <format.hxx> //fuer Implementierung der inlines 32 33 //------------------------ Inlines --------------------------------- 34 35 36 /****************************************************************************** 37 * Implementierung der FrameAttribut Methoden vom SwAttrSet 38 ******************************************************************************/ 39 40 inline const SvxPaperBinItem &SwAttrSet::GetPaperBin(sal_Bool bInP) const 41 { return (const SvxPaperBinItem&)Get( RES_PAPER_BIN,bInP); } 42 inline const SvxLRSpaceItem &SwAttrSet::GetLRSpace(sal_Bool bInP) const 43 { return (const SvxLRSpaceItem&)Get( RES_LR_SPACE,bInP); } 44 inline const SvxULSpaceItem &SwAttrSet::GetULSpace(sal_Bool bInP) const 45 { return (const SvxULSpaceItem&)Get( RES_UL_SPACE,bInP); } 46 inline const SvxPrintItem &SwAttrSet::GetPrint(sal_Bool bInP) const 47 { return (const SvxPrintItem&)Get( RES_PRINT,bInP); } 48 inline const SvxOpaqueItem &SwAttrSet::GetOpaque(sal_Bool bInP) const 49 { return (const SvxOpaqueItem&)Get( RES_OPAQUE,bInP); } 50 inline const SvxProtectItem &SwAttrSet::GetProtect(sal_Bool bInP) const 51 { return (const SvxProtectItem&)Get( RES_PROTECT,bInP); } 52 inline const SvxBoxItem &SwAttrSet::GetBox(sal_Bool bInP) const 53 { return (const SvxBoxItem&)Get( RES_BOX,bInP); } 54 inline const SvxFmtKeepItem &SwAttrSet::GetKeep(sal_Bool bInP) const 55 { return (const SvxFmtKeepItem&)Get( RES_KEEP,bInP); } 56 inline const SvxBrushItem &SwAttrSet::GetBackground(sal_Bool bInP) const 57 { return (const SvxBrushItem&)Get( RES_BACKGROUND,bInP); } 58 inline const SvxShadowItem &SwAttrSet::GetShadow(sal_Bool bInP) const 59 { return (const SvxShadowItem&)Get( RES_SHADOW,bInP); } 60 inline const SvxFmtBreakItem &SwAttrSet::GetBreak(sal_Bool bInP) const 61 { return (const SvxFmtBreakItem&)Get( RES_BREAK,bInP); } 62 inline const SvxMacroItem &SwAttrSet::GetMacro(sal_Bool bInP) const 63 { return (const SvxMacroItem&)Get( RES_FRMMACRO,bInP); } 64 inline const SvxFrameDirectionItem &SwAttrSet::GetFrmDir(sal_Bool bInP) const 65 { return (const SvxFrameDirectionItem&)Get( RES_FRAMEDIR,bInP); } 66 67 68 /****************************************************************************** 69 * Implementierung der FrameAttribut Methoden vom SwFmt 70 ******************************************************************************/ 71 72 inline const SvxPaperBinItem &SwFmt::GetPaperBin(sal_Bool bInP) const 73 { return aSet.GetPaperBin(bInP); } 74 inline const SvxLRSpaceItem &SwFmt::GetLRSpace(sal_Bool bInP) const 75 { return aSet.GetLRSpace(bInP); } 76 inline const SvxULSpaceItem &SwFmt::GetULSpace(sal_Bool bInP) const 77 { return aSet.GetULSpace(bInP); } 78 inline const SvxPrintItem &SwFmt::GetPrint(sal_Bool bInP) const 79 { return aSet.GetPrint(bInP); } 80 inline const SvxOpaqueItem &SwFmt::GetOpaque(sal_Bool bInP) const 81 { return aSet.GetOpaque(bInP); } 82 inline const SvxProtectItem &SwFmt::GetProtect(sal_Bool bInP) const 83 { return aSet.GetProtect(bInP); } 84 inline const SvxBoxItem &SwFmt::GetBox(sal_Bool bInP) const 85 { return aSet.GetBox(bInP); } 86 inline const SvxFmtKeepItem &SwFmt::GetKeep(sal_Bool bInP) const 87 { return aSet.GetKeep(bInP); } 88 inline const SvxBrushItem &SwFmt::GetBackground(sal_Bool bInP) const 89 { return aSet.GetBackground(bInP); } 90 inline const SvxShadowItem &SwFmt::GetShadow(sal_Bool bInP) const 91 { return aSet.GetShadow(bInP); } 92 inline const SvxFmtBreakItem &SwFmt::GetBreak(sal_Bool bInP) const 93 { return aSet.GetBreak(bInP); } 94 inline const SvxMacroItem &SwFmt::GetMacro(sal_Bool bInP) const 95 { return aSet.GetMacro(bInP); } 96 inline const SvxFrameDirectionItem &SwFmt::GetFrmDir(sal_Bool bInP) const 97 { return aSet.GetFrmDir(bInP); } 98 99 #endif //_FRMATR_HXX 100