Kaydet (Commit) 479df22d authored tarafından Michael Stahl's avatar Michael Stahl

svx: SdrLayerNameItem etc. missing Clone overrides

Change-Id: I26ca8070d9c9607a475267ef8780f9013dfd4dcf
üst 392c871c
......@@ -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
......
......@@ -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: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment