xref: /trunk/main/sw/inc/frmatr.hxx (revision 56b35d86)
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 
GetPaperBin(sal_Bool bInP) const36 inline const SvxPaperBinItem &SwAttrSet::GetPaperBin(sal_Bool bInP) const
37 	{ return (const SvxPaperBinItem&)Get( RES_PAPER_BIN,bInP); }
GetLRSpace(sal_Bool bInP) const38 inline const SvxLRSpaceItem &SwAttrSet::GetLRSpace(sal_Bool bInP) const
39 	{ return (const SvxLRSpaceItem&)Get( RES_LR_SPACE,bInP); }
GetULSpace(sal_Bool bInP) const40 inline const SvxULSpaceItem &SwAttrSet::GetULSpace(sal_Bool bInP) const
41 	{ return (const SvxULSpaceItem&)Get( RES_UL_SPACE,bInP); }
GetPrint(sal_Bool bInP) const42 inline const SvxPrintItem &SwAttrSet::GetPrint(sal_Bool bInP) const
43 	{ return (const SvxPrintItem&)Get( RES_PRINT,bInP); }
GetOpaque(sal_Bool bInP) const44 inline const SvxOpaqueItem &SwAttrSet::GetOpaque(sal_Bool bInP) const
45 	{ return (const SvxOpaqueItem&)Get( RES_OPAQUE,bInP); }
GetProtect(sal_Bool bInP) const46 inline const SvxProtectItem &SwAttrSet::GetProtect(sal_Bool bInP) const
47 	{ return (const SvxProtectItem&)Get( RES_PROTECT,bInP); }
GetBox(sal_Bool bInP) const48 inline const SvxBoxItem &SwAttrSet::GetBox(sal_Bool bInP) const
49 	{ return (const SvxBoxItem&)Get( RES_BOX,bInP); }
GetKeep(sal_Bool bInP) const50 inline const SvxFmtKeepItem &SwAttrSet::GetKeep(sal_Bool bInP) const
51 	{ return (const SvxFmtKeepItem&)Get( RES_KEEP,bInP); }
GetBackground(sal_Bool bInP) const52 inline const SvxBrushItem &SwAttrSet::GetBackground(sal_Bool bInP) const
53 	{ return (const SvxBrushItem&)Get( RES_BACKGROUND,bInP); }
GetShadow(sal_Bool bInP) const54 inline const SvxShadowItem &SwAttrSet::GetShadow(sal_Bool bInP) const
55 	{ return (const SvxShadowItem&)Get( RES_SHADOW,bInP); }
GetBreak(sal_Bool bInP) const56 inline const SvxFmtBreakItem &SwAttrSet::GetBreak(sal_Bool bInP) const
57 	{ return (const SvxFmtBreakItem&)Get( RES_BREAK,bInP); }
GetMacro(sal_Bool bInP) const58 inline const SvxMacroItem &SwAttrSet::GetMacro(sal_Bool bInP) const
59 	{ return (const SvxMacroItem&)Get( RES_FRMMACRO,bInP); }
GetFrmDir(sal_Bool bInP) const60 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 
GetPaperBin(sal_Bool bInP) const68 inline const SvxPaperBinItem &SwFmt::GetPaperBin(sal_Bool bInP) const
69 	{ return aSet.GetPaperBin(bInP); }
GetLRSpace(sal_Bool bInP) const70 inline const SvxLRSpaceItem &SwFmt::GetLRSpace(sal_Bool bInP) const
71 	{ return aSet.GetLRSpace(bInP); }
GetULSpace(sal_Bool bInP) const72 inline const SvxULSpaceItem &SwFmt::GetULSpace(sal_Bool bInP) const
73 	{ return aSet.GetULSpace(bInP); }
GetPrint(sal_Bool bInP) const74 inline const SvxPrintItem &SwFmt::GetPrint(sal_Bool bInP) const
75 	{ return aSet.GetPrint(bInP); }
GetOpaque(sal_Bool bInP) const76 inline const SvxOpaqueItem &SwFmt::GetOpaque(sal_Bool bInP) const
77 	{ return aSet.GetOpaque(bInP); }
GetProtect(sal_Bool bInP) const78 inline const SvxProtectItem &SwFmt::GetProtect(sal_Bool bInP) const
79 	{ return aSet.GetProtect(bInP); }
GetBox(sal_Bool bInP) const80 inline const SvxBoxItem &SwFmt::GetBox(sal_Bool bInP) const
81 	{ return aSet.GetBox(bInP); }
GetKeep(sal_Bool bInP) const82 inline const SvxFmtKeepItem &SwFmt::GetKeep(sal_Bool bInP) const
83 	{ return aSet.GetKeep(bInP); }
GetShadow(sal_Bool bInP) const84 inline const SvxShadowItem &SwFmt::GetShadow(sal_Bool bInP) const
85 	{ return aSet.GetShadow(bInP); }
GetBreak(sal_Bool bInP) const86 inline const SvxFmtBreakItem &SwFmt::GetBreak(sal_Bool bInP) const
87 	{ return aSet.GetBreak(bInP); }
GetMacro(sal_Bool bInP) const88 inline const SvxMacroItem &SwFmt::GetMacro(sal_Bool bInP) const
89 	{ return aSet.GetMacro(bInP); }
GetFrmDir(sal_Bool bInP) const90 inline const SvxFrameDirectionItem	&SwFmt::GetFrmDir(sal_Bool bInP) const
91 	{ return aSet.GetFrmDir(bInP); }
92 
93 #endif //_FRMATR_HXX
94