xref: /aoo42x/main/svx/source/xoutdev/xattr2.cxx (revision d5370dc8)
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>
315aaf853bSArmin 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>
40*d5370dc8SArmin Le Grand #include <svx/AffineMatrixItem.hxx>
41cdf0e10cSrcweir 
42cdf0e10cSrcweir #define GLOBALOVERFLOW
43cdf0e10cSrcweir 
44cdf0e10cSrcweir /************************************************************************/
45cdf0e10cSrcweir 
46cdf0e10cSrcweir //------------------------------
47cdf0e10cSrcweir // class XLineTransparenceItem
48cdf0e10cSrcweir //------------------------------
49cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY(XLineTransparenceItem, SfxUInt16Item);
50cdf0e10cSrcweir 
51cdf0e10cSrcweir /*************************************************************************
52cdf0e10cSrcweir |*
53cdf0e10cSrcweir |*	  XLineTransparenceItem::XLineTransparenceItem(sal_uInt16)
54cdf0e10cSrcweir |*
55cdf0e10cSrcweir |*	  Beschreibung
56cdf0e10cSrcweir |*	  Ersterstellung	07.11.95 KA
57cdf0e10cSrcweir |*	  Letzte Aenderung	07.11.95 KA
58cdf0e10cSrcweir |*
59cdf0e10cSrcweir *************************************************************************/
60cdf0e10cSrcweir 
61cdf0e10cSrcweir XLineTransparenceItem::XLineTransparenceItem(sal_uInt16 nLineTransparence) :
62cdf0e10cSrcweir 	SfxUInt16Item(XATTR_LINETRANSPARENCE, nLineTransparence)
63cdf0e10cSrcweir {
64cdf0e10cSrcweir }
65cdf0e10cSrcweir 
66cdf0e10cSrcweir /*************************************************************************
67cdf0e10cSrcweir |*
68cdf0e10cSrcweir |*	  XLineTransparenceItem::XLineTransparenceItem(SvStream& rIn)
69cdf0e10cSrcweir |*
70cdf0e10cSrcweir |*	  Beschreibung
71cdf0e10cSrcweir |*	  Ersterstellung	07.11.95 KA
72cdf0e10cSrcweir |*	  Letzte Aenderung	07.11.95 KA
73cdf0e10cSrcweir |*
74cdf0e10cSrcweir *************************************************************************/
75cdf0e10cSrcweir 
76cdf0e10cSrcweir XLineTransparenceItem::XLineTransparenceItem(SvStream& rIn) :
77cdf0e10cSrcweir 	SfxUInt16Item(XATTR_LINETRANSPARENCE, rIn)
78cdf0e10cSrcweir {
79cdf0e10cSrcweir }
80cdf0e10cSrcweir 
81cdf0e10cSrcweir /*************************************************************************
82cdf0e10cSrcweir |*
83cdf0e10cSrcweir |*	  XLineTransparenceItem::Clone(SfxItemPool* pPool) const
84cdf0e10cSrcweir |*
85cdf0e10cSrcweir |*	  Beschreibung
86cdf0e10cSrcweir |*	  Ersterstellung	07.11.95 KA
87cdf0e10cSrcweir |*	  Letzte Aenderung	07.11.95 KA
88cdf0e10cSrcweir |*
89cdf0e10cSrcweir *************************************************************************/
90cdf0e10cSrcweir 
91cdf0e10cSrcweir SfxPoolItem* XLineTransparenceItem::Clone(SfxItemPool* /*pPool*/) const
92cdf0e10cSrcweir {
93cdf0e10cSrcweir 	return new XLineTransparenceItem(*this);
94cdf0e10cSrcweir }
95cdf0e10cSrcweir 
96cdf0e10cSrcweir /*************************************************************************
97cdf0e10cSrcweir |*
98cdf0e10cSrcweir |*	  SfxPoolItem* XLineTransparenceItem::Create(SvStream& rIn, sal_uInt16 nVer) const
99cdf0e10cSrcweir |*
100cdf0e10cSrcweir |*	  Beschreibung
101cdf0e10cSrcweir |*	  Ersterstellung	07.11.95 KA
102cdf0e10cSrcweir |*	  Letzte Aenderung	07.11.95 KA
103cdf0e10cSrcweir |*
104cdf0e10cSrcweir *************************************************************************/
105cdf0e10cSrcweir 
106cdf0e10cSrcweir SfxPoolItem* XLineTransparenceItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
107cdf0e10cSrcweir {
108cdf0e10cSrcweir 	return new XLineTransparenceItem(rIn);
109cdf0e10cSrcweir }
110cdf0e10cSrcweir 
111cdf0e10cSrcweir //------------------------------------------------------------------------
112cdf0e10cSrcweir 
113cdf0e10cSrcweir SfxItemPresentation XLineTransparenceItem::GetPresentation
114cdf0e10cSrcweir (
115cdf0e10cSrcweir 	SfxItemPresentation ePres,
116cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
117cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
118cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
119cdf0e10cSrcweir )	const
120cdf0e10cSrcweir {
121cdf0e10cSrcweir 	rText.Erase();
122cdf0e10cSrcweir 
123cdf0e10cSrcweir 	switch ( ePres )
124cdf0e10cSrcweir 	{
125cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
126cdf0e10cSrcweir 			return ePres;
127cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
128cdf0e10cSrcweir 			rText = XubString( ResId( RID_SVXSTR_TRANSPARENCE, DIALOG_MGR() ) );
129cdf0e10cSrcweir 			rText.AppendAscii(": ");
130cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
131cdf0e10cSrcweir 			rText += XubString( UniString::CreateFromInt32((sal_uInt16) GetValue()) );
132cdf0e10cSrcweir 			rText += sal_Unicode('%');
133cdf0e10cSrcweir 			return ePres;
134cdf0e10cSrcweir 		default:
135cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
136cdf0e10cSrcweir 	}
137cdf0e10cSrcweir }
138cdf0e10cSrcweir 
139cdf0e10cSrcweir //-----------------------
140cdf0e10cSrcweir // class XLineJointItem	-
141cdf0e10cSrcweir //-----------------------
142cdf0e10cSrcweir 
143cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY(XLineJointItem, SfxEnumItem);
144cdf0e10cSrcweir 
145cdf0e10cSrcweir // -----------------------------------------------------------------------------
146cdf0e10cSrcweir 
147*d5370dc8SArmin Le Grand XLineJointItem::XLineJointItem( com::sun::star::drawing::LineJoint eLineJoint ) :
148cdf0e10cSrcweir 	SfxEnumItem(XATTR_LINEJOINT, sal::static_int_cast< sal_uInt16 >(eLineJoint))
149cdf0e10cSrcweir {
150cdf0e10cSrcweir }
151cdf0e10cSrcweir 
152cdf0e10cSrcweir // -----------------------------------------------------------------------------
153cdf0e10cSrcweir 
154cdf0e10cSrcweir XLineJointItem::XLineJointItem( SvStream& rIn ) :
155cdf0e10cSrcweir 	SfxEnumItem( XATTR_LINEJOINT, rIn )
156cdf0e10cSrcweir {
157cdf0e10cSrcweir }
158cdf0e10cSrcweir 
159cdf0e10cSrcweir // -----------------------------------------------------------------------------
160cdf0e10cSrcweir 
161cdf0e10cSrcweir sal_uInt16 XLineJointItem::GetVersion( sal_uInt16 /*nFileFormatVersion*/) const
162cdf0e10cSrcweir {
163cdf0e10cSrcweir 	return 1;
164cdf0e10cSrcweir }
165cdf0e10cSrcweir 
166cdf0e10cSrcweir // -----------------------------------------------------------------------------
167cdf0e10cSrcweir 
168cdf0e10cSrcweir SfxPoolItem* XLineJointItem::Create( SvStream& rIn, sal_uInt16 nVer ) const
169cdf0e10cSrcweir {
170cdf0e10cSrcweir 	XLineJointItem* pRet = new XLineJointItem( rIn );
171cdf0e10cSrcweir 
172cdf0e10cSrcweir 	if(nVer < 1)
173*d5370dc8SArmin Le Grand 		pRet->SetValue(com::sun::star::drawing::LineJoint_ROUND);
174cdf0e10cSrcweir 
175cdf0e10cSrcweir 	return pRet;
176cdf0e10cSrcweir }
177cdf0e10cSrcweir 
178cdf0e10cSrcweir // -----------------------------------------------------------------------------
179cdf0e10cSrcweir 
180cdf0e10cSrcweir SfxPoolItem* XLineJointItem::Clone(SfxItemPool* /*pPool*/) const
181cdf0e10cSrcweir {
182cdf0e10cSrcweir 	return new XLineJointItem( *this );
183cdf0e10cSrcweir }
184cdf0e10cSrcweir 
185cdf0e10cSrcweir // -----------------------------------------------------------------------------
186cdf0e10cSrcweir 
187cdf0e10cSrcweir SfxItemPresentation XLineJointItem::GetPresentation( SfxItemPresentation ePres,	SfxMapUnit /*eCoreUnit*/,
188*d5370dc8SArmin Le Grand     SfxMapUnit /*ePresUnit*/, XubString& rText, const IntlWrapper*) const
189cdf0e10cSrcweir {
190cdf0e10cSrcweir 	rText.Erase();
191cdf0e10cSrcweir 
192cdf0e10cSrcweir 	switch( ePres )
193cdf0e10cSrcweir 	{
194cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE: return ePres;
195cdf0e10cSrcweir 
196cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
197cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
198cdf0e10cSrcweir 		{
199cdf0e10cSrcweir 			sal_uInt16 nId = 0;
200cdf0e10cSrcweir 
201cdf0e10cSrcweir 			switch( GetValue() )
202cdf0e10cSrcweir 			{
203*d5370dc8SArmin Le Grand 				case( com::sun::star::drawing::LineJoint_NONE ):
204cdf0e10cSrcweir 					nId = RID_SVXSTR_LINEJOINT_NONE;
205cdf0e10cSrcweir 				break;
206cdf0e10cSrcweir 
207*d5370dc8SArmin Le Grand 				case( com::sun::star::drawing::LineJoint_MIDDLE ):
208cdf0e10cSrcweir 					nId = RID_SVXSTR_LINEJOINT_MIDDLE;
209cdf0e10cSrcweir 				break;
210cdf0e10cSrcweir 
211cdf0e10cSrcweir 
212*d5370dc8SArmin Le Grand 				case( com::sun::star::drawing::LineJoint_BEVEL ):
213cdf0e10cSrcweir 					nId = RID_SVXSTR_LINEJOINT_BEVEL;
214cdf0e10cSrcweir 				break;
215cdf0e10cSrcweir 
216cdf0e10cSrcweir 
217*d5370dc8SArmin Le Grand 				case( com::sun::star::drawing::LineJoint_MITER ):
218cdf0e10cSrcweir 					nId = RID_SVXSTR_LINEJOINT_MITER;
219cdf0e10cSrcweir 				break;
220cdf0e10cSrcweir 
221cdf0e10cSrcweir 
222*d5370dc8SArmin Le Grand 				case( com::sun::star::drawing::LineJoint_ROUND ):
223cdf0e10cSrcweir 					nId = RID_SVXSTR_LINEJOINT_ROUND;
224cdf0e10cSrcweir 				break;
225cdf0e10cSrcweir 			}
226cdf0e10cSrcweir 
227cdf0e10cSrcweir 			if( nId )
228cdf0e10cSrcweir 				rText = SVX_RESSTR( nId );
229cdf0e10cSrcweir 
230cdf0e10cSrcweir 			return ePres;
231cdf0e10cSrcweir 		}
232cdf0e10cSrcweir 		default:
233cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
234cdf0e10cSrcweir 	}
235cdf0e10cSrcweir }
236cdf0e10cSrcweir 
237cdf0e10cSrcweir // -----------------------------------------------------------------------------
238cdf0e10cSrcweir 
239cdf0e10cSrcweir sal_Bool XLineJointItem::QueryValue( ::com::sun::star::uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
240cdf0e10cSrcweir {
241*d5370dc8SArmin Le Grand 	const ::com::sun::star::drawing::LineJoint eJoint = GetValue();
242cdf0e10cSrcweir 	rVal <<= eJoint;
243cdf0e10cSrcweir 	return sal_True;
244cdf0e10cSrcweir }
245cdf0e10cSrcweir 
246cdf0e10cSrcweir // -----------------------------------------------------------------------------
247cdf0e10cSrcweir 
248cdf0e10cSrcweir sal_Bool XLineJointItem::PutValue( const ::com::sun::star::uno::Any& rVal, sal_uInt8 /*nMemberId*/)
249cdf0e10cSrcweir {
250cdf0e10cSrcweir 	::com::sun::star::drawing::LineJoint eUnoJoint;
251cdf0e10cSrcweir 
252cdf0e10cSrcweir 	if(!(rVal >>= eUnoJoint))
253cdf0e10cSrcweir     {
254cdf0e10cSrcweir         // also try an int (for Basic)
255cdf0e10cSrcweir         sal_Int32 nLJ = 0;
256cdf0e10cSrcweir         if(!(rVal >>= nLJ))
257cdf0e10cSrcweir             return sal_False;
258cdf0e10cSrcweir         eUnoJoint = (::com::sun::star::drawing::LineJoint)nLJ;
259cdf0e10cSrcweir     }
260cdf0e10cSrcweir 
261*d5370dc8SArmin Le Grand 	SetValue( sal::static_int_cast< sal_uInt16 >( eUnoJoint ) );
262cdf0e10cSrcweir 
263cdf0e10cSrcweir 	return sal_True;
264cdf0e10cSrcweir }
265cdf0e10cSrcweir 
266cdf0e10cSrcweir // -----------------------------------------------------------------------------
267cdf0e10cSrcweir 
268cdf0e10cSrcweir sal_uInt16 XLineJointItem::GetValueCount() const
269cdf0e10cSrcweir {
270cdf0e10cSrcweir 	// don't forget to update the api interface also
271cdf0e10cSrcweir 	return 5;
272cdf0e10cSrcweir }
273cdf0e10cSrcweir 
274*d5370dc8SArmin Le Grand //---------------------
275*d5370dc8SArmin Le Grand // class AffineMatrixItem
276*d5370dc8SArmin Le Grand //---------------------
277*d5370dc8SArmin Le Grand 
278*d5370dc8SArmin Le Grand TYPEINIT1_AUTOFACTORY(AffineMatrixItem, SfxPoolItem);
279*d5370dc8SArmin Le Grand 
280*d5370dc8SArmin Le Grand AffineMatrixItem::AffineMatrixItem(const com::sun::star::geometry::AffineMatrix2D* pMatrix)
281*d5370dc8SArmin Le Grand :   SfxPoolItem(SID_ATTR_TRANSFORM_MATRIX)
282*d5370dc8SArmin Le Grand {
283*d5370dc8SArmin Le Grand     if(pMatrix)
284*d5370dc8SArmin Le Grand     {
285*d5370dc8SArmin Le Grand         maMatrix = *pMatrix;
286*d5370dc8SArmin Le Grand     }
287*d5370dc8SArmin Le Grand     else
288*d5370dc8SArmin Le Grand     {
289*d5370dc8SArmin Le Grand         maMatrix.m00 = 1.0;
290*d5370dc8SArmin Le Grand         maMatrix.m01 = 0.0;
291*d5370dc8SArmin Le Grand         maMatrix.m02 = 0.0;
292*d5370dc8SArmin Le Grand         maMatrix.m10 = 0.0;
293*d5370dc8SArmin Le Grand         maMatrix.m11 = 1.0;
294*d5370dc8SArmin Le Grand         maMatrix.m12 = 0.0;
295*d5370dc8SArmin Le Grand     }
296*d5370dc8SArmin Le Grand }
297*d5370dc8SArmin Le Grand 
298*d5370dc8SArmin Le Grand AffineMatrixItem::AffineMatrixItem(SvStream& rIn)
299*d5370dc8SArmin Le Grand :   SfxPoolItem(SID_ATTR_TRANSFORM_MATRIX)
300*d5370dc8SArmin Le Grand {
301*d5370dc8SArmin Le Grand     rIn >> maMatrix.m00;
302*d5370dc8SArmin Le Grand     rIn >> maMatrix.m01;
303*d5370dc8SArmin Le Grand     rIn >> maMatrix.m02;
304*d5370dc8SArmin Le Grand     rIn >> maMatrix.m10;
305*d5370dc8SArmin Le Grand     rIn >> maMatrix.m11;
306*d5370dc8SArmin Le Grand     rIn >> maMatrix.m12;
307*d5370dc8SArmin Le Grand }
308*d5370dc8SArmin Le Grand 
309*d5370dc8SArmin Le Grand AffineMatrixItem::AffineMatrixItem(const AffineMatrixItem& rRef)
310*d5370dc8SArmin Le Grand :   SfxPoolItem(SID_ATTR_TRANSFORM_MATRIX)
311*d5370dc8SArmin Le Grand {
312*d5370dc8SArmin Le Grand     maMatrix = rRef.maMatrix;
313*d5370dc8SArmin Le Grand }
314*d5370dc8SArmin Le Grand 
315*d5370dc8SArmin Le Grand AffineMatrixItem::~AffineMatrixItem()
316*d5370dc8SArmin Le Grand {
317*d5370dc8SArmin Le Grand }
318*d5370dc8SArmin Le Grand 
319*d5370dc8SArmin Le Grand int AffineMatrixItem::operator==(const SfxPoolItem& rRef) const
320*d5370dc8SArmin Le Grand {
321*d5370dc8SArmin Le Grand     if(!SfxPoolItem::operator==(rRef))
322*d5370dc8SArmin Le Grand     {
323*d5370dc8SArmin Le Grand         return 0;
324*d5370dc8SArmin Le Grand     }
325*d5370dc8SArmin Le Grand 
326*d5370dc8SArmin Le Grand     const AffineMatrixItem* pRef = dynamic_cast< const AffineMatrixItem* >(&rRef);
327*d5370dc8SArmin Le Grand 
328*d5370dc8SArmin Le Grand     if(!pRef)
329*d5370dc8SArmin Le Grand     {
330*d5370dc8SArmin Le Grand         return 0;
331*d5370dc8SArmin Le Grand     }
332*d5370dc8SArmin Le Grand 
333*d5370dc8SArmin Le Grand     return (maMatrix.m00 == pRef->maMatrix.m00
334*d5370dc8SArmin Le Grand         && maMatrix.m01 == pRef->maMatrix.m01
335*d5370dc8SArmin Le Grand         && maMatrix.m02 == pRef->maMatrix.m02
336*d5370dc8SArmin Le Grand         && maMatrix.m10 == pRef->maMatrix.m10
337*d5370dc8SArmin Le Grand         && maMatrix.m11 == pRef->maMatrix.m11
338*d5370dc8SArmin Le Grand         && maMatrix.m12 == pRef->maMatrix.m12);
339*d5370dc8SArmin Le Grand }
340*d5370dc8SArmin Le Grand 
341*d5370dc8SArmin Le Grand SfxPoolItem* AffineMatrixItem::Clone( SfxItemPool* /*pPool*/ ) const
342*d5370dc8SArmin Le Grand {
343*d5370dc8SArmin Le Grand     return new AffineMatrixItem(*this);
344*d5370dc8SArmin Le Grand }
345*d5370dc8SArmin Le Grand 
346*d5370dc8SArmin Le Grand SfxPoolItem* AffineMatrixItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/ ) const
347*d5370dc8SArmin Le Grand {
348*d5370dc8SArmin Le Grand     return new AffineMatrixItem(rIn);
349*d5370dc8SArmin Le Grand }
350*d5370dc8SArmin Le Grand 
351*d5370dc8SArmin Le Grand SvStream& AffineMatrixItem::Store(SvStream &rStream, sal_uInt16 /*nItemVersion*/ ) const
352*d5370dc8SArmin Le Grand {
353*d5370dc8SArmin Le Grand     rStream << maMatrix.m00;
354*d5370dc8SArmin Le Grand     rStream << maMatrix.m01;
355*d5370dc8SArmin Le Grand     rStream << maMatrix.m02;
356*d5370dc8SArmin Le Grand     rStream << maMatrix.m10;
357*d5370dc8SArmin Le Grand     rStream << maMatrix.m11;
358*d5370dc8SArmin Le Grand     rStream << maMatrix.m12;
359*d5370dc8SArmin Le Grand     return rStream;
360*d5370dc8SArmin Le Grand }
361*d5370dc8SArmin Le Grand 
362*d5370dc8SArmin Le Grand sal_Bool AffineMatrixItem::QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) const
363*d5370dc8SArmin Le Grand {
364*d5370dc8SArmin Le Grand     rVal <<= maMatrix;
365*d5370dc8SArmin Le Grand     return sal_True;
366*d5370dc8SArmin Le Grand }
367*d5370dc8SArmin Le Grand 
368*d5370dc8SArmin Le Grand sal_Bool AffineMatrixItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId )
369*d5370dc8SArmin Le Grand {
370*d5370dc8SArmin Le Grand     if (rVal >>= maMatrix)
371*d5370dc8SArmin Le Grand     {
372*d5370dc8SArmin Le Grand         return sal_True;
373*d5370dc8SArmin Le Grand     }
374*d5370dc8SArmin Le Grand 
375*d5370dc8SArmin Le Grand     DBG_ERROR( "AffineMatrixItem::PutValue - Wrong type!" );
376*d5370dc8SArmin Le Grand     return sal_False;
377*d5370dc8SArmin Le Grand }
378*d5370dc8SArmin Le Grand 
379*d5370dc8SArmin Le Grand const com::sun::star::geometry::AffineMatrix2D& AffineMatrixItem::GetAffineMatrix2D() const
380*d5370dc8SArmin Le Grand {
381*d5370dc8SArmin Le Grand     return maMatrix;
382*d5370dc8SArmin Le Grand }
383*d5370dc8SArmin Le Grand 
3845aaf853bSArmin Le Grand //-----------------------
3855aaf853bSArmin Le Grand // class XLineCapItem -
3865aaf853bSArmin Le Grand //-----------------------
3875aaf853bSArmin Le Grand 
3885aaf853bSArmin Le Grand TYPEINIT1_AUTOFACTORY(XLineCapItem, SfxEnumItem);
3895aaf853bSArmin Le Grand 
3905aaf853bSArmin Le Grand // -----------------------------------------------------------------------------
3915aaf853bSArmin Le Grand 
3925aaf853bSArmin Le Grand XLineCapItem::XLineCapItem(com::sun::star::drawing::LineCap eLineCap)
3935aaf853bSArmin Le Grand :   SfxEnumItem(XATTR_LINECAP, sal::static_int_cast< sal_uInt16 >(eLineCap))
3945aaf853bSArmin Le Grand {
3955aaf853bSArmin Le Grand }
3965aaf853bSArmin Le Grand 
3975aaf853bSArmin Le Grand // -----------------------------------------------------------------------------
3985aaf853bSArmin Le Grand 
3995aaf853bSArmin Le Grand XLineCapItem::XLineCapItem( SvStream& rIn )
4005aaf853bSArmin Le Grand :   SfxEnumItem(XATTR_LINECAP, rIn)
4015aaf853bSArmin Le Grand {
4025aaf853bSArmin Le Grand }
4035aaf853bSArmin Le Grand 
4045aaf853bSArmin Le Grand // -----------------------------------------------------------------------------
4055aaf853bSArmin Le Grand 
4065aaf853bSArmin Le Grand sal_uInt16 XLineCapItem::GetVersion( sal_uInt16 /*nFileFormatVersion*/) const
4075aaf853bSArmin Le Grand {
4085aaf853bSArmin Le Grand     return 1;
4095aaf853bSArmin Le Grand }
4105aaf853bSArmin Le Grand 
4115aaf853bSArmin Le Grand // -----------------------------------------------------------------------------
4125aaf853bSArmin Le Grand 
4135aaf853bSArmin Le Grand SfxPoolItem* XLineCapItem::Create( SvStream& rIn, sal_uInt16 nVer ) const
4145aaf853bSArmin Le Grand {
4155aaf853bSArmin Le Grand     XLineCapItem* pRet = new XLineCapItem( rIn );
4165aaf853bSArmin Le Grand 
4175aaf853bSArmin Le Grand     if(nVer < 1)
4185aaf853bSArmin Le Grand         pRet->SetValue(com::sun::star::drawing::LineCap_BUTT);
4195aaf853bSArmin Le Grand 
4205aaf853bSArmin Le Grand     return pRet;
4215aaf853bSArmin Le Grand }
4225aaf853bSArmin Le Grand 
4235aaf853bSArmin Le Grand // -----------------------------------------------------------------------------
4245aaf853bSArmin Le Grand 
4255aaf853bSArmin Le Grand SfxPoolItem* XLineCapItem::Clone(SfxItemPool* /*pPool*/) const
4265aaf853bSArmin Le Grand {
4275aaf853bSArmin Le Grand     return new XLineCapItem( *this );
4285aaf853bSArmin Le Grand }
4295aaf853bSArmin Le Grand 
4305aaf853bSArmin Le Grand // -----------------------------------------------------------------------------
4315aaf853bSArmin Le Grand 
4325aaf853bSArmin Le Grand SfxItemPresentation XLineCapItem::GetPresentation( SfxItemPresentation ePres, SfxMapUnit /*eCoreUnit*/,
4335aaf853bSArmin Le Grand                                                      SfxMapUnit /*ePresUnit*/, XubString& rText, const IntlWrapper*) const
4345aaf853bSArmin Le Grand {
4355aaf853bSArmin Le Grand     rText.Erase();
4365aaf853bSArmin Le Grand 
4375aaf853bSArmin Le Grand     switch( ePres )
4385aaf853bSArmin Le Grand     {
4395aaf853bSArmin Le Grand         case SFX_ITEM_PRESENTATION_NONE: return ePres;
4405aaf853bSArmin Le Grand 
4415aaf853bSArmin Le Grand         case SFX_ITEM_PRESENTATION_COMPLETE:
4425aaf853bSArmin Le Grand         case SFX_ITEM_PRESENTATION_NAMELESS:
4435aaf853bSArmin Le Grand         {
4445aaf853bSArmin Le Grand             sal_uInt16 nId = 0;
4455aaf853bSArmin Le Grand 
4465aaf853bSArmin Le Grand             switch( GetValue() )
4475aaf853bSArmin Le Grand             {
4485aaf853bSArmin Le Grand                 default: /*com::sun::star::drawing::LineCap_BUTT*/
4495aaf853bSArmin Le Grand                     nId = RID_SVXSTR_LINECAP_BUTT;
4505aaf853bSArmin Le Grand                 break;
4515aaf853bSArmin Le Grand 
4525aaf853bSArmin Le Grand                 case(com::sun::star::drawing::LineCap_ROUND):
4535aaf853bSArmin Le Grand                     nId = RID_SVXSTR_LINECAP_ROUND;
4545aaf853bSArmin Le Grand                 break;
4555aaf853bSArmin Le Grand 
4565aaf853bSArmin Le Grand                 case(com::sun::star::drawing::LineCap_SQUARE):
4575aaf853bSArmin Le Grand                     nId = RID_SVXSTR_LINECAP_SQUARE;
4585aaf853bSArmin Le Grand                 break;
4595aaf853bSArmin Le Grand             }
4605aaf853bSArmin Le Grand 
4615aaf853bSArmin Le Grand             if( nId )
4625aaf853bSArmin Le Grand                 rText = SVX_RESSTR( nId );
4635aaf853bSArmin Le Grand 
4645aaf853bSArmin Le Grand             return ePres;
4655aaf853bSArmin Le Grand         }
4665aaf853bSArmin Le Grand         default:
4675aaf853bSArmin Le Grand             return SFX_ITEM_PRESENTATION_NONE;
4685aaf853bSArmin Le Grand     }
4695aaf853bSArmin Le Grand }
4705aaf853bSArmin Le Grand 
4715aaf853bSArmin Le Grand // -----------------------------------------------------------------------------
4725aaf853bSArmin Le Grand 
4735aaf853bSArmin Le Grand sal_Bool XLineCapItem::QueryValue( ::com::sun::star::uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
4745aaf853bSArmin Le Grand {
4755aaf853bSArmin Le Grand     const com::sun::star::drawing::LineCap eCap(GetValue());
4765aaf853bSArmin Le Grand     rVal <<= eCap;
4775aaf853bSArmin Le Grand     return true;
4785aaf853bSArmin Le Grand }
4795aaf853bSArmin Le Grand 
4805aaf853bSArmin Le Grand // -----------------------------------------------------------------------------
4815aaf853bSArmin Le Grand 
4825aaf853bSArmin Le Grand sal_Bool XLineCapItem::PutValue( const ::com::sun::star::uno::Any& rVal, sal_uInt8 /*nMemberId*/)
4835aaf853bSArmin Le Grand {
4845aaf853bSArmin Le Grand     com::sun::star::drawing::LineCap eUnoCap;
4855aaf853bSArmin Le Grand 
4865aaf853bSArmin Le Grand     if(!(rVal >>= eUnoCap))
4875aaf853bSArmin Le Grand     {
4885aaf853bSArmin Le Grand         // also try an int (for Basic)
4895aaf853bSArmin Le Grand         sal_Int32 nLJ(0);
4905aaf853bSArmin Le Grand 
4915aaf853bSArmin Le Grand         if(!(rVal >>= nLJ))
4925aaf853bSArmin Le Grand         {
4935aaf853bSArmin Le Grand             return false;
4945aaf853bSArmin Le Grand         }
4955aaf853bSArmin Le Grand 
4965aaf853bSArmin Le Grand         eUnoCap = (com::sun::star::drawing::LineCap)nLJ;
4975aaf853bSArmin Le Grand     }
4985aaf853bSArmin Le Grand 
4995aaf853bSArmin Le Grand     OSL_ENSURE(com::sun::star::drawing::LineCap_BUTT == eUnoCap
5005aaf853bSArmin Le Grand         || com::sun::star::drawing::LineCap_ROUND == eUnoCap
5015aaf853bSArmin Le Grand         || com::sun::star::drawing::LineCap_SQUARE == eUnoCap, "Unknown enum value in XATTR_LINECAP (!)");
5025aaf853bSArmin Le Grand 
5035aaf853bSArmin Le Grand     SetValue(sal::static_int_cast< sal_uInt16 >(eUnoCap));
5045aaf853bSArmin Le Grand 
5055aaf853bSArmin Le Grand     return true;
5065aaf853bSArmin Le Grand }
5075aaf853bSArmin Le Grand 
5085aaf853bSArmin Le Grand // -----------------------------------------------------------------------------
5095aaf853bSArmin Le Grand 
5105aaf853bSArmin Le Grand sal_uInt16 XLineCapItem::GetValueCount() const
5115aaf853bSArmin Le Grand {
5125aaf853bSArmin Le Grand     // don't forget to update the api interface also
5135aaf853bSArmin Le Grand     return 3;
5145aaf853bSArmin Le Grand }
5155aaf853bSArmin Le Grand 
5165aaf853bSArmin Le Grand // -----------------------------------------------------------------------------
5175aaf853bSArmin Le Grand 
5185aaf853bSArmin Le Grand com::sun::star::drawing::LineCap XLineCapItem::GetValue() const
5195aaf853bSArmin Le Grand {
5205aaf853bSArmin Le Grand     const com::sun::star::drawing::LineCap eRetval((com::sun::star::drawing::LineCap)SfxEnumItem::GetValue());
5215aaf853bSArmin Le Grand     OSL_ENSURE(com::sun::star::drawing::LineCap_BUTT == eRetval
5225aaf853bSArmin Le Grand         || com::sun::star::drawing::LineCap_ROUND == eRetval
5235aaf853bSArmin Le Grand         || com::sun::star::drawing::LineCap_SQUARE == eRetval, "Unknown enum value in XATTR_LINECAP (!)");
5245aaf853bSArmin Le Grand 
5253324c5beSArmin Le Grand     return eRetval;
5265aaf853bSArmin Le Grand }
5275aaf853bSArmin Le Grand 
528cdf0e10cSrcweir //------------------------------
529cdf0e10cSrcweir // class XFillTransparenceItem
530cdf0e10cSrcweir //------------------------------
531cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY(XFillTransparenceItem, SfxUInt16Item);
532cdf0e10cSrcweir 
533cdf0e10cSrcweir /*************************************************************************
534cdf0e10cSrcweir |*
535cdf0e10cSrcweir |*	  XFillTransparenceItem::XFillTransparenceItem(sal_uInt16)
536cdf0e10cSrcweir |*
537cdf0e10cSrcweir |*	  Beschreibung
538cdf0e10cSrcweir |*	  Ersterstellung	07.11.95 KA
539cdf0e10cSrcweir |*	  Letzte Aenderung	07.11.95 KA
540cdf0e10cSrcweir |*
541cdf0e10cSrcweir *************************************************************************/
542cdf0e10cSrcweir 
543cdf0e10cSrcweir XFillTransparenceItem::XFillTransparenceItem(sal_uInt16 nFillTransparence) :
544cdf0e10cSrcweir 	SfxUInt16Item(XATTR_FILLTRANSPARENCE, nFillTransparence)
545cdf0e10cSrcweir {
546cdf0e10cSrcweir }
547cdf0e10cSrcweir 
548cdf0e10cSrcweir /*************************************************************************
549cdf0e10cSrcweir |*
550cdf0e10cSrcweir |*	  XFillTransparenceItem::XFillTransparenceItem(SvStream& rIn)
551cdf0e10cSrcweir |*
552cdf0e10cSrcweir |*	  Beschreibung
553cdf0e10cSrcweir |*	  Ersterstellung	07.11.95 KA
554cdf0e10cSrcweir |*	  Letzte Aenderung	07.11.95 KA
555cdf0e10cSrcweir |*
556cdf0e10cSrcweir *************************************************************************/
557cdf0e10cSrcweir 
558cdf0e10cSrcweir XFillTransparenceItem::XFillTransparenceItem(SvStream& rIn) :
559cdf0e10cSrcweir 	SfxUInt16Item(XATTR_FILLTRANSPARENCE, rIn)
560cdf0e10cSrcweir {
561cdf0e10cSrcweir }
562cdf0e10cSrcweir 
563cdf0e10cSrcweir /*************************************************************************
564cdf0e10cSrcweir |*
565cdf0e10cSrcweir |*	  XFillTransparenceItem::Clone(SfxItemPool* pPool) const
566cdf0e10cSrcweir |*
567cdf0e10cSrcweir |*	  Beschreibung
568cdf0e10cSrcweir |*	  Ersterstellung	07.11.95 KA
569cdf0e10cSrcweir |*	  Letzte Aenderung	07.11.95 KA
570cdf0e10cSrcweir |*
571cdf0e10cSrcweir *************************************************************************/
572cdf0e10cSrcweir 
573cdf0e10cSrcweir SfxPoolItem* XFillTransparenceItem::Clone(SfxItemPool* /*pPool*/) const
574cdf0e10cSrcweir {
575cdf0e10cSrcweir 	return new XFillTransparenceItem(*this);
576cdf0e10cSrcweir }
577cdf0e10cSrcweir 
578cdf0e10cSrcweir /*************************************************************************
579cdf0e10cSrcweir |*
580cdf0e10cSrcweir |*	  SfxPoolItem* XFillTransparenceItem::Create(SvStream& rIn, sal_uInt16 nVer) const
581cdf0e10cSrcweir |*
582cdf0e10cSrcweir |*	  Beschreibung
583cdf0e10cSrcweir |*	  Ersterstellung	07.11.95 KA
584cdf0e10cSrcweir |*	  Letzte Aenderung	07.11.95 KA
585cdf0e10cSrcweir |*
586cdf0e10cSrcweir *************************************************************************/
587cdf0e10cSrcweir 
588cdf0e10cSrcweir SfxPoolItem* XFillTransparenceItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
589cdf0e10cSrcweir {
590cdf0e10cSrcweir 	return new XFillTransparenceItem(rIn);
591cdf0e10cSrcweir }
592cdf0e10cSrcweir 
593cdf0e10cSrcweir //------------------------------------------------------------------------
594cdf0e10cSrcweir 
595cdf0e10cSrcweir SfxItemPresentation XFillTransparenceItem::GetPresentation
596cdf0e10cSrcweir (
597cdf0e10cSrcweir 	SfxItemPresentation ePres,
598cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
599cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
600cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
601cdf0e10cSrcweir )	const
602cdf0e10cSrcweir {
603cdf0e10cSrcweir 	rText.Erase();
604cdf0e10cSrcweir 
605cdf0e10cSrcweir 	switch ( ePres )
606cdf0e10cSrcweir 	{
607cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
608cdf0e10cSrcweir 			return ePres;
609cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
610cdf0e10cSrcweir 			rText = XubString( ResId( RID_SVXSTR_TRANSPARENCE, DIALOG_MGR() ) );
611cdf0e10cSrcweir 			rText.AppendAscii(": ");
612cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
613cdf0e10cSrcweir 			rText += XubString( UniString::CreateFromInt32((sal_uInt16) GetValue() ));
614cdf0e10cSrcweir 			rText += sal_Unicode('%');
615cdf0e10cSrcweir 			return ePres;
616cdf0e10cSrcweir 		default:
617cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
618cdf0e10cSrcweir 	}
619cdf0e10cSrcweir }
620cdf0e10cSrcweir 
621cdf0e10cSrcweir //------------------------------
622cdf0e10cSrcweir // class XFormTextShadowTranspItem
623cdf0e10cSrcweir //------------------------------
624cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY(XFormTextShadowTranspItem, SfxUInt16Item);
625cdf0e10cSrcweir 
626cdf0e10cSrcweir /*************************************************************************
627cdf0e10cSrcweir |*
628cdf0e10cSrcweir |*	  XFormTextShadowTranspItem::XFormTextShadowTranspItem(sal_uInt16)
629cdf0e10cSrcweir |*
630cdf0e10cSrcweir |*	  Beschreibung
631cdf0e10cSrcweir |*	  Ersterstellung	09.11.95 KA
632cdf0e10cSrcweir |*	  Letzte Aenderung	09.11.95 KA
633cdf0e10cSrcweir |*
634cdf0e10cSrcweir *************************************************************************/
635cdf0e10cSrcweir 
636cdf0e10cSrcweir XFormTextShadowTranspItem::XFormTextShadowTranspItem(sal_uInt16 nShdwTransparence) :
637cdf0e10cSrcweir 	SfxUInt16Item(XATTR_FORMTXTSHDWTRANSP, nShdwTransparence)
638cdf0e10cSrcweir {
639cdf0e10cSrcweir }
640cdf0e10cSrcweir 
641cdf0e10cSrcweir /*************************************************************************
642cdf0e10cSrcweir |*
643cdf0e10cSrcweir |*	  XFormTextShadowTranspItem::XFormTextShadowTranspItem(SvStream& rIn)
644cdf0e10cSrcweir |*
645cdf0e10cSrcweir |*	  Beschreibung
646cdf0e10cSrcweir |*	  Ersterstellung	09.11.95 KA
647cdf0e10cSrcweir |*	  Letzte Aenderung	09.11.95 KA
648cdf0e10cSrcweir |*
649cdf0e10cSrcweir *************************************************************************/
650cdf0e10cSrcweir 
651cdf0e10cSrcweir XFormTextShadowTranspItem::XFormTextShadowTranspItem(SvStream& rIn) :
652cdf0e10cSrcweir 	SfxUInt16Item(XATTR_FORMTXTSHDWTRANSP, rIn)
653cdf0e10cSrcweir {
654cdf0e10cSrcweir }
655cdf0e10cSrcweir 
656cdf0e10cSrcweir /*************************************************************************
657cdf0e10cSrcweir |*
658cdf0e10cSrcweir |*	  XFormTextShadowTranspItem::Clone(SfxItemPool* pPool) const
659cdf0e10cSrcweir |*
660cdf0e10cSrcweir |*	  Beschreibung
661cdf0e10cSrcweir |*	  Ersterstellung	09.11.95 KA
662cdf0e10cSrcweir |*	  Letzte Aenderung	09.11.95 KA
663cdf0e10cSrcweir |*
664cdf0e10cSrcweir *************************************************************************/
665cdf0e10cSrcweir 
666cdf0e10cSrcweir SfxPoolItem* XFormTextShadowTranspItem::Clone(SfxItemPool* /*pPool*/) const
667cdf0e10cSrcweir {
668cdf0e10cSrcweir 	return new XFormTextShadowTranspItem(*this);
669cdf0e10cSrcweir }
670cdf0e10cSrcweir 
671cdf0e10cSrcweir /*************************************************************************
672cdf0e10cSrcweir |*
673cdf0e10cSrcweir |*	  SfxPoolItem* XFormTextShadowTranspItem::Create(SvStream& rIn, sal_uInt16 nVer) const
674cdf0e10cSrcweir |*
675cdf0e10cSrcweir |*	  Beschreibung
676cdf0e10cSrcweir |*	  Ersterstellung	09.11.95 KA
677cdf0e10cSrcweir |*	  Letzte Aenderung	09.11.95 KA
678cdf0e10cSrcweir |*
679cdf0e10cSrcweir *************************************************************************/
680cdf0e10cSrcweir 
681cdf0e10cSrcweir SfxPoolItem* XFormTextShadowTranspItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
682cdf0e10cSrcweir {
683cdf0e10cSrcweir 	return new XFormTextShadowTranspItem(rIn);
684cdf0e10cSrcweir }
685cdf0e10cSrcweir 
686cdf0e10cSrcweir 
687cdf0e10cSrcweir //------------------------------
688cdf0e10cSrcweir // class XFillGradientStepCountItem
689cdf0e10cSrcweir //------------------------------
690cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY(XGradientStepCountItem, SfxUInt16Item);
691cdf0e10cSrcweir 
692cdf0e10cSrcweir /*************************************************************************
693cdf0e10cSrcweir |*
694cdf0e10cSrcweir |*	  XGradientStepCountItem::XGradientStepCountItem( sal_uInt16 )
695cdf0e10cSrcweir |*
696cdf0e10cSrcweir |*	  Beschreibung
697cdf0e10cSrcweir |*	  Ersterstellung	23.01.96 KA
698cdf0e10cSrcweir |*	  Letzte Aenderung	23.01.96 KA
699cdf0e10cSrcweir |*
700cdf0e10cSrcweir *************************************************************************/
701cdf0e10cSrcweir 
702cdf0e10cSrcweir XGradientStepCountItem::XGradientStepCountItem( sal_uInt16 nStepCount ) :
703cdf0e10cSrcweir 	SfxUInt16Item( XATTR_GRADIENTSTEPCOUNT, nStepCount )
704cdf0e10cSrcweir {
705cdf0e10cSrcweir }
706cdf0e10cSrcweir 
707cdf0e10cSrcweir /*************************************************************************
708cdf0e10cSrcweir |*
709cdf0e10cSrcweir |*	  XGradientStepCountItem::XGradientStepCountItem( SvStream& rIn )
710cdf0e10cSrcweir |*
711cdf0e10cSrcweir |*	  Beschreibung
712cdf0e10cSrcweir |*	  Ersterstellung	23.01.96 KA
713cdf0e10cSrcweir |*	  Letzte Aenderung	23.01.96 KA
714cdf0e10cSrcweir |*
715cdf0e10cSrcweir *************************************************************************/
716cdf0e10cSrcweir 
717cdf0e10cSrcweir XGradientStepCountItem::XGradientStepCountItem( SvStream& rIn ) :
718cdf0e10cSrcweir 	SfxUInt16Item( XATTR_GRADIENTSTEPCOUNT, rIn )
719cdf0e10cSrcweir {
720cdf0e10cSrcweir }
721cdf0e10cSrcweir 
722cdf0e10cSrcweir /*************************************************************************
723cdf0e10cSrcweir |*
724cdf0e10cSrcweir |*	  XGradientStepCountItem::Clone( SfxItemPool* pPool ) const
725cdf0e10cSrcweir |*
726cdf0e10cSrcweir |*	  Beschreibung
727cdf0e10cSrcweir |*	  Ersterstellung	23.01.96 KA
728cdf0e10cSrcweir |*	  Letzte Aenderung	23.01.96 KA
729cdf0e10cSrcweir |*
730cdf0e10cSrcweir *************************************************************************/
731cdf0e10cSrcweir 
732cdf0e10cSrcweir SfxPoolItem* XGradientStepCountItem::Clone( SfxItemPool* /*pPool*/) const
733cdf0e10cSrcweir {
734cdf0e10cSrcweir 	return new XGradientStepCountItem( *this );
735cdf0e10cSrcweir }
736cdf0e10cSrcweir 
737cdf0e10cSrcweir /*************************************************************************
738cdf0e10cSrcweir |*
739cdf0e10cSrcweir |*	  SfxPoolItem* XGradientStepCountItem::Create(SvStream& rIn, sal_uInt16 nVer) const
740cdf0e10cSrcweir |*
741cdf0e10cSrcweir |*	  Beschreibung
742cdf0e10cSrcweir |*	  Ersterstellung	23.01.96 KA
743cdf0e10cSrcweir |*	  Letzte Aenderung	23.01.96 KA
744cdf0e10cSrcweir |*
745cdf0e10cSrcweir *************************************************************************/
746cdf0e10cSrcweir 
747cdf0e10cSrcweir SfxPoolItem* XGradientStepCountItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
748cdf0e10cSrcweir {
749cdf0e10cSrcweir 	return new XGradientStepCountItem( rIn );
750cdf0e10cSrcweir }
751cdf0e10cSrcweir 
752cdf0e10cSrcweir //------------------------------------------------------------------------
753cdf0e10cSrcweir 
754cdf0e10cSrcweir SfxItemPresentation XGradientStepCountItem::GetPresentation
755cdf0e10cSrcweir (
756cdf0e10cSrcweir 	SfxItemPresentation ePres,
757cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
758cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
759cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
760cdf0e10cSrcweir )	const
761cdf0e10cSrcweir {
762cdf0e10cSrcweir 	rText.Erase();
763cdf0e10cSrcweir 
764cdf0e10cSrcweir 	switch ( ePres )
765cdf0e10cSrcweir 	{
766cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
767cdf0e10cSrcweir 			return ePres;
768cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
769cdf0e10cSrcweir //			rText = XubString( ResId( RID_SVXSTR_GRADIENTSTEPCOUNT, DIALOG_MGR() ) );
770cdf0e10cSrcweir //			rText += ": ";
771cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
772cdf0e10cSrcweir 			rText += XubString( UniString::CreateFromInt32((sal_uInt16) GetValue() ));
773cdf0e10cSrcweir 			return ePres;
774cdf0e10cSrcweir 		default:
775cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
776cdf0e10cSrcweir 	}
777cdf0e10cSrcweir }
778cdf0e10cSrcweir 
779cdf0e10cSrcweir 
780cdf0e10cSrcweir //------------------------------
781cdf0e10cSrcweir // class XFillBmpTileItem
782cdf0e10cSrcweir //------------------------------
783cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY( XFillBmpTileItem, SfxBoolItem );
784cdf0e10cSrcweir 
785cdf0e10cSrcweir /*************************************************************************
786cdf0e10cSrcweir |*
787cdf0e10cSrcweir |*
788cdf0e10cSrcweir |*
789cdf0e10cSrcweir |*	  Beschreibung
790cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
791cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
792cdf0e10cSrcweir |*
793cdf0e10cSrcweir *************************************************************************/
794cdf0e10cSrcweir 
795cdf0e10cSrcweir XFillBmpTileItem::XFillBmpTileItem( sal_Bool bTile ) :
796cdf0e10cSrcweir 			SfxBoolItem( XATTR_FILLBMP_TILE, bTile )
797cdf0e10cSrcweir {
798cdf0e10cSrcweir }
799cdf0e10cSrcweir 
800cdf0e10cSrcweir 
801cdf0e10cSrcweir /*************************************************************************
802cdf0e10cSrcweir |*
803cdf0e10cSrcweir |*
804cdf0e10cSrcweir |*
805cdf0e10cSrcweir |*	  Beschreibung
806cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
807cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
808cdf0e10cSrcweir |*
809cdf0e10cSrcweir *************************************************************************/
810cdf0e10cSrcweir 
811cdf0e10cSrcweir XFillBmpTileItem::XFillBmpTileItem( SvStream& rIn ) :
812cdf0e10cSrcweir 			SfxBoolItem( XATTR_FILLBMP_TILE, rIn )
813cdf0e10cSrcweir {
814cdf0e10cSrcweir }
815cdf0e10cSrcweir 
816cdf0e10cSrcweir 
817cdf0e10cSrcweir /*************************************************************************
818cdf0e10cSrcweir |*
819cdf0e10cSrcweir |*
820cdf0e10cSrcweir |*
821cdf0e10cSrcweir |*	  Beschreibung
822cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
823cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
824cdf0e10cSrcweir |*
825cdf0e10cSrcweir *************************************************************************/
826cdf0e10cSrcweir 
827cdf0e10cSrcweir SfxPoolItem* XFillBmpTileItem::Clone( SfxItemPool* /*pPool*/) const
828cdf0e10cSrcweir {
829cdf0e10cSrcweir 	return new XFillBmpTileItem( *this );
830cdf0e10cSrcweir }
831cdf0e10cSrcweir 
832cdf0e10cSrcweir 
833cdf0e10cSrcweir /*************************************************************************
834cdf0e10cSrcweir |*
835cdf0e10cSrcweir |*
836cdf0e10cSrcweir |*
837cdf0e10cSrcweir |*	  Beschreibung
838cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
839cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
840cdf0e10cSrcweir |*
841cdf0e10cSrcweir *************************************************************************/
842cdf0e10cSrcweir 
843cdf0e10cSrcweir SfxPoolItem* XFillBmpTileItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
844cdf0e10cSrcweir {
845cdf0e10cSrcweir 	return new XFillBmpTileItem( rIn );
846cdf0e10cSrcweir }
847cdf0e10cSrcweir 
848cdf0e10cSrcweir 
849cdf0e10cSrcweir /*************************************************************************
850cdf0e10cSrcweir |*
851cdf0e10cSrcweir |*
852cdf0e10cSrcweir |*
853cdf0e10cSrcweir |*	  Beschreibung
854cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
855cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
856cdf0e10cSrcweir |*
857cdf0e10cSrcweir *************************************************************************/
858cdf0e10cSrcweir 
859cdf0e10cSrcweir SfxItemPresentation XFillBmpTileItem::GetPresentation
860cdf0e10cSrcweir (
861cdf0e10cSrcweir 	SfxItemPresentation ePres,
862cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
863cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
864cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
865cdf0e10cSrcweir )	const
866cdf0e10cSrcweir {
867cdf0e10cSrcweir 	rText.Erase();
868cdf0e10cSrcweir 
869cdf0e10cSrcweir 	switch ( ePres )
870cdf0e10cSrcweir 	{
871cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
872cdf0e10cSrcweir 			return ePres;
873cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
874cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
875cdf0e10cSrcweir 			return ePres;
876cdf0e10cSrcweir 		default:
877cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
878cdf0e10cSrcweir 	}
879cdf0e10cSrcweir }
880cdf0e10cSrcweir 
881cdf0e10cSrcweir 
882cdf0e10cSrcweir //------------------------------
883cdf0e10cSrcweir // class XFillBmpTilePosItem
884cdf0e10cSrcweir //------------------------------
885cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY( XFillBmpPosItem, SfxEnumItem );
886cdf0e10cSrcweir 
887cdf0e10cSrcweir /*************************************************************************
888cdf0e10cSrcweir |*
889cdf0e10cSrcweir |*
890cdf0e10cSrcweir |*
891cdf0e10cSrcweir |*	  Beschreibung
892cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
893cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
894cdf0e10cSrcweir |*
895cdf0e10cSrcweir *************************************************************************/
896cdf0e10cSrcweir 
897cdf0e10cSrcweir XFillBmpPosItem::XFillBmpPosItem( RECT_POINT eRP ) :
898cdf0e10cSrcweir     SfxEnumItem( XATTR_FILLBMP_POS, sal::static_int_cast< sal_uInt16 >( eRP ) )
899cdf0e10cSrcweir {
900cdf0e10cSrcweir }
901cdf0e10cSrcweir 
902cdf0e10cSrcweir 
903cdf0e10cSrcweir /*************************************************************************
904cdf0e10cSrcweir |*
905cdf0e10cSrcweir |*
906cdf0e10cSrcweir |*
907cdf0e10cSrcweir |*	  Beschreibung
908cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
909cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
910cdf0e10cSrcweir |*
911cdf0e10cSrcweir *************************************************************************/
912cdf0e10cSrcweir 
913cdf0e10cSrcweir XFillBmpPosItem::XFillBmpPosItem( SvStream& rIn ) :
914cdf0e10cSrcweir 			SfxEnumItem( XATTR_FILLBMP_POS, rIn )
915cdf0e10cSrcweir {
916cdf0e10cSrcweir }
917cdf0e10cSrcweir 
918cdf0e10cSrcweir 
919cdf0e10cSrcweir /*************************************************************************
920cdf0e10cSrcweir |*
921cdf0e10cSrcweir |*
922cdf0e10cSrcweir |*
923cdf0e10cSrcweir |*	  Beschreibung
924cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
925cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
926cdf0e10cSrcweir |*
927cdf0e10cSrcweir *************************************************************************/
928cdf0e10cSrcweir 
929cdf0e10cSrcweir SfxPoolItem* XFillBmpPosItem::Clone( SfxItemPool* /*pPool*/) const
930cdf0e10cSrcweir {
931cdf0e10cSrcweir 	return new XFillBmpPosItem( *this );
932cdf0e10cSrcweir }
933cdf0e10cSrcweir 
934cdf0e10cSrcweir 
935cdf0e10cSrcweir /*************************************************************************
936cdf0e10cSrcweir |*
937cdf0e10cSrcweir |*
938cdf0e10cSrcweir |*
939cdf0e10cSrcweir |*	  Beschreibung
940cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
941cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
942cdf0e10cSrcweir |*
943cdf0e10cSrcweir *************************************************************************/
944cdf0e10cSrcweir 
945cdf0e10cSrcweir SfxPoolItem* XFillBmpPosItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
946cdf0e10cSrcweir {
947cdf0e10cSrcweir 	return new XFillBmpPosItem( rIn );
948cdf0e10cSrcweir }
949cdf0e10cSrcweir 
950cdf0e10cSrcweir 
951cdf0e10cSrcweir /*************************************************************************
952cdf0e10cSrcweir |*
953cdf0e10cSrcweir |*
954cdf0e10cSrcweir |*
955cdf0e10cSrcweir |*	  Beschreibung
956cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
957cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
958cdf0e10cSrcweir |*
959cdf0e10cSrcweir *************************************************************************/
960cdf0e10cSrcweir 
961cdf0e10cSrcweir SfxItemPresentation XFillBmpPosItem::GetPresentation
962cdf0e10cSrcweir (
963cdf0e10cSrcweir 	SfxItemPresentation ePres,
964cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
965cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
966cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
967cdf0e10cSrcweir )	const
968cdf0e10cSrcweir {
969cdf0e10cSrcweir 	rText.Erase();
970cdf0e10cSrcweir 
971cdf0e10cSrcweir 	switch ( ePres )
972cdf0e10cSrcweir 	{
973cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
974cdf0e10cSrcweir 			return ePres;
975cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
976cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
977cdf0e10cSrcweir 			return ePres;
978cdf0e10cSrcweir 		default:
979cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
980cdf0e10cSrcweir 	}
981cdf0e10cSrcweir }
982cdf0e10cSrcweir 
983cdf0e10cSrcweir /******************************************************************************
984cdf0e10cSrcweir |*
985cdf0e10cSrcweir |*
986cdf0e10cSrcweir |*
987cdf0e10cSrcweir \******************************************************************************/
988cdf0e10cSrcweir 
989cdf0e10cSrcweir sal_uInt16 XFillBmpPosItem::GetValueCount() const
990cdf0e10cSrcweir {
991cdf0e10cSrcweir 	return 9;
992cdf0e10cSrcweir }
993cdf0e10cSrcweir 
994cdf0e10cSrcweir 
995cdf0e10cSrcweir //------------------------------
996cdf0e10cSrcweir // class XFillBmpTileSizeXItem
997cdf0e10cSrcweir //------------------------------
998cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY( XFillBmpSizeXItem, SfxMetricItem );
999cdf0e10cSrcweir 
1000cdf0e10cSrcweir /*************************************************************************
1001cdf0e10cSrcweir |*
1002cdf0e10cSrcweir |*
1003cdf0e10cSrcweir |*
1004cdf0e10cSrcweir |*	  Beschreibung
1005cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1006cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1007cdf0e10cSrcweir |*
1008cdf0e10cSrcweir *************************************************************************/
1009cdf0e10cSrcweir 
1010cdf0e10cSrcweir XFillBmpSizeXItem::XFillBmpSizeXItem( long nSizeX ) :
1011cdf0e10cSrcweir 			SfxMetricItem( XATTR_FILLBMP_SIZEX, nSizeX )
1012cdf0e10cSrcweir {
1013cdf0e10cSrcweir }
1014cdf0e10cSrcweir 
1015cdf0e10cSrcweir 
1016cdf0e10cSrcweir /*************************************************************************
1017cdf0e10cSrcweir |*
1018cdf0e10cSrcweir |*
1019cdf0e10cSrcweir |*
1020cdf0e10cSrcweir |*	  Beschreibung
1021cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1022cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1023cdf0e10cSrcweir |*
1024cdf0e10cSrcweir *************************************************************************/
1025cdf0e10cSrcweir 
1026cdf0e10cSrcweir XFillBmpSizeXItem::XFillBmpSizeXItem( SvStream& rIn ) :
1027cdf0e10cSrcweir 			SfxMetricItem( XATTR_FILLBMP_SIZEX, rIn )
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 SfxPoolItem* XFillBmpSizeXItem::Clone( SfxItemPool* /*pPool*/) const
1043cdf0e10cSrcweir {
1044cdf0e10cSrcweir 	return new XFillBmpSizeXItem( *this );
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* XFillBmpSizeXItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
1059cdf0e10cSrcweir {
1060cdf0e10cSrcweir 	return new XFillBmpSizeXItem( rIn );
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 SfxItemPresentation XFillBmpSizeXItem::GetPresentation
1075cdf0e10cSrcweir (
1076cdf0e10cSrcweir 	SfxItemPresentation ePres,
1077cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
1078cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
1079cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
1080cdf0e10cSrcweir )	const
1081cdf0e10cSrcweir {
1082cdf0e10cSrcweir 	rText.Erase();
1083cdf0e10cSrcweir 
1084cdf0e10cSrcweir 	switch ( ePres )
1085cdf0e10cSrcweir 	{
1086cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
1087cdf0e10cSrcweir 			return ePres;
1088cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
1089cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
1090cdf0e10cSrcweir 			return ePres;
1091cdf0e10cSrcweir 		default:
1092cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
1093cdf0e10cSrcweir 	}
1094cdf0e10cSrcweir }
1095cdf0e10cSrcweir 
1096cdf0e10cSrcweir 
1097cdf0e10cSrcweir /*************************************************************************
1098cdf0e10cSrcweir |*
1099cdf0e10cSrcweir |*	  Beschreibung
1100cdf0e10cSrcweir |*	  Ersterstellung	05.11.96 KA
1101cdf0e10cSrcweir |*	  Letzte Aenderung	05.11.96 KA
1102cdf0e10cSrcweir |*
1103cdf0e10cSrcweir \*************************************************************************/
1104cdf0e10cSrcweir 
1105cdf0e10cSrcweir FASTBOOL XFillBmpSizeXItem::HasMetrics() const
1106cdf0e10cSrcweir {
1107cdf0e10cSrcweir 	return GetValue() > 0L;
1108cdf0e10cSrcweir }
1109cdf0e10cSrcweir 
1110cdf0e10cSrcweir 
1111cdf0e10cSrcweir //------------------------------
1112cdf0e10cSrcweir // class XFillBmpTileSizeYItem
1113cdf0e10cSrcweir //------------------------------
1114cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY( XFillBmpSizeYItem, SfxMetricItem );
1115cdf0e10cSrcweir 
1116cdf0e10cSrcweir /*************************************************************************
1117cdf0e10cSrcweir |*
1118cdf0e10cSrcweir |*
1119cdf0e10cSrcweir |*
1120cdf0e10cSrcweir |*	  Beschreibung
1121cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1122cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1123cdf0e10cSrcweir |*
1124cdf0e10cSrcweir *************************************************************************/
1125cdf0e10cSrcweir 
1126cdf0e10cSrcweir XFillBmpSizeYItem::XFillBmpSizeYItem( long nSizeY ) :
1127cdf0e10cSrcweir 			SfxMetricItem( XATTR_FILLBMP_SIZEY, nSizeY )
1128cdf0e10cSrcweir {
1129cdf0e10cSrcweir }
1130cdf0e10cSrcweir 
1131cdf0e10cSrcweir 
1132cdf0e10cSrcweir /*************************************************************************
1133cdf0e10cSrcweir |*
1134cdf0e10cSrcweir |*
1135cdf0e10cSrcweir |*
1136cdf0e10cSrcweir |*	  Beschreibung
1137cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1138cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1139cdf0e10cSrcweir |*
1140cdf0e10cSrcweir *************************************************************************/
1141cdf0e10cSrcweir 
1142cdf0e10cSrcweir XFillBmpSizeYItem::XFillBmpSizeYItem( SvStream& rIn ) :
1143cdf0e10cSrcweir 			SfxMetricItem( XATTR_FILLBMP_SIZEY, rIn )
1144cdf0e10cSrcweir {
1145cdf0e10cSrcweir }
1146cdf0e10cSrcweir 
1147cdf0e10cSrcweir 
1148cdf0e10cSrcweir /*************************************************************************
1149cdf0e10cSrcweir |*
1150cdf0e10cSrcweir |*
1151cdf0e10cSrcweir |*
1152cdf0e10cSrcweir |*	  Beschreibung
1153cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1154cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1155cdf0e10cSrcweir |*
1156cdf0e10cSrcweir *************************************************************************/
1157cdf0e10cSrcweir 
1158cdf0e10cSrcweir SfxPoolItem* XFillBmpSizeYItem::Clone( SfxItemPool* /*pPool*/) const
1159cdf0e10cSrcweir {
1160cdf0e10cSrcweir 	return new XFillBmpSizeYItem( *this );
1161cdf0e10cSrcweir }
1162cdf0e10cSrcweir 
1163cdf0e10cSrcweir 
1164cdf0e10cSrcweir /*************************************************************************
1165cdf0e10cSrcweir |*
1166cdf0e10cSrcweir |*
1167cdf0e10cSrcweir |*
1168cdf0e10cSrcweir |*	  Beschreibung
1169cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1170cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1171cdf0e10cSrcweir |*
1172cdf0e10cSrcweir *************************************************************************/
1173cdf0e10cSrcweir 
1174cdf0e10cSrcweir SfxPoolItem* XFillBmpSizeYItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
1175cdf0e10cSrcweir {
1176cdf0e10cSrcweir 	return new XFillBmpSizeYItem( rIn );
1177cdf0e10cSrcweir }
1178cdf0e10cSrcweir 
1179cdf0e10cSrcweir 
1180cdf0e10cSrcweir /*************************************************************************
1181cdf0e10cSrcweir |*
1182cdf0e10cSrcweir |*
1183cdf0e10cSrcweir |*
1184cdf0e10cSrcweir |*	  Beschreibung
1185cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1186cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1187cdf0e10cSrcweir |*
1188cdf0e10cSrcweir *************************************************************************/
1189cdf0e10cSrcweir 
1190cdf0e10cSrcweir SfxItemPresentation XFillBmpSizeYItem::GetPresentation
1191cdf0e10cSrcweir (
1192cdf0e10cSrcweir 	SfxItemPresentation ePres,
1193cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
1194cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
1195cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
1196cdf0e10cSrcweir )	const
1197cdf0e10cSrcweir {
1198cdf0e10cSrcweir 	rText.Erase();
1199cdf0e10cSrcweir 
1200cdf0e10cSrcweir 	switch ( ePres )
1201cdf0e10cSrcweir 	{
1202cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
1203cdf0e10cSrcweir 			return ePres;
1204cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
1205cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
1206cdf0e10cSrcweir 			return ePres;
1207cdf0e10cSrcweir 		default:
1208cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
1209cdf0e10cSrcweir 	}
1210cdf0e10cSrcweir }
1211cdf0e10cSrcweir 
1212cdf0e10cSrcweir 
1213cdf0e10cSrcweir /*************************************************************************
1214cdf0e10cSrcweir |*
1215cdf0e10cSrcweir |*	  Beschreibung
1216cdf0e10cSrcweir |*	  Ersterstellung	05.11.96 KA
1217cdf0e10cSrcweir |*	  Letzte Aenderung	05.11.96 KA
1218cdf0e10cSrcweir |*
1219cdf0e10cSrcweir \*************************************************************************/
1220cdf0e10cSrcweir 
1221cdf0e10cSrcweir FASTBOOL XFillBmpSizeYItem::HasMetrics() const
1222cdf0e10cSrcweir {
1223cdf0e10cSrcweir 	return GetValue() > 0L;
1224cdf0e10cSrcweir }
1225cdf0e10cSrcweir 
1226cdf0e10cSrcweir 
1227cdf0e10cSrcweir //------------------------------
1228cdf0e10cSrcweir // class XFillBmpTileLogItem
1229cdf0e10cSrcweir //------------------------------
1230cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY( XFillBmpSizeLogItem, SfxBoolItem );
1231cdf0e10cSrcweir 
1232cdf0e10cSrcweir /*************************************************************************
1233cdf0e10cSrcweir |*
1234cdf0e10cSrcweir |*
1235cdf0e10cSrcweir |*
1236cdf0e10cSrcweir |*	  Beschreibung
1237cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1238cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1239cdf0e10cSrcweir |*
1240cdf0e10cSrcweir *************************************************************************/
1241cdf0e10cSrcweir 
1242cdf0e10cSrcweir XFillBmpSizeLogItem::XFillBmpSizeLogItem( sal_Bool bLog ) :
1243cdf0e10cSrcweir 			SfxBoolItem( XATTR_FILLBMP_SIZELOG, bLog )
1244cdf0e10cSrcweir {
1245cdf0e10cSrcweir }
1246cdf0e10cSrcweir 
1247cdf0e10cSrcweir 
1248cdf0e10cSrcweir /*************************************************************************
1249cdf0e10cSrcweir |*
1250cdf0e10cSrcweir |*
1251cdf0e10cSrcweir |*
1252cdf0e10cSrcweir |*	  Beschreibung
1253cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1254cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1255cdf0e10cSrcweir |*
1256cdf0e10cSrcweir *************************************************************************/
1257cdf0e10cSrcweir 
1258cdf0e10cSrcweir XFillBmpSizeLogItem::XFillBmpSizeLogItem( SvStream& rIn ) :
1259cdf0e10cSrcweir 			SfxBoolItem( XATTR_FILLBMP_SIZELOG, rIn )
1260cdf0e10cSrcweir {
1261cdf0e10cSrcweir }
1262cdf0e10cSrcweir 
1263cdf0e10cSrcweir 
1264cdf0e10cSrcweir /*************************************************************************
1265cdf0e10cSrcweir |*
1266cdf0e10cSrcweir |*
1267cdf0e10cSrcweir |*
1268cdf0e10cSrcweir |*	  Beschreibung
1269cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1270cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1271cdf0e10cSrcweir |*
1272cdf0e10cSrcweir *************************************************************************/
1273cdf0e10cSrcweir 
1274cdf0e10cSrcweir SfxPoolItem* XFillBmpSizeLogItem::Clone( SfxItemPool* /*pPool*/) const
1275cdf0e10cSrcweir {
1276cdf0e10cSrcweir 	return new XFillBmpSizeLogItem( *this );
1277cdf0e10cSrcweir }
1278cdf0e10cSrcweir 
1279cdf0e10cSrcweir 
1280cdf0e10cSrcweir /*************************************************************************
1281cdf0e10cSrcweir |*
1282cdf0e10cSrcweir |*
1283cdf0e10cSrcweir |*
1284cdf0e10cSrcweir |*	  Beschreibung
1285cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1286cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1287cdf0e10cSrcweir |*
1288cdf0e10cSrcweir *************************************************************************/
1289cdf0e10cSrcweir 
1290cdf0e10cSrcweir SfxPoolItem* XFillBmpSizeLogItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
1291cdf0e10cSrcweir {
1292cdf0e10cSrcweir 	return new XFillBmpSizeLogItem( rIn );
1293cdf0e10cSrcweir }
1294cdf0e10cSrcweir 
1295cdf0e10cSrcweir 
1296cdf0e10cSrcweir /*************************************************************************
1297cdf0e10cSrcweir |*
1298cdf0e10cSrcweir |*
1299cdf0e10cSrcweir |*
1300cdf0e10cSrcweir |*	  Beschreibung
1301cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1302cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1303cdf0e10cSrcweir |*
1304cdf0e10cSrcweir *************************************************************************/
1305cdf0e10cSrcweir 
1306cdf0e10cSrcweir SfxItemPresentation XFillBmpSizeLogItem::GetPresentation
1307cdf0e10cSrcweir (
1308cdf0e10cSrcweir 	SfxItemPresentation ePres,
1309cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
1310cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
1311cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
1312cdf0e10cSrcweir )	const
1313cdf0e10cSrcweir {
1314cdf0e10cSrcweir 	rText.Erase();
1315cdf0e10cSrcweir 
1316cdf0e10cSrcweir 	switch ( ePres )
1317cdf0e10cSrcweir 	{
1318cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
1319cdf0e10cSrcweir 			return ePres;
1320cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
1321cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
1322cdf0e10cSrcweir 			return ePres;
1323cdf0e10cSrcweir 		default:
1324cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
1325cdf0e10cSrcweir 	}
1326cdf0e10cSrcweir }
1327cdf0e10cSrcweir 
1328cdf0e10cSrcweir 
1329cdf0e10cSrcweir //------------------------------
1330cdf0e10cSrcweir // class XFillBmpTileOffXItem
1331cdf0e10cSrcweir //------------------------------
1332cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY( XFillBmpTileOffsetXItem, SfxUInt16Item );
1333cdf0e10cSrcweir 
1334cdf0e10cSrcweir /*************************************************************************
1335cdf0e10cSrcweir |*
1336cdf0e10cSrcweir |*
1337cdf0e10cSrcweir |*
1338cdf0e10cSrcweir |*	  Beschreibung
1339cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1340cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1341cdf0e10cSrcweir |*
1342cdf0e10cSrcweir *************************************************************************/
1343cdf0e10cSrcweir 
1344cdf0e10cSrcweir XFillBmpTileOffsetXItem::XFillBmpTileOffsetXItem( sal_uInt16 nOffX ) :
1345cdf0e10cSrcweir 			SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETX, nOffX )
1346cdf0e10cSrcweir {
1347cdf0e10cSrcweir }
1348cdf0e10cSrcweir 
1349cdf0e10cSrcweir 
1350cdf0e10cSrcweir /*************************************************************************
1351cdf0e10cSrcweir |*
1352cdf0e10cSrcweir |*
1353cdf0e10cSrcweir |*
1354cdf0e10cSrcweir |*	  Beschreibung
1355cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1356cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1357cdf0e10cSrcweir |*
1358cdf0e10cSrcweir *************************************************************************/
1359cdf0e10cSrcweir 
1360cdf0e10cSrcweir XFillBmpTileOffsetXItem::XFillBmpTileOffsetXItem( SvStream& rIn ) :
1361cdf0e10cSrcweir 			SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETX, rIn )
1362cdf0e10cSrcweir {
1363cdf0e10cSrcweir }
1364cdf0e10cSrcweir 
1365cdf0e10cSrcweir 
1366cdf0e10cSrcweir /*************************************************************************
1367cdf0e10cSrcweir |*
1368cdf0e10cSrcweir |*
1369cdf0e10cSrcweir |*
1370cdf0e10cSrcweir |*	  Beschreibung
1371cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1372cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1373cdf0e10cSrcweir |*
1374cdf0e10cSrcweir *************************************************************************/
1375cdf0e10cSrcweir 
1376cdf0e10cSrcweir SfxPoolItem* XFillBmpTileOffsetXItem::Clone( SfxItemPool* /*pPool*/) const
1377cdf0e10cSrcweir {
1378cdf0e10cSrcweir 	return new XFillBmpTileOffsetXItem( *this );
1379cdf0e10cSrcweir }
1380cdf0e10cSrcweir 
1381cdf0e10cSrcweir 
1382cdf0e10cSrcweir /*************************************************************************
1383cdf0e10cSrcweir |*
1384cdf0e10cSrcweir |*
1385cdf0e10cSrcweir |*
1386cdf0e10cSrcweir |*	  Beschreibung
1387cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1388cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1389cdf0e10cSrcweir |*
1390cdf0e10cSrcweir *************************************************************************/
1391cdf0e10cSrcweir 
1392cdf0e10cSrcweir SfxPoolItem* XFillBmpTileOffsetXItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
1393cdf0e10cSrcweir {
1394cdf0e10cSrcweir 	return new XFillBmpTileOffsetXItem( rIn );
1395cdf0e10cSrcweir }
1396cdf0e10cSrcweir 
1397cdf0e10cSrcweir 
1398cdf0e10cSrcweir /*************************************************************************
1399cdf0e10cSrcweir |*
1400cdf0e10cSrcweir |*
1401cdf0e10cSrcweir |*
1402cdf0e10cSrcweir |*	  Beschreibung
1403cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1404cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1405cdf0e10cSrcweir |*
1406cdf0e10cSrcweir *************************************************************************/
1407cdf0e10cSrcweir 
1408cdf0e10cSrcweir SfxItemPresentation XFillBmpTileOffsetXItem::GetPresentation
1409cdf0e10cSrcweir (
1410cdf0e10cSrcweir 	SfxItemPresentation ePres,
1411cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
1412cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
1413cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
1414cdf0e10cSrcweir )	const
1415cdf0e10cSrcweir {
1416cdf0e10cSrcweir 	rText.Erase();
1417cdf0e10cSrcweir 
1418cdf0e10cSrcweir 	switch ( ePres )
1419cdf0e10cSrcweir 	{
1420cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
1421cdf0e10cSrcweir 			return ePres;
1422cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
1423cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
1424cdf0e10cSrcweir 			return ePres;
1425cdf0e10cSrcweir 		default:
1426cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
1427cdf0e10cSrcweir 	}
1428cdf0e10cSrcweir }
1429cdf0e10cSrcweir 
1430cdf0e10cSrcweir 
1431cdf0e10cSrcweir //------------------------------
1432cdf0e10cSrcweir // class XFillBmpTileOffYItem
1433cdf0e10cSrcweir //------------------------------
1434cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY( XFillBmpTileOffsetYItem, SfxUInt16Item );
1435cdf0e10cSrcweir 
1436cdf0e10cSrcweir /*************************************************************************
1437cdf0e10cSrcweir |*
1438cdf0e10cSrcweir |*
1439cdf0e10cSrcweir |*
1440cdf0e10cSrcweir |*	  Beschreibung
1441cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1442cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1443cdf0e10cSrcweir |*
1444cdf0e10cSrcweir *************************************************************************/
1445cdf0e10cSrcweir 
1446cdf0e10cSrcweir XFillBmpTileOffsetYItem::XFillBmpTileOffsetYItem( sal_uInt16 nOffY ) :
1447cdf0e10cSrcweir 			SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETY, nOffY )
1448cdf0e10cSrcweir {
1449cdf0e10cSrcweir }
1450cdf0e10cSrcweir 
1451cdf0e10cSrcweir 
1452cdf0e10cSrcweir /*************************************************************************
1453cdf0e10cSrcweir |*
1454cdf0e10cSrcweir |*
1455cdf0e10cSrcweir |*
1456cdf0e10cSrcweir |*	  Beschreibung
1457cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1458cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1459cdf0e10cSrcweir |*
1460cdf0e10cSrcweir *************************************************************************/
1461cdf0e10cSrcweir 
1462cdf0e10cSrcweir XFillBmpTileOffsetYItem::XFillBmpTileOffsetYItem( SvStream& rIn ) :
1463cdf0e10cSrcweir 			SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETY, rIn )
1464cdf0e10cSrcweir {
1465cdf0e10cSrcweir }
1466cdf0e10cSrcweir 
1467cdf0e10cSrcweir 
1468cdf0e10cSrcweir /*************************************************************************
1469cdf0e10cSrcweir |*
1470cdf0e10cSrcweir |*
1471cdf0e10cSrcweir |*
1472cdf0e10cSrcweir |*	  Beschreibung
1473cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1474cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1475cdf0e10cSrcweir |*
1476cdf0e10cSrcweir *************************************************************************/
1477cdf0e10cSrcweir 
1478cdf0e10cSrcweir SfxPoolItem* XFillBmpTileOffsetYItem::Clone( SfxItemPool* /*pPool*/) const
1479cdf0e10cSrcweir {
1480cdf0e10cSrcweir 	return new XFillBmpTileOffsetYItem( *this );
1481cdf0e10cSrcweir }
1482cdf0e10cSrcweir 
1483cdf0e10cSrcweir 
1484cdf0e10cSrcweir /*************************************************************************
1485cdf0e10cSrcweir |*
1486cdf0e10cSrcweir |*
1487cdf0e10cSrcweir |*
1488cdf0e10cSrcweir |*	  Beschreibung
1489cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1490cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1491cdf0e10cSrcweir |*
1492cdf0e10cSrcweir *************************************************************************/
1493cdf0e10cSrcweir 
1494cdf0e10cSrcweir SfxPoolItem* XFillBmpTileOffsetYItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
1495cdf0e10cSrcweir {
1496cdf0e10cSrcweir 	return new XFillBmpTileOffsetYItem( rIn );
1497cdf0e10cSrcweir }
1498cdf0e10cSrcweir 
1499cdf0e10cSrcweir 
1500cdf0e10cSrcweir /*************************************************************************
1501cdf0e10cSrcweir |*
1502cdf0e10cSrcweir |*
1503cdf0e10cSrcweir |*
1504cdf0e10cSrcweir |*	  Beschreibung
1505cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1506cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1507cdf0e10cSrcweir |*
1508cdf0e10cSrcweir *************************************************************************/
1509cdf0e10cSrcweir 
1510cdf0e10cSrcweir SfxItemPresentation XFillBmpTileOffsetYItem::GetPresentation
1511cdf0e10cSrcweir (
1512cdf0e10cSrcweir 	SfxItemPresentation ePres,
1513cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
1514cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
1515cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
1516cdf0e10cSrcweir )	const
1517cdf0e10cSrcweir {
1518cdf0e10cSrcweir 	rText.Erase();
1519cdf0e10cSrcweir 
1520cdf0e10cSrcweir 	switch ( ePres )
1521cdf0e10cSrcweir 	{
1522cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
1523cdf0e10cSrcweir 			return ePres;
1524cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
1525cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
1526cdf0e10cSrcweir 			return ePres;
1527cdf0e10cSrcweir 		default:
1528cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
1529cdf0e10cSrcweir 	}
1530cdf0e10cSrcweir }
1531cdf0e10cSrcweir 
1532cdf0e10cSrcweir 
1533cdf0e10cSrcweir //------------------------------
1534cdf0e10cSrcweir // class XFillBmpStretchItem
1535cdf0e10cSrcweir //------------------------------
1536cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY( XFillBmpStretchItem, SfxBoolItem );
1537cdf0e10cSrcweir 
1538cdf0e10cSrcweir /*************************************************************************
1539cdf0e10cSrcweir |*
1540cdf0e10cSrcweir |*
1541cdf0e10cSrcweir |*
1542cdf0e10cSrcweir |*	  Beschreibung
1543cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1544cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1545cdf0e10cSrcweir |*
1546cdf0e10cSrcweir *************************************************************************/
1547cdf0e10cSrcweir 
1548cdf0e10cSrcweir XFillBmpStretchItem::XFillBmpStretchItem( sal_Bool bStretch ) :
1549cdf0e10cSrcweir 			SfxBoolItem( XATTR_FILLBMP_STRETCH, bStretch )
1550cdf0e10cSrcweir {
1551cdf0e10cSrcweir }
1552cdf0e10cSrcweir 
1553cdf0e10cSrcweir 
1554cdf0e10cSrcweir /*************************************************************************
1555cdf0e10cSrcweir |*
1556cdf0e10cSrcweir |*
1557cdf0e10cSrcweir |*
1558cdf0e10cSrcweir |*	  Beschreibung
1559cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1560cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1561cdf0e10cSrcweir |*
1562cdf0e10cSrcweir *************************************************************************/
1563cdf0e10cSrcweir 
1564cdf0e10cSrcweir XFillBmpStretchItem::XFillBmpStretchItem( SvStream& rIn ) :
1565cdf0e10cSrcweir 			SfxBoolItem( XATTR_FILLBMP_STRETCH, rIn )
1566cdf0e10cSrcweir {
1567cdf0e10cSrcweir }
1568cdf0e10cSrcweir 
1569cdf0e10cSrcweir 
1570cdf0e10cSrcweir /*************************************************************************
1571cdf0e10cSrcweir |*
1572cdf0e10cSrcweir |*
1573cdf0e10cSrcweir |*
1574cdf0e10cSrcweir |*	  Beschreibung
1575cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1576cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1577cdf0e10cSrcweir |*
1578cdf0e10cSrcweir *************************************************************************/
1579cdf0e10cSrcweir 
1580cdf0e10cSrcweir SfxPoolItem* XFillBmpStretchItem::Clone( SfxItemPool* /*pPool*/) const
1581cdf0e10cSrcweir {
1582cdf0e10cSrcweir 	return new XFillBmpStretchItem( *this );
1583cdf0e10cSrcweir }
1584cdf0e10cSrcweir 
1585cdf0e10cSrcweir 
1586cdf0e10cSrcweir /*************************************************************************
1587cdf0e10cSrcweir |*
1588cdf0e10cSrcweir |*
1589cdf0e10cSrcweir |*
1590cdf0e10cSrcweir |*	  Beschreibung
1591cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1592cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1593cdf0e10cSrcweir |*
1594cdf0e10cSrcweir *************************************************************************/
1595cdf0e10cSrcweir 
1596cdf0e10cSrcweir SfxPoolItem* XFillBmpStretchItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
1597cdf0e10cSrcweir {
1598cdf0e10cSrcweir 	return new XFillBmpStretchItem( rIn );
1599cdf0e10cSrcweir }
1600cdf0e10cSrcweir 
1601cdf0e10cSrcweir 
1602cdf0e10cSrcweir /*************************************************************************
1603cdf0e10cSrcweir |*
1604cdf0e10cSrcweir |*
1605cdf0e10cSrcweir |*
1606cdf0e10cSrcweir |*	  Beschreibung
1607cdf0e10cSrcweir |*	  Ersterstellung	28.02.96 KA
1608cdf0e10cSrcweir |*	  Letzte Aenderung	28.02.96 KA
1609cdf0e10cSrcweir |*
1610cdf0e10cSrcweir *************************************************************************/
1611cdf0e10cSrcweir 
1612cdf0e10cSrcweir SfxItemPresentation XFillBmpStretchItem::GetPresentation
1613cdf0e10cSrcweir (
1614cdf0e10cSrcweir 	SfxItemPresentation ePres,
1615cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
1616cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
1617cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
1618cdf0e10cSrcweir )	const
1619cdf0e10cSrcweir {
1620cdf0e10cSrcweir 	rText.Erase();
1621cdf0e10cSrcweir 
1622cdf0e10cSrcweir 	switch ( ePres )
1623cdf0e10cSrcweir 	{
1624cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
1625cdf0e10cSrcweir 			return ePres;
1626cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
1627cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
1628cdf0e10cSrcweir 			return ePres;
1629cdf0e10cSrcweir 		default:
1630cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
1631cdf0e10cSrcweir 	}
1632cdf0e10cSrcweir }
1633cdf0e10cSrcweir 
1634cdf0e10cSrcweir 
1635cdf0e10cSrcweir //------------------------------
1636cdf0e10cSrcweir // class XFillBmpTileOffPosXItem
1637cdf0e10cSrcweir //------------------------------
1638cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY( XFillBmpPosOffsetXItem, SfxUInt16Item );
1639cdf0e10cSrcweir 
1640cdf0e10cSrcweir /*************************************************************************
1641cdf0e10cSrcweir |*
1642cdf0e10cSrcweir |*
1643cdf0e10cSrcweir |*
1644cdf0e10cSrcweir |*	  Beschreibung
1645cdf0e10cSrcweir |*	  Ersterstellung	KA 29.04.96
1646cdf0e10cSrcweir |*	  Letzte Aenderung	KA 29.04.96
1647cdf0e10cSrcweir |*
1648cdf0e10cSrcweir *************************************************************************/
1649cdf0e10cSrcweir 
1650cdf0e10cSrcweir XFillBmpPosOffsetXItem::XFillBmpPosOffsetXItem( sal_uInt16 nOffPosX ) :
1651cdf0e10cSrcweir 			SfxUInt16Item( XATTR_FILLBMP_POSOFFSETX, nOffPosX )
1652cdf0e10cSrcweir {
1653cdf0e10cSrcweir }
1654cdf0e10cSrcweir 
1655cdf0e10cSrcweir 
1656cdf0e10cSrcweir /*************************************************************************
1657cdf0e10cSrcweir |*
1658cdf0e10cSrcweir |*
1659cdf0e10cSrcweir |*
1660cdf0e10cSrcweir |*	  Beschreibung
1661cdf0e10cSrcweir |*	  Ersterstellung	KA 29.04.96
1662cdf0e10cSrcweir |*	  Letzte Aenderung	KA 29.04.96
1663cdf0e10cSrcweir |*
1664cdf0e10cSrcweir *************************************************************************/
1665cdf0e10cSrcweir 
1666cdf0e10cSrcweir XFillBmpPosOffsetXItem::XFillBmpPosOffsetXItem( SvStream& rIn ) :
1667cdf0e10cSrcweir 			SfxUInt16Item( XATTR_FILLBMP_POSOFFSETX, rIn )
1668cdf0e10cSrcweir {
1669cdf0e10cSrcweir }
1670cdf0e10cSrcweir 
1671cdf0e10cSrcweir 
1672cdf0e10cSrcweir /*************************************************************************
1673cdf0e10cSrcweir |*
1674cdf0e10cSrcweir |*
1675cdf0e10cSrcweir |*
1676cdf0e10cSrcweir |*	  Beschreibung
1677cdf0e10cSrcweir |*	  Ersterstellung	KA 29.04.96
1678cdf0e10cSrcweir |*	  Letzte Aenderung	KA 29.04.96
1679cdf0e10cSrcweir |*
1680cdf0e10cSrcweir *************************************************************************/
1681cdf0e10cSrcweir 
1682cdf0e10cSrcweir SfxPoolItem* XFillBmpPosOffsetXItem::Clone( SfxItemPool* /*pPool*/) const
1683cdf0e10cSrcweir {
1684cdf0e10cSrcweir 	return new XFillBmpPosOffsetXItem( *this );
1685cdf0e10cSrcweir }
1686cdf0e10cSrcweir 
1687cdf0e10cSrcweir 
1688cdf0e10cSrcweir /*************************************************************************
1689cdf0e10cSrcweir |*
1690cdf0e10cSrcweir |*
1691cdf0e10cSrcweir |*
1692cdf0e10cSrcweir |*	  Beschreibung
1693cdf0e10cSrcweir |*	  Ersterstellung	KA 29.04.96
1694cdf0e10cSrcweir |*	  Letzte Aenderung	KA 29.04.96
1695cdf0e10cSrcweir |*
1696cdf0e10cSrcweir *************************************************************************/
1697cdf0e10cSrcweir 
1698cdf0e10cSrcweir SfxPoolItem* XFillBmpPosOffsetXItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
1699cdf0e10cSrcweir {
1700cdf0e10cSrcweir 	return new XFillBmpPosOffsetXItem( rIn );
1701cdf0e10cSrcweir }
1702cdf0e10cSrcweir 
1703cdf0e10cSrcweir 
1704cdf0e10cSrcweir /*************************************************************************
1705cdf0e10cSrcweir |*
1706cdf0e10cSrcweir |*
1707cdf0e10cSrcweir |*
1708cdf0e10cSrcweir |*	  Beschreibung
1709cdf0e10cSrcweir |*	  Ersterstellung	KA 29.04.96
1710cdf0e10cSrcweir |*	  Letzte Aenderung	KA 29.04.96
1711cdf0e10cSrcweir |*
1712cdf0e10cSrcweir *************************************************************************/
1713cdf0e10cSrcweir 
1714cdf0e10cSrcweir SfxItemPresentation XFillBmpPosOffsetXItem::GetPresentation
1715cdf0e10cSrcweir (
1716cdf0e10cSrcweir 	SfxItemPresentation ePres,
1717cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
1718cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
1719cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
1720cdf0e10cSrcweir )	const
1721cdf0e10cSrcweir {
1722cdf0e10cSrcweir 	rText.Erase();
1723cdf0e10cSrcweir 
1724cdf0e10cSrcweir 	switch ( ePres )
1725cdf0e10cSrcweir 	{
1726cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
1727cdf0e10cSrcweir 			return ePres;
1728cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
1729cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
1730cdf0e10cSrcweir 			return ePres;
1731cdf0e10cSrcweir 		default:
1732cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
1733cdf0e10cSrcweir 	}
1734cdf0e10cSrcweir }
1735cdf0e10cSrcweir 
1736cdf0e10cSrcweir 
1737cdf0e10cSrcweir //------------------------------
1738cdf0e10cSrcweir // class XFillBmpTileOffPosYItem
1739cdf0e10cSrcweir //------------------------------
1740cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY( XFillBmpPosOffsetYItem, SfxUInt16Item );
1741cdf0e10cSrcweir 
1742cdf0e10cSrcweir /*************************************************************************
1743cdf0e10cSrcweir |*
1744cdf0e10cSrcweir |*
1745cdf0e10cSrcweir |*
1746cdf0e10cSrcweir |*	  Beschreibung
1747cdf0e10cSrcweir |*	  Ersterstellung	KA 29.04.96
1748cdf0e10cSrcweir |*	  Letzte Aenderung	KA 29.04.96
1749cdf0e10cSrcweir |*
1750cdf0e10cSrcweir *************************************************************************/
1751cdf0e10cSrcweir 
1752cdf0e10cSrcweir XFillBmpPosOffsetYItem::XFillBmpPosOffsetYItem( sal_uInt16 nOffPosY ) :
1753cdf0e10cSrcweir 			SfxUInt16Item( XATTR_FILLBMP_POSOFFSETY, nOffPosY )
1754cdf0e10cSrcweir {
1755cdf0e10cSrcweir }
1756cdf0e10cSrcweir 
1757cdf0e10cSrcweir 
1758cdf0e10cSrcweir /*************************************************************************
1759cdf0e10cSrcweir |*
1760cdf0e10cSrcweir |*
1761cdf0e10cSrcweir |*
1762cdf0e10cSrcweir |*	  Beschreibung
1763cdf0e10cSrcweir |*	  Ersterstellung	KA 29.04.96
1764cdf0e10cSrcweir |*	  Letzte Aenderung	KA 29.04.96
1765cdf0e10cSrcweir |*
1766cdf0e10cSrcweir *************************************************************************/
1767cdf0e10cSrcweir 
1768cdf0e10cSrcweir XFillBmpPosOffsetYItem::XFillBmpPosOffsetYItem( SvStream& rIn ) :
1769cdf0e10cSrcweir 			SfxUInt16Item( XATTR_FILLBMP_POSOFFSETY, rIn )
1770cdf0e10cSrcweir {
1771cdf0e10cSrcweir }
1772cdf0e10cSrcweir 
1773cdf0e10cSrcweir 
1774cdf0e10cSrcweir /*************************************************************************
1775cdf0e10cSrcweir |*
1776cdf0e10cSrcweir |*
1777cdf0e10cSrcweir |*
1778cdf0e10cSrcweir |*	  Beschreibung
1779cdf0e10cSrcweir |*	  Ersterstellung	KA 29.04.96
1780cdf0e10cSrcweir |*	  Letzte Aenderung	KA 29.04.96
1781cdf0e10cSrcweir |*
1782cdf0e10cSrcweir *************************************************************************/
1783cdf0e10cSrcweir 
1784cdf0e10cSrcweir SfxPoolItem* XFillBmpPosOffsetYItem::Clone( SfxItemPool* /*pPool*/) const
1785cdf0e10cSrcweir {
1786cdf0e10cSrcweir 	return new XFillBmpPosOffsetYItem( *this );
1787cdf0e10cSrcweir }
1788cdf0e10cSrcweir 
1789cdf0e10cSrcweir 
1790cdf0e10cSrcweir /*************************************************************************
1791cdf0e10cSrcweir |*
1792cdf0e10cSrcweir |*
1793cdf0e10cSrcweir |*
1794cdf0e10cSrcweir |*	  Beschreibung
1795cdf0e10cSrcweir |*	  Ersterstellung	KA 29.04.96
1796cdf0e10cSrcweir |*	  Letzte Aenderung	KA 29.04.96
1797cdf0e10cSrcweir |*
1798cdf0e10cSrcweir *************************************************************************/
1799cdf0e10cSrcweir 
1800cdf0e10cSrcweir SfxPoolItem* XFillBmpPosOffsetYItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
1801cdf0e10cSrcweir {
1802cdf0e10cSrcweir 	return new XFillBmpPosOffsetYItem( rIn );
1803cdf0e10cSrcweir }
1804cdf0e10cSrcweir 
1805cdf0e10cSrcweir 
1806cdf0e10cSrcweir /*************************************************************************
1807cdf0e10cSrcweir |*
1808cdf0e10cSrcweir |*
1809cdf0e10cSrcweir |*
1810cdf0e10cSrcweir |*	  Beschreibung
1811cdf0e10cSrcweir |*	  Ersterstellung	KA 29.04.96
1812cdf0e10cSrcweir |*	  Letzte Aenderung	KA 29.04.96
1813cdf0e10cSrcweir |*
1814cdf0e10cSrcweir *************************************************************************/
1815cdf0e10cSrcweir 
1816cdf0e10cSrcweir SfxItemPresentation XFillBmpPosOffsetYItem::GetPresentation
1817cdf0e10cSrcweir (
1818cdf0e10cSrcweir 	SfxItemPresentation ePres,
1819cdf0e10cSrcweir 	SfxMapUnit			/*eCoreUnit*/,
1820cdf0e10cSrcweir 	SfxMapUnit			/*ePresUnit*/,
1821cdf0e10cSrcweir     XubString&          rText, const IntlWrapper *
1822cdf0e10cSrcweir )	const
1823cdf0e10cSrcweir {
1824cdf0e10cSrcweir 	rText.Erase();
1825cdf0e10cSrcweir 
1826cdf0e10cSrcweir 	switch ( ePres )
1827cdf0e10cSrcweir 	{
1828cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
1829cdf0e10cSrcweir 			return ePres;
1830cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
1831cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
1832cdf0e10cSrcweir 			return ePres;
1833cdf0e10cSrcweir 		default:
1834cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
1835cdf0e10cSrcweir 	}
1836cdf0e10cSrcweir }
1837cdf0e10cSrcweir 
1838cdf0e10cSrcweir //--------------------------
1839cdf0e10cSrcweir // class XFillBackgroundItem
1840cdf0e10cSrcweir //--------------------------
1841cdf0e10cSrcweir TYPEINIT1_AUTOFACTORY(XFillBackgroundItem, SfxBoolItem);
1842cdf0e10cSrcweir 
1843cdf0e10cSrcweir /*************************************************************************
1844cdf0e10cSrcweir |*
1845cdf0e10cSrcweir |*	  XFillBackgroundItem::XFillBackgroundItem( sal_Bool )
1846cdf0e10cSrcweir |*
1847cdf0e10cSrcweir |*	  Beschreibung
1848cdf0e10cSrcweir |*	  Ersterstellung	19.11.96 KA
1849cdf0e10cSrcweir |*	  Letzte Aenderung
1850cdf0e10cSrcweir |*
1851cdf0e10cSrcweir *************************************************************************/
1852cdf0e10cSrcweir 
1853cdf0e10cSrcweir XFillBackgroundItem::XFillBackgroundItem( sal_Bool bFill ) :
1854cdf0e10cSrcweir 	SfxBoolItem( XATTR_FILLBACKGROUND, bFill )
1855cdf0e10cSrcweir {
1856cdf0e10cSrcweir }
1857cdf0e10cSrcweir 
1858cdf0e10cSrcweir /*************************************************************************
1859cdf0e10cSrcweir |*
1860cdf0e10cSrcweir |*	  XFillBackgroundItem::XFillBackgroundItem( SvStream& rIn )
1861cdf0e10cSrcweir |*
1862cdf0e10cSrcweir |*	  Beschreibung
1863cdf0e10cSrcweir |*	  Ersterstellung	23.01.96 KA
1864cdf0e10cSrcweir |*	  Letzte Aenderung	23.01.96 KA
1865cdf0e10cSrcweir |*
1866cdf0e10cSrcweir *************************************************************************/
1867cdf0e10cSrcweir 
1868cdf0e10cSrcweir XFillBackgroundItem::XFillBackgroundItem( SvStream& rIn ) :
1869cdf0e10cSrcweir 	SfxBoolItem( XATTR_FILLBACKGROUND, rIn )
1870cdf0e10cSrcweir {
1871cdf0e10cSrcweir }
1872cdf0e10cSrcweir 
1873cdf0e10cSrcweir /*************************************************************************
1874cdf0e10cSrcweir |*
1875cdf0e10cSrcweir |*	  XFillBackgroundItem::Clone( SfxItemPool* pPool ) const
1876cdf0e10cSrcweir |*
1877cdf0e10cSrcweir |*	  Beschreibung
1878cdf0e10cSrcweir |*	  Ersterstellung	23.01.96 KA
1879cdf0e10cSrcweir |*	  Letzte Aenderung	23.01.96 KA
1880cdf0e10cSrcweir |*
1881cdf0e10cSrcweir *************************************************************************/
1882cdf0e10cSrcweir 
1883cdf0e10cSrcweir SfxPoolItem* XFillBackgroundItem::Clone( SfxItemPool* /*pPool*/) const
1884cdf0e10cSrcweir {
1885cdf0e10cSrcweir 	return new XFillBackgroundItem( *this );
1886cdf0e10cSrcweir }
1887cdf0e10cSrcweir 
1888cdf0e10cSrcweir /*************************************************************************
1889cdf0e10cSrcweir |*
1890cdf0e10cSrcweir |*	  SfxPoolItem* XFillBackgroundItem::Create(SvStream& rIn, sal_uInt16 nVer) const
1891cdf0e10cSrcweir |*
1892cdf0e10cSrcweir |*	  Beschreibung
1893cdf0e10cSrcweir |*	  Ersterstellung	23.01.96 KA
1894cdf0e10cSrcweir |*	  Letzte Aenderung	23.01.96 KA
1895cdf0e10cSrcweir |*
1896cdf0e10cSrcweir *************************************************************************/
1897cdf0e10cSrcweir 
1898cdf0e10cSrcweir SfxPoolItem* XFillBackgroundItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
1899cdf0e10cSrcweir {
1900cdf0e10cSrcweir 	return new XFillBackgroundItem( rIn );
1901cdf0e10cSrcweir }
1902cdf0e10cSrcweir 
1903cdf0e10cSrcweir //------------------------------------------------------------------------
1904cdf0e10cSrcweir 
1905cdf0e10cSrcweir SfxItemPresentation XFillBackgroundItem::GetPresentation( SfxItemPresentation ePres, SfxMapUnit /*eCoreUnit*/,
1906cdf0e10cSrcweir                                                           SfxMapUnit /*ePresUnit*/, XubString& rText, const IntlWrapper*) const
1907cdf0e10cSrcweir {
1908cdf0e10cSrcweir 	rText.Erase();
1909cdf0e10cSrcweir 
1910cdf0e10cSrcweir 	switch( ePres )
1911cdf0e10cSrcweir 	{
1912cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
1913cdf0e10cSrcweir 			return ePres;
1914cdf0e10cSrcweir 
1915cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
1916cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
1917cdf0e10cSrcweir 			return ePres;
1918cdf0e10cSrcweir 		default:
1919cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
1920cdf0e10cSrcweir 	}
1921cdf0e10cSrcweir }
1922cdf0e10cSrcweir 
1923cdf0e10cSrcweir 
1924cdf0e10cSrcweir 
1925