editeng/source/items/frmitems.cxx |   18 +-----------------
 include/editeng/shaditem.hxx      |    5 +----
 2 files changed, 2 insertions(+), 21 deletions(-)

New commits:
commit 49897bc7db53def96516d4d8629c6ad4c25618b1
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Mon Jun 9 07:24:27 2025 +0200
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Mon Jun 9 09:17:57 2025 +0200

    SvxShadowItem does not need to be an SfxEnumItemInterface
    
    Change-Id: I3c946c526f07df8407b8e0e17c77eed17e55619d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186275
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>
    Tested-by: Jenkins

diff --git a/editeng/source/items/frmitems.cxx 
b/editeng/source/items/frmitems.cxx
index 397a47eb710e..8408205ad735 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -2565,7 +2565,7 @@ void SvxProtectItem::dumpAsXml(xmlTextWriterPtr pWriter) 
const
 SvxShadowItem::SvxShadowItem( const sal_uInt16 nId,
                  const Color *pColor, const sal_uInt16 nW,
                  const SvxShadowLocation eLoc ) :
-    SfxEnumItemInterface( nId ),
+    SfxPoolItem( nId ),
     aShadowColor(COL_GRAY),
     nWidth      ( nW ),
     eLocation   ( eLoc )
@@ -2803,22 +2803,6 @@ bool SvxShadowItem::HasMetrics() const
 }
 
 
-sal_uInt16 SvxShadowItem::GetValueCount() const
-{
-    return sal_uInt16(SvxShadowLocation::End);  // 
SvxShadowLocation::BottomRight + 1
-}
-
-sal_uInt16 SvxShadowItem::GetEnumValue() const
-{
-    return static_cast<sal_uInt16>(GetLocation());
-}
-
-
-void SvxShadowItem::SetEnumValue( sal_uInt16 nVal )
-{
-    SetLocation( static_cast<SvxShadowLocation>(nVal) );
-}
-
 void SvxShadowItem::dumpAsXml(xmlTextWriterPtr pWriter) const
 {
     (void)xmlTextWriterStartElement(pWriter, BAD_CAST("SvxShadowItem"));
diff --git a/include/editeng/shaditem.hxx b/include/editeng/shaditem.hxx
index a247cffe386d..db2aa174ffdd 100644
--- a/include/editeng/shaditem.hxx
+++ b/include/editeng/shaditem.hxx
@@ -35,7 +35,7 @@
 */
 enum class SvxShadowItemSide { TOP, BOTTOM, LEFT, RIGHT };
 
-class EDITENG_DLLPUBLIC SvxShadowItem final : public SfxEnumItemInterface
+class EDITENG_DLLPUBLIC SvxShadowItem final : public SfxPoolItem
 {
     Color               aShadowColor;
     sal_uInt16              nWidth;
@@ -76,9 +76,6 @@ public:
     // Calculate width of the shadow on the page.
     sal_uInt16 CalcShadowSpace( SvxShadowItemSide nShadow ) const;
 
-    virtual sal_uInt16      GetValueCount() const override;
-    virtual sal_uInt16      GetEnumValue() const override;
-    virtual void            SetEnumValue( sal_uInt16 nNewVal ) override;
     void dumpAsXml(xmlTextWriterPtr pWriter) const override;
 };
 

Reply via email to