summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2015-11-21 18:29:13 +0100
committerJulien Nabet <serval2412@yahoo.fr>2015-11-21 19:21:44 +0000
commit1ef899470fe85915b7ea3d22b29161977689c129 (patch)
tree531293dd28ad89fb2d16ea4e0bd2579afdc5f715
parent010ed5e6f4505647b0f9043d1cf5001db2057e0d (diff)
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@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r--svx/inc/sxmovitm.hxx8
-rw-r--r--svx/inc/sxreoitm.hxx8
-rw-r--r--svx/inc/sxrooitm.hxx4
-rw-r--r--svx/inc/sxsoitm.hxx8
4 files changed, 28 insertions, 0 deletions
diff --git a/svx/inc/sxmovitm.hxx b/svx/inc/sxmovitm.hxx
index 1bf3ff2fe4ce..de5526a63a87 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 4bb14b982325..60594bd2e4b1 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 82b116219281..9cd7c8785b9f 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 bca37df0075d..90267368edd2 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