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