xref: /aoo42x/main/sw/inc/frmatr.hxx (revision 56b35d86)
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 
GetPaperBin(sal_Bool bInP) const36cdf0e10cSrcweir inline const SvxPaperBinItem &SwAttrSet::GetPaperBin(sal_Bool bInP) const
37cdf0e10cSrcweir 	{ return (const SvxPaperBinItem&)Get( RES_PAPER_BIN,bInP); }
GetLRSpace(sal_Bool bInP) const38cdf0e10cSrcweir inline const SvxLRSpaceItem &SwAttrSet::GetLRSpace(sal_Bool bInP) const
39cdf0e10cSrcweir 	{ return (const SvxLRSpaceItem&)Get( RES_LR_SPACE,bInP); }
GetULSpace(sal_Bool bInP) const40cdf0e10cSrcweir inline const SvxULSpaceItem &SwAttrSet::GetULSpace(sal_Bool bInP) const
41cdf0e10cSrcweir 	{ return (const SvxULSpaceItem&)Get( RES_UL_SPACE,bInP); }
GetPrint(sal_Bool bInP) const42cdf0e10cSrcweir inline const SvxPrintItem &SwAttrSet::GetPrint(sal_Bool bInP) const
43cdf0e10cSrcweir 	{ return (const SvxPrintItem&)Get( RES_PRINT,bInP); }
GetOpaque(sal_Bool bInP) const44cdf0e10cSrcweir inline const SvxOpaqueItem &SwAttrSet::GetOpaque(sal_Bool bInP) const
45cdf0e10cSrcweir 	{ return (const SvxOpaqueItem&)Get( RES_OPAQUE,bInP); }
GetProtect(sal_Bool bInP) const46cdf0e10cSrcweir inline const SvxProtectItem &SwAttrSet::GetProtect(sal_Bool bInP) const
47cdf0e10cSrcweir 	{ return (const SvxProtectItem&)Get( RES_PROTECT,bInP); }
GetBox(sal_Bool bInP) const48cdf0e10cSrcweir inline const SvxBoxItem &SwAttrSet::GetBox(sal_Bool bInP) const
49cdf0e10cSrcweir 	{ return (const SvxBoxItem&)Get( RES_BOX,bInP); }
GetKeep(sal_Bool bInP) const50cdf0e10cSrcweir inline const SvxFmtKeepItem &SwAttrSet::GetKeep(sal_Bool bInP) const
51cdf0e10cSrcweir 	{ return (const SvxFmtKeepItem&)Get( RES_KEEP,bInP); }
GetBackground(sal_Bool bInP) const52cdf0e10cSrcweir inline const SvxBrushItem &SwAttrSet::GetBackground(sal_Bool bInP) const
53cdf0e10cSrcweir 	{ return (const SvxBrushItem&)Get( RES_BACKGROUND,bInP); }
GetShadow(sal_Bool bInP) const54cdf0e10cSrcweir inline const SvxShadowItem &SwAttrSet::GetShadow(sal_Bool bInP) const
55cdf0e10cSrcweir 	{ return (const SvxShadowItem&)Get( RES_SHADOW,bInP); }
GetBreak(sal_Bool bInP) const56cdf0e10cSrcweir inline const SvxFmtBreakItem &SwAttrSet::GetBreak(sal_Bool bInP) const
57cdf0e10cSrcweir 	{ return (const SvxFmtBreakItem&)Get( RES_BREAK,bInP); }
GetMacro(sal_Bool bInP) const58cdf0e10cSrcweir inline const SvxMacroItem &SwAttrSet::GetMacro(sal_Bool bInP) const
59cdf0e10cSrcweir 	{ return (const SvxMacroItem&)Get( RES_FRMMACRO,bInP); }
GetFrmDir(sal_Bool bInP) const60cdf0e10cSrcweir 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 
GetPaperBin(sal_Bool bInP) const68cdf0e10cSrcweir inline const SvxPaperBinItem &SwFmt::GetPaperBin(sal_Bool bInP) const
69cdf0e10cSrcweir 	{ return aSet.GetPaperBin(bInP); }
GetLRSpace(sal_Bool bInP) const70cdf0e10cSrcweir inline const SvxLRSpaceItem &SwFmt::GetLRSpace(sal_Bool bInP) const
71cdf0e10cSrcweir 	{ return aSet.GetLRSpace(bInP); }
GetULSpace(sal_Bool bInP) const72cdf0e10cSrcweir inline const SvxULSpaceItem &SwFmt::GetULSpace(sal_Bool bInP) const
73cdf0e10cSrcweir 	{ return aSet.GetULSpace(bInP); }
GetPrint(sal_Bool bInP) const74cdf0e10cSrcweir inline const SvxPrintItem &SwFmt::GetPrint(sal_Bool bInP) const
75cdf0e10cSrcweir 	{ return aSet.GetPrint(bInP); }
GetOpaque(sal_Bool bInP) const76cdf0e10cSrcweir inline const SvxOpaqueItem &SwFmt::GetOpaque(sal_Bool bInP) const
77cdf0e10cSrcweir 	{ return aSet.GetOpaque(bInP); }
GetProtect(sal_Bool bInP) const78cdf0e10cSrcweir inline const SvxProtectItem &SwFmt::GetProtect(sal_Bool bInP) const
79cdf0e10cSrcweir 	{ return aSet.GetProtect(bInP); }
GetBox(sal_Bool bInP) const80cdf0e10cSrcweir inline const SvxBoxItem &SwFmt::GetBox(sal_Bool bInP) const
81cdf0e10cSrcweir 	{ return aSet.GetBox(bInP); }
GetKeep(sal_Bool bInP) const82cdf0e10cSrcweir inline const SvxFmtKeepItem &SwFmt::GetKeep(sal_Bool bInP) const
83cdf0e10cSrcweir 	{ return aSet.GetKeep(bInP); }
GetShadow(sal_Bool bInP) const84cdf0e10cSrcweir inline const SvxShadowItem &SwFmt::GetShadow(sal_Bool bInP) const
85cdf0e10cSrcweir 	{ return aSet.GetShadow(bInP); }
GetBreak(sal_Bool bInP) const86cdf0e10cSrcweir inline const SvxFmtBreakItem &SwFmt::GetBreak(sal_Bool bInP) const
87cdf0e10cSrcweir 	{ return aSet.GetBreak(bInP); }
GetMacro(sal_Bool bInP) const88cdf0e10cSrcweir inline const SvxMacroItem &SwFmt::GetMacro(sal_Bool bInP) const
89cdf0e10cSrcweir 	{ return aSet.GetMacro(bInP); }
GetFrmDir(sal_Bool bInP) const90cdf0e10cSrcweir inline const SvxFrameDirectionItem	&SwFmt::GetFrmDir(sal_Bool bInP) const
91cdf0e10cSrcweir 	{ return aSet.GetFrmDir(bInP); }
92cdf0e10cSrcweir 
93cdf0e10cSrcweir #endif //_FRMATR_HXX
94