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