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