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