1*1d2dbeb0SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*1d2dbeb0SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*1d2dbeb0SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*1d2dbeb0SAndrew Rist * distributed with this work for additional information 6*1d2dbeb0SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*1d2dbeb0SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*1d2dbeb0SAndrew Rist * "License"); you may not use this file except in compliance 9*1d2dbeb0SAndrew Rist * with the License. You may obtain a copy of the License at 10*1d2dbeb0SAndrew Rist * 11*1d2dbeb0SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*1d2dbeb0SAndrew Rist * 13*1d2dbeb0SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*1d2dbeb0SAndrew Rist * software distributed under the License is distributed on an 15*1d2dbeb0SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*1d2dbeb0SAndrew Rist * KIND, either express or implied. See the License for the 17*1d2dbeb0SAndrew Rist * specific language governing permissions and limitations 18*1d2dbeb0SAndrew Rist * under the License. 19*1d2dbeb0SAndrew Rist * 20*1d2dbeb0SAndrew Rist *************************************************************/ 21*1d2dbeb0SAndrew Rist 22*1d2dbeb0SAndrew Rist 23cdf0e10cSrcweir #ifndef _FRMATR_HXX 24cdf0e10cSrcweir #define _FRMATR_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir #include <hintids.hxx> //die Ids der Attribute, vor frmitems damit die 27cdf0e10cSrcweir #include <format.hxx> //fuer Implementierung der inlines 28cdf0e10cSrcweir 29cdf0e10cSrcweir //------------------------ Inlines --------------------------------- 30cdf0e10cSrcweir 31cdf0e10cSrcweir 32cdf0e10cSrcweir /****************************************************************************** 33cdf0e10cSrcweir * Implementierung der FrameAttribut Methoden vom SwAttrSet 34cdf0e10cSrcweir ******************************************************************************/ 35cdf0e10cSrcweir 36cdf0e10cSrcweir inline const SvxPaperBinItem &SwAttrSet::GetPaperBin(sal_Bool bInP) const 37cdf0e10cSrcweir { return (const SvxPaperBinItem&)Get( RES_PAPER_BIN,bInP); } 38cdf0e10cSrcweir inline const SvxLRSpaceItem &SwAttrSet::GetLRSpace(sal_Bool bInP) const 39cdf0e10cSrcweir { return (const SvxLRSpaceItem&)Get( RES_LR_SPACE,bInP); } 40cdf0e10cSrcweir inline const SvxULSpaceItem &SwAttrSet::GetULSpace(sal_Bool bInP) const 41cdf0e10cSrcweir { return (const SvxULSpaceItem&)Get( RES_UL_SPACE,bInP); } 42cdf0e10cSrcweir inline const SvxPrintItem &SwAttrSet::GetPrint(sal_Bool bInP) const 43cdf0e10cSrcweir { return (const SvxPrintItem&)Get( RES_PRINT,bInP); } 44cdf0e10cSrcweir inline const SvxOpaqueItem &SwAttrSet::GetOpaque(sal_Bool bInP) const 45cdf0e10cSrcweir { return (const SvxOpaqueItem&)Get( RES_OPAQUE,bInP); } 46cdf0e10cSrcweir inline const SvxProtectItem &SwAttrSet::GetProtect(sal_Bool bInP) const 47cdf0e10cSrcweir { return (const SvxProtectItem&)Get( RES_PROTECT,bInP); } 48cdf0e10cSrcweir inline const SvxBoxItem &SwAttrSet::GetBox(sal_Bool bInP) const 49cdf0e10cSrcweir { return (const SvxBoxItem&)Get( RES_BOX,bInP); } 50cdf0e10cSrcweir inline const SvxFmtKeepItem &SwAttrSet::GetKeep(sal_Bool bInP) const 51cdf0e10cSrcweir { return (const SvxFmtKeepItem&)Get( RES_KEEP,bInP); } 52cdf0e10cSrcweir inline const SvxBrushItem &SwAttrSet::GetBackground(sal_Bool bInP) const 53cdf0e10cSrcweir { return (const SvxBrushItem&)Get( RES_BACKGROUND,bInP); } 54cdf0e10cSrcweir inline const SvxShadowItem &SwAttrSet::GetShadow(sal_Bool bInP) const 55cdf0e10cSrcweir { return (const SvxShadowItem&)Get( RES_SHADOW,bInP); } 56cdf0e10cSrcweir inline const SvxFmtBreakItem &SwAttrSet::GetBreak(sal_Bool bInP) const 57cdf0e10cSrcweir { return (const SvxFmtBreakItem&)Get( RES_BREAK,bInP); } 58cdf0e10cSrcweir inline const SvxMacroItem &SwAttrSet::GetMacro(sal_Bool bInP) const 59cdf0e10cSrcweir { return (const SvxMacroItem&)Get( RES_FRMMACRO,bInP); } 60cdf0e10cSrcweir inline const SvxFrameDirectionItem &SwAttrSet::GetFrmDir(sal_Bool bInP) const 61cdf0e10cSrcweir { return (const SvxFrameDirectionItem&)Get( RES_FRAMEDIR,bInP); } 62cdf0e10cSrcweir 63cdf0e10cSrcweir 64cdf0e10cSrcweir /****************************************************************************** 65cdf0e10cSrcweir * Implementierung der FrameAttribut Methoden vom SwFmt 66cdf0e10cSrcweir ******************************************************************************/ 67cdf0e10cSrcweir 68cdf0e10cSrcweir inline const SvxPaperBinItem &SwFmt::GetPaperBin(sal_Bool bInP) const 69cdf0e10cSrcweir { return aSet.GetPaperBin(bInP); } 70cdf0e10cSrcweir inline const SvxLRSpaceItem &SwFmt::GetLRSpace(sal_Bool bInP) const 71cdf0e10cSrcweir { return aSet.GetLRSpace(bInP); } 72cdf0e10cSrcweir inline const SvxULSpaceItem &SwFmt::GetULSpace(sal_Bool bInP) const 73cdf0e10cSrcweir { return aSet.GetULSpace(bInP); } 74cdf0e10cSrcweir inline const SvxPrintItem &SwFmt::GetPrint(sal_Bool bInP) const 75cdf0e10cSrcweir { return aSet.GetPrint(bInP); } 76cdf0e10cSrcweir inline const SvxOpaqueItem &SwFmt::GetOpaque(sal_Bool bInP) const 77cdf0e10cSrcweir { return aSet.GetOpaque(bInP); } 78cdf0e10cSrcweir inline const SvxProtectItem &SwFmt::GetProtect(sal_Bool bInP) const 79cdf0e10cSrcweir { return aSet.GetProtect(bInP); } 80cdf0e10cSrcweir inline const SvxBoxItem &SwFmt::GetBox(sal_Bool bInP) const 81cdf0e10cSrcweir { return aSet.GetBox(bInP); } 82cdf0e10cSrcweir inline const SvxFmtKeepItem &SwFmt::GetKeep(sal_Bool bInP) const 83cdf0e10cSrcweir { return aSet.GetKeep(bInP); } 84cdf0e10cSrcweir inline const SvxBrushItem &SwFmt::GetBackground(sal_Bool bInP) const 85cdf0e10cSrcweir { return aSet.GetBackground(bInP); } 86cdf0e10cSrcweir inline const SvxShadowItem &SwFmt::GetShadow(sal_Bool bInP) const 87cdf0e10cSrcweir { return aSet.GetShadow(bInP); } 88cdf0e10cSrcweir inline const SvxFmtBreakItem &SwFmt::GetBreak(sal_Bool bInP) const 89cdf0e10cSrcweir { return aSet.GetBreak(bInP); } 90cdf0e10cSrcweir inline const SvxMacroItem &SwFmt::GetMacro(sal_Bool bInP) const 91cdf0e10cSrcweir { return aSet.GetMacro(bInP); } 92cdf0e10cSrcweir inline const SvxFrameDirectionItem &SwFmt::GetFrmDir(sal_Bool bInP) const 93cdf0e10cSrcweir { return aSet.GetFrmDir(bInP); } 94cdf0e10cSrcweir 95cdf0e10cSrcweir #endif //_FRMATR_HXX 96