summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-11-18 20:26:56 +0100
committerMichael Stahl <mstahl@redhat.com>2015-11-18 20:41:31 +0100
commit479df22d0b4b0e0393fcf621e7380b38415bcef8 (patch)
treef8e989ae3f590abac8dec488542a39d9db316f62 /svx
parent392c871cde43e9f5006fecff731628c569f24b10 (diff)
svx: SdrLayerNameItem etc. missing Clone overrides
Change-Id: I26ca8070d9c9607a475267ef8780f9013dfd4dcf
Diffstat (limited to 'svx')
-rw-r--r--svx/inc/sxlayitm.hxx2
-rw-r--r--svx/source/svdraw/svdattr.cxx9
2 files changed, 11 insertions, 0 deletions
diff --git a/svx/inc/sxlayitm.hxx b/svx/inc/sxlayitm.hxx
index 4cbc1084344d..2c2fb6b6c552 100644
--- a/svx/inc/sxlayitm.hxx
+++ b/svx/inc/sxlayitm.hxx
@@ -29,6 +29,7 @@ public:
SdrLayerIdItem(sal_uInt16 nId=0): SfxUInt16Item(SDRATTR_LAYERID,nId) {}
SdrLayerIdItem(SvStream& rIn): SfxUInt16Item(SDRATTR_LAYERID,rIn) {}
SdrLayerID GetValue() const { return (SdrLayerID)SfxUInt16Item::GetValue(); }
+ virtual SfxPoolItem* Clone(SfxItemPool* pPool=nullptr) const override;
};
class SdrLayerNameItem: public SfxStringItem {
@@ -36,6 +37,7 @@ public:
SdrLayerNameItem() : SfxStringItem() { SetWhich(SDRATTR_LAYERNAME); }
SdrLayerNameItem(const OUString& rStr) : SfxStringItem(SDRATTR_LAYERNAME,rStr) {}
SdrLayerNameItem(SvStream& rIn) : SfxStringItem(SDRATTR_LAYERNAME,rIn) {}
+ virtual SfxPoolItem* Clone(SfxItemPool* pPool=nullptr) const override;
};
#endif
diff --git a/svx/source/svdraw/svdattr.cxx b/svx/source/svdraw/svdattr.cxx
index 05fe6fe6a277..5f0978d4d136 100644
--- a/svx/source/svdraw/svdattr.cxx
+++ b/svx/source/svdraw/svdattr.cxx
@@ -2277,5 +2277,14 @@ SfxPoolItem* SdrCustomShapeReplacementURLItem::Clone( SfxItemPool*) const
return new SdrCustomShapeReplacementURLItem(*this);
}
+SfxPoolItem* SdrLayerIdItem::Clone(SfxItemPool* /*pPool*/) const
+{
+ return new SdrLayerIdItem(*this);
+}
+
+SfxPoolItem* SdrLayerNameItem::Clone(SfxItemPool* /*pPool*/) const
+{
+ return new SdrLayerNameItem(*this);
+}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */