xref: /AOO41X/main/sw/inc/grfatr.hxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir #ifndef _GRFATR_HXX
28*cdf0e10cSrcweir #define _GRFATR_HXX
29*cdf0e10cSrcweir 
30*cdf0e10cSrcweir #include <hintids.hxx>		// fuer die WhichIds @@@ must be included first @@@
31*cdf0e10cSrcweir #include <tools/gen.hxx>
32*cdf0e10cSrcweir #include <svl/eitem.hxx>
33*cdf0e10cSrcweir #include <svl/intitem.hxx>
34*cdf0e10cSrcweir #include <svx/grfcrop.hxx>
35*cdf0e10cSrcweir #include "swdllapi.h"
36*cdf0e10cSrcweir #include <swatrset.hxx>		// fuer inlines
37*cdf0e10cSrcweir #include <format.hxx>		// fuer inlines
38*cdf0e10cSrcweir 
39*cdf0e10cSrcweir /******************************************************************************
40*cdf0e10cSrcweir  *	class SwMirrorGrf
41*cdf0e10cSrcweir  ******************************************************************************/
42*cdf0e10cSrcweir 
43*cdf0e10cSrcweir enum MirrorGraph
44*cdf0e10cSrcweir {
45*cdf0e10cSrcweir RES_MIRROR_GRAPH_BEGIN,
46*cdf0e10cSrcweir     RES_MIRROR_GRAPH_DONT = RES_MIRROR_GRAPH_BEGIN,
47*cdf0e10cSrcweir     RES_MIRROR_GRAPH_VERT,
48*cdf0e10cSrcweir     RES_MIRROR_GRAPH_HOR,
49*cdf0e10cSrcweir     RES_MIRROR_GRAPH_BOTH,
50*cdf0e10cSrcweir RES_MIRROR_GRAPH_END
51*cdf0e10cSrcweir };
52*cdf0e10cSrcweir 
53*cdf0e10cSrcweir class SW_DLLPUBLIC SwMirrorGrf : public SfxEnumItem
54*cdf0e10cSrcweir {
55*cdf0e10cSrcweir 	sal_Bool bGrfToggle; // auf geraden Seiten Grafiken spiegeln
56*cdf0e10cSrcweir 
57*cdf0e10cSrcweir public:
58*cdf0e10cSrcweir     SwMirrorGrf( MirrorGraph eMiro = RES_MIRROR_GRAPH_DONT )
59*cdf0e10cSrcweir         : SfxEnumItem( RES_GRFATR_MIRRORGRF, static_cast< sal_uInt16 >(eMiro) ), bGrfToggle( sal_False )
60*cdf0e10cSrcweir 	{}
61*cdf0e10cSrcweir 	SwMirrorGrf( const SwMirrorGrf &rMirrorGrf )
62*cdf0e10cSrcweir 		: SfxEnumItem( RES_GRFATR_MIRRORGRF, rMirrorGrf.GetValue()),
63*cdf0e10cSrcweir 		bGrfToggle( rMirrorGrf.IsGrfToggle() )
64*cdf0e10cSrcweir 	{}
65*cdf0e10cSrcweir 
66*cdf0e10cSrcweir 	// pure virtual-Methoden von SfxPoolItem
67*cdf0e10cSrcweir 	virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
68*cdf0e10cSrcweir 
69*cdf0e10cSrcweir 	// pure virtual-Methiden von SfxEnumItem
70*cdf0e10cSrcweir 	virtual sal_uInt16			GetValueCount() const;
71*cdf0e10cSrcweir 	virtual int				operator==( const SfxPoolItem& ) const;
72*cdf0e10cSrcweir 	virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
73*cdf0e10cSrcweir 									SfxMapUnit eCoreMetric,
74*cdf0e10cSrcweir 									SfxMapUnit ePresMetric,
75*cdf0e10cSrcweir 									String &rText,
76*cdf0e10cSrcweir                                     const IntlWrapper*    pIntl = 0 ) const;
77*cdf0e10cSrcweir 
78*cdf0e10cSrcweir 	virtual	sal_Bool        	 QueryValue( com::sun::star::uno::Any& rVal,
79*cdf0e10cSrcweir 										sal_uInt8 nMemberId = 0 ) const;
80*cdf0e10cSrcweir 	virtual	sal_Bool			 PutValue( const com::sun::star::uno::Any& rVal,
81*cdf0e10cSrcweir 										sal_uInt8 nMemberId = 0 );
82*cdf0e10cSrcweir 
83*cdf0e10cSrcweir 	inline SwMirrorGrf& operator=( const SwMirrorGrf& rMirrorGrf )
84*cdf0e10cSrcweir 		{
85*cdf0e10cSrcweir 			SfxEnumItem::SetValue( rMirrorGrf.GetValue() );
86*cdf0e10cSrcweir 			bGrfToggle = rMirrorGrf.IsGrfToggle();
87*cdf0e10cSrcweir 			return *this;
88*cdf0e10cSrcweir 		}
89*cdf0e10cSrcweir 
90*cdf0e10cSrcweir 	inline sal_Bool IsGrfToggle() const			{ return bGrfToggle; }
91*cdf0e10cSrcweir 	inline void SetGrfToggle( sal_Bool bNew )	{ bGrfToggle = bNew; }
92*cdf0e10cSrcweir };
93*cdf0e10cSrcweir 
94*cdf0e10cSrcweir 
95*cdf0e10cSrcweir /******************************************************************************
96*cdf0e10cSrcweir  *	class SwAttrCropGrf
97*cdf0e10cSrcweir  ******************************************************************************/
98*cdf0e10cSrcweir 
99*cdf0e10cSrcweir class SW_DLLPUBLIC SwCropGrf : public SvxGrfCrop
100*cdf0e10cSrcweir {
101*cdf0e10cSrcweir public:
102*cdf0e10cSrcweir 	TYPEINFO();
103*cdf0e10cSrcweir 	SwCropGrf();
104*cdf0e10cSrcweir 	SwCropGrf(  sal_Int32 nLeft,	sal_Int32 nRight,
105*cdf0e10cSrcweir 				sal_Int32 nTop,		sal_Int32 nBottom );
106*cdf0e10cSrcweir 
107*cdf0e10cSrcweir 	// "pure virtual Methoden" vom SfxPoolItem
108*cdf0e10cSrcweir 	virtual SfxPoolItem*		Clone( SfxItemPool *pPool = 0 ) const;
109*cdf0e10cSrcweir };
110*cdf0e10cSrcweir 
111*cdf0e10cSrcweir class SwRotationGrf : public SfxUInt16Item
112*cdf0e10cSrcweir {
113*cdf0e10cSrcweir 	Size aUnrotatedSize;
114*cdf0e10cSrcweir public:
115*cdf0e10cSrcweir 	SwRotationGrf( sal_Int16 nVal = 0 )
116*cdf0e10cSrcweir 		: SfxUInt16Item( RES_GRFATR_ROTATION, nVal )
117*cdf0e10cSrcweir 	{}
118*cdf0e10cSrcweir 	SwRotationGrf( sal_Int16 nVal, const Size& rSz )
119*cdf0e10cSrcweir 		: SfxUInt16Item( RES_GRFATR_ROTATION, nVal ), aUnrotatedSize( rSz )
120*cdf0e10cSrcweir 	{}
121*cdf0e10cSrcweir 
122*cdf0e10cSrcweir 	// pure virtual-Methiden from SfxInt16Item
123*cdf0e10cSrcweir     virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
124*cdf0e10cSrcweir 	virtual int				operator==( const SfxPoolItem& ) const;
125*cdf0e10cSrcweir 	virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
126*cdf0e10cSrcweir 									SfxMapUnit eCoreMetric,
127*cdf0e10cSrcweir 									SfxMapUnit ePresMetric,
128*cdf0e10cSrcweir 									String &rText,
129*cdf0e10cSrcweir                                     const IntlWrapper* pIntl = 0 ) const;
130*cdf0e10cSrcweir 	virtual	sal_Bool        	 QueryValue( com::sun::star::uno::Any& rVal,
131*cdf0e10cSrcweir 											sal_uInt8 nMemberId = 0 ) const;
132*cdf0e10cSrcweir 	virtual	sal_Bool			 PutValue( const com::sun::star::uno::Any& rVal,
133*cdf0e10cSrcweir 											sal_uInt8 nMemberId = 0 );
134*cdf0e10cSrcweir 
135*cdf0e10cSrcweir 	void SetUnrotatedSize( const Size& rSz ) 		{ aUnrotatedSize = rSz; }
136*cdf0e10cSrcweir 	const Size& GetUnrotatedSize() const 			{ return aUnrotatedSize; }
137*cdf0e10cSrcweir };
138*cdf0e10cSrcweir 
139*cdf0e10cSrcweir class SW_DLLPUBLIC SwLuminanceGrf : public SfxInt16Item
140*cdf0e10cSrcweir {
141*cdf0e10cSrcweir public:
142*cdf0e10cSrcweir 	SwLuminanceGrf( sal_Int16 nVal = 0 )
143*cdf0e10cSrcweir 		: SfxInt16Item( RES_GRFATR_LUMINANCE, nVal )
144*cdf0e10cSrcweir 	{}
145*cdf0e10cSrcweir 
146*cdf0e10cSrcweir 	// pure virtual-Methiden from SfxInt16Item
147*cdf0e10cSrcweir     virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
148*cdf0e10cSrcweir 	virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
149*cdf0e10cSrcweir 									SfxMapUnit eCoreMetric,
150*cdf0e10cSrcweir 									SfxMapUnit ePresMetric,
151*cdf0e10cSrcweir 									String &rText,
152*cdf0e10cSrcweir                                     const IntlWrapper* pIntl = 0 ) const;
153*cdf0e10cSrcweir };
154*cdf0e10cSrcweir 
155*cdf0e10cSrcweir class SW_DLLPUBLIC SwContrastGrf : public SfxInt16Item
156*cdf0e10cSrcweir {
157*cdf0e10cSrcweir public:
158*cdf0e10cSrcweir 	SwContrastGrf( sal_Int16 nVal = 0 )
159*cdf0e10cSrcweir 		: SfxInt16Item( RES_GRFATR_CONTRAST, nVal )
160*cdf0e10cSrcweir 	{}
161*cdf0e10cSrcweir 
162*cdf0e10cSrcweir 	// pure virtual-Methiden from SfxInt16Item
163*cdf0e10cSrcweir     virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
164*cdf0e10cSrcweir 	virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
165*cdf0e10cSrcweir 									SfxMapUnit eCoreMetric,
166*cdf0e10cSrcweir 									SfxMapUnit ePresMetric,
167*cdf0e10cSrcweir 									String &rText,
168*cdf0e10cSrcweir                                     const IntlWrapper* pIntl = 0 ) const;
169*cdf0e10cSrcweir };
170*cdf0e10cSrcweir 
171*cdf0e10cSrcweir class SwChannelGrf : public SfxInt16Item
172*cdf0e10cSrcweir {
173*cdf0e10cSrcweir protected:
174*cdf0e10cSrcweir     SwChannelGrf( sal_Int16 nVal, sal_uInt16 nWhichL )
175*cdf0e10cSrcweir         : SfxInt16Item( nWhichL, nVal )
176*cdf0e10cSrcweir 	{}
177*cdf0e10cSrcweir 
178*cdf0e10cSrcweir public:
179*cdf0e10cSrcweir 	// pure virtual-Methiden from SfxInt16Item
180*cdf0e10cSrcweir 	virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
181*cdf0e10cSrcweir 									SfxMapUnit eCoreMetric,
182*cdf0e10cSrcweir 									SfxMapUnit ePresMetric,
183*cdf0e10cSrcweir 									String &rText,
184*cdf0e10cSrcweir                                     const IntlWrapper* pIntl = 0 ) const;
185*cdf0e10cSrcweir };
186*cdf0e10cSrcweir 
187*cdf0e10cSrcweir class SwChannelRGrf : public SwChannelGrf
188*cdf0e10cSrcweir {
189*cdf0e10cSrcweir public:
190*cdf0e10cSrcweir     SwChannelRGrf( sal_Int16 nVal = 0 )
191*cdf0e10cSrcweir 		: SwChannelGrf( nVal, RES_GRFATR_CHANNELR )
192*cdf0e10cSrcweir     {}
193*cdf0e10cSrcweir     virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
194*cdf0e10cSrcweir };
195*cdf0e10cSrcweir class SwChannelGGrf : public SwChannelGrf
196*cdf0e10cSrcweir {
197*cdf0e10cSrcweir public:
198*cdf0e10cSrcweir     SwChannelGGrf( sal_Int16 nVal = 0 )
199*cdf0e10cSrcweir 		: SwChannelGrf( nVal, RES_GRFATR_CHANNELG )
200*cdf0e10cSrcweir     {}
201*cdf0e10cSrcweir     virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
202*cdf0e10cSrcweir };
203*cdf0e10cSrcweir class SwChannelBGrf : public SwChannelGrf
204*cdf0e10cSrcweir {
205*cdf0e10cSrcweir public:
206*cdf0e10cSrcweir     SwChannelBGrf( sal_Int16 nVal = 0 )
207*cdf0e10cSrcweir 		: SwChannelGrf( nVal, RES_GRFATR_CHANNELB )
208*cdf0e10cSrcweir     {}
209*cdf0e10cSrcweir     virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
210*cdf0e10cSrcweir };
211*cdf0e10cSrcweir 
212*cdf0e10cSrcweir class SW_DLLPUBLIC SwGammaGrf : public SfxPoolItem
213*cdf0e10cSrcweir {
214*cdf0e10cSrcweir 	double nValue;
215*cdf0e10cSrcweir public:
216*cdf0e10cSrcweir 	TYPEINFO();
217*cdf0e10cSrcweir 	SwGammaGrf() : SfxPoolItem( RES_GRFATR_GAMMA ), nValue( 1.0 )
218*cdf0e10cSrcweir 	{}
219*cdf0e10cSrcweir 
220*cdf0e10cSrcweir 	SwGammaGrf( const double& rVal )
221*cdf0e10cSrcweir 		: SfxPoolItem( RES_GRFATR_GAMMA ), nValue( rVal )
222*cdf0e10cSrcweir 	{}
223*cdf0e10cSrcweir 
224*cdf0e10cSrcweir 	inline SwGammaGrf& operator=( const SwGammaGrf& rCopy )
225*cdf0e10cSrcweir 		{
226*cdf0e10cSrcweir 			SetValue( rCopy.GetValue() );
227*cdf0e10cSrcweir 			return *this;
228*cdf0e10cSrcweir 		}
229*cdf0e10cSrcweir 
230*cdf0e10cSrcweir 	// pure virtual-Methiden von SfxEnumItem
231*cdf0e10cSrcweir     virtual SfxPoolItem* 	Clone( SfxItemPool *pPool = 0 ) const;
232*cdf0e10cSrcweir 	virtual int				operator==( const SfxPoolItem& ) const;
233*cdf0e10cSrcweir 	virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
234*cdf0e10cSrcweir 									SfxMapUnit eCoreMetric,
235*cdf0e10cSrcweir 									SfxMapUnit ePresMetric,
236*cdf0e10cSrcweir 									String &rText,
237*cdf0e10cSrcweir                                     const IntlWrapper* pIntl = 0 ) const;
238*cdf0e10cSrcweir 
239*cdf0e10cSrcweir 	virtual	sal_Bool        	 QueryValue( com::sun::star::uno::Any& rVal,
240*cdf0e10cSrcweir 											sal_uInt8 nMemberId = 0 ) const;
241*cdf0e10cSrcweir 	virtual	sal_Bool			 PutValue( const com::sun::star::uno::Any& rVal,
242*cdf0e10cSrcweir 											sal_uInt8 nMemberId = 0 );
243*cdf0e10cSrcweir 
244*cdf0e10cSrcweir 
245*cdf0e10cSrcweir 	const double& GetValue() const				{ return nValue; }
246*cdf0e10cSrcweir 	void SetValue( const double& rVal )			{ nValue = rVal; }
247*cdf0e10cSrcweir };
248*cdf0e10cSrcweir 
249*cdf0e10cSrcweir class SwInvertGrf: public SfxBoolItem
250*cdf0e10cSrcweir {
251*cdf0e10cSrcweir public:
252*cdf0e10cSrcweir 	SwInvertGrf( sal_Bool bVal = sal_False )
253*cdf0e10cSrcweir 		: SfxBoolItem( RES_GRFATR_INVERT, bVal )
254*cdf0e10cSrcweir 	{}
255*cdf0e10cSrcweir 
256*cdf0e10cSrcweir 	// pure virtual-Methiden from SfxInt16Item
257*cdf0e10cSrcweir     virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
258*cdf0e10cSrcweir 	virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
259*cdf0e10cSrcweir 									SfxMapUnit eCoreMetric,
260*cdf0e10cSrcweir 									SfxMapUnit ePresMetric,
261*cdf0e10cSrcweir 									String &rText,
262*cdf0e10cSrcweir                                     const IntlWrapper* pIntl = 0 ) const;
263*cdf0e10cSrcweir };
264*cdf0e10cSrcweir 
265*cdf0e10cSrcweir class SwTransparencyGrf : public SfxByteItem
266*cdf0e10cSrcweir {
267*cdf0e10cSrcweir public:
268*cdf0e10cSrcweir 	SwTransparencyGrf( sal_Int8 nVal = 0 )
269*cdf0e10cSrcweir 		: SfxByteItem( RES_GRFATR_TRANSPARENCY, nVal )
270*cdf0e10cSrcweir 	{}
271*cdf0e10cSrcweir 
272*cdf0e10cSrcweir 	// pure virtual-Methiden from SfxInt16Item
273*cdf0e10cSrcweir     virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
274*cdf0e10cSrcweir 	virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
275*cdf0e10cSrcweir 									SfxMapUnit eCoreMetric,
276*cdf0e10cSrcweir 									SfxMapUnit ePresMetric,
277*cdf0e10cSrcweir 									String &rText,
278*cdf0e10cSrcweir                                     const IntlWrapper* pIntl = 0 ) const;
279*cdf0e10cSrcweir 	virtual	sal_Bool        	QueryValue( com::sun::star::uno::Any& rVal,
280*cdf0e10cSrcweir 										sal_uInt8 nMemberId = 0 ) const;
281*cdf0e10cSrcweir 	virtual	sal_Bool			PutValue( const com::sun::star::uno::Any& rVal,
282*cdf0e10cSrcweir 										sal_uInt8 nMemberId = 0 );
283*cdf0e10cSrcweir };
284*cdf0e10cSrcweir 
285*cdf0e10cSrcweir class SW_DLLPUBLIC SwDrawModeGrf : public SfxEnumItem
286*cdf0e10cSrcweir {
287*cdf0e10cSrcweir public:
288*cdf0e10cSrcweir 	SwDrawModeGrf( sal_uInt16 nMode = 0 )
289*cdf0e10cSrcweir 		: SfxEnumItem( RES_GRFATR_DRAWMODE, nMode )
290*cdf0e10cSrcweir 	{}
291*cdf0e10cSrcweir 
292*cdf0e10cSrcweir 	// pure virtual-Methoden von SfxPoolItem
293*cdf0e10cSrcweir 	virtual SfxPoolItem*	Clone( SfxItemPool *pPool = 0 ) const;
294*cdf0e10cSrcweir 
295*cdf0e10cSrcweir 	// pure virtual-Methiden von SfxEnumItem
296*cdf0e10cSrcweir 	virtual sal_uInt16			GetValueCount() const;
297*cdf0e10cSrcweir 	virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
298*cdf0e10cSrcweir 									SfxMapUnit eCoreMetric,
299*cdf0e10cSrcweir 									SfxMapUnit ePresMetric,
300*cdf0e10cSrcweir 									String &rText,
301*cdf0e10cSrcweir                                     const IntlWrapper*    pIntl = 0 ) const;
302*cdf0e10cSrcweir 
303*cdf0e10cSrcweir 	virtual	sal_Bool        	QueryValue( com::sun::star::uno::Any& rVal,
304*cdf0e10cSrcweir 										sal_uInt8 nMemberId = 0 ) const;
305*cdf0e10cSrcweir 	virtual	sal_Bool			PutValue( const com::sun::star::uno::Any& rVal,
306*cdf0e10cSrcweir 										sal_uInt8 nMemberId = 0 );
307*cdf0e10cSrcweir };
308*cdf0e10cSrcweir 
309*cdf0e10cSrcweir 
310*cdf0e10cSrcweir 
311*cdf0e10cSrcweir /******************************************************************************
312*cdf0e10cSrcweir  *	Implementierung der GrafikAttribut Methoden vom SwAttrSet
313*cdf0e10cSrcweir  ******************************************************************************/
314*cdf0e10cSrcweir 
315*cdf0e10cSrcweir inline const SwMirrorGrf &SwAttrSet::GetMirrorGrf(sal_Bool bInP) const
316*cdf0e10cSrcweir 	{ return (const SwMirrorGrf&)Get( RES_GRFATR_MIRRORGRF,bInP); }
317*cdf0e10cSrcweir inline const SwCropGrf   &SwAttrSet::GetCropGrf(sal_Bool bInP) const
318*cdf0e10cSrcweir 	{ return (const SwCropGrf&)Get( RES_GRFATR_CROPGRF,bInP); }
319*cdf0e10cSrcweir inline const SwRotationGrf &SwAttrSet::GetRotationGrf(sal_Bool bInP) const
320*cdf0e10cSrcweir 	{ return (const SwRotationGrf&)Get( RES_GRFATR_ROTATION,bInP); }
321*cdf0e10cSrcweir inline const SwLuminanceGrf &SwAttrSet::GetLuminanceGrf(sal_Bool bInP) const
322*cdf0e10cSrcweir 	{ return (const SwLuminanceGrf&)Get( RES_GRFATR_LUMINANCE,bInP); }
323*cdf0e10cSrcweir inline const SwContrastGrf &SwAttrSet::GetContrastGrf(sal_Bool bInP) const
324*cdf0e10cSrcweir 	{ return (const SwContrastGrf&)Get( RES_GRFATR_CONTRAST,bInP); }
325*cdf0e10cSrcweir inline const SwChannelRGrf &SwAttrSet::GetChannelRGrf(sal_Bool bInP) const
326*cdf0e10cSrcweir 	{ return (const SwChannelRGrf&)Get( RES_GRFATR_CHANNELR,bInP); }
327*cdf0e10cSrcweir inline const SwChannelGGrf &SwAttrSet::GetChannelGGrf(sal_Bool bInP) const
328*cdf0e10cSrcweir 	{ return (const SwChannelGGrf&)Get( RES_GRFATR_CHANNELG,bInP); }
329*cdf0e10cSrcweir inline const SwChannelBGrf &SwAttrSet::GetChannelBGrf(sal_Bool bInP) const
330*cdf0e10cSrcweir 	{ return (const SwChannelBGrf&)Get( RES_GRFATR_CHANNELB,bInP); }
331*cdf0e10cSrcweir inline const SwGammaGrf &SwAttrSet::GetGammaGrf(sal_Bool bInP) const
332*cdf0e10cSrcweir 	{ return (const SwGammaGrf&)Get( RES_GRFATR_GAMMA,bInP); }
333*cdf0e10cSrcweir inline const SwInvertGrf &SwAttrSet::GetInvertGrf(sal_Bool bInP) const
334*cdf0e10cSrcweir 	{ return (const SwInvertGrf&)Get( RES_GRFATR_INVERT,bInP); }
335*cdf0e10cSrcweir inline const SwTransparencyGrf &SwAttrSet::GetTransparencyGrf(sal_Bool bInP) const
336*cdf0e10cSrcweir 	{ return (const SwTransparencyGrf&)Get( RES_GRFATR_TRANSPARENCY,bInP); }
337*cdf0e10cSrcweir inline const SwDrawModeGrf		&SwAttrSet::GetDrawModeGrf(sal_Bool bInP) const
338*cdf0e10cSrcweir 	{ return (const SwDrawModeGrf&)Get( RES_GRFATR_DRAWMODE,bInP); }
339*cdf0e10cSrcweir 
340*cdf0e10cSrcweir /******************************************************************************
341*cdf0e10cSrcweir  *	Implementierung der GrafikAttribut Methoden vom SwFmt
342*cdf0e10cSrcweir  ******************************************************************************/
343*cdf0e10cSrcweir 
344*cdf0e10cSrcweir inline const SwMirrorGrf &SwFmt::GetMirrorGrf(sal_Bool bInP) const
345*cdf0e10cSrcweir 	{ return aSet.GetMirrorGrf(bInP); }
346*cdf0e10cSrcweir inline const SwCropGrf   &SwFmt::GetCropGrf(sal_Bool bInP) const
347*cdf0e10cSrcweir 	{ return aSet.GetCropGrf(bInP); }
348*cdf0e10cSrcweir inline const SwRotationGrf &SwFmt::GetRotationGrf(sal_Bool bInP) const
349*cdf0e10cSrcweir 	{ return aSet.GetRotationGrf(bInP); }
350*cdf0e10cSrcweir inline const SwLuminanceGrf &SwFmt::GetLuminanceGrf(sal_Bool bInP) const
351*cdf0e10cSrcweir 	{ return aSet.GetLuminanceGrf( bInP); }
352*cdf0e10cSrcweir inline const SwContrastGrf &SwFmt::GetContrastGrf(sal_Bool bInP) const
353*cdf0e10cSrcweir 	{ return aSet.GetContrastGrf( bInP); }
354*cdf0e10cSrcweir inline const SwChannelRGrf &SwFmt::GetChannelRGrf(sal_Bool bInP) const
355*cdf0e10cSrcweir 	{ return aSet.GetChannelRGrf( bInP); }
356*cdf0e10cSrcweir inline const SwChannelGGrf &SwFmt::GetChannelGGrf(sal_Bool bInP) const
357*cdf0e10cSrcweir 	{ return aSet.GetChannelGGrf( bInP); }
358*cdf0e10cSrcweir inline const SwChannelBGrf &SwFmt::GetChannelBGrf(sal_Bool bInP) const
359*cdf0e10cSrcweir 	{ return aSet.GetChannelBGrf( bInP); }
360*cdf0e10cSrcweir inline const SwGammaGrf	&SwFmt::GetGammaGrf(sal_Bool bInP) const
361*cdf0e10cSrcweir 	{ return aSet.GetGammaGrf( bInP); }
362*cdf0e10cSrcweir inline const SwInvertGrf &SwFmt::GetInvertGrf(sal_Bool bInP) const
363*cdf0e10cSrcweir 	{ return aSet.GetInvertGrf( bInP); }
364*cdf0e10cSrcweir inline const SwTransparencyGrf &SwFmt::GetTransparencyGrf(sal_Bool bInP) const
365*cdf0e10cSrcweir 	{ return aSet.GetTransparencyGrf( bInP); }
366*cdf0e10cSrcweir inline const SwDrawModeGrf &SwFmt::GetDrawModeGrf(sal_Bool bInP) const
367*cdf0e10cSrcweir 	{ return aSet.GetDrawModeGrf(bInP); }
368*cdf0e10cSrcweir 
369*cdf0e10cSrcweir 
370*cdf0e10cSrcweir #endif  // _GRFATR_HXX
371