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