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