diff options
Diffstat (limited to 'svx/source/svdraw/svdattr.cxx')
-rw-r--r-- | svx/source/svdraw/svdattr.cxx | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/svx/source/svdraw/svdattr.cxx b/svx/source/svdraw/svdattr.cxx index 9b034d60144a..016c19dae476 100644 --- a/svx/source/svdraw/svdattr.cxx +++ b/svx/source/svdraw/svdattr.cxx @@ -610,15 +610,6 @@ void SdrItemPool::TakeItemName(sal_uInt16 nWhich, OUString& rItemName) // FractionItem -SdrFractionItem::SdrFractionItem(sal_uInt16 nId, SvStream& rIn): - SfxPoolItem(nId) -{ - sal_Int32 nMul,nDiv; - rIn.ReadInt32( nMul ); - rIn.ReadInt32( nDiv ); - nValue=Fraction(nMul,nDiv); -} - bool SdrFractionItem::operator==(const SfxPoolItem& rCmp) const { return SfxPoolItem::operator==(rCmp) && @@ -658,18 +649,6 @@ bool SdrFractionItem::GetPresentation( return false; } -SfxPoolItem* SdrFractionItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const -{ - return new SdrFractionItem(Which(),rIn); -} - -SvStream& SdrFractionItem::Store(SvStream& rOut, sal_uInt16 /*nItemVers*/) const -{ - rOut.WriteInt32( nValue.GetNumerator() ); - rOut.WriteInt32( nValue.GetDenominator() ); - return rOut; -} - SfxPoolItem* SdrFractionItem::Clone(SfxItemPool * /*pPool*/) const { return new SdrFractionItem(Which(),GetValue()); @@ -705,11 +684,6 @@ bool SdrScaleItem::GetPresentation( return true; } -SfxPoolItem* SdrScaleItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const -{ - return new SdrScaleItem(Which(),rIn); -} - SfxPoolItem* SdrScaleItem::Clone(SfxItemPool * /*pPool*/) const { return new SdrScaleItem(Which(),GetValue()); @@ -1335,16 +1309,6 @@ SdrTextFixedCellHeightItem::SdrTextFixedCellHeightItem( bool bUseFixedCellHeight : SfxBoolItem( SDRATTR_TEXT_USEFIXEDCELLHEIGHT, bUseFixedCellHeight ) { } -SdrTextFixedCellHeightItem::SdrTextFixedCellHeightItem( SvStream & rStream, sal_uInt16 nVersion ) - : SfxBoolItem( SDRATTR_TEXT_USEFIXEDCELLHEIGHT, false ) -{ - if ( nVersion ) - { - bool bValue; - rStream.ReadCharAsBool( bValue ); - SetValue( bValue ); - } -} bool SdrTextFixedCellHeightItem::GetPresentation( SfxItemPresentation ePres, MapUnit /*eCoreMetric*/, MapUnit /*ePresentationMetric*/, OUString &rText, const IntlWrapper& ) const @@ -1358,19 +1322,6 @@ bool SdrTextFixedCellHeightItem::GetPresentation( SfxItemPresentation ePres, } return true; } -SfxPoolItem* SdrTextFixedCellHeightItem::Create( SvStream& rIn, sal_uInt16 nItemVersion ) const -{ - return new SdrTextFixedCellHeightItem( rIn, nItemVersion ); -} -SvStream& SdrTextFixedCellHeightItem::Store( SvStream& rOut, sal_uInt16 nItemVersion ) const -{ - if ( nItemVersion ) - { - bool bValue = GetValue(); - rOut.WriteBool( bValue ); - } - return rOut; -} SfxPoolItem* SdrTextFixedCellHeightItem::Clone( SfxItemPool * /*pPool*/) const { return new SdrTextFixedCellHeightItem( GetValue() ); @@ -1399,22 +1350,6 @@ SdrCustomShapeAdjustmentItem::SdrCustomShapeAdjustmentItem() : SfxPoolItem( SDRA { } -SdrCustomShapeAdjustmentItem::SdrCustomShapeAdjustmentItem( SvStream& rIn, sal_uInt16 nVersion ): - SfxPoolItem( SDRATTR_CUSTOMSHAPE_ADJUSTMENT ) -{ - if ( nVersion ) - { - SdrCustomShapeAdjustmentValue aVal; - sal_uInt32 i, nCount; - rIn.ReadUInt32( nCount ); - for ( i = 0; i < nCount; i++ ) - { - rIn.ReadUInt32( aVal.nValue ); - SetValue( i, aVal ); - } - } -} - SdrCustomShapeAdjustmentItem::~SdrCustomShapeAdjustmentItem() { } @@ -1456,23 +1391,6 @@ bool SdrCustomShapeAdjustmentItem::GetPresentation( return true; } -SfxPoolItem* SdrCustomShapeAdjustmentItem::Create( SvStream& rIn, sal_uInt16 nItemVersion ) const -{ - return new SdrCustomShapeAdjustmentItem( rIn, nItemVersion ); -} - -SvStream& SdrCustomShapeAdjustmentItem::Store( SvStream& rOut, sal_uInt16 nItemVersion ) const -{ - if ( nItemVersion ) - { - sal_uInt32 i, nCount = GetCount(); - rOut.WriteUInt32( nCount ); - for ( i = 0; i < nCount; i++ ) - rOut.WriteUInt32( GetValue( i ).nValue ); - } - return rOut; -} - SfxPoolItem* SdrCustomShapeAdjustmentItem::Clone( SfxItemPool * /*pPool*/) const { SdrCustomShapeAdjustmentItem* pItem = new SdrCustomShapeAdjustmentItem; |