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