[Libreoffice-commits] core.git: include/svx svx/source

Stephan Bergmann sbergman at redhat.com
Wed Aug 6 03:16:13 PDT 2014


 include/svx/sxelditm.hxx      |    6 -----
 svx/source/svdraw/svdattr.cxx |   48 ------------------------------------------
 2 files changed, 54 deletions(-)

New commits:
commit 3efa3ad7b6de78c291f49858e50e6bedbd6a2173
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Aug 6 12:15:38 2014 +0200

    SdrEdgreLine*DeltaItem::Put/QueryValue are same as underlying
    
    ...CntInt32Item::Put/QueryValue
    
    Change-Id: I21602be0f4ba9d9e34a379a86d524b05976b0c8f

diff --git a/include/svx/sxelditm.hxx b/include/svx/sxelditm.hxx
index 5709350..b3491d1 100644
--- a/include/svx/sxelditm.hxx
+++ b/include/svx/sxelditm.hxx
@@ -34,24 +34,18 @@ public:
     SdrEdgeLine1DeltaItem(long nVal=0): SdrMetricItem(SDRATTR_EDGELINE1DELTA,nVal)  {}
     SdrEdgeLine1DeltaItem(SvStream& rIn): SdrMetricItem(SDRATTR_EDGELINE1DELTA,rIn) {}
     virtual SfxPoolItem * Clone(SfxItemPool *) const SAL_OVERRIDE;
-    virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE;
-    virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) SAL_OVERRIDE;
 };
 
 class SVX_DLLPUBLIC SdrEdgeLine2DeltaItem: public SdrMetricItem {
 public:
     SdrEdgeLine2DeltaItem(long nVal=0): SdrMetricItem(SDRATTR_EDGELINE2DELTA,nVal)  {}
     SdrEdgeLine2DeltaItem(SvStream& rIn): SdrMetricItem(SDRATTR_EDGELINE2DELTA,rIn) {}
-    virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE;
-    virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) SAL_OVERRIDE;
 };
 
 class SVX_DLLPUBLIC SdrEdgeLine3DeltaItem: public SdrMetricItem {
 public:
     SdrEdgeLine3DeltaItem(long nVal=0): SdrMetricItem(SDRATTR_EDGELINE3DELTA,nVal)  {}
     SdrEdgeLine3DeltaItem(SvStream& rIn): SdrMetricItem(SDRATTR_EDGELINE3DELTA,rIn) {}
-    virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE;
-    virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) SAL_OVERRIDE;
 };
 
 #endif
diff --git a/svx/source/svdraw/svdattr.cxx b/svx/source/svdraw/svdattr.cxx
index aee5b80..37e89ee 100644
--- a/svx/source/svdraw/svdattr.cxx
+++ b/svx/source/svdraw/svdattr.cxx
@@ -1752,54 +1752,6 @@ SfxPoolItem * SdrEdgeLine1DeltaItem::Clone(SfxItemPool *) const
     return new SdrEdgeLine1DeltaItem(*this);
 }
 
-bool SdrEdgeLine1DeltaItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
-{
-    rVal <<= (sal_Int32)GetValue();
-    return true;
-}
-
-bool SdrEdgeLine1DeltaItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
-{
-    sal_Int32 nValue = 0;
-    if(!(rVal >>= nValue))
-        return false;
-
-    SetValue( nValue );
-    return true;
-}
-
-bool SdrEdgeLine2DeltaItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
-{
-    rVal <<= (sal_Int32)GetValue();
-    return true;
-}
-
-bool SdrEdgeLine2DeltaItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
-{
-    sal_Int32 nValue = 0;
-    if(!(rVal >>= nValue))
-        return false;
-
-    SetValue( nValue );
-    return true;
-}
-
-bool SdrEdgeLine3DeltaItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
-{
-    rVal <<= (sal_Int32)GetValue();
-    return true;
-}
-
-bool SdrEdgeLine3DeltaItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
-{
-    sal_Int32 nValue = 0;
-    if(!(rVal >>= nValue))
-        return false;
-
-    SetValue( nValue );
-    return true;
-}
-
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 // Measure
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


More information about the Libreoffice-commits mailing list