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

Stephan Bergmann sbergman at redhat.com
Mon Sep 1 06:41:29 PDT 2014


 include/svx/svx3ditems.hxx         |    6 ++++++
 svx/source/engine3d/svx3ditems.cxx |   26 ++++++++++++++++++++++++--
 2 files changed, 30 insertions(+), 2 deletions(-)

New commits:
commit d19609e118ee0bfb823945582e823d02bdaa7134
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Sep 1 15:40:39 2014 +0200

    Missing Clone overrides
    
    Change-Id: I0dda3dc849fce9ba994baa82f7e25497ea995c75

diff --git a/include/svx/svx3ditems.hxx b/include/svx/svx3ditems.hxx
index eb34a5e..10e1334 100644
--- a/include/svx/svx3ditems.hxx
+++ b/include/svx/svx3ditems.hxx
@@ -65,6 +65,7 @@ public:
     Svx3DReducedLineGeometryItem(bool bVal = false);
     virtual SfxPoolItem* Create(SvStream& rIn, sal_uInt16 nItemVersion) const SAL_OVERRIDE;
     virtual sal_uInt16 GetVersion(sal_uInt16 nFileFormatVersion) const SAL_OVERRIDE;
+    SfxPoolItem * Clone(SfxItemPool *) const SAL_OVERRIDE;
 };
 
 class SVX_DLLPUBLIC Svx3DNormalsKindItem : public SfxUInt16Item {
@@ -309,6 +310,7 @@ public:
     Svx3DSmoothNormalsItem(bool bVal = true);
     virtual SfxPoolItem* Create(SvStream& rIn, sal_uInt16 nItemVersion) const SAL_OVERRIDE;
     virtual sal_uInt16 GetVersion(sal_uInt16 nFileFormatVersion) const SAL_OVERRIDE;
+    SfxPoolItem * Clone(SfxItemPool *) const SAL_OVERRIDE;
 };
 
 // #107245# Item to replace bExtrudeSmoothFrontBack and bLatheSmoothFrontBack
@@ -317,6 +319,7 @@ public:
     Svx3DSmoothLidsItem(bool bVal = false);
     virtual SfxPoolItem* Create(SvStream& rIn, sal_uInt16 nItemVersion) const SAL_OVERRIDE;
     virtual sal_uInt16 GetVersion(sal_uInt16 nFileFormatVersion) const SAL_OVERRIDE;
+    SfxPoolItem * Clone(SfxItemPool *) const SAL_OVERRIDE;
 };
 
 // #107245# Item to replace bExtrudeCharacterMode and bLatheCharacterMode
@@ -325,6 +328,7 @@ public:
     Svx3DCharacterModeItem(bool bVal = false);
     virtual SfxPoolItem* Create(SvStream& rIn, sal_uInt16 nItemVersion) const SAL_OVERRIDE;
     virtual sal_uInt16 GetVersion(sal_uInt16 nFileFormatVersion) const SAL_OVERRIDE;
+    SfxPoolItem * Clone(SfxItemPool *) const SAL_OVERRIDE;
 };
 
 // #107245# Item to replace bExtrudeCloseFront and bLatheCloseFront
@@ -333,6 +337,7 @@ public:
     Svx3DCloseFrontItem(bool bVal = true);
     SVX_DLLPRIVATE virtual SfxPoolItem* Create(SvStream& rIn, sal_uInt16 nItemVersion) const SAL_OVERRIDE;
     SVX_DLLPRIVATE virtual sal_uInt16 GetVersion(sal_uInt16 nFileFormatVersion) const SAL_OVERRIDE;
+    SfxPoolItem * Clone(SfxItemPool *) const SAL_OVERRIDE;
 };
 
 // #107245# Item to replace bExtrudeCloseBack and bLatheCloseBack
@@ -341,6 +346,7 @@ public:
     Svx3DCloseBackItem(bool bVal = true);
     SVX_DLLPRIVATE virtual SfxPoolItem* Create(SvStream& rIn, sal_uInt16 nItemVersion) const SAL_OVERRIDE;
     SVX_DLLPRIVATE virtual sal_uInt16 GetVersion(sal_uInt16 nFileFormatVersion) const SAL_OVERRIDE;
+    SfxPoolItem * Clone(SfxItemPool *) const SAL_OVERRIDE;
 };
 
 #endif // INCLUDED_SVX_SVX3DITEMS_HXX
diff --git a/svx/source/engine3d/svx3ditems.cxx b/svx/source/engine3d/svx3ditems.cxx
index 4242a0b..a50e64e 100644
--- a/svx/source/engine3d/svx3ditems.cxx
+++ b/svx/source/engine3d/svx3ditems.cxx
@@ -56,7 +56,10 @@ SfxPoolItem* Svx3DReducedLineGeometryItem::Create(SvStream& rIn, sal_uInt16 nIte
     return pRetval;
 }
 
-
+SfxPoolItem * Svx3DReducedLineGeometryItem::Clone(SfxItemPool *) const
+{
+    return new Svx3DReducedLineGeometryItem(*this);
+}
 
 Svx3DNormalsKindItem::Svx3DNormalsKindItem(sal_uInt16 nVal)
 :   SfxUInt16Item(SDRATTR_3DOBJ_NORMALS_KIND, nVal)
@@ -191,6 +194,10 @@ SfxPoolItem* Svx3DSmoothNormalsItem::Create(SvStream& rIn, sal_uInt16 nItemVersi
     return pRetval;
 }
 
+SfxPoolItem * Svx3DSmoothNormalsItem::Clone(SfxItemPool *) const
+{
+    return new Svx3DSmoothNormalsItem(*this);
+}
 
 // #107245#
 
@@ -216,6 +223,10 @@ SfxPoolItem* Svx3DSmoothLidsItem::Create(SvStream& rIn, sal_uInt16 nItemVersion)
     return pRetval;
 }
 
+SfxPoolItem * Svx3DSmoothLidsItem::Clone(SfxItemPool *) const
+{
+    return new Svx3DSmoothLidsItem(*this);
+}
 
 // #107245#
 
@@ -241,6 +252,10 @@ SfxPoolItem* Svx3DCharacterModeItem::Create(SvStream& rIn, sal_uInt16 nItemVersi
     return pRetval;
 }
 
+SfxPoolItem * Svx3DCharacterModeItem::Clone(SfxItemPool *) const
+{
+    return new Svx3DCharacterModeItem(*this);
+}
 
 // #107245#
 
@@ -266,6 +281,10 @@ SfxPoolItem* Svx3DCloseFrontItem::Create(SvStream& rIn, sal_uInt16 nItemVersion)
     return pRetval;
 }
 
+SfxPoolItem * Svx3DCloseFrontItem::Clone(SfxItemPool *) const
+{
+    return new Svx3DCloseFrontItem(*this);
+}
 
 // #107245#
 
@@ -291,7 +310,10 @@ SfxPoolItem* Svx3DCloseBackItem::Create(SvStream& rIn, sal_uInt16 nItemVersion)
     return pRetval;
 }
 
-
+SfxPoolItem * Svx3DCloseBackItem::Clone(SfxItemPool *) const
+{
+    return new Svx3DCloseBackItem(*this);
+}
 
 // Svx3DNormalsKindItem: use drawing::NormalsKind
 bool Svx3DNormalsKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const


More information about the Libreoffice-commits mailing list