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