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