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