xref: /aoo41x/main/svx/source/xoutdev/xattr2.cxx (revision cdf0e10c)
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 
28*cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
29*cdf0e10cSrcweir #include "precompiled_svx.hxx"
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir // include ---------------------------------------------------------------
32*cdf0e10cSrcweir 
33*cdf0e10cSrcweir 
34*cdf0e10cSrcweir #include <com/sun/star/drawing/LineJoint.hpp>
35*cdf0e10cSrcweir #include <com/sun/star/uno/Any.hxx>
36*cdf0e10cSrcweir 
37*cdf0e10cSrcweir #include <svx/dialogs.hrc>
38*cdf0e10cSrcweir #include "svx/xattr.hxx"
39*cdf0e10cSrcweir #include <svx/xtable.hxx>
40*cdf0e10cSrcweir #include <svx/dialmgr.hxx>
41*cdf0e10cSrcweir #include <editeng/itemtype.hxx>
42*cdf0e10cSrcweir #include <svx/xdef.hxx>
43*cdf0e10cSrcweir 
44*cdf0e10cSrcweir #define GLOBALOVERFLOW
45*cdf0e10cSrcweir 
46*cdf0e10cSrcweir /************************************************************************/
47*cdf0e10cSrcweir 
48*cdf0e10cSrcweir //------------------------------
49*cdf0e10cSrcweir // class XLineTransparenceItem
50*cdf0e10cSrcweir //------------------------------
51*cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY(XLineTransparenceItem, SfxUInt16Item);
52*cdf0e10cSrcweir 
53*cdf0e10cSrcweir /*************************************************************************
54*cdf0e10cSrcweir |*
55*cdf0e10cSrcweir |*	  XLineTransparenceItem::XLineTransparenceItem(sal_uInt16)
56*cdf0e10cSrcweir |*
57*cdf0e10cSrcweir |*	  Beschreibung
58*cdf0e10cSrcweir |*	  Ersterstellung	07.11.95 KA
59*cdf0e10cSrcweir |*	  Letzte Aenderung	07.11.95 KA
60*cdf0e10cSrcweir |*
61*cdf0e10cSrcweir *************************************************************************/
62*cdf0e10cSrcweir 
63*cdf0e10cSrcweir XLineTransparenceItem::XLineTransparenceItem(sal_uInt16 nLineTransparence) :
64*cdf0e10cSrcweir 	SfxUInt16Item(XATTR_LINETRANSPARENCE, nLineTransparence)
65*cdf0e10cSrcweir {
66*cdf0e10cSrcweir }
67*cdf0e10cSrcweir 
68*cdf0e10cSrcweir /*************************************************************************
69*cdf0e10cSrcweir |*
70*cdf0e10cSrcweir |*	  XLineTransparenceItem::XLineTransparenceItem(SvStream& rIn)
71*cdf0e10cSrcweir |*
72*cdf0e10cSrcweir |*	  Beschreibung
73*cdf0e10cSrcweir |*	  Ersterstellung	07.11.95 KA
74*cdf0e10cSrcweir |*	  Letzte Aenderung	07.11.95 KA
75*cdf0e10cSrcweir |*
76*cdf0e10cSrcweir *************************************************************************/
77*cdf0e10cSrcweir 
78*cdf0e10cSrcweir XLineTransparenceItem::XLineTransparenceItem(SvStream& rIn) :
79*cdf0e10cSrcweir 	SfxUInt16Item(XATTR_LINETRANSPARENCE, rIn)
80*cdf0e10cSrcweir {
81*cdf0e10cSrcweir }
82*cdf0e10cSrcweir 
83*cdf0e10cSrcweir /*************************************************************************
84*cdf0e10cSrcweir |*
85*cdf0e10cSrcweir |*	  XLineTransparenceItem::Clone(SfxItemPool* pPool) const
86*cdf0e10cSrcweir |*
87*cdf0e10cSrcweir |*	  Beschreibung
88*cdf0e10cSrcweir |*	  Ersterstellung	07.11.95 KA
89*cdf0e10cSrcweir |*	  Letzte Aenderung	07.11.95 KA
90*cdf0e10cSrcweir |*
91*cdf0e10cSrcweir *************************************************************************/
92*cdf0e10cSrcweir 
93*cdf0e10cSrcweir SfxPoolItem* XLineTransparenceItem::Clone(SfxItemPool* /*pPool*/) const
94*cdf0e10cSrcweir {
95*cdf0e10cSrcweir 	return new XLineTransparenceItem(*this);
96*cdf0e10cSrcweir }
97*cdf0e10cSrcweir 
98*cdf0e10cSrcweir /*************************************************************************
99*cdf0e10cSrcweir |*
100*cdf0e10cSrcweir |*	  SfxPoolItem* XLineTransparenceItem::Create(SvStream& rIn, sal_uInt16 nVer) const
101*cdf0e10cSrcweir |*
102*cdf0e10cSrcweir |*	  Beschreibung
103*cdf0e10cSrcweir |*	  Ersterstellung	07.11.95 KA
104*cdf0e10cSrcweir |*	  Letzte Aenderung	07.11.95 KA
105*cdf0e10cSrcweir |*
106*cdf0e10cSrcweir *************************************************************************/
107*cdf0e10cSrcweir 
108*cdf0e10cSrcweir SfxPoolItem* XLineTransparenceItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
109*cdf0e10cSrcweir {
110*cdf0e10cSrcweir 	return new XLineTransparenceItem(rIn);
111*cdf0e10cSrcweir }
112*cdf0e10cSrcweir 
113*cdf0e10cSrcweir //------------------------------------------------------------------------
114*cdf0e10cSrcweir 
115*cdf0e10cSrcweir SfxItemPresentation XLineTransparenceItem::GetPresentation
116*cdf0e10cSrcweir (
117*cdf0e10cSrcweir 	SfxItemPresentation ePres,
118*cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
119*cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
120*cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
121*cdf0e10cSrcweir )	const
122*cdf0e10cSrcweir {
123*cdf0e10cSrcweir 	rText.Erase();
124*cdf0e10cSrcweir 
125*cdf0e10cSrcweir 	switch ( ePres )
126*cdf0e10cSrcweir 	{
127*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
128*cdf0e10cSrcweir 			return ePres;
129*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
130*cdf0e10cSrcweir 			rText = XubString( ResId( RID_SVXSTR_TRANSPARENCE, DIALOG_MGR() ) );
131*cdf0e10cSrcweir 			rText.AppendAscii(": ");
132*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
133*cdf0e10cSrcweir 			rText += XubString( UniString::CreateFromInt32((sal_uInt16) GetValue()) );
134*cdf0e10cSrcweir 			rText += sal_Unicode('%');
135*cdf0e10cSrcweir 			return ePres;
136*cdf0e10cSrcweir 		default:
137*cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
138*cdf0e10cSrcweir 	}
139*cdf0e10cSrcweir }
140*cdf0e10cSrcweir 
141*cdf0e10cSrcweir //-----------------------
142*cdf0e10cSrcweir // class XLineJointItem	-
143*cdf0e10cSrcweir //-----------------------
144*cdf0e10cSrcweir 
145*cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY(XLineJointItem, SfxEnumItem);
146*cdf0e10cSrcweir 
147*cdf0e10cSrcweir // -----------------------------------------------------------------------------
148*cdf0e10cSrcweir 
149*cdf0e10cSrcweir XLineJointItem::XLineJointItem( XLineJoint eLineJoint ) :
150*cdf0e10cSrcweir 	SfxEnumItem(XATTR_LINEJOINT, sal::static_int_cast< sal_uInt16 >(eLineJoint))
151*cdf0e10cSrcweir {
152*cdf0e10cSrcweir }
153*cdf0e10cSrcweir 
154*cdf0e10cSrcweir // -----------------------------------------------------------------------------
155*cdf0e10cSrcweir 
156*cdf0e10cSrcweir XLineJointItem::XLineJointItem( SvStream& rIn ) :
157*cdf0e10cSrcweir 	SfxEnumItem( XATTR_LINEJOINT, rIn )
158*cdf0e10cSrcweir {
159*cdf0e10cSrcweir }
160*cdf0e10cSrcweir 
161*cdf0e10cSrcweir // -----------------------------------------------------------------------------
162*cdf0e10cSrcweir 
163*cdf0e10cSrcweir sal_uInt16 XLineJointItem::GetVersion( sal_uInt16 /*nFileFormatVersion*/) const
164*cdf0e10cSrcweir {
165*cdf0e10cSrcweir 	return 1;
166*cdf0e10cSrcweir }
167*cdf0e10cSrcweir 
168*cdf0e10cSrcweir // -----------------------------------------------------------------------------
169*cdf0e10cSrcweir 
170*cdf0e10cSrcweir SfxPoolItem* XLineJointItem::Create( SvStream& rIn, sal_uInt16 nVer ) const
171*cdf0e10cSrcweir {
172*cdf0e10cSrcweir 	XLineJointItem* pRet = new XLineJointItem( rIn );
173*cdf0e10cSrcweir 
174*cdf0e10cSrcweir 	if(nVer < 1)
175*cdf0e10cSrcweir 		pRet->SetValue(XLINEJOINT_ROUND);
176*cdf0e10cSrcweir 
177*cdf0e10cSrcweir 	return pRet;
178*cdf0e10cSrcweir }
179*cdf0e10cSrcweir 
180*cdf0e10cSrcweir // -----------------------------------------------------------------------------
181*cdf0e10cSrcweir 
182*cdf0e10cSrcweir SfxPoolItem* XLineJointItem::Clone(SfxItemPool* /*pPool*/) const
183*cdf0e10cSrcweir {
184*cdf0e10cSrcweir 	return new XLineJointItem( *this );
185*cdf0e10cSrcweir }
186*cdf0e10cSrcweir 
187*cdf0e10cSrcweir // -----------------------------------------------------------------------------
188*cdf0e10cSrcweir 
189*cdf0e10cSrcweir SfxItemPresentation XLineJointItem::GetPresentation( SfxItemPresentation ePres,	SfxMapUnit /*eCoreUnit*/,
190*cdf0e10cSrcweir                                                      SfxMapUnit /*ePresUnit*/, XubString& rText, const IntlWrapper*) const
191*cdf0e10cSrcweir {
192*cdf0e10cSrcweir 	rText.Erase();
193*cdf0e10cSrcweir 
194*cdf0e10cSrcweir 	switch( ePres )
195*cdf0e10cSrcweir 	{
196*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE: return ePres;
197*cdf0e10cSrcweir 
198*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
199*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
200*cdf0e10cSrcweir 		{
201*cdf0e10cSrcweir 			sal_uInt16 nId = 0;
202*cdf0e10cSrcweir 
203*cdf0e10cSrcweir 			switch( GetValue() )
204*cdf0e10cSrcweir 			{
205*cdf0e10cSrcweir 				case( XLINEJOINT_NONE ):
206*cdf0e10cSrcweir 					nId = RID_SVXSTR_LINEJOINT_NONE;
207*cdf0e10cSrcweir 				break;
208*cdf0e10cSrcweir 
209*cdf0e10cSrcweir 				case( XLINEJOINT_MIDDLE ):
210*cdf0e10cSrcweir 					nId = RID_SVXSTR_LINEJOINT_MIDDLE;
211*cdf0e10cSrcweir 				break;
212*cdf0e10cSrcweir 
213*cdf0e10cSrcweir 
214*cdf0e10cSrcweir 				case( XLINEJOINT_BEVEL ):
215*cdf0e10cSrcweir 					nId = RID_SVXSTR_LINEJOINT_BEVEL;
216*cdf0e10cSrcweir 				break;
217*cdf0e10cSrcweir 
218*cdf0e10cSrcweir 
219*cdf0e10cSrcweir 				case( XLINEJOINT_MITER ):
220*cdf0e10cSrcweir 					nId = RID_SVXSTR_LINEJOINT_MITER;
221*cdf0e10cSrcweir 				break;
222*cdf0e10cSrcweir 
223*cdf0e10cSrcweir 
224*cdf0e10cSrcweir 				case( XLINEJOINT_ROUND ):
225*cdf0e10cSrcweir 					nId = RID_SVXSTR_LINEJOINT_ROUND;
226*cdf0e10cSrcweir 				break;
227*cdf0e10cSrcweir 			}
228*cdf0e10cSrcweir 
229*cdf0e10cSrcweir 			if( nId )
230*cdf0e10cSrcweir 				rText = SVX_RESSTR( nId );
231*cdf0e10cSrcweir 
232*cdf0e10cSrcweir 			return ePres;
233*cdf0e10cSrcweir 		}
234*cdf0e10cSrcweir 		default:
235*cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
236*cdf0e10cSrcweir 	}
237*cdf0e10cSrcweir }
238*cdf0e10cSrcweir 
239*cdf0e10cSrcweir // -----------------------------------------------------------------------------
240*cdf0e10cSrcweir 
241*cdf0e10cSrcweir sal_Bool XLineJointItem::QueryValue( ::com::sun::star::uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
242*cdf0e10cSrcweir {
243*cdf0e10cSrcweir 	::com::sun::star::drawing::LineJoint eJoint = ::com::sun::star::drawing::LineJoint_NONE;
244*cdf0e10cSrcweir 
245*cdf0e10cSrcweir 	switch( GetValue() )
246*cdf0e10cSrcweir 	{
247*cdf0e10cSrcweir 	case XLINEJOINT_NONE:
248*cdf0e10cSrcweir 		break;
249*cdf0e10cSrcweir 	case XLINEJOINT_MIDDLE:
250*cdf0e10cSrcweir 		eJoint = ::com::sun::star::drawing::LineJoint_MIDDLE;
251*cdf0e10cSrcweir 		break;
252*cdf0e10cSrcweir 	case XLINEJOINT_BEVEL:
253*cdf0e10cSrcweir 		eJoint = ::com::sun::star::drawing::LineJoint_BEVEL;
254*cdf0e10cSrcweir 		break;
255*cdf0e10cSrcweir 	case XLINEJOINT_MITER:
256*cdf0e10cSrcweir 		eJoint = ::com::sun::star::drawing::LineJoint_MITER;
257*cdf0e10cSrcweir 		break;
258*cdf0e10cSrcweir 	case XLINEJOINT_ROUND:
259*cdf0e10cSrcweir 		eJoint = ::com::sun::star::drawing::LineJoint_ROUND;
260*cdf0e10cSrcweir 		break;
261*cdf0e10cSrcweir 	default:
262*cdf0e10cSrcweir 		DBG_ERROR( "Unknown LineJoint enum value!" );
263*cdf0e10cSrcweir 	}
264*cdf0e10cSrcweir 
265*cdf0e10cSrcweir 	rVal <<= eJoint;
266*cdf0e10cSrcweir 	return sal_True;
267*cdf0e10cSrcweir }
268*cdf0e10cSrcweir 
269*cdf0e10cSrcweir // -----------------------------------------------------------------------------
270*cdf0e10cSrcweir 
271*cdf0e10cSrcweir sal_Bool XLineJointItem::PutValue( const ::com::sun::star::uno::Any& rVal, sal_uInt8 /*nMemberId*/)
272*cdf0e10cSrcweir {
273*cdf0e10cSrcweir 	XLineJoint eJoint = XLINEJOINT_NONE;
274*cdf0e10cSrcweir 	::com::sun::star::drawing::LineJoint eUnoJoint;
275*cdf0e10cSrcweir 
276*cdf0e10cSrcweir 	if(!(rVal >>= eUnoJoint))
277*cdf0e10cSrcweir     {
278*cdf0e10cSrcweir         // also try an int (for Basic)
279*cdf0e10cSrcweir         sal_Int32 nLJ = 0;
280*cdf0e10cSrcweir         if(!(rVal >>= nLJ))
281*cdf0e10cSrcweir             return sal_False;
282*cdf0e10cSrcweir         eUnoJoint = (::com::sun::star::drawing::LineJoint)nLJ;
283*cdf0e10cSrcweir     }
284*cdf0e10cSrcweir 
285*cdf0e10cSrcweir 	switch( eUnoJoint )
286*cdf0e10cSrcweir 	{
287*cdf0e10cSrcweir 	case ::com::sun::star::drawing::LineJoint_MIDDLE:
288*cdf0e10cSrcweir 		eJoint = XLINEJOINT_MIDDLE;
289*cdf0e10cSrcweir 		break;
290*cdf0e10cSrcweir 	case ::com::sun::star::drawing::LineJoint_BEVEL:
291*cdf0e10cSrcweir 		eJoint = XLINEJOINT_BEVEL;
292*cdf0e10cSrcweir 		break;
293*cdf0e10cSrcweir 	case ::com::sun::star::drawing::LineJoint_MITER:
294*cdf0e10cSrcweir 		eJoint = XLINEJOINT_MITER;
295*cdf0e10cSrcweir 		break;
296*cdf0e10cSrcweir 	case ::com::sun::star::drawing::LineJoint_ROUND:
297*cdf0e10cSrcweir 		eJoint = XLINEJOINT_ROUND;
298*cdf0e10cSrcweir 		break;
299*cdf0e10cSrcweir 	default:
300*cdf0e10cSrcweir 		break;
301*cdf0e10cSrcweir 	}
302*cdf0e10cSrcweir 
303*cdf0e10cSrcweir 	SetValue( sal::static_int_cast< sal_uInt16 >( eJoint ) );
304*cdf0e10cSrcweir 
305*cdf0e10cSrcweir 	return sal_True;
306*cdf0e10cSrcweir }
307*cdf0e10cSrcweir 
308*cdf0e10cSrcweir // -----------------------------------------------------------------------------
309*cdf0e10cSrcweir 
310*cdf0e10cSrcweir sal_uInt16 XLineJointItem::GetValueCount() const
311*cdf0e10cSrcweir {
312*cdf0e10cSrcweir 	// don't forget to update the api interface also
313*cdf0e10cSrcweir 	return 5;
314*cdf0e10cSrcweir }
315*cdf0e10cSrcweir 
316*cdf0e10cSrcweir //------------------------------
317*cdf0e10cSrcweir // class XFillTransparenceItem
318*cdf0e10cSrcweir //------------------------------
319*cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY(XFillTransparenceItem, SfxUInt16Item);
320*cdf0e10cSrcweir 
321*cdf0e10cSrcweir /*************************************************************************
322*cdf0e10cSrcweir |*
323*cdf0e10cSrcweir |*	  XFillTransparenceItem::XFillTransparenceItem(sal_uInt16)
324*cdf0e10cSrcweir |*
325*cdf0e10cSrcweir |*	  Beschreibung
326*cdf0e10cSrcweir |*	  Ersterstellung	07.11.95 KA
327*cdf0e10cSrcweir |*	  Letzte Aenderung	07.11.95 KA
328*cdf0e10cSrcweir |*
329*cdf0e10cSrcweir *************************************************************************/
330*cdf0e10cSrcweir 
331*cdf0e10cSrcweir XFillTransparenceItem::XFillTransparenceItem(sal_uInt16 nFillTransparence) :
332*cdf0e10cSrcweir 	SfxUInt16Item(XATTR_FILLTRANSPARENCE, nFillTransparence)
333*cdf0e10cSrcweir {
334*cdf0e10cSrcweir }
335*cdf0e10cSrcweir 
336*cdf0e10cSrcweir /*************************************************************************
337*cdf0e10cSrcweir |*
338*cdf0e10cSrcweir |*	  XFillTransparenceItem::XFillTransparenceItem(SvStream& rIn)
339*cdf0e10cSrcweir |*
340*cdf0e10cSrcweir |*	  Beschreibung
341*cdf0e10cSrcweir |*	  Ersterstellung	07.11.95 KA
342*cdf0e10cSrcweir |*	  Letzte Aenderung	07.11.95 KA
343*cdf0e10cSrcweir |*
344*cdf0e10cSrcweir *************************************************************************/
345*cdf0e10cSrcweir 
346*cdf0e10cSrcweir XFillTransparenceItem::XFillTransparenceItem(SvStream& rIn) :
347*cdf0e10cSrcweir 	SfxUInt16Item(XATTR_FILLTRANSPARENCE, rIn)
348*cdf0e10cSrcweir {
349*cdf0e10cSrcweir }
350*cdf0e10cSrcweir 
351*cdf0e10cSrcweir /*************************************************************************
352*cdf0e10cSrcweir |*
353*cdf0e10cSrcweir |*	  XFillTransparenceItem::Clone(SfxItemPool* pPool) const
354*cdf0e10cSrcweir |*
355*cdf0e10cSrcweir |*	  Beschreibung
356*cdf0e10cSrcweir |*	  Ersterstellung	07.11.95 KA
357*cdf0e10cSrcweir |*	  Letzte Aenderung	07.11.95 KA
358*cdf0e10cSrcweir |*
359*cdf0e10cSrcweir *************************************************************************/
360*cdf0e10cSrcweir 
361*cdf0e10cSrcweir SfxPoolItem* XFillTransparenceItem::Clone(SfxItemPool* /*pPool*/) const
362*cdf0e10cSrcweir {
363*cdf0e10cSrcweir 	return new XFillTransparenceItem(*this);
364*cdf0e10cSrcweir }
365*cdf0e10cSrcweir 
366*cdf0e10cSrcweir /*************************************************************************
367*cdf0e10cSrcweir |*
368*cdf0e10cSrcweir |*	  SfxPoolItem* XFillTransparenceItem::Create(SvStream& rIn, sal_uInt16 nVer) const
369*cdf0e10cSrcweir |*
370*cdf0e10cSrcweir |*	  Beschreibung
371*cdf0e10cSrcweir |*	  Ersterstellung	07.11.95 KA
372*cdf0e10cSrcweir |*	  Letzte Aenderung	07.11.95 KA
373*cdf0e10cSrcweir |*
374*cdf0e10cSrcweir *************************************************************************/
375*cdf0e10cSrcweir 
376*cdf0e10cSrcweir SfxPoolItem* XFillTransparenceItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
377*cdf0e10cSrcweir {
378*cdf0e10cSrcweir 	return new XFillTransparenceItem(rIn);
379*cdf0e10cSrcweir }
380*cdf0e10cSrcweir 
381*cdf0e10cSrcweir //------------------------------------------------------------------------
382*cdf0e10cSrcweir 
383*cdf0e10cSrcweir SfxItemPresentation XFillTransparenceItem::GetPresentation
384*cdf0e10cSrcweir (
385*cdf0e10cSrcweir 	SfxItemPresentation ePres,
386*cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
387*cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
388*cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
389*cdf0e10cSrcweir )	const
390*cdf0e10cSrcweir {
391*cdf0e10cSrcweir 	rText.Erase();
392*cdf0e10cSrcweir 
393*cdf0e10cSrcweir 	switch ( ePres )
394*cdf0e10cSrcweir 	{
395*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
396*cdf0e10cSrcweir 			return ePres;
397*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
398*cdf0e10cSrcweir 			rText = XubString( ResId( RID_SVXSTR_TRANSPARENCE, DIALOG_MGR() ) );
399*cdf0e10cSrcweir 			rText.AppendAscii(": ");
400*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
401*cdf0e10cSrcweir 			rText += XubString( UniString::CreateFromInt32((sal_uInt16) GetValue() ));
402*cdf0e10cSrcweir 			rText += sal_Unicode('%');
403*cdf0e10cSrcweir 			return ePres;
404*cdf0e10cSrcweir 		default:
405*cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
406*cdf0e10cSrcweir 	}
407*cdf0e10cSrcweir }
408*cdf0e10cSrcweir 
409*cdf0e10cSrcweir //------------------------------
410*cdf0e10cSrcweir // class XFormTextShadowTranspItem
411*cdf0e10cSrcweir //------------------------------
412*cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY(XFormTextShadowTranspItem, SfxUInt16Item);
413*cdf0e10cSrcweir 
414*cdf0e10cSrcweir /*************************************************************************
415*cdf0e10cSrcweir |*
416*cdf0e10cSrcweir |*	  XFormTextShadowTranspItem::XFormTextShadowTranspItem(sal_uInt16)
417*cdf0e10cSrcweir |*
418*cdf0e10cSrcweir |*	  Beschreibung
419*cdf0e10cSrcweir |*	  Ersterstellung	09.11.95 KA
420*cdf0e10cSrcweir |*	  Letzte Aenderung	09.11.95 KA
421*cdf0e10cSrcweir |*
422*cdf0e10cSrcweir *************************************************************************/
423*cdf0e10cSrcweir 
424*cdf0e10cSrcweir XFormTextShadowTranspItem::XFormTextShadowTranspItem(sal_uInt16 nShdwTransparence) :
425*cdf0e10cSrcweir 	SfxUInt16Item(XATTR_FORMTXTSHDWTRANSP, nShdwTransparence)
426*cdf0e10cSrcweir {
427*cdf0e10cSrcweir }
428*cdf0e10cSrcweir 
429*cdf0e10cSrcweir /*************************************************************************
430*cdf0e10cSrcweir |*
431*cdf0e10cSrcweir |*	  XFormTextShadowTranspItem::XFormTextShadowTranspItem(SvStream& rIn)
432*cdf0e10cSrcweir |*
433*cdf0e10cSrcweir |*	  Beschreibung
434*cdf0e10cSrcweir |*	  Ersterstellung	09.11.95 KA
435*cdf0e10cSrcweir |*	  Letzte Aenderung	09.11.95 KA
436*cdf0e10cSrcweir |*
437*cdf0e10cSrcweir *************************************************************************/
438*cdf0e10cSrcweir 
439*cdf0e10cSrcweir XFormTextShadowTranspItem::XFormTextShadowTranspItem(SvStream& rIn) :
440*cdf0e10cSrcweir 	SfxUInt16Item(XATTR_FORMTXTSHDWTRANSP, rIn)
441*cdf0e10cSrcweir {
442*cdf0e10cSrcweir }
443*cdf0e10cSrcweir 
444*cdf0e10cSrcweir /*************************************************************************
445*cdf0e10cSrcweir |*
446*cdf0e10cSrcweir |*	  XFormTextShadowTranspItem::Clone(SfxItemPool* pPool) const
447*cdf0e10cSrcweir |*
448*cdf0e10cSrcweir |*	  Beschreibung
449*cdf0e10cSrcweir |*	  Ersterstellung	09.11.95 KA
450*cdf0e10cSrcweir |*	  Letzte Aenderung	09.11.95 KA
451*cdf0e10cSrcweir |*
452*cdf0e10cSrcweir *************************************************************************/
453*cdf0e10cSrcweir 
454*cdf0e10cSrcweir SfxPoolItem* XFormTextShadowTranspItem::Clone(SfxItemPool* /*pPool*/) const
455*cdf0e10cSrcweir {
456*cdf0e10cSrcweir 	return new XFormTextShadowTranspItem(*this);
457*cdf0e10cSrcweir }
458*cdf0e10cSrcweir 
459*cdf0e10cSrcweir /*************************************************************************
460*cdf0e10cSrcweir |*
461*cdf0e10cSrcweir |*	  SfxPoolItem* XFormTextShadowTranspItem::Create(SvStream& rIn, sal_uInt16 nVer) const
462*cdf0e10cSrcweir |*
463*cdf0e10cSrcweir |*	  Beschreibung
464*cdf0e10cSrcweir |*	  Ersterstellung	09.11.95 KA
465*cdf0e10cSrcweir |*	  Letzte Aenderung	09.11.95 KA
466*cdf0e10cSrcweir |*
467*cdf0e10cSrcweir *************************************************************************/
468*cdf0e10cSrcweir 
469*cdf0e10cSrcweir SfxPoolItem* XFormTextShadowTranspItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
470*cdf0e10cSrcweir {
471*cdf0e10cSrcweir 	return new XFormTextShadowTranspItem(rIn);
472*cdf0e10cSrcweir }
473*cdf0e10cSrcweir 
474*cdf0e10cSrcweir 
475*cdf0e10cSrcweir //------------------------------
476*cdf0e10cSrcweir // class XFillGradientStepCountItem
477*cdf0e10cSrcweir //------------------------------
478*cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY(XGradientStepCountItem, SfxUInt16Item);
479*cdf0e10cSrcweir 
480*cdf0e10cSrcweir /*************************************************************************
481*cdf0e10cSrcweir |*
482*cdf0e10cSrcweir |*	  XGradientStepCountItem::XGradientStepCountItem( sal_uInt16 )
483*cdf0e10cSrcweir |*
484*cdf0e10cSrcweir |*	  Beschreibung
485*cdf0e10cSrcweir |*	  Ersterstellung	23.01.96 KA
486*cdf0e10cSrcweir |*	  Letzte Aenderung	23.01.96 KA
487*cdf0e10cSrcweir |*
488*cdf0e10cSrcweir *************************************************************************/
489*cdf0e10cSrcweir 
490*cdf0e10cSrcweir XGradientStepCountItem::XGradientStepCountItem( sal_uInt16 nStepCount ) :
491*cdf0e10cSrcweir 	SfxUInt16Item( XATTR_GRADIENTSTEPCOUNT, nStepCount )
492*cdf0e10cSrcweir {
493*cdf0e10cSrcweir }
494*cdf0e10cSrcweir 
495*cdf0e10cSrcweir /*************************************************************************
496*cdf0e10cSrcweir |*
497*cdf0e10cSrcweir |*	  XGradientStepCountItem::XGradientStepCountItem( SvStream& rIn )
498*cdf0e10cSrcweir |*
499*cdf0e10cSrcweir |*	  Beschreibung
500*cdf0e10cSrcweir |*	  Ersterstellung	23.01.96 KA
501*cdf0e10cSrcweir |*	  Letzte Aenderung	23.01.96 KA
502*cdf0e10cSrcweir |*
503*cdf0e10cSrcweir *************************************************************************/
504*cdf0e10cSrcweir 
505*cdf0e10cSrcweir XGradientStepCountItem::XGradientStepCountItem( SvStream& rIn ) :
506*cdf0e10cSrcweir 	SfxUInt16Item( XATTR_GRADIENTSTEPCOUNT, rIn )
507*cdf0e10cSrcweir {
508*cdf0e10cSrcweir }
509*cdf0e10cSrcweir 
510*cdf0e10cSrcweir /*************************************************************************
511*cdf0e10cSrcweir |*
512*cdf0e10cSrcweir |*	  XGradientStepCountItem::Clone( SfxItemPool* pPool ) const
513*cdf0e10cSrcweir |*
514*cdf0e10cSrcweir |*	  Beschreibung
515*cdf0e10cSrcweir |*	  Ersterstellung	23.01.96 KA
516*cdf0e10cSrcweir |*	  Letzte Aenderung	23.01.96 KA
517*cdf0e10cSrcweir |*
518*cdf0e10cSrcweir *************************************************************************/
519*cdf0e10cSrcweir 
520*cdf0e10cSrcweir SfxPoolItem* XGradientStepCountItem::Clone( SfxItemPool* /*pPool*/) const
521*cdf0e10cSrcweir {
522*cdf0e10cSrcweir 	return new XGradientStepCountItem( *this );
523*cdf0e10cSrcweir }
524*cdf0e10cSrcweir 
525*cdf0e10cSrcweir /*************************************************************************
526*cdf0e10cSrcweir |*
527*cdf0e10cSrcweir |*	  SfxPoolItem* XGradientStepCountItem::Create(SvStream& rIn, sal_uInt16 nVer) const
528*cdf0e10cSrcweir |*
529*cdf0e10cSrcweir |*	  Beschreibung
530*cdf0e10cSrcweir |*	  Ersterstellung	23.01.96 KA
531*cdf0e10cSrcweir |*	  Letzte Aenderung	23.01.96 KA
532*cdf0e10cSrcweir |*
533*cdf0e10cSrcweir *************************************************************************/
534*cdf0e10cSrcweir 
535*cdf0e10cSrcweir SfxPoolItem* XGradientStepCountItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
536*cdf0e10cSrcweir {
537*cdf0e10cSrcweir 	return new XGradientStepCountItem( rIn );
538*cdf0e10cSrcweir }
539*cdf0e10cSrcweir 
540*cdf0e10cSrcweir //------------------------------------------------------------------------
541*cdf0e10cSrcweir 
542*cdf0e10cSrcweir SfxItemPresentation XGradientStepCountItem::GetPresentation
543*cdf0e10cSrcweir (
544*cdf0e10cSrcweir 	SfxItemPresentation ePres,
545*cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
546*cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
547*cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
548*cdf0e10cSrcweir )	const
549*cdf0e10cSrcweir {
550*cdf0e10cSrcweir 	rText.Erase();
551*cdf0e10cSrcweir 
552*cdf0e10cSrcweir 	switch ( ePres )
553*cdf0e10cSrcweir 	{
554*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
555*cdf0e10cSrcweir 			return ePres;
556*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
557*cdf0e10cSrcweir //			rText = XubString( ResId( RID_SVXSTR_GRADIENTSTEPCOUNT, DIALOG_MGR() ) );
558*cdf0e10cSrcweir //			rText += ": ";
559*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
560*cdf0e10cSrcweir 			rText += XubString( UniString::CreateFromInt32((sal_uInt16) GetValue() ));
561*cdf0e10cSrcweir 			return ePres;
562*cdf0e10cSrcweir 		default:
563*cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
564*cdf0e10cSrcweir 	}
565*cdf0e10cSrcweir }
566*cdf0e10cSrcweir 
567*cdf0e10cSrcweir 
568*cdf0e10cSrcweir //------------------------------
569*cdf0e10cSrcweir // class XFillBmpTileItem
570*cdf0e10cSrcweir //------------------------------
571*cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY( XFillBmpTileItem, SfxBoolItem );
572*cdf0e10cSrcweir 
573*cdf0e10cSrcweir /*************************************************************************
574*cdf0e10cSrcweir |*
575*cdf0e10cSrcweir |*
576*cdf0e10cSrcweir |*
577*cdf0e10cSrcweir |*	  Beschreibung
578*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
579*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
580*cdf0e10cSrcweir |*
581*cdf0e10cSrcweir *************************************************************************/
582*cdf0e10cSrcweir 
583*cdf0e10cSrcweir XFillBmpTileItem::XFillBmpTileItem( sal_Bool bTile ) :
584*cdf0e10cSrcweir 			SfxBoolItem( XATTR_FILLBMP_TILE, bTile )
585*cdf0e10cSrcweir {
586*cdf0e10cSrcweir }
587*cdf0e10cSrcweir 
588*cdf0e10cSrcweir 
589*cdf0e10cSrcweir /*************************************************************************
590*cdf0e10cSrcweir |*
591*cdf0e10cSrcweir |*
592*cdf0e10cSrcweir |*
593*cdf0e10cSrcweir |*	  Beschreibung
594*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
595*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
596*cdf0e10cSrcweir |*
597*cdf0e10cSrcweir *************************************************************************/
598*cdf0e10cSrcweir 
599*cdf0e10cSrcweir XFillBmpTileItem::XFillBmpTileItem( SvStream& rIn ) :
600*cdf0e10cSrcweir 			SfxBoolItem( XATTR_FILLBMP_TILE, rIn )
601*cdf0e10cSrcweir {
602*cdf0e10cSrcweir }
603*cdf0e10cSrcweir 
604*cdf0e10cSrcweir 
605*cdf0e10cSrcweir /*************************************************************************
606*cdf0e10cSrcweir |*
607*cdf0e10cSrcweir |*
608*cdf0e10cSrcweir |*
609*cdf0e10cSrcweir |*	  Beschreibung
610*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
611*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
612*cdf0e10cSrcweir |*
613*cdf0e10cSrcweir *************************************************************************/
614*cdf0e10cSrcweir 
615*cdf0e10cSrcweir SfxPoolItem* XFillBmpTileItem::Clone( SfxItemPool* /*pPool*/) const
616*cdf0e10cSrcweir {
617*cdf0e10cSrcweir 	return new XFillBmpTileItem( *this );
618*cdf0e10cSrcweir }
619*cdf0e10cSrcweir 
620*cdf0e10cSrcweir 
621*cdf0e10cSrcweir /*************************************************************************
622*cdf0e10cSrcweir |*
623*cdf0e10cSrcweir |*
624*cdf0e10cSrcweir |*
625*cdf0e10cSrcweir |*	  Beschreibung
626*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
627*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
628*cdf0e10cSrcweir |*
629*cdf0e10cSrcweir *************************************************************************/
630*cdf0e10cSrcweir 
631*cdf0e10cSrcweir SfxPoolItem* XFillBmpTileItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
632*cdf0e10cSrcweir {
633*cdf0e10cSrcweir 	return new XFillBmpTileItem( rIn );
634*cdf0e10cSrcweir }
635*cdf0e10cSrcweir 
636*cdf0e10cSrcweir 
637*cdf0e10cSrcweir /*************************************************************************
638*cdf0e10cSrcweir |*
639*cdf0e10cSrcweir |*
640*cdf0e10cSrcweir |*
641*cdf0e10cSrcweir |*	  Beschreibung
642*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
643*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
644*cdf0e10cSrcweir |*
645*cdf0e10cSrcweir *************************************************************************/
646*cdf0e10cSrcweir 
647*cdf0e10cSrcweir SfxItemPresentation XFillBmpTileItem::GetPresentation
648*cdf0e10cSrcweir (
649*cdf0e10cSrcweir 	SfxItemPresentation ePres,
650*cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
651*cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
652*cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
653*cdf0e10cSrcweir )	const
654*cdf0e10cSrcweir {
655*cdf0e10cSrcweir 	rText.Erase();
656*cdf0e10cSrcweir 
657*cdf0e10cSrcweir 	switch ( ePres )
658*cdf0e10cSrcweir 	{
659*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
660*cdf0e10cSrcweir 			return ePres;
661*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
662*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
663*cdf0e10cSrcweir 			return ePres;
664*cdf0e10cSrcweir 		default:
665*cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
666*cdf0e10cSrcweir 	}
667*cdf0e10cSrcweir }
668*cdf0e10cSrcweir 
669*cdf0e10cSrcweir 
670*cdf0e10cSrcweir //------------------------------
671*cdf0e10cSrcweir // class XFillBmpTilePosItem
672*cdf0e10cSrcweir //------------------------------
673*cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY( XFillBmpPosItem, SfxEnumItem );
674*cdf0e10cSrcweir 
675*cdf0e10cSrcweir /*************************************************************************
676*cdf0e10cSrcweir |*
677*cdf0e10cSrcweir |*
678*cdf0e10cSrcweir |*
679*cdf0e10cSrcweir |*	  Beschreibung
680*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
681*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
682*cdf0e10cSrcweir |*
683*cdf0e10cSrcweir *************************************************************************/
684*cdf0e10cSrcweir 
685*cdf0e10cSrcweir XFillBmpPosItem::XFillBmpPosItem( RECT_POINT eRP ) :
686*cdf0e10cSrcweir     SfxEnumItem( XATTR_FILLBMP_POS, sal::static_int_cast< sal_uInt16 >( eRP ) )
687*cdf0e10cSrcweir {
688*cdf0e10cSrcweir }
689*cdf0e10cSrcweir 
690*cdf0e10cSrcweir 
691*cdf0e10cSrcweir /*************************************************************************
692*cdf0e10cSrcweir |*
693*cdf0e10cSrcweir |*
694*cdf0e10cSrcweir |*
695*cdf0e10cSrcweir |*	  Beschreibung
696*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
697*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
698*cdf0e10cSrcweir |*
699*cdf0e10cSrcweir *************************************************************************/
700*cdf0e10cSrcweir 
701*cdf0e10cSrcweir XFillBmpPosItem::XFillBmpPosItem( SvStream& rIn ) :
702*cdf0e10cSrcweir 			SfxEnumItem( XATTR_FILLBMP_POS, rIn )
703*cdf0e10cSrcweir {
704*cdf0e10cSrcweir }
705*cdf0e10cSrcweir 
706*cdf0e10cSrcweir 
707*cdf0e10cSrcweir /*************************************************************************
708*cdf0e10cSrcweir |*
709*cdf0e10cSrcweir |*
710*cdf0e10cSrcweir |*
711*cdf0e10cSrcweir |*	  Beschreibung
712*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
713*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
714*cdf0e10cSrcweir |*
715*cdf0e10cSrcweir *************************************************************************/
716*cdf0e10cSrcweir 
717*cdf0e10cSrcweir SfxPoolItem* XFillBmpPosItem::Clone( SfxItemPool* /*pPool*/) const
718*cdf0e10cSrcweir {
719*cdf0e10cSrcweir 	return new XFillBmpPosItem( *this );
720*cdf0e10cSrcweir }
721*cdf0e10cSrcweir 
722*cdf0e10cSrcweir 
723*cdf0e10cSrcweir /*************************************************************************
724*cdf0e10cSrcweir |*
725*cdf0e10cSrcweir |*
726*cdf0e10cSrcweir |*
727*cdf0e10cSrcweir |*	  Beschreibung
728*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
729*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
730*cdf0e10cSrcweir |*
731*cdf0e10cSrcweir *************************************************************************/
732*cdf0e10cSrcweir 
733*cdf0e10cSrcweir SfxPoolItem* XFillBmpPosItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
734*cdf0e10cSrcweir {
735*cdf0e10cSrcweir 	return new XFillBmpPosItem( rIn );
736*cdf0e10cSrcweir }
737*cdf0e10cSrcweir 
738*cdf0e10cSrcweir 
739*cdf0e10cSrcweir /*************************************************************************
740*cdf0e10cSrcweir |*
741*cdf0e10cSrcweir |*
742*cdf0e10cSrcweir |*
743*cdf0e10cSrcweir |*	  Beschreibung
744*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
745*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
746*cdf0e10cSrcweir |*
747*cdf0e10cSrcweir *************************************************************************/
748*cdf0e10cSrcweir 
749*cdf0e10cSrcweir SfxItemPresentation XFillBmpPosItem::GetPresentation
750*cdf0e10cSrcweir (
751*cdf0e10cSrcweir 	SfxItemPresentation ePres,
752*cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
753*cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
754*cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
755*cdf0e10cSrcweir )	const
756*cdf0e10cSrcweir {
757*cdf0e10cSrcweir 	rText.Erase();
758*cdf0e10cSrcweir 
759*cdf0e10cSrcweir 	switch ( ePres )
760*cdf0e10cSrcweir 	{
761*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
762*cdf0e10cSrcweir 			return ePres;
763*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
764*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
765*cdf0e10cSrcweir 			return ePres;
766*cdf0e10cSrcweir 		default:
767*cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
768*cdf0e10cSrcweir 	}
769*cdf0e10cSrcweir }
770*cdf0e10cSrcweir 
771*cdf0e10cSrcweir /******************************************************************************
772*cdf0e10cSrcweir |*
773*cdf0e10cSrcweir |*
774*cdf0e10cSrcweir |*
775*cdf0e10cSrcweir \******************************************************************************/
776*cdf0e10cSrcweir 
777*cdf0e10cSrcweir sal_uInt16 XFillBmpPosItem::GetValueCount() const
778*cdf0e10cSrcweir {
779*cdf0e10cSrcweir 	return 9;
780*cdf0e10cSrcweir }
781*cdf0e10cSrcweir 
782*cdf0e10cSrcweir 
783*cdf0e10cSrcweir //------------------------------
784*cdf0e10cSrcweir // class XFillBmpTileSizeXItem
785*cdf0e10cSrcweir //------------------------------
786*cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY( XFillBmpSizeXItem, SfxMetricItem );
787*cdf0e10cSrcweir 
788*cdf0e10cSrcweir /*************************************************************************
789*cdf0e10cSrcweir |*
790*cdf0e10cSrcweir |*
791*cdf0e10cSrcweir |*
792*cdf0e10cSrcweir |*	  Beschreibung
793*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
794*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
795*cdf0e10cSrcweir |*
796*cdf0e10cSrcweir *************************************************************************/
797*cdf0e10cSrcweir 
798*cdf0e10cSrcweir XFillBmpSizeXItem::XFillBmpSizeXItem( long nSizeX ) :
799*cdf0e10cSrcweir 			SfxMetricItem( XATTR_FILLBMP_SIZEX, nSizeX )
800*cdf0e10cSrcweir {
801*cdf0e10cSrcweir }
802*cdf0e10cSrcweir 
803*cdf0e10cSrcweir 
804*cdf0e10cSrcweir /*************************************************************************
805*cdf0e10cSrcweir |*
806*cdf0e10cSrcweir |*
807*cdf0e10cSrcweir |*
808*cdf0e10cSrcweir |*	  Beschreibung
809*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
810*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
811*cdf0e10cSrcweir |*
812*cdf0e10cSrcweir *************************************************************************/
813*cdf0e10cSrcweir 
814*cdf0e10cSrcweir XFillBmpSizeXItem::XFillBmpSizeXItem( SvStream& rIn ) :
815*cdf0e10cSrcweir 			SfxMetricItem( XATTR_FILLBMP_SIZEX, rIn )
816*cdf0e10cSrcweir {
817*cdf0e10cSrcweir }
818*cdf0e10cSrcweir 
819*cdf0e10cSrcweir 
820*cdf0e10cSrcweir /*************************************************************************
821*cdf0e10cSrcweir |*
822*cdf0e10cSrcweir |*
823*cdf0e10cSrcweir |*
824*cdf0e10cSrcweir |*	  Beschreibung
825*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
826*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
827*cdf0e10cSrcweir |*
828*cdf0e10cSrcweir *************************************************************************/
829*cdf0e10cSrcweir 
830*cdf0e10cSrcweir SfxPoolItem* XFillBmpSizeXItem::Clone( SfxItemPool* /*pPool*/) const
831*cdf0e10cSrcweir {
832*cdf0e10cSrcweir 	return new XFillBmpSizeXItem( *this );
833*cdf0e10cSrcweir }
834*cdf0e10cSrcweir 
835*cdf0e10cSrcweir 
836*cdf0e10cSrcweir /*************************************************************************
837*cdf0e10cSrcweir |*
838*cdf0e10cSrcweir |*
839*cdf0e10cSrcweir |*
840*cdf0e10cSrcweir |*	  Beschreibung
841*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
842*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
843*cdf0e10cSrcweir |*
844*cdf0e10cSrcweir *************************************************************************/
845*cdf0e10cSrcweir 
846*cdf0e10cSrcweir SfxPoolItem* XFillBmpSizeXItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
847*cdf0e10cSrcweir {
848*cdf0e10cSrcweir 	return new XFillBmpSizeXItem( rIn );
849*cdf0e10cSrcweir }
850*cdf0e10cSrcweir 
851*cdf0e10cSrcweir 
852*cdf0e10cSrcweir /*************************************************************************
853*cdf0e10cSrcweir |*
854*cdf0e10cSrcweir |*
855*cdf0e10cSrcweir |*
856*cdf0e10cSrcweir |*	  Beschreibung
857*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
858*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
859*cdf0e10cSrcweir |*
860*cdf0e10cSrcweir *************************************************************************/
861*cdf0e10cSrcweir 
862*cdf0e10cSrcweir SfxItemPresentation XFillBmpSizeXItem::GetPresentation
863*cdf0e10cSrcweir (
864*cdf0e10cSrcweir 	SfxItemPresentation ePres,
865*cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
866*cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
867*cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
868*cdf0e10cSrcweir )	const
869*cdf0e10cSrcweir {
870*cdf0e10cSrcweir 	rText.Erase();
871*cdf0e10cSrcweir 
872*cdf0e10cSrcweir 	switch ( ePres )
873*cdf0e10cSrcweir 	{
874*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
875*cdf0e10cSrcweir 			return ePres;
876*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
877*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
878*cdf0e10cSrcweir 			return ePres;
879*cdf0e10cSrcweir 		default:
880*cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
881*cdf0e10cSrcweir 	}
882*cdf0e10cSrcweir }
883*cdf0e10cSrcweir 
884*cdf0e10cSrcweir 
885*cdf0e10cSrcweir /*************************************************************************
886*cdf0e10cSrcweir |*
887*cdf0e10cSrcweir |*	  Beschreibung
888*cdf0e10cSrcweir |*	  Ersterstellung	05.11.96 KA
889*cdf0e10cSrcweir |*	  Letzte Aenderung	05.11.96 KA
890*cdf0e10cSrcweir |*
891*cdf0e10cSrcweir \*************************************************************************/
892*cdf0e10cSrcweir 
893*cdf0e10cSrcweir FASTBOOL XFillBmpSizeXItem::HasMetrics() const
894*cdf0e10cSrcweir {
895*cdf0e10cSrcweir 	return GetValue() > 0L;
896*cdf0e10cSrcweir }
897*cdf0e10cSrcweir 
898*cdf0e10cSrcweir 
899*cdf0e10cSrcweir //------------------------------
900*cdf0e10cSrcweir // class XFillBmpTileSizeYItem
901*cdf0e10cSrcweir //------------------------------
902*cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY( XFillBmpSizeYItem, SfxMetricItem );
903*cdf0e10cSrcweir 
904*cdf0e10cSrcweir /*************************************************************************
905*cdf0e10cSrcweir |*
906*cdf0e10cSrcweir |*
907*cdf0e10cSrcweir |*
908*cdf0e10cSrcweir |*	  Beschreibung
909*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
910*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
911*cdf0e10cSrcweir |*
912*cdf0e10cSrcweir *************************************************************************/
913*cdf0e10cSrcweir 
914*cdf0e10cSrcweir XFillBmpSizeYItem::XFillBmpSizeYItem( long nSizeY ) :
915*cdf0e10cSrcweir 			SfxMetricItem( XATTR_FILLBMP_SIZEY, nSizeY )
916*cdf0e10cSrcweir {
917*cdf0e10cSrcweir }
918*cdf0e10cSrcweir 
919*cdf0e10cSrcweir 
920*cdf0e10cSrcweir /*************************************************************************
921*cdf0e10cSrcweir |*
922*cdf0e10cSrcweir |*
923*cdf0e10cSrcweir |*
924*cdf0e10cSrcweir |*	  Beschreibung
925*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
926*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
927*cdf0e10cSrcweir |*
928*cdf0e10cSrcweir *************************************************************************/
929*cdf0e10cSrcweir 
930*cdf0e10cSrcweir XFillBmpSizeYItem::XFillBmpSizeYItem( SvStream& rIn ) :
931*cdf0e10cSrcweir 			SfxMetricItem( XATTR_FILLBMP_SIZEY, rIn )
932*cdf0e10cSrcweir {
933*cdf0e10cSrcweir }
934*cdf0e10cSrcweir 
935*cdf0e10cSrcweir 
936*cdf0e10cSrcweir /*************************************************************************
937*cdf0e10cSrcweir |*
938*cdf0e10cSrcweir |*
939*cdf0e10cSrcweir |*
940*cdf0e10cSrcweir |*	  Beschreibung
941*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
942*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
943*cdf0e10cSrcweir |*
944*cdf0e10cSrcweir *************************************************************************/
945*cdf0e10cSrcweir 
946*cdf0e10cSrcweir SfxPoolItem* XFillBmpSizeYItem::Clone( SfxItemPool* /*pPool*/) const
947*cdf0e10cSrcweir {
948*cdf0e10cSrcweir 	return new XFillBmpSizeYItem( *this );
949*cdf0e10cSrcweir }
950*cdf0e10cSrcweir 
951*cdf0e10cSrcweir 
952*cdf0e10cSrcweir /*************************************************************************
953*cdf0e10cSrcweir |*
954*cdf0e10cSrcweir |*
955*cdf0e10cSrcweir |*
956*cdf0e10cSrcweir |*	  Beschreibung
957*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
958*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
959*cdf0e10cSrcweir |*
960*cdf0e10cSrcweir *************************************************************************/
961*cdf0e10cSrcweir 
962*cdf0e10cSrcweir SfxPoolItem* XFillBmpSizeYItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
963*cdf0e10cSrcweir {
964*cdf0e10cSrcweir 	return new XFillBmpSizeYItem( rIn );
965*cdf0e10cSrcweir }
966*cdf0e10cSrcweir 
967*cdf0e10cSrcweir 
968*cdf0e10cSrcweir /*************************************************************************
969*cdf0e10cSrcweir |*
970*cdf0e10cSrcweir |*
971*cdf0e10cSrcweir |*
972*cdf0e10cSrcweir |*	  Beschreibung
973*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
974*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
975*cdf0e10cSrcweir |*
976*cdf0e10cSrcweir *************************************************************************/
977*cdf0e10cSrcweir 
978*cdf0e10cSrcweir SfxItemPresentation XFillBmpSizeYItem::GetPresentation
979*cdf0e10cSrcweir (
980*cdf0e10cSrcweir 	SfxItemPresentation ePres,
981*cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
982*cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
983*cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
984*cdf0e10cSrcweir )	const
985*cdf0e10cSrcweir {
986*cdf0e10cSrcweir 	rText.Erase();
987*cdf0e10cSrcweir 
988*cdf0e10cSrcweir 	switch ( ePres )
989*cdf0e10cSrcweir 	{
990*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
991*cdf0e10cSrcweir 			return ePres;
992*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
993*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
994*cdf0e10cSrcweir 			return ePres;
995*cdf0e10cSrcweir 		default:
996*cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
997*cdf0e10cSrcweir 	}
998*cdf0e10cSrcweir }
999*cdf0e10cSrcweir 
1000*cdf0e10cSrcweir 
1001*cdf0e10cSrcweir /*************************************************************************
1002*cdf0e10cSrcweir |*
1003*cdf0e10cSrcweir |*	  Beschreibung
1004*cdf0e10cSrcweir |*	  Ersterstellung	05.11.96 KA
1005*cdf0e10cSrcweir |*	  Letzte Aenderung	05.11.96 KA
1006*cdf0e10cSrcweir |*
1007*cdf0e10cSrcweir \*************************************************************************/
1008*cdf0e10cSrcweir 
1009*cdf0e10cSrcweir FASTBOOL XFillBmpSizeYItem::HasMetrics() const
1010*cdf0e10cSrcweir {
1011*cdf0e10cSrcweir 	return GetValue() > 0L;
1012*cdf0e10cSrcweir }
1013*cdf0e10cSrcweir 
1014*cdf0e10cSrcweir 
1015*cdf0e10cSrcweir //------------------------------
1016*cdf0e10cSrcweir // class XFillBmpTileLogItem
1017*cdf0e10cSrcweir //------------------------------
1018*cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY( XFillBmpSizeLogItem, SfxBoolItem );
1019*cdf0e10cSrcweir 
1020*cdf0e10cSrcweir /*************************************************************************
1021*cdf0e10cSrcweir |*
1022*cdf0e10cSrcweir |*
1023*cdf0e10cSrcweir |*
1024*cdf0e10cSrcweir |*	  Beschreibung
1025*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1026*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1027*cdf0e10cSrcweir |*
1028*cdf0e10cSrcweir *************************************************************************/
1029*cdf0e10cSrcweir 
1030*cdf0e10cSrcweir XFillBmpSizeLogItem::XFillBmpSizeLogItem( sal_Bool bLog ) :
1031*cdf0e10cSrcweir 			SfxBoolItem( XATTR_FILLBMP_SIZELOG, bLog )
1032*cdf0e10cSrcweir {
1033*cdf0e10cSrcweir }
1034*cdf0e10cSrcweir 
1035*cdf0e10cSrcweir 
1036*cdf0e10cSrcweir /*************************************************************************
1037*cdf0e10cSrcweir |*
1038*cdf0e10cSrcweir |*
1039*cdf0e10cSrcweir |*
1040*cdf0e10cSrcweir |*	  Beschreibung
1041*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1042*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1043*cdf0e10cSrcweir |*
1044*cdf0e10cSrcweir *************************************************************************/
1045*cdf0e10cSrcweir 
1046*cdf0e10cSrcweir XFillBmpSizeLogItem::XFillBmpSizeLogItem( SvStream& rIn ) :
1047*cdf0e10cSrcweir 			SfxBoolItem( XATTR_FILLBMP_SIZELOG, rIn )
1048*cdf0e10cSrcweir {
1049*cdf0e10cSrcweir }
1050*cdf0e10cSrcweir 
1051*cdf0e10cSrcweir 
1052*cdf0e10cSrcweir /*************************************************************************
1053*cdf0e10cSrcweir |*
1054*cdf0e10cSrcweir |*
1055*cdf0e10cSrcweir |*
1056*cdf0e10cSrcweir |*	  Beschreibung
1057*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1058*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1059*cdf0e10cSrcweir |*
1060*cdf0e10cSrcweir *************************************************************************/
1061*cdf0e10cSrcweir 
1062*cdf0e10cSrcweir SfxPoolItem* XFillBmpSizeLogItem::Clone( SfxItemPool* /*pPool*/) const
1063*cdf0e10cSrcweir {
1064*cdf0e10cSrcweir 	return new XFillBmpSizeLogItem( *this );
1065*cdf0e10cSrcweir }
1066*cdf0e10cSrcweir 
1067*cdf0e10cSrcweir 
1068*cdf0e10cSrcweir /*************************************************************************
1069*cdf0e10cSrcweir |*
1070*cdf0e10cSrcweir |*
1071*cdf0e10cSrcweir |*
1072*cdf0e10cSrcweir |*	  Beschreibung
1073*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1074*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1075*cdf0e10cSrcweir |*
1076*cdf0e10cSrcweir *************************************************************************/
1077*cdf0e10cSrcweir 
1078*cdf0e10cSrcweir SfxPoolItem* XFillBmpSizeLogItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
1079*cdf0e10cSrcweir {
1080*cdf0e10cSrcweir 	return new XFillBmpSizeLogItem( rIn );
1081*cdf0e10cSrcweir }
1082*cdf0e10cSrcweir 
1083*cdf0e10cSrcweir 
1084*cdf0e10cSrcweir /*************************************************************************
1085*cdf0e10cSrcweir |*
1086*cdf0e10cSrcweir |*
1087*cdf0e10cSrcweir |*
1088*cdf0e10cSrcweir |*	  Beschreibung
1089*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1090*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1091*cdf0e10cSrcweir |*
1092*cdf0e10cSrcweir *************************************************************************/
1093*cdf0e10cSrcweir 
1094*cdf0e10cSrcweir SfxItemPresentation XFillBmpSizeLogItem::GetPresentation
1095*cdf0e10cSrcweir (
1096*cdf0e10cSrcweir 	SfxItemPresentation ePres,
1097*cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
1098*cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
1099*cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
1100*cdf0e10cSrcweir )	const
1101*cdf0e10cSrcweir {
1102*cdf0e10cSrcweir 	rText.Erase();
1103*cdf0e10cSrcweir 
1104*cdf0e10cSrcweir 	switch ( ePres )
1105*cdf0e10cSrcweir 	{
1106*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
1107*cdf0e10cSrcweir 			return ePres;
1108*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
1109*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
1110*cdf0e10cSrcweir 			return ePres;
1111*cdf0e10cSrcweir 		default:
1112*cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
1113*cdf0e10cSrcweir 	}
1114*cdf0e10cSrcweir }
1115*cdf0e10cSrcweir 
1116*cdf0e10cSrcweir 
1117*cdf0e10cSrcweir //------------------------------
1118*cdf0e10cSrcweir // class XFillBmpTileOffXItem
1119*cdf0e10cSrcweir //------------------------------
1120*cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY( XFillBmpTileOffsetXItem, SfxUInt16Item );
1121*cdf0e10cSrcweir 
1122*cdf0e10cSrcweir /*************************************************************************
1123*cdf0e10cSrcweir |*
1124*cdf0e10cSrcweir |*
1125*cdf0e10cSrcweir |*
1126*cdf0e10cSrcweir |*	  Beschreibung
1127*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1128*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1129*cdf0e10cSrcweir |*
1130*cdf0e10cSrcweir *************************************************************************/
1131*cdf0e10cSrcweir 
1132*cdf0e10cSrcweir XFillBmpTileOffsetXItem::XFillBmpTileOffsetXItem( sal_uInt16 nOffX ) :
1133*cdf0e10cSrcweir 			SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETX, nOffX )
1134*cdf0e10cSrcweir {
1135*cdf0e10cSrcweir }
1136*cdf0e10cSrcweir 
1137*cdf0e10cSrcweir 
1138*cdf0e10cSrcweir /*************************************************************************
1139*cdf0e10cSrcweir |*
1140*cdf0e10cSrcweir |*
1141*cdf0e10cSrcweir |*
1142*cdf0e10cSrcweir |*	  Beschreibung
1143*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1144*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1145*cdf0e10cSrcweir |*
1146*cdf0e10cSrcweir *************************************************************************/
1147*cdf0e10cSrcweir 
1148*cdf0e10cSrcweir XFillBmpTileOffsetXItem::XFillBmpTileOffsetXItem( SvStream& rIn ) :
1149*cdf0e10cSrcweir 			SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETX, rIn )
1150*cdf0e10cSrcweir {
1151*cdf0e10cSrcweir }
1152*cdf0e10cSrcweir 
1153*cdf0e10cSrcweir 
1154*cdf0e10cSrcweir /*************************************************************************
1155*cdf0e10cSrcweir |*
1156*cdf0e10cSrcweir |*
1157*cdf0e10cSrcweir |*
1158*cdf0e10cSrcweir |*	  Beschreibung
1159*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1160*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1161*cdf0e10cSrcweir |*
1162*cdf0e10cSrcweir *************************************************************************/
1163*cdf0e10cSrcweir 
1164*cdf0e10cSrcweir SfxPoolItem* XFillBmpTileOffsetXItem::Clone( SfxItemPool* /*pPool*/) const
1165*cdf0e10cSrcweir {
1166*cdf0e10cSrcweir 	return new XFillBmpTileOffsetXItem( *this );
1167*cdf0e10cSrcweir }
1168*cdf0e10cSrcweir 
1169*cdf0e10cSrcweir 
1170*cdf0e10cSrcweir /*************************************************************************
1171*cdf0e10cSrcweir |*
1172*cdf0e10cSrcweir |*
1173*cdf0e10cSrcweir |*
1174*cdf0e10cSrcweir |*	  Beschreibung
1175*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1176*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1177*cdf0e10cSrcweir |*
1178*cdf0e10cSrcweir *************************************************************************/
1179*cdf0e10cSrcweir 
1180*cdf0e10cSrcweir SfxPoolItem* XFillBmpTileOffsetXItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
1181*cdf0e10cSrcweir {
1182*cdf0e10cSrcweir 	return new XFillBmpTileOffsetXItem( rIn );
1183*cdf0e10cSrcweir }
1184*cdf0e10cSrcweir 
1185*cdf0e10cSrcweir 
1186*cdf0e10cSrcweir /*************************************************************************
1187*cdf0e10cSrcweir |*
1188*cdf0e10cSrcweir |*
1189*cdf0e10cSrcweir |*
1190*cdf0e10cSrcweir |*	  Beschreibung
1191*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1192*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1193*cdf0e10cSrcweir |*
1194*cdf0e10cSrcweir *************************************************************************/
1195*cdf0e10cSrcweir 
1196*cdf0e10cSrcweir SfxItemPresentation XFillBmpTileOffsetXItem::GetPresentation
1197*cdf0e10cSrcweir (
1198*cdf0e10cSrcweir 	SfxItemPresentation ePres,
1199*cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
1200*cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
1201*cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
1202*cdf0e10cSrcweir )	const
1203*cdf0e10cSrcweir {
1204*cdf0e10cSrcweir 	rText.Erase();
1205*cdf0e10cSrcweir 
1206*cdf0e10cSrcweir 	switch ( ePres )
1207*cdf0e10cSrcweir 	{
1208*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
1209*cdf0e10cSrcweir 			return ePres;
1210*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
1211*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
1212*cdf0e10cSrcweir 			return ePres;
1213*cdf0e10cSrcweir 		default:
1214*cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
1215*cdf0e10cSrcweir 	}
1216*cdf0e10cSrcweir }
1217*cdf0e10cSrcweir 
1218*cdf0e10cSrcweir 
1219*cdf0e10cSrcweir //------------------------------
1220*cdf0e10cSrcweir // class XFillBmpTileOffYItem
1221*cdf0e10cSrcweir //------------------------------
1222*cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY( XFillBmpTileOffsetYItem, SfxUInt16Item );
1223*cdf0e10cSrcweir 
1224*cdf0e10cSrcweir /*************************************************************************
1225*cdf0e10cSrcweir |*
1226*cdf0e10cSrcweir |*
1227*cdf0e10cSrcweir |*
1228*cdf0e10cSrcweir |*	  Beschreibung
1229*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1230*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1231*cdf0e10cSrcweir |*
1232*cdf0e10cSrcweir *************************************************************************/
1233*cdf0e10cSrcweir 
1234*cdf0e10cSrcweir XFillBmpTileOffsetYItem::XFillBmpTileOffsetYItem( sal_uInt16 nOffY ) :
1235*cdf0e10cSrcweir 			SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETY, nOffY )
1236*cdf0e10cSrcweir {
1237*cdf0e10cSrcweir }
1238*cdf0e10cSrcweir 
1239*cdf0e10cSrcweir 
1240*cdf0e10cSrcweir /*************************************************************************
1241*cdf0e10cSrcweir |*
1242*cdf0e10cSrcweir |*
1243*cdf0e10cSrcweir |*
1244*cdf0e10cSrcweir |*	  Beschreibung
1245*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1246*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1247*cdf0e10cSrcweir |*
1248*cdf0e10cSrcweir *************************************************************************/
1249*cdf0e10cSrcweir 
1250*cdf0e10cSrcweir XFillBmpTileOffsetYItem::XFillBmpTileOffsetYItem( SvStream& rIn ) :
1251*cdf0e10cSrcweir 			SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETY, rIn )
1252*cdf0e10cSrcweir {
1253*cdf0e10cSrcweir }
1254*cdf0e10cSrcweir 
1255*cdf0e10cSrcweir 
1256*cdf0e10cSrcweir /*************************************************************************
1257*cdf0e10cSrcweir |*
1258*cdf0e10cSrcweir |*
1259*cdf0e10cSrcweir |*
1260*cdf0e10cSrcweir |*	  Beschreibung
1261*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1262*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1263*cdf0e10cSrcweir |*
1264*cdf0e10cSrcweir *************************************************************************/
1265*cdf0e10cSrcweir 
1266*cdf0e10cSrcweir SfxPoolItem* XFillBmpTileOffsetYItem::Clone( SfxItemPool* /*pPool*/) const
1267*cdf0e10cSrcweir {
1268*cdf0e10cSrcweir 	return new XFillBmpTileOffsetYItem( *this );
1269*cdf0e10cSrcweir }
1270*cdf0e10cSrcweir 
1271*cdf0e10cSrcweir 
1272*cdf0e10cSrcweir /*************************************************************************
1273*cdf0e10cSrcweir |*
1274*cdf0e10cSrcweir |*
1275*cdf0e10cSrcweir |*
1276*cdf0e10cSrcweir |*	  Beschreibung
1277*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1278*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1279*cdf0e10cSrcweir |*
1280*cdf0e10cSrcweir *************************************************************************/
1281*cdf0e10cSrcweir 
1282*cdf0e10cSrcweir SfxPoolItem* XFillBmpTileOffsetYItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
1283*cdf0e10cSrcweir {
1284*cdf0e10cSrcweir 	return new XFillBmpTileOffsetYItem( rIn );
1285*cdf0e10cSrcweir }
1286*cdf0e10cSrcweir 
1287*cdf0e10cSrcweir 
1288*cdf0e10cSrcweir /*************************************************************************
1289*cdf0e10cSrcweir |*
1290*cdf0e10cSrcweir |*
1291*cdf0e10cSrcweir |*
1292*cdf0e10cSrcweir |*	  Beschreibung
1293*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1294*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1295*cdf0e10cSrcweir |*
1296*cdf0e10cSrcweir *************************************************************************/
1297*cdf0e10cSrcweir 
1298*cdf0e10cSrcweir SfxItemPresentation XFillBmpTileOffsetYItem::GetPresentation
1299*cdf0e10cSrcweir (
1300*cdf0e10cSrcweir 	SfxItemPresentation ePres,
1301*cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
1302*cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
1303*cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
1304*cdf0e10cSrcweir )	const
1305*cdf0e10cSrcweir {
1306*cdf0e10cSrcweir 	rText.Erase();
1307*cdf0e10cSrcweir 
1308*cdf0e10cSrcweir 	switch ( ePres )
1309*cdf0e10cSrcweir 	{
1310*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
1311*cdf0e10cSrcweir 			return ePres;
1312*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
1313*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
1314*cdf0e10cSrcweir 			return ePres;
1315*cdf0e10cSrcweir 		default:
1316*cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
1317*cdf0e10cSrcweir 	}
1318*cdf0e10cSrcweir }
1319*cdf0e10cSrcweir 
1320*cdf0e10cSrcweir 
1321*cdf0e10cSrcweir //------------------------------
1322*cdf0e10cSrcweir // class XFillBmpStretchItem
1323*cdf0e10cSrcweir //------------------------------
1324*cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY( XFillBmpStretchItem, SfxBoolItem );
1325*cdf0e10cSrcweir 
1326*cdf0e10cSrcweir /*************************************************************************
1327*cdf0e10cSrcweir |*
1328*cdf0e10cSrcweir |*
1329*cdf0e10cSrcweir |*
1330*cdf0e10cSrcweir |*	  Beschreibung
1331*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1332*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1333*cdf0e10cSrcweir |*
1334*cdf0e10cSrcweir *************************************************************************/
1335*cdf0e10cSrcweir 
1336*cdf0e10cSrcweir XFillBmpStretchItem::XFillBmpStretchItem( sal_Bool bStretch ) :
1337*cdf0e10cSrcweir 			SfxBoolItem( XATTR_FILLBMP_STRETCH, bStretch )
1338*cdf0e10cSrcweir {
1339*cdf0e10cSrcweir }
1340*cdf0e10cSrcweir 
1341*cdf0e10cSrcweir 
1342*cdf0e10cSrcweir /*************************************************************************
1343*cdf0e10cSrcweir |*
1344*cdf0e10cSrcweir |*
1345*cdf0e10cSrcweir |*
1346*cdf0e10cSrcweir |*	  Beschreibung
1347*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1348*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1349*cdf0e10cSrcweir |*
1350*cdf0e10cSrcweir *************************************************************************/
1351*cdf0e10cSrcweir 
1352*cdf0e10cSrcweir XFillBmpStretchItem::XFillBmpStretchItem( SvStream& rIn ) :
1353*cdf0e10cSrcweir 			SfxBoolItem( XATTR_FILLBMP_STRETCH, rIn )
1354*cdf0e10cSrcweir {
1355*cdf0e10cSrcweir }
1356*cdf0e10cSrcweir 
1357*cdf0e10cSrcweir 
1358*cdf0e10cSrcweir /*************************************************************************
1359*cdf0e10cSrcweir |*
1360*cdf0e10cSrcweir |*
1361*cdf0e10cSrcweir |*
1362*cdf0e10cSrcweir |*	  Beschreibung
1363*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1364*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1365*cdf0e10cSrcweir |*
1366*cdf0e10cSrcweir *************************************************************************/
1367*cdf0e10cSrcweir 
1368*cdf0e10cSrcweir SfxPoolItem* XFillBmpStretchItem::Clone( SfxItemPool* /*pPool*/) const
1369*cdf0e10cSrcweir {
1370*cdf0e10cSrcweir 	return new XFillBmpStretchItem( *this );
1371*cdf0e10cSrcweir }
1372*cdf0e10cSrcweir 
1373*cdf0e10cSrcweir 
1374*cdf0e10cSrcweir /*************************************************************************
1375*cdf0e10cSrcweir |*
1376*cdf0e10cSrcweir |*
1377*cdf0e10cSrcweir |*
1378*cdf0e10cSrcweir |*	  Beschreibung
1379*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1380*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1381*cdf0e10cSrcweir |*
1382*cdf0e10cSrcweir *************************************************************************/
1383*cdf0e10cSrcweir 
1384*cdf0e10cSrcweir SfxPoolItem* XFillBmpStretchItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
1385*cdf0e10cSrcweir {
1386*cdf0e10cSrcweir 	return new XFillBmpStretchItem( rIn );
1387*cdf0e10cSrcweir }
1388*cdf0e10cSrcweir 
1389*cdf0e10cSrcweir 
1390*cdf0e10cSrcweir /*************************************************************************
1391*cdf0e10cSrcweir |*
1392*cdf0e10cSrcweir |*
1393*cdf0e10cSrcweir |*
1394*cdf0e10cSrcweir |*	  Beschreibung
1395*cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1396*cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1397*cdf0e10cSrcweir |*
1398*cdf0e10cSrcweir *************************************************************************/
1399*cdf0e10cSrcweir 
1400*cdf0e10cSrcweir SfxItemPresentation XFillBmpStretchItem::GetPresentation
1401*cdf0e10cSrcweir (
1402*cdf0e10cSrcweir 	SfxItemPresentation ePres,
1403*cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
1404*cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
1405*cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
1406*cdf0e10cSrcweir )	const
1407*cdf0e10cSrcweir {
1408*cdf0e10cSrcweir 	rText.Erase();
1409*cdf0e10cSrcweir 
1410*cdf0e10cSrcweir 	switch ( ePres )
1411*cdf0e10cSrcweir 	{
1412*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
1413*cdf0e10cSrcweir 			return ePres;
1414*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
1415*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
1416*cdf0e10cSrcweir 			return ePres;
1417*cdf0e10cSrcweir 		default:
1418*cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
1419*cdf0e10cSrcweir 	}
1420*cdf0e10cSrcweir }
1421*cdf0e10cSrcweir 
1422*cdf0e10cSrcweir 
1423*cdf0e10cSrcweir //------------------------------
1424*cdf0e10cSrcweir // class XFillBmpTileOffPosXItem
1425*cdf0e10cSrcweir //------------------------------
1426*cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY( XFillBmpPosOffsetXItem, SfxUInt16Item );
1427*cdf0e10cSrcweir 
1428*cdf0e10cSrcweir /*************************************************************************
1429*cdf0e10cSrcweir |*
1430*cdf0e10cSrcweir |*
1431*cdf0e10cSrcweir |*
1432*cdf0e10cSrcweir |*	  Beschreibung
1433*cdf0e10cSrcweir |*	  Ersterstellung	KA 29.04.96
1434*cdf0e10cSrcweir |*	  Letzte Aenderung	KA 29.04.96
1435*cdf0e10cSrcweir |*
1436*cdf0e10cSrcweir *************************************************************************/
1437*cdf0e10cSrcweir 
1438*cdf0e10cSrcweir XFillBmpPosOffsetXItem::XFillBmpPosOffsetXItem( sal_uInt16 nOffPosX ) :
1439*cdf0e10cSrcweir 			SfxUInt16Item( XATTR_FILLBMP_POSOFFSETX, nOffPosX )
1440*cdf0e10cSrcweir {
1441*cdf0e10cSrcweir }
1442*cdf0e10cSrcweir 
1443*cdf0e10cSrcweir 
1444*cdf0e10cSrcweir /*************************************************************************
1445*cdf0e10cSrcweir |*
1446*cdf0e10cSrcweir |*
1447*cdf0e10cSrcweir |*
1448*cdf0e10cSrcweir |*	  Beschreibung
1449*cdf0e10cSrcweir |*	  Ersterstellung	KA 29.04.96
1450*cdf0e10cSrcweir |*	  Letzte Aenderung	KA 29.04.96
1451*cdf0e10cSrcweir |*
1452*cdf0e10cSrcweir *************************************************************************/
1453*cdf0e10cSrcweir 
1454*cdf0e10cSrcweir XFillBmpPosOffsetXItem::XFillBmpPosOffsetXItem( SvStream& rIn ) :
1455*cdf0e10cSrcweir 			SfxUInt16Item( XATTR_FILLBMP_POSOFFSETX, rIn )
1456*cdf0e10cSrcweir {
1457*cdf0e10cSrcweir }
1458*cdf0e10cSrcweir 
1459*cdf0e10cSrcweir 
1460*cdf0e10cSrcweir /*************************************************************************
1461*cdf0e10cSrcweir |*
1462*cdf0e10cSrcweir |*
1463*cdf0e10cSrcweir |*
1464*cdf0e10cSrcweir |*	  Beschreibung
1465*cdf0e10cSrcweir |*	  Ersterstellung	KA 29.04.96
1466*cdf0e10cSrcweir |*	  Letzte Aenderung	KA 29.04.96
1467*cdf0e10cSrcweir |*
1468*cdf0e10cSrcweir *************************************************************************/
1469*cdf0e10cSrcweir 
1470*cdf0e10cSrcweir SfxPoolItem* XFillBmpPosOffsetXItem::Clone( SfxItemPool* /*pPool*/) const
1471*cdf0e10cSrcweir {
1472*cdf0e10cSrcweir 	return new XFillBmpPosOffsetXItem( *this );
1473*cdf0e10cSrcweir }
1474*cdf0e10cSrcweir 
1475*cdf0e10cSrcweir 
1476*cdf0e10cSrcweir /*************************************************************************
1477*cdf0e10cSrcweir |*
1478*cdf0e10cSrcweir |*
1479*cdf0e10cSrcweir |*
1480*cdf0e10cSrcweir |*	  Beschreibung
1481*cdf0e10cSrcweir |*	  Ersterstellung	KA 29.04.96
1482*cdf0e10cSrcweir |*	  Letzte Aenderung	KA 29.04.96
1483*cdf0e10cSrcweir |*
1484*cdf0e10cSrcweir *************************************************************************/
1485*cdf0e10cSrcweir 
1486*cdf0e10cSrcweir SfxPoolItem* XFillBmpPosOffsetXItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
1487*cdf0e10cSrcweir {
1488*cdf0e10cSrcweir 	return new XFillBmpPosOffsetXItem( rIn );
1489*cdf0e10cSrcweir }
1490*cdf0e10cSrcweir 
1491*cdf0e10cSrcweir 
1492*cdf0e10cSrcweir /*************************************************************************
1493*cdf0e10cSrcweir |*
1494*cdf0e10cSrcweir |*
1495*cdf0e10cSrcweir |*
1496*cdf0e10cSrcweir |*	  Beschreibung
1497*cdf0e10cSrcweir |*	  Ersterstellung	KA 29.04.96
1498*cdf0e10cSrcweir |*	  Letzte Aenderung	KA 29.04.96
1499*cdf0e10cSrcweir |*
1500*cdf0e10cSrcweir *************************************************************************/
1501*cdf0e10cSrcweir 
1502*cdf0e10cSrcweir SfxItemPresentation XFillBmpPosOffsetXItem::GetPresentation
1503*cdf0e10cSrcweir (
1504*cdf0e10cSrcweir 	SfxItemPresentation ePres,
1505*cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
1506*cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
1507*cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
1508*cdf0e10cSrcweir )	const
1509*cdf0e10cSrcweir {
1510*cdf0e10cSrcweir 	rText.Erase();
1511*cdf0e10cSrcweir 
1512*cdf0e10cSrcweir 	switch ( ePres )
1513*cdf0e10cSrcweir 	{
1514*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
1515*cdf0e10cSrcweir 			return ePres;
1516*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
1517*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
1518*cdf0e10cSrcweir 			return ePres;
1519*cdf0e10cSrcweir 		default:
1520*cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
1521*cdf0e10cSrcweir 	}
1522*cdf0e10cSrcweir }
1523*cdf0e10cSrcweir 
1524*cdf0e10cSrcweir 
1525*cdf0e10cSrcweir //------------------------------
1526*cdf0e10cSrcweir // class XFillBmpTileOffPosYItem
1527*cdf0e10cSrcweir //------------------------------
1528*cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY( XFillBmpPosOffsetYItem, SfxUInt16Item );
1529*cdf0e10cSrcweir 
1530*cdf0e10cSrcweir /*************************************************************************
1531*cdf0e10cSrcweir |*
1532*cdf0e10cSrcweir |*
1533*cdf0e10cSrcweir |*
1534*cdf0e10cSrcweir |*	  Beschreibung
1535*cdf0e10cSrcweir |*	  Ersterstellung	KA 29.04.96
1536*cdf0e10cSrcweir |*	  Letzte Aenderung	KA 29.04.96
1537*cdf0e10cSrcweir |*
1538*cdf0e10cSrcweir *************************************************************************/
1539*cdf0e10cSrcweir 
1540*cdf0e10cSrcweir XFillBmpPosOffsetYItem::XFillBmpPosOffsetYItem( sal_uInt16 nOffPosY ) :
1541*cdf0e10cSrcweir 			SfxUInt16Item( XATTR_FILLBMP_POSOFFSETY, nOffPosY )
1542*cdf0e10cSrcweir {
1543*cdf0e10cSrcweir }
1544*cdf0e10cSrcweir 
1545*cdf0e10cSrcweir 
1546*cdf0e10cSrcweir /*************************************************************************
1547*cdf0e10cSrcweir |*
1548*cdf0e10cSrcweir |*
1549*cdf0e10cSrcweir |*
1550*cdf0e10cSrcweir |*	  Beschreibung
1551*cdf0e10cSrcweir |*	  Ersterstellung	KA 29.04.96
1552*cdf0e10cSrcweir |*	  Letzte Aenderung	KA 29.04.96
1553*cdf0e10cSrcweir |*
1554*cdf0e10cSrcweir *************************************************************************/
1555*cdf0e10cSrcweir 
1556*cdf0e10cSrcweir XFillBmpPosOffsetYItem::XFillBmpPosOffsetYItem( SvStream& rIn ) :
1557*cdf0e10cSrcweir 			SfxUInt16Item( XATTR_FILLBMP_POSOFFSETY, rIn )
1558*cdf0e10cSrcweir {
1559*cdf0e10cSrcweir }
1560*cdf0e10cSrcweir 
1561*cdf0e10cSrcweir 
1562*cdf0e10cSrcweir /*************************************************************************
1563*cdf0e10cSrcweir |*
1564*cdf0e10cSrcweir |*
1565*cdf0e10cSrcweir |*
1566*cdf0e10cSrcweir |*	  Beschreibung
1567*cdf0e10cSrcweir |*	  Ersterstellung	KA 29.04.96
1568*cdf0e10cSrcweir |*	  Letzte Aenderung	KA 29.04.96
1569*cdf0e10cSrcweir |*
1570*cdf0e10cSrcweir *************************************************************************/
1571*cdf0e10cSrcweir 
1572*cdf0e10cSrcweir SfxPoolItem* XFillBmpPosOffsetYItem::Clone( SfxItemPool* /*pPool*/) const
1573*cdf0e10cSrcweir {
1574*cdf0e10cSrcweir 	return new XFillBmpPosOffsetYItem( *this );
1575*cdf0e10cSrcweir }
1576*cdf0e10cSrcweir 
1577*cdf0e10cSrcweir 
1578*cdf0e10cSrcweir /*************************************************************************
1579*cdf0e10cSrcweir |*
1580*cdf0e10cSrcweir |*
1581*cdf0e10cSrcweir |*
1582*cdf0e10cSrcweir |*	  Beschreibung
1583*cdf0e10cSrcweir |*	  Ersterstellung	KA 29.04.96
1584*cdf0e10cSrcweir |*	  Letzte Aenderung	KA 29.04.96
1585*cdf0e10cSrcweir |*
1586*cdf0e10cSrcweir *************************************************************************/
1587*cdf0e10cSrcweir 
1588*cdf0e10cSrcweir SfxPoolItem* XFillBmpPosOffsetYItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
1589*cdf0e10cSrcweir {
1590*cdf0e10cSrcweir 	return new XFillBmpPosOffsetYItem( rIn );
1591*cdf0e10cSrcweir }
1592*cdf0e10cSrcweir 
1593*cdf0e10cSrcweir 
1594*cdf0e10cSrcweir /*************************************************************************
1595*cdf0e10cSrcweir |*
1596*cdf0e10cSrcweir |*
1597*cdf0e10cSrcweir |*
1598*cdf0e10cSrcweir |*	  Beschreibung
1599*cdf0e10cSrcweir |*	  Ersterstellung	KA 29.04.96
1600*cdf0e10cSrcweir |*	  Letzte Aenderung	KA 29.04.96
1601*cdf0e10cSrcweir |*
1602*cdf0e10cSrcweir *************************************************************************/
1603*cdf0e10cSrcweir 
1604*cdf0e10cSrcweir SfxItemPresentation XFillBmpPosOffsetYItem::GetPresentation
1605*cdf0e10cSrcweir (
1606*cdf0e10cSrcweir 	SfxItemPresentation ePres,
1607*cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
1608*cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
1609*cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
1610*cdf0e10cSrcweir )	const
1611*cdf0e10cSrcweir {
1612*cdf0e10cSrcweir 	rText.Erase();
1613*cdf0e10cSrcweir 
1614*cdf0e10cSrcweir 	switch ( ePres )
1615*cdf0e10cSrcweir 	{
1616*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
1617*cdf0e10cSrcweir 			return ePres;
1618*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
1619*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
1620*cdf0e10cSrcweir 			return ePres;
1621*cdf0e10cSrcweir 		default:
1622*cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
1623*cdf0e10cSrcweir 	}
1624*cdf0e10cSrcweir }
1625*cdf0e10cSrcweir 
1626*cdf0e10cSrcweir //--------------------------
1627*cdf0e10cSrcweir // class XFillBackgroundItem
1628*cdf0e10cSrcweir //--------------------------
1629*cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY(XFillBackgroundItem, SfxBoolItem);
1630*cdf0e10cSrcweir 
1631*cdf0e10cSrcweir /*************************************************************************
1632*cdf0e10cSrcweir |*
1633*cdf0e10cSrcweir |*	  XFillBackgroundItem::XFillBackgroundItem( sal_Bool )
1634*cdf0e10cSrcweir |*
1635*cdf0e10cSrcweir |*	  Beschreibung
1636*cdf0e10cSrcweir |*	  Ersterstellung	19.11.96 KA
1637*cdf0e10cSrcweir |*	  Letzte Aenderung
1638*cdf0e10cSrcweir |*
1639*cdf0e10cSrcweir *************************************************************************/
1640*cdf0e10cSrcweir 
1641*cdf0e10cSrcweir XFillBackgroundItem::XFillBackgroundItem( sal_Bool bFill ) :
1642*cdf0e10cSrcweir 	SfxBoolItem( XATTR_FILLBACKGROUND, bFill )
1643*cdf0e10cSrcweir {
1644*cdf0e10cSrcweir }
1645*cdf0e10cSrcweir 
1646*cdf0e10cSrcweir /*************************************************************************
1647*cdf0e10cSrcweir |*
1648*cdf0e10cSrcweir |*	  XFillBackgroundItem::XFillBackgroundItem( SvStream& rIn )
1649*cdf0e10cSrcweir |*
1650*cdf0e10cSrcweir |*	  Beschreibung
1651*cdf0e10cSrcweir |*	  Ersterstellung	23.01.96 KA
1652*cdf0e10cSrcweir |*	  Letzte Aenderung	23.01.96 KA
1653*cdf0e10cSrcweir |*
1654*cdf0e10cSrcweir *************************************************************************/
1655*cdf0e10cSrcweir 
1656*cdf0e10cSrcweir XFillBackgroundItem::XFillBackgroundItem( SvStream& rIn ) :
1657*cdf0e10cSrcweir 	SfxBoolItem( XATTR_FILLBACKGROUND, rIn )
1658*cdf0e10cSrcweir {
1659*cdf0e10cSrcweir }
1660*cdf0e10cSrcweir 
1661*cdf0e10cSrcweir /*************************************************************************
1662*cdf0e10cSrcweir |*
1663*cdf0e10cSrcweir |*	  XFillBackgroundItem::Clone( SfxItemPool* pPool ) const
1664*cdf0e10cSrcweir |*
1665*cdf0e10cSrcweir |*	  Beschreibung
1666*cdf0e10cSrcweir |*	  Ersterstellung	23.01.96 KA
1667*cdf0e10cSrcweir |*	  Letzte Aenderung	23.01.96 KA
1668*cdf0e10cSrcweir |*
1669*cdf0e10cSrcweir *************************************************************************/
1670*cdf0e10cSrcweir 
1671*cdf0e10cSrcweir SfxPoolItem* XFillBackgroundItem::Clone( SfxItemPool* /*pPool*/) const
1672*cdf0e10cSrcweir {
1673*cdf0e10cSrcweir 	return new XFillBackgroundItem( *this );
1674*cdf0e10cSrcweir }
1675*cdf0e10cSrcweir 
1676*cdf0e10cSrcweir /*************************************************************************
1677*cdf0e10cSrcweir |*
1678*cdf0e10cSrcweir |*	  SfxPoolItem* XFillBackgroundItem::Create(SvStream& rIn, sal_uInt16 nVer) const
1679*cdf0e10cSrcweir |*
1680*cdf0e10cSrcweir |*	  Beschreibung
1681*cdf0e10cSrcweir |*	  Ersterstellung	23.01.96 KA
1682*cdf0e10cSrcweir |*	  Letzte Aenderung	23.01.96 KA
1683*cdf0e10cSrcweir |*
1684*cdf0e10cSrcweir *************************************************************************/
1685*cdf0e10cSrcweir 
1686*cdf0e10cSrcweir SfxPoolItem* XFillBackgroundItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
1687*cdf0e10cSrcweir {
1688*cdf0e10cSrcweir 	return new XFillBackgroundItem( rIn );
1689*cdf0e10cSrcweir }
1690*cdf0e10cSrcweir 
1691*cdf0e10cSrcweir //------------------------------------------------------------------------
1692*cdf0e10cSrcweir 
1693*cdf0e10cSrcweir SfxItemPresentation XFillBackgroundItem::GetPresentation( SfxItemPresentation ePres, SfxMapUnit /*eCoreUnit*/,
1694*cdf0e10cSrcweir                                                           SfxMapUnit /*ePresUnit*/, XubString& rText, const IntlWrapper*) const
1695*cdf0e10cSrcweir {
1696*cdf0e10cSrcweir 	rText.Erase();
1697*cdf0e10cSrcweir 
1698*cdf0e10cSrcweir 	switch( ePres )
1699*cdf0e10cSrcweir 	{
1700*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
1701*cdf0e10cSrcweir 			return ePres;
1702*cdf0e10cSrcweir 
1703*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
1704*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
1705*cdf0e10cSrcweir 			return ePres;
1706*cdf0e10cSrcweir 		default:
1707*cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
1708*cdf0e10cSrcweir 	}
1709*cdf0e10cSrcweir }
1710*cdf0e10cSrcweir 
1711*cdf0e10cSrcweir 
1712*cdf0e10cSrcweir 
1713