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