1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: xattr2.cxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_svx.hxx"
34 // include ---------------------------------------------------------------
37 #include <com/sun/star/drawing/LineJoint.hpp>
38 #include <com/sun/star/uno/Any.hxx>
40 #include <svx/dialogs.hrc>
42 #include <svx/xtable.hxx>
43 #include <svx/dialmgr.hxx>
44 #include <svx/itemtype.hxx>
45 #include <svx/xdef.hxx>
47 #define GLOBALOVERFLOW
49 /************************************************************************/
51 //------------------------------
52 // class XLineTransparenceItem
53 //------------------------------
54 TYPEINIT1_AUTOFACTORY(XLineTransparenceItem
, SfxUInt16Item
);
56 /*************************************************************************
58 |* XLineTransparenceItem::XLineTransparenceItem(USHORT)
61 |* Ersterstellung 07.11.95 KA
62 |* Letzte Aenderung 07.11.95 KA
64 *************************************************************************/
66 XLineTransparenceItem::XLineTransparenceItem(USHORT nLineTransparence
) :
67 SfxUInt16Item(XATTR_LINETRANSPARENCE
, nLineTransparence
)
71 /*************************************************************************
73 |* XLineTransparenceItem::XLineTransparenceItem(SvStream& rIn)
76 |* Ersterstellung 07.11.95 KA
77 |* Letzte Aenderung 07.11.95 KA
79 *************************************************************************/
81 XLineTransparenceItem::XLineTransparenceItem(SvStream
& rIn
) :
82 SfxUInt16Item(XATTR_LINETRANSPARENCE
, rIn
)
86 /*************************************************************************
88 |* XLineTransparenceItem::Clone(SfxItemPool* pPool) const
91 |* Ersterstellung 07.11.95 KA
92 |* Letzte Aenderung 07.11.95 KA
94 *************************************************************************/
96 SfxPoolItem
* XLineTransparenceItem::Clone(SfxItemPool
* /*pPool*/) const
98 return new XLineTransparenceItem(*this);
101 /*************************************************************************
103 |* SfxPoolItem* XLineTransparenceItem::Create(SvStream& rIn, USHORT nVer) const
106 |* Ersterstellung 07.11.95 KA
107 |* Letzte Aenderung 07.11.95 KA
109 *************************************************************************/
111 SfxPoolItem
* XLineTransparenceItem::Create(SvStream
& rIn
, USHORT
/*nVer*/) const
113 return new XLineTransparenceItem(rIn
);
116 //------------------------------------------------------------------------
118 SfxItemPresentation
XLineTransparenceItem::GetPresentation
120 SfxItemPresentation ePres
,
121 SfxMapUnit
/*eCoreUnit*/,
122 SfxMapUnit
/*ePresUnit*/,
123 XubString
& rText
, const IntlWrapper
*
130 case SFX_ITEM_PRESENTATION_NONE
:
132 case SFX_ITEM_PRESENTATION_COMPLETE
:
133 rText
= XubString( ResId( RID_SVXSTR_TRANSPARENCE
, DIALOG_MGR() ) );
134 rText
.AppendAscii(": ");
135 case SFX_ITEM_PRESENTATION_NAMELESS
:
136 rText
+= XubString( UniString::CreateFromInt32((USHORT
) GetValue()) );
137 rText
+= sal_Unicode('%');
140 return SFX_ITEM_PRESENTATION_NONE
;
144 //-----------------------
145 // class XLineJointItem -
146 //-----------------------
148 TYPEINIT1_AUTOFACTORY(XLineJointItem
, SfxEnumItem
);
150 // -----------------------------------------------------------------------------
152 XLineJointItem::XLineJointItem( XLineJoint eLineJoint
) :
153 SfxEnumItem(XATTR_LINEJOINT
, sal::static_int_cast
< USHORT
>(eLineJoint
))
157 // -----------------------------------------------------------------------------
159 XLineJointItem::XLineJointItem( SvStream
& rIn
) :
160 SfxEnumItem( XATTR_LINEJOINT
, rIn
)
164 // -----------------------------------------------------------------------------
166 USHORT
XLineJointItem::GetVersion( USHORT
/*nFileFormatVersion*/) const
171 // -----------------------------------------------------------------------------
173 SfxPoolItem
* XLineJointItem::Create( SvStream
& rIn
, USHORT nVer
) const
175 XLineJointItem
* pRet
= new XLineJointItem( rIn
);
178 pRet
->SetValue(XLINEJOINT_ROUND
);
183 // -----------------------------------------------------------------------------
185 SfxPoolItem
* XLineJointItem::Clone(SfxItemPool
* /*pPool*/) const
187 return new XLineJointItem( *this );
190 // -----------------------------------------------------------------------------
192 SfxItemPresentation
XLineJointItem::GetPresentation( SfxItemPresentation ePres
, SfxMapUnit
/*eCoreUnit*/,
193 SfxMapUnit
/*ePresUnit*/, XubString
& rText
, const IntlWrapper
*) const
199 case SFX_ITEM_PRESENTATION_NONE
: return ePres
;
201 case SFX_ITEM_PRESENTATION_COMPLETE
:
202 case SFX_ITEM_PRESENTATION_NAMELESS
:
208 case( XLINEJOINT_NONE
):
209 nId
= RID_SVXSTR_LINEJOINT_NONE
;
212 case( XLINEJOINT_MIDDLE
):
213 nId
= RID_SVXSTR_LINEJOINT_MIDDLE
;
217 case( XLINEJOINT_BEVEL
):
218 nId
= RID_SVXSTR_LINEJOINT_BEVEL
;
222 case( XLINEJOINT_MITER
):
223 nId
= RID_SVXSTR_LINEJOINT_MITER
;
227 case( XLINEJOINT_ROUND
):
228 nId
= RID_SVXSTR_LINEJOINT_ROUND
;
233 rText
= SVX_RESSTR( nId
);
238 return SFX_ITEM_PRESENTATION_NONE
;
242 // -----------------------------------------------------------------------------
244 sal_Bool
XLineJointItem::QueryValue( ::com::sun::star::uno::Any
& rVal
, BYTE
/*nMemberId*/) const
246 ::com::sun::star::drawing::LineJoint eJoint
= ::com::sun::star::drawing::LineJoint_NONE
;
250 case XLINEJOINT_NONE
:
252 case XLINEJOINT_MIDDLE
:
253 eJoint
= ::com::sun::star::drawing::LineJoint_MIDDLE
;
255 case XLINEJOINT_BEVEL
:
256 eJoint
= ::com::sun::star::drawing::LineJoint_BEVEL
;
258 case XLINEJOINT_MITER
:
259 eJoint
= ::com::sun::star::drawing::LineJoint_MITER
;
261 case XLINEJOINT_ROUND
:
262 eJoint
= ::com::sun::star::drawing::LineJoint_ROUND
;
265 DBG_ERROR( "Unknown LineJoint enum value!" );
272 // -----------------------------------------------------------------------------
274 BOOL
XLineJointItem::PutValue( const ::com::sun::star::uno::Any
& rVal
, BYTE
/*nMemberId*/)
276 XLineJoint eJoint
= XLINEJOINT_NONE
;
277 ::com::sun::star::drawing::LineJoint eUnoJoint
;
279 if(!(rVal
>>= eUnoJoint
))
281 // also try an int (for Basic)
285 eUnoJoint
= (::com::sun::star::drawing::LineJoint
)nLJ
;
290 case ::com::sun::star::drawing::LineJoint_MIDDLE
:
291 eJoint
= XLINEJOINT_MIDDLE
;
293 case ::com::sun::star::drawing::LineJoint_BEVEL
:
294 eJoint
= XLINEJOINT_BEVEL
;
296 case ::com::sun::star::drawing::LineJoint_MITER
:
297 eJoint
= XLINEJOINT_MITER
;
299 case ::com::sun::star::drawing::LineJoint_ROUND
:
300 eJoint
= XLINEJOINT_ROUND
;
306 SetValue( sal::static_int_cast
< USHORT
>( eJoint
) );
311 // -----------------------------------------------------------------------------
313 USHORT
XLineJointItem::GetValueCount() const
315 // don't forget to update the api interface also
319 //------------------------------
320 // class XFillTransparenceItem
321 //------------------------------
322 TYPEINIT1_AUTOFACTORY(XFillTransparenceItem
, SfxUInt16Item
);
324 /*************************************************************************
326 |* XFillTransparenceItem::XFillTransparenceItem(USHORT)
329 |* Ersterstellung 07.11.95 KA
330 |* Letzte Aenderung 07.11.95 KA
332 *************************************************************************/
334 XFillTransparenceItem::XFillTransparenceItem(USHORT nFillTransparence
) :
335 SfxUInt16Item(XATTR_FILLTRANSPARENCE
, nFillTransparence
)
339 /*************************************************************************
341 |* XFillTransparenceItem::XFillTransparenceItem(SvStream& rIn)
344 |* Ersterstellung 07.11.95 KA
345 |* Letzte Aenderung 07.11.95 KA
347 *************************************************************************/
349 XFillTransparenceItem::XFillTransparenceItem(SvStream
& rIn
) :
350 SfxUInt16Item(XATTR_FILLTRANSPARENCE
, rIn
)
354 /*************************************************************************
356 |* XFillTransparenceItem::Clone(SfxItemPool* pPool) const
359 |* Ersterstellung 07.11.95 KA
360 |* Letzte Aenderung 07.11.95 KA
362 *************************************************************************/
364 SfxPoolItem
* XFillTransparenceItem::Clone(SfxItemPool
* /*pPool*/) const
366 return new XFillTransparenceItem(*this);
369 /*************************************************************************
371 |* SfxPoolItem* XFillTransparenceItem::Create(SvStream& rIn, USHORT nVer) const
374 |* Ersterstellung 07.11.95 KA
375 |* Letzte Aenderung 07.11.95 KA
377 *************************************************************************/
379 SfxPoolItem
* XFillTransparenceItem::Create(SvStream
& rIn
, USHORT
/*nVer*/) const
381 return new XFillTransparenceItem(rIn
);
384 //------------------------------------------------------------------------
386 SfxItemPresentation
XFillTransparenceItem::GetPresentation
388 SfxItemPresentation ePres
,
389 SfxMapUnit
/*eCoreUnit*/,
390 SfxMapUnit
/*ePresUnit*/,
391 XubString
& rText
, const IntlWrapper
*
398 case SFX_ITEM_PRESENTATION_NONE
:
400 case SFX_ITEM_PRESENTATION_COMPLETE
:
401 rText
= XubString( ResId( RID_SVXSTR_TRANSPARENCE
, DIALOG_MGR() ) );
402 rText
.AppendAscii(": ");
403 case SFX_ITEM_PRESENTATION_NAMELESS
:
404 rText
+= XubString( UniString::CreateFromInt32((USHORT
) GetValue() ));
405 rText
+= sal_Unicode('%');
408 return SFX_ITEM_PRESENTATION_NONE
;
412 //------------------------------
413 // class XFormTextShadowTranspItem
414 //------------------------------
415 TYPEINIT1_AUTOFACTORY(XFormTextShadowTranspItem
, SfxUInt16Item
);
417 /*************************************************************************
419 |* XFormTextShadowTranspItem::XFormTextShadowTranspItem(USHORT)
422 |* Ersterstellung 09.11.95 KA
423 |* Letzte Aenderung 09.11.95 KA
425 *************************************************************************/
427 XFormTextShadowTranspItem::XFormTextShadowTranspItem(USHORT nShdwTransparence
) :
428 SfxUInt16Item(XATTR_FORMTXTSHDWTRANSP
, nShdwTransparence
)
432 /*************************************************************************
434 |* XFormTextShadowTranspItem::XFormTextShadowTranspItem(SvStream& rIn)
437 |* Ersterstellung 09.11.95 KA
438 |* Letzte Aenderung 09.11.95 KA
440 *************************************************************************/
442 XFormTextShadowTranspItem::XFormTextShadowTranspItem(SvStream
& rIn
) :
443 SfxUInt16Item(XATTR_FORMTXTSHDWTRANSP
, rIn
)
447 /*************************************************************************
449 |* XFormTextShadowTranspItem::Clone(SfxItemPool* pPool) const
452 |* Ersterstellung 09.11.95 KA
453 |* Letzte Aenderung 09.11.95 KA
455 *************************************************************************/
457 SfxPoolItem
* XFormTextShadowTranspItem::Clone(SfxItemPool
* /*pPool*/) const
459 return new XFormTextShadowTranspItem(*this);
462 /*************************************************************************
464 |* SfxPoolItem* XFormTextShadowTranspItem::Create(SvStream& rIn, USHORT nVer) const
467 |* Ersterstellung 09.11.95 KA
468 |* Letzte Aenderung 09.11.95 KA
470 *************************************************************************/
472 SfxPoolItem
* XFormTextShadowTranspItem::Create(SvStream
& rIn
, USHORT
/*nVer*/) const
474 return new XFormTextShadowTranspItem(rIn
);
478 //------------------------------
479 // class XFillGradientStepCountItem
480 //------------------------------
481 TYPEINIT1_AUTOFACTORY(XGradientStepCountItem
, SfxUInt16Item
);
483 /*************************************************************************
485 |* XGradientStepCountItem::XGradientStepCountItem( USHORT )
488 |* Ersterstellung 23.01.96 KA
489 |* Letzte Aenderung 23.01.96 KA
491 *************************************************************************/
493 XGradientStepCountItem::XGradientStepCountItem( USHORT nStepCount
) :
494 SfxUInt16Item( XATTR_GRADIENTSTEPCOUNT
, nStepCount
)
498 /*************************************************************************
500 |* XGradientStepCountItem::XGradientStepCountItem( SvStream& rIn )
503 |* Ersterstellung 23.01.96 KA
504 |* Letzte Aenderung 23.01.96 KA
506 *************************************************************************/
508 XGradientStepCountItem::XGradientStepCountItem( SvStream
& rIn
) :
509 SfxUInt16Item( XATTR_GRADIENTSTEPCOUNT
, rIn
)
513 /*************************************************************************
515 |* XGradientStepCountItem::Clone( SfxItemPool* pPool ) const
518 |* Ersterstellung 23.01.96 KA
519 |* Letzte Aenderung 23.01.96 KA
521 *************************************************************************/
523 SfxPoolItem
* XGradientStepCountItem::Clone( SfxItemPool
* /*pPool*/) const
525 return new XGradientStepCountItem( *this );
528 /*************************************************************************
530 |* SfxPoolItem* XGradientStepCountItem::Create(SvStream& rIn, USHORT nVer) const
533 |* Ersterstellung 23.01.96 KA
534 |* Letzte Aenderung 23.01.96 KA
536 *************************************************************************/
538 SfxPoolItem
* XGradientStepCountItem::Create(SvStream
& rIn
, USHORT
/*nVer*/) const
540 return new XGradientStepCountItem( rIn
);
543 //------------------------------------------------------------------------
545 SfxItemPresentation
XGradientStepCountItem::GetPresentation
547 SfxItemPresentation ePres
,
548 SfxMapUnit
/*eCoreUnit*/,
549 SfxMapUnit
/*ePresUnit*/,
550 XubString
& rText
, const IntlWrapper
*
557 case SFX_ITEM_PRESENTATION_NONE
:
559 case SFX_ITEM_PRESENTATION_COMPLETE
:
560 // rText = XubString( ResId( RID_SVXSTR_GRADIENTSTEPCOUNT, DIALOG_MGR() ) );
562 case SFX_ITEM_PRESENTATION_NAMELESS
:
563 rText
+= XubString( UniString::CreateFromInt32((USHORT
) GetValue() ));
566 return SFX_ITEM_PRESENTATION_NONE
;
571 //------------------------------
572 // class XFillBmpTileItem
573 //------------------------------
574 TYPEINIT1_AUTOFACTORY( XFillBmpTileItem
, SfxBoolItem
);
576 /*************************************************************************
581 |* Ersterstellung 28.02.96 KA
582 |* Letzte Aenderung 28.02.96 KA
584 *************************************************************************/
586 XFillBmpTileItem::XFillBmpTileItem( BOOL bTile
) :
587 SfxBoolItem( XATTR_FILLBMP_TILE
, bTile
)
592 /*************************************************************************
597 |* Ersterstellung 28.02.96 KA
598 |* Letzte Aenderung 28.02.96 KA
600 *************************************************************************/
602 XFillBmpTileItem::XFillBmpTileItem( SvStream
& rIn
) :
603 SfxBoolItem( XATTR_FILLBMP_TILE
, rIn
)
608 /*************************************************************************
613 |* Ersterstellung 28.02.96 KA
614 |* Letzte Aenderung 28.02.96 KA
616 *************************************************************************/
618 SfxPoolItem
* XFillBmpTileItem::Clone( SfxItemPool
* /*pPool*/) const
620 return new XFillBmpTileItem( *this );
624 /*************************************************************************
629 |* Ersterstellung 28.02.96 KA
630 |* Letzte Aenderung 28.02.96 KA
632 *************************************************************************/
634 SfxPoolItem
* XFillBmpTileItem::Create( SvStream
& rIn
, USHORT
/*nVer*/) const
636 return new XFillBmpTileItem( rIn
);
640 /*************************************************************************
645 |* Ersterstellung 28.02.96 KA
646 |* Letzte Aenderung 28.02.96 KA
648 *************************************************************************/
650 SfxItemPresentation
XFillBmpTileItem::GetPresentation
652 SfxItemPresentation ePres
,
653 SfxMapUnit
/*eCoreUnit*/,
654 SfxMapUnit
/*ePresUnit*/,
655 XubString
& rText
, const IntlWrapper
*
662 case SFX_ITEM_PRESENTATION_NONE
:
664 case SFX_ITEM_PRESENTATION_COMPLETE
:
665 case SFX_ITEM_PRESENTATION_NAMELESS
:
668 return SFX_ITEM_PRESENTATION_NONE
;
673 //------------------------------
674 // class XFillBmpTilePosItem
675 //------------------------------
676 TYPEINIT1_AUTOFACTORY( XFillBmpPosItem
, SfxEnumItem
);
678 /*************************************************************************
683 |* Ersterstellung 28.02.96 KA
684 |* Letzte Aenderung 28.02.96 KA
686 *************************************************************************/
688 XFillBmpPosItem::XFillBmpPosItem( RECT_POINT eRP
) :
689 SfxEnumItem( XATTR_FILLBMP_POS
, sal::static_int_cast
< USHORT
>( eRP
) )
694 /*************************************************************************
699 |* Ersterstellung 28.02.96 KA
700 |* Letzte Aenderung 28.02.96 KA
702 *************************************************************************/
704 XFillBmpPosItem::XFillBmpPosItem( SvStream
& rIn
) :
705 SfxEnumItem( XATTR_FILLBMP_POS
, rIn
)
710 /*************************************************************************
715 |* Ersterstellung 28.02.96 KA
716 |* Letzte Aenderung 28.02.96 KA
718 *************************************************************************/
720 SfxPoolItem
* XFillBmpPosItem::Clone( SfxItemPool
* /*pPool*/) const
722 return new XFillBmpPosItem( *this );
726 /*************************************************************************
731 |* Ersterstellung 28.02.96 KA
732 |* Letzte Aenderung 28.02.96 KA
734 *************************************************************************/
736 SfxPoolItem
* XFillBmpPosItem::Create( SvStream
& rIn
, USHORT
/*nVer*/) const
738 return new XFillBmpPosItem( rIn
);
742 /*************************************************************************
747 |* Ersterstellung 28.02.96 KA
748 |* Letzte Aenderung 28.02.96 KA
750 *************************************************************************/
752 SfxItemPresentation
XFillBmpPosItem::GetPresentation
754 SfxItemPresentation ePres
,
755 SfxMapUnit
/*eCoreUnit*/,
756 SfxMapUnit
/*ePresUnit*/,
757 XubString
& rText
, const IntlWrapper
*
764 case SFX_ITEM_PRESENTATION_NONE
:
766 case SFX_ITEM_PRESENTATION_COMPLETE
:
767 case SFX_ITEM_PRESENTATION_NAMELESS
:
770 return SFX_ITEM_PRESENTATION_NONE
;
774 /******************************************************************************
778 \******************************************************************************/
780 USHORT
XFillBmpPosItem::GetValueCount() const
786 //------------------------------
787 // class XFillBmpTileSizeXItem
788 //------------------------------
789 TYPEINIT1_AUTOFACTORY( XFillBmpSizeXItem
, SfxMetricItem
);
791 /*************************************************************************
796 |* Ersterstellung 28.02.96 KA
797 |* Letzte Aenderung 28.02.96 KA
799 *************************************************************************/
801 XFillBmpSizeXItem::XFillBmpSizeXItem( long nSizeX
) :
802 SfxMetricItem( XATTR_FILLBMP_SIZEX
, nSizeX
)
807 /*************************************************************************
812 |* Ersterstellung 28.02.96 KA
813 |* Letzte Aenderung 28.02.96 KA
815 *************************************************************************/
817 XFillBmpSizeXItem::XFillBmpSizeXItem( SvStream
& rIn
) :
818 SfxMetricItem( XATTR_FILLBMP_SIZEX
, rIn
)
823 /*************************************************************************
828 |* Ersterstellung 28.02.96 KA
829 |* Letzte Aenderung 28.02.96 KA
831 *************************************************************************/
833 SfxPoolItem
* XFillBmpSizeXItem::Clone( SfxItemPool
* /*pPool*/) const
835 return new XFillBmpSizeXItem( *this );
839 /*************************************************************************
844 |* Ersterstellung 28.02.96 KA
845 |* Letzte Aenderung 28.02.96 KA
847 *************************************************************************/
849 SfxPoolItem
* XFillBmpSizeXItem::Create( SvStream
& rIn
, USHORT
/*nVer*/) const
851 return new XFillBmpSizeXItem( rIn
);
855 /*************************************************************************
860 |* Ersterstellung 28.02.96 KA
861 |* Letzte Aenderung 28.02.96 KA
863 *************************************************************************/
865 SfxItemPresentation
XFillBmpSizeXItem::GetPresentation
867 SfxItemPresentation ePres
,
868 SfxMapUnit
/*eCoreUnit*/,
869 SfxMapUnit
/*ePresUnit*/,
870 XubString
& rText
, const IntlWrapper
*
877 case SFX_ITEM_PRESENTATION_NONE
:
879 case SFX_ITEM_PRESENTATION_COMPLETE
:
880 case SFX_ITEM_PRESENTATION_NAMELESS
:
883 return SFX_ITEM_PRESENTATION_NONE
;
888 /*************************************************************************
891 |* Ersterstellung 05.11.96 KA
892 |* Letzte Aenderung 05.11.96 KA
894 \*************************************************************************/
896 FASTBOOL
XFillBmpSizeXItem::HasMetrics() const
898 return GetValue() > 0L;
902 //------------------------------
903 // class XFillBmpTileSizeYItem
904 //------------------------------
905 TYPEINIT1_AUTOFACTORY( XFillBmpSizeYItem
, SfxMetricItem
);
907 /*************************************************************************
912 |* Ersterstellung 28.02.96 KA
913 |* Letzte Aenderung 28.02.96 KA
915 *************************************************************************/
917 XFillBmpSizeYItem::XFillBmpSizeYItem( long nSizeY
) :
918 SfxMetricItem( XATTR_FILLBMP_SIZEY
, nSizeY
)
923 /*************************************************************************
928 |* Ersterstellung 28.02.96 KA
929 |* Letzte Aenderung 28.02.96 KA
931 *************************************************************************/
933 XFillBmpSizeYItem::XFillBmpSizeYItem( SvStream
& rIn
) :
934 SfxMetricItem( XATTR_FILLBMP_SIZEY
, rIn
)
939 /*************************************************************************
944 |* Ersterstellung 28.02.96 KA
945 |* Letzte Aenderung 28.02.96 KA
947 *************************************************************************/
949 SfxPoolItem
* XFillBmpSizeYItem::Clone( SfxItemPool
* /*pPool*/) const
951 return new XFillBmpSizeYItem( *this );
955 /*************************************************************************
960 |* Ersterstellung 28.02.96 KA
961 |* Letzte Aenderung 28.02.96 KA
963 *************************************************************************/
965 SfxPoolItem
* XFillBmpSizeYItem::Create( SvStream
& rIn
, USHORT
/*nVer*/) const
967 return new XFillBmpSizeYItem( rIn
);
971 /*************************************************************************
976 |* Ersterstellung 28.02.96 KA
977 |* Letzte Aenderung 28.02.96 KA
979 *************************************************************************/
981 SfxItemPresentation
XFillBmpSizeYItem::GetPresentation
983 SfxItemPresentation ePres
,
984 SfxMapUnit
/*eCoreUnit*/,
985 SfxMapUnit
/*ePresUnit*/,
986 XubString
& rText
, const IntlWrapper
*
993 case SFX_ITEM_PRESENTATION_NONE
:
995 case SFX_ITEM_PRESENTATION_COMPLETE
:
996 case SFX_ITEM_PRESENTATION_NAMELESS
:
999 return SFX_ITEM_PRESENTATION_NONE
;
1004 /*************************************************************************
1007 |* Ersterstellung 05.11.96 KA
1008 |* Letzte Aenderung 05.11.96 KA
1010 \*************************************************************************/
1012 FASTBOOL
XFillBmpSizeYItem::HasMetrics() const
1014 return GetValue() > 0L;
1018 //------------------------------
1019 // class XFillBmpTileLogItem
1020 //------------------------------
1021 TYPEINIT1_AUTOFACTORY( XFillBmpSizeLogItem
, SfxBoolItem
);
1023 /*************************************************************************
1028 |* Ersterstellung 28.02.96 KA
1029 |* Letzte Aenderung 28.02.96 KA
1031 *************************************************************************/
1033 XFillBmpSizeLogItem::XFillBmpSizeLogItem( BOOL bLog
) :
1034 SfxBoolItem( XATTR_FILLBMP_SIZELOG
, bLog
)
1039 /*************************************************************************
1044 |* Ersterstellung 28.02.96 KA
1045 |* Letzte Aenderung 28.02.96 KA
1047 *************************************************************************/
1049 XFillBmpSizeLogItem::XFillBmpSizeLogItem( SvStream
& rIn
) :
1050 SfxBoolItem( XATTR_FILLBMP_SIZELOG
, rIn
)
1055 /*************************************************************************
1060 |* Ersterstellung 28.02.96 KA
1061 |* Letzte Aenderung 28.02.96 KA
1063 *************************************************************************/
1065 SfxPoolItem
* XFillBmpSizeLogItem::Clone( SfxItemPool
* /*pPool*/) const
1067 return new XFillBmpSizeLogItem( *this );
1071 /*************************************************************************
1076 |* Ersterstellung 28.02.96 KA
1077 |* Letzte Aenderung 28.02.96 KA
1079 *************************************************************************/
1081 SfxPoolItem
* XFillBmpSizeLogItem::Create( SvStream
& rIn
, USHORT
/*nVer*/) const
1083 return new XFillBmpSizeLogItem( rIn
);
1087 /*************************************************************************
1092 |* Ersterstellung 28.02.96 KA
1093 |* Letzte Aenderung 28.02.96 KA
1095 *************************************************************************/
1097 SfxItemPresentation
XFillBmpSizeLogItem::GetPresentation
1099 SfxItemPresentation ePres
,
1100 SfxMapUnit
/*eCoreUnit*/,
1101 SfxMapUnit
/*ePresUnit*/,
1102 XubString
& rText
, const IntlWrapper
*
1109 case SFX_ITEM_PRESENTATION_NONE
:
1111 case SFX_ITEM_PRESENTATION_COMPLETE
:
1112 case SFX_ITEM_PRESENTATION_NAMELESS
:
1115 return SFX_ITEM_PRESENTATION_NONE
;
1120 //------------------------------
1121 // class XFillBmpTileOffXItem
1122 //------------------------------
1123 TYPEINIT1_AUTOFACTORY( XFillBmpTileOffsetXItem
, SfxUInt16Item
);
1125 /*************************************************************************
1130 |* Ersterstellung 28.02.96 KA
1131 |* Letzte Aenderung 28.02.96 KA
1133 *************************************************************************/
1135 XFillBmpTileOffsetXItem::XFillBmpTileOffsetXItem( USHORT nOffX
) :
1136 SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETX
, nOffX
)
1141 /*************************************************************************
1146 |* Ersterstellung 28.02.96 KA
1147 |* Letzte Aenderung 28.02.96 KA
1149 *************************************************************************/
1151 XFillBmpTileOffsetXItem::XFillBmpTileOffsetXItem( SvStream
& rIn
) :
1152 SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETX
, rIn
)
1157 /*************************************************************************
1162 |* Ersterstellung 28.02.96 KA
1163 |* Letzte Aenderung 28.02.96 KA
1165 *************************************************************************/
1167 SfxPoolItem
* XFillBmpTileOffsetXItem::Clone( SfxItemPool
* /*pPool*/) const
1169 return new XFillBmpTileOffsetXItem( *this );
1173 /*************************************************************************
1178 |* Ersterstellung 28.02.96 KA
1179 |* Letzte Aenderung 28.02.96 KA
1181 *************************************************************************/
1183 SfxPoolItem
* XFillBmpTileOffsetXItem::Create( SvStream
& rIn
, USHORT
/*nVer*/) const
1185 return new XFillBmpTileOffsetXItem( rIn
);
1189 /*************************************************************************
1194 |* Ersterstellung 28.02.96 KA
1195 |* Letzte Aenderung 28.02.96 KA
1197 *************************************************************************/
1199 SfxItemPresentation
XFillBmpTileOffsetXItem::GetPresentation
1201 SfxItemPresentation ePres
,
1202 SfxMapUnit
/*eCoreUnit*/,
1203 SfxMapUnit
/*ePresUnit*/,
1204 XubString
& rText
, const IntlWrapper
*
1211 case SFX_ITEM_PRESENTATION_NONE
:
1213 case SFX_ITEM_PRESENTATION_COMPLETE
:
1214 case SFX_ITEM_PRESENTATION_NAMELESS
:
1217 return SFX_ITEM_PRESENTATION_NONE
;
1222 //------------------------------
1223 // class XFillBmpTileOffYItem
1224 //------------------------------
1225 TYPEINIT1_AUTOFACTORY( XFillBmpTileOffsetYItem
, SfxUInt16Item
);
1227 /*************************************************************************
1232 |* Ersterstellung 28.02.96 KA
1233 |* Letzte Aenderung 28.02.96 KA
1235 *************************************************************************/
1237 XFillBmpTileOffsetYItem::XFillBmpTileOffsetYItem( USHORT nOffY
) :
1238 SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETY
, nOffY
)
1243 /*************************************************************************
1248 |* Ersterstellung 28.02.96 KA
1249 |* Letzte Aenderung 28.02.96 KA
1251 *************************************************************************/
1253 XFillBmpTileOffsetYItem::XFillBmpTileOffsetYItem( SvStream
& rIn
) :
1254 SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETY
, rIn
)
1259 /*************************************************************************
1264 |* Ersterstellung 28.02.96 KA
1265 |* Letzte Aenderung 28.02.96 KA
1267 *************************************************************************/
1269 SfxPoolItem
* XFillBmpTileOffsetYItem::Clone( SfxItemPool
* /*pPool*/) const
1271 return new XFillBmpTileOffsetYItem( *this );
1275 /*************************************************************************
1280 |* Ersterstellung 28.02.96 KA
1281 |* Letzte Aenderung 28.02.96 KA
1283 *************************************************************************/
1285 SfxPoolItem
* XFillBmpTileOffsetYItem::Create( SvStream
& rIn
, USHORT
/*nVer*/) const
1287 return new XFillBmpTileOffsetYItem( rIn
);
1291 /*************************************************************************
1296 |* Ersterstellung 28.02.96 KA
1297 |* Letzte Aenderung 28.02.96 KA
1299 *************************************************************************/
1301 SfxItemPresentation
XFillBmpTileOffsetYItem::GetPresentation
1303 SfxItemPresentation ePres
,
1304 SfxMapUnit
/*eCoreUnit*/,
1305 SfxMapUnit
/*ePresUnit*/,
1306 XubString
& rText
, const IntlWrapper
*
1313 case SFX_ITEM_PRESENTATION_NONE
:
1315 case SFX_ITEM_PRESENTATION_COMPLETE
:
1316 case SFX_ITEM_PRESENTATION_NAMELESS
:
1319 return SFX_ITEM_PRESENTATION_NONE
;
1324 //------------------------------
1325 // class XFillBmpStretchItem
1326 //------------------------------
1327 TYPEINIT1_AUTOFACTORY( XFillBmpStretchItem
, SfxBoolItem
);
1329 /*************************************************************************
1334 |* Ersterstellung 28.02.96 KA
1335 |* Letzte Aenderung 28.02.96 KA
1337 *************************************************************************/
1339 XFillBmpStretchItem::XFillBmpStretchItem( BOOL bStretch
) :
1340 SfxBoolItem( XATTR_FILLBMP_STRETCH
, bStretch
)
1345 /*************************************************************************
1350 |* Ersterstellung 28.02.96 KA
1351 |* Letzte Aenderung 28.02.96 KA
1353 *************************************************************************/
1355 XFillBmpStretchItem::XFillBmpStretchItem( SvStream
& rIn
) :
1356 SfxBoolItem( XATTR_FILLBMP_STRETCH
, rIn
)
1361 /*************************************************************************
1366 |* Ersterstellung 28.02.96 KA
1367 |* Letzte Aenderung 28.02.96 KA
1369 *************************************************************************/
1371 SfxPoolItem
* XFillBmpStretchItem::Clone( SfxItemPool
* /*pPool*/) const
1373 return new XFillBmpStretchItem( *this );
1377 /*************************************************************************
1382 |* Ersterstellung 28.02.96 KA
1383 |* Letzte Aenderung 28.02.96 KA
1385 *************************************************************************/
1387 SfxPoolItem
* XFillBmpStretchItem::Create( SvStream
& rIn
, USHORT
/*nVer*/) const
1389 return new XFillBmpStretchItem( rIn
);
1393 /*************************************************************************
1398 |* Ersterstellung 28.02.96 KA
1399 |* Letzte Aenderung 28.02.96 KA
1401 *************************************************************************/
1403 SfxItemPresentation
XFillBmpStretchItem::GetPresentation
1405 SfxItemPresentation ePres
,
1406 SfxMapUnit
/*eCoreUnit*/,
1407 SfxMapUnit
/*ePresUnit*/,
1408 XubString
& rText
, const IntlWrapper
*
1415 case SFX_ITEM_PRESENTATION_NONE
:
1417 case SFX_ITEM_PRESENTATION_COMPLETE
:
1418 case SFX_ITEM_PRESENTATION_NAMELESS
:
1421 return SFX_ITEM_PRESENTATION_NONE
;
1426 //------------------------------
1427 // class XFillBmpTileOffPosXItem
1428 //------------------------------
1429 TYPEINIT1_AUTOFACTORY( XFillBmpPosOffsetXItem
, SfxUInt16Item
);
1431 /*************************************************************************
1436 |* Ersterstellung KA 29.04.96
1437 |* Letzte Aenderung KA 29.04.96
1439 *************************************************************************/
1441 XFillBmpPosOffsetXItem::XFillBmpPosOffsetXItem( USHORT nOffPosX
) :
1442 SfxUInt16Item( XATTR_FILLBMP_POSOFFSETX
, nOffPosX
)
1447 /*************************************************************************
1452 |* Ersterstellung KA 29.04.96
1453 |* Letzte Aenderung KA 29.04.96
1455 *************************************************************************/
1457 XFillBmpPosOffsetXItem::XFillBmpPosOffsetXItem( SvStream
& rIn
) :
1458 SfxUInt16Item( XATTR_FILLBMP_POSOFFSETX
, rIn
)
1463 /*************************************************************************
1468 |* Ersterstellung KA 29.04.96
1469 |* Letzte Aenderung KA 29.04.96
1471 *************************************************************************/
1473 SfxPoolItem
* XFillBmpPosOffsetXItem::Clone( SfxItemPool
* /*pPool*/) const
1475 return new XFillBmpPosOffsetXItem( *this );
1479 /*************************************************************************
1484 |* Ersterstellung KA 29.04.96
1485 |* Letzte Aenderung KA 29.04.96
1487 *************************************************************************/
1489 SfxPoolItem
* XFillBmpPosOffsetXItem::Create( SvStream
& rIn
, USHORT
/*nVer*/) const
1491 return new XFillBmpPosOffsetXItem( rIn
);
1495 /*************************************************************************
1500 |* Ersterstellung KA 29.04.96
1501 |* Letzte Aenderung KA 29.04.96
1503 *************************************************************************/
1505 SfxItemPresentation
XFillBmpPosOffsetXItem::GetPresentation
1507 SfxItemPresentation ePres
,
1508 SfxMapUnit
/*eCoreUnit*/,
1509 SfxMapUnit
/*ePresUnit*/,
1510 XubString
& rText
, const IntlWrapper
*
1517 case SFX_ITEM_PRESENTATION_NONE
:
1519 case SFX_ITEM_PRESENTATION_COMPLETE
:
1520 case SFX_ITEM_PRESENTATION_NAMELESS
:
1523 return SFX_ITEM_PRESENTATION_NONE
;
1528 //------------------------------
1529 // class XFillBmpTileOffPosYItem
1530 //------------------------------
1531 TYPEINIT1_AUTOFACTORY( XFillBmpPosOffsetYItem
, SfxUInt16Item
);
1533 /*************************************************************************
1538 |* Ersterstellung KA 29.04.96
1539 |* Letzte Aenderung KA 29.04.96
1541 *************************************************************************/
1543 XFillBmpPosOffsetYItem::XFillBmpPosOffsetYItem( USHORT nOffPosY
) :
1544 SfxUInt16Item( XATTR_FILLBMP_POSOFFSETY
, nOffPosY
)
1549 /*************************************************************************
1554 |* Ersterstellung KA 29.04.96
1555 |* Letzte Aenderung KA 29.04.96
1557 *************************************************************************/
1559 XFillBmpPosOffsetYItem::XFillBmpPosOffsetYItem( SvStream
& rIn
) :
1560 SfxUInt16Item( XATTR_FILLBMP_POSOFFSETY
, rIn
)
1565 /*************************************************************************
1570 |* Ersterstellung KA 29.04.96
1571 |* Letzte Aenderung KA 29.04.96
1573 *************************************************************************/
1575 SfxPoolItem
* XFillBmpPosOffsetYItem::Clone( SfxItemPool
* /*pPool*/) const
1577 return new XFillBmpPosOffsetYItem( *this );
1581 /*************************************************************************
1586 |* Ersterstellung KA 29.04.96
1587 |* Letzte Aenderung KA 29.04.96
1589 *************************************************************************/
1591 SfxPoolItem
* XFillBmpPosOffsetYItem::Create( SvStream
& rIn
, USHORT
/*nVer*/) const
1593 return new XFillBmpPosOffsetYItem( rIn
);
1597 /*************************************************************************
1602 |* Ersterstellung KA 29.04.96
1603 |* Letzte Aenderung KA 29.04.96
1605 *************************************************************************/
1607 SfxItemPresentation
XFillBmpPosOffsetYItem::GetPresentation
1609 SfxItemPresentation ePres
,
1610 SfxMapUnit
/*eCoreUnit*/,
1611 SfxMapUnit
/*ePresUnit*/,
1612 XubString
& rText
, const IntlWrapper
*
1619 case SFX_ITEM_PRESENTATION_NONE
:
1621 case SFX_ITEM_PRESENTATION_COMPLETE
:
1622 case SFX_ITEM_PRESENTATION_NAMELESS
:
1625 return SFX_ITEM_PRESENTATION_NONE
;
1629 //--------------------------
1630 // class XFillBackgroundItem
1631 //--------------------------
1632 TYPEINIT1_AUTOFACTORY(XFillBackgroundItem
, SfxBoolItem
);
1634 /*************************************************************************
1636 |* XFillBackgroundItem::XFillBackgroundItem( BOOL )
1639 |* Ersterstellung 19.11.96 KA
1642 *************************************************************************/
1644 XFillBackgroundItem::XFillBackgroundItem( BOOL bFill
) :
1645 SfxBoolItem( XATTR_FILLBACKGROUND
, bFill
)
1649 /*************************************************************************
1651 |* XFillBackgroundItem::XFillBackgroundItem( SvStream& rIn )
1654 |* Ersterstellung 23.01.96 KA
1655 |* Letzte Aenderung 23.01.96 KA
1657 *************************************************************************/
1659 XFillBackgroundItem::XFillBackgroundItem( SvStream
& rIn
) :
1660 SfxBoolItem( XATTR_FILLBACKGROUND
, rIn
)
1664 /*************************************************************************
1666 |* XFillBackgroundItem::Clone( SfxItemPool* pPool ) const
1669 |* Ersterstellung 23.01.96 KA
1670 |* Letzte Aenderung 23.01.96 KA
1672 *************************************************************************/
1674 SfxPoolItem
* XFillBackgroundItem::Clone( SfxItemPool
* /*pPool*/) const
1676 return new XFillBackgroundItem( *this );
1679 /*************************************************************************
1681 |* SfxPoolItem* XFillBackgroundItem::Create(SvStream& rIn, USHORT nVer) const
1684 |* Ersterstellung 23.01.96 KA
1685 |* Letzte Aenderung 23.01.96 KA
1687 *************************************************************************/
1689 SfxPoolItem
* XFillBackgroundItem::Create(SvStream
& rIn
, USHORT
/*nVer*/) const
1691 return new XFillBackgroundItem( rIn
);
1694 //------------------------------------------------------------------------
1696 SfxItemPresentation
XFillBackgroundItem::GetPresentation( SfxItemPresentation ePres
, SfxMapUnit
/*eCoreUnit*/,
1697 SfxMapUnit
/*ePresUnit*/, XubString
& rText
, const IntlWrapper
*) const
1703 case SFX_ITEM_PRESENTATION_NONE
:
1706 case SFX_ITEM_PRESENTATION_COMPLETE
:
1707 case SFX_ITEM_PRESENTATION_NAMELESS
:
1710 return SFX_ITEM_PRESENTATION_NONE
;