summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/inc/uiitems.hxx10
-rw-r--r--sw/source/uibase/shells/tabsh.cxx2
-rw-r--r--sw/source/uibase/utlui/uiitems.cxx10
3 files changed, 2 insertions, 20 deletions
diff --git a/sw/source/uibase/inc/uiitems.hxx b/sw/source/uibase/inc/uiitems.hxx
index a5ab79c186f4..9975394a6f49 100644
--- a/sw/source/uibase/inc/uiitems.hxx
+++ b/sw/source/uibase/inc/uiitems.hxx
@@ -20,7 +20,7 @@
#define INCLUDED_SW_SOURCE_UIBASE_INC_UIITEMS_HXX
#include <memory>
-#include <svl/intitem.hxx>
+#include <svl/poolitem.hxx>
#include "swdllapi.h"
#include "cmdid.h"
#include "pagedesc.hxx"
@@ -88,14 +88,6 @@ public:
SwNumRule* GetNumRule() { return pRule.get(); }
};
-class SwBackgroundDestinationItem : public SfxUInt16Item
-{
-public:
- SwBackgroundDestinationItem(sal_uInt16 nWhich, sal_uInt16 nValue);
-
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
-};
-
class SW_DLLPUBLIC SwPaMItem : public SfxPoolItem
{
SwPaM* m_pPaM;
diff --git a/sw/source/uibase/shells/tabsh.cxx b/sw/source/uibase/shells/tabsh.cxx
index 3e87a38d3035..cd6726ee2b31 100644
--- a/sw/source/uibase/shells/tabsh.cxx
+++ b/sw/source/uibase/shells/tabsh.cxx
@@ -154,7 +154,7 @@ static SwTableRep* lcl_TableParamToItemSet( SfxItemSet& rSet, SwWrtShell &rSh )
rSet.Put( aULSpace );
const sal_uInt16 nBackgroundDestination = rSh.GetViewOptions()->GetTableDest();
- rSet.Put(SwBackgroundDestinationItem(SID_BACKGRND_DESTINATION, nBackgroundDestination ));
+ rSet.Put(SfxUInt16Item(SID_BACKGRND_DESTINATION, nBackgroundDestination ));
SvxBrushItem aBrush( RES_BACKGROUND );
if(rSh.GetRowBackground(aBrush))
{
diff --git a/sw/source/uibase/utlui/uiitems.cxx b/sw/source/uibase/utlui/uiitems.cxx
index 64681613bb91..4b57004cec13 100644
--- a/sw/source/uibase/utlui/uiitems.cxx
+++ b/sw/source/uibase/utlui/uiitems.cxx
@@ -268,16 +268,6 @@ bool SwUINumRuleItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/ )
return true;
}
-SwBackgroundDestinationItem::SwBackgroundDestinationItem(sal_uInt16 _nWhich, sal_uInt16 nValue) :
- SfxUInt16Item(_nWhich, nValue)
-{
-}
-
-SfxPoolItem* SwBackgroundDestinationItem::Clone( SfxItemPool * /*pPool*/ ) const
-{
- return new SwBackgroundDestinationItem(Which(), GetValue());
-}
-
SwPaMItem::SwPaMItem( const sal_uInt16 nId, SwPaM* pPaM ) :
SfxPoolItem( nId ),
m_pPaM(pPaM)