[Libreoffice-commits] core.git: svx/inc

Julien Nabet serval2412 at yahoo.fr
Sat Nov 21 11:22:10 PST 2015


 svx/inc/sxmovitm.hxx |    8 ++++++++
 svx/inc/sxreoitm.hxx |    8 ++++++++
 svx/inc/sxrooitm.hxx |    4 ++++
 svx/inc/sxsoitm.hxx  |    8 ++++++++
 4 files changed, 28 insertions(+)

New commits:
commit 1ef899470fe85915b7ea3d22b29161977689c129
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Nov 21 18:29:13 2015 +0100

    tdf#95963: Add required Clone functions for Impress
    
    See https://bugs.documentfoundation.org/show_bug.cgi?id=95963
    for more details
    
    Change-Id: Ia3fbf4db8d5b968e86007f7e9d6694d5e096f214
    Reviewed-on: https://gerrit.libreoffice.org/20107
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
    Tested-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/svx/inc/sxmovitm.hxx b/svx/inc/sxmovitm.hxx
index 1bf3ff2..de5526a 100644
--- a/svx/inc/sxmovitm.hxx
+++ b/svx/inc/sxmovitm.hxx
@@ -26,12 +26,20 @@ class SdrMoveXItem: public SdrMetricItem {
 public:
     SdrMoveXItem(long n=0): SdrMetricItem(SDRATTR_MOVEX,n)        {}
     SdrMoveXItem(SvStream& rIn): SdrMetricItem(SDRATTR_MOVEX,rIn) {}
+    SfxPoolItem* Clone(SfxItemPool*) const override
+    {
+        return new SdrMoveXItem(*this);
+    }
 };
 
 class SdrMoveYItem: public SdrMetricItem {
 public:
     SdrMoveYItem(long n=0): SdrMetricItem(SDRATTR_MOVEY,n)        {}
     SdrMoveYItem(SvStream& rIn): SdrMetricItem(SDRATTR_MOVEY,rIn) {}
+    SfxPoolItem* Clone(SfxItemPool*) const override
+    {
+        return new SdrMoveYItem(*this);
+    }
 };
 
 #endif
diff --git a/svx/inc/sxreoitm.hxx b/svx/inc/sxreoitm.hxx
index 4bb14b9..60594bd 100644
--- a/svx/inc/sxreoitm.hxx
+++ b/svx/inc/sxreoitm.hxx
@@ -28,6 +28,10 @@ public:
     SdrResizeXOneItem(): SdrFractionItem(SDRATTR_RESIZEXONE,Fraction(1,1)) {}
     SdrResizeXOneItem(const Fraction& rFact): SdrFractionItem(SDRATTR_RESIZEXONE,rFact) {}
     SdrResizeXOneItem(SvStream& rIn): SdrFractionItem(SDRATTR_RESIZEXONE,rIn)    {}
+    SfxPoolItem* Clone(SfxItemPool*) const override
+    {
+        return new SdrResizeXOneItem(*this);
+    }
 };
 
 class SdrResizeYOneItem: public SdrFractionItem {
@@ -35,6 +39,10 @@ public:
     SdrResizeYOneItem(): SdrFractionItem(SDRATTR_RESIZEYONE,Fraction(1,1)) {}
     SdrResizeYOneItem(const Fraction& rFact): SdrFractionItem(SDRATTR_RESIZEYONE,rFact) {}
     SdrResizeYOneItem(SvStream& rIn): SdrFractionItem(SDRATTR_RESIZEYONE,rIn)    {}
+    SfxPoolItem* Clone(SfxItemPool*) const override
+    {
+        return new SdrResizeYOneItem(*this);
+    }
 };
 
 #endif
diff --git a/svx/inc/sxrooitm.hxx b/svx/inc/sxrooitm.hxx
index 82b1162..9cd7c87 100644
--- a/svx/inc/sxrooitm.hxx
+++ b/svx/inc/sxrooitm.hxx
@@ -26,6 +26,10 @@ class SdrRotateOneItem: public SdrAngleItem {
 public:
     SdrRotateOneItem(long nAngle=0): SdrAngleItem(SDRATTR_ROTATEONE,nAngle) {}
     SdrRotateOneItem(SvStream& rIn): SdrAngleItem(SDRATTR_ROTATEONE,rIn)    {}
+    SfxPoolItem* Clone(SfxItemPool*) const override
+    {
+        return new SdrRotateOneItem(*this);
+    }
 };
 
 #endif
diff --git a/svx/inc/sxsoitm.hxx b/svx/inc/sxsoitm.hxx
index bca37df..9026736 100644
--- a/svx/inc/sxsoitm.hxx
+++ b/svx/inc/sxsoitm.hxx
@@ -26,12 +26,20 @@ class SdrHorzShearOneItem: public SdrAngleItem {
 public:
     SdrHorzShearOneItem(long nAngle=0): SdrAngleItem(SDRATTR_HORZSHEARONE,nAngle) {}
     SdrHorzShearOneItem(SvStream& rIn): SdrAngleItem(SDRATTR_HORZSHEARONE,rIn)    {}
+    SfxPoolItem* Clone(SfxItemPool*) const override
+    {
+        return new SdrHorzShearOneItem(*this);
+    }
 };
 
 class SdrVertShearOneItem: public SdrAngleItem {
 public:
     SdrVertShearOneItem(long nAngle=0): SdrAngleItem(SDRATTR_VERTSHEARONE,nAngle) {}
     SdrVertShearOneItem(SvStream& rIn): SdrAngleItem(SDRATTR_VERTSHEARONE,rIn)    {}
+    SfxPoolItem* Clone(SfxItemPool*) const override
+    {
+        return new SdrVertShearOneItem(*this);
+    }
 };
 
 #endif


More information about the Libreoffice-commits mailing list