Kaydet (Commit) 2675f26f authored tarafından Noel Grandin's avatar Noel Grandin

remove unused CreateDefault methods

Change-Id: Ifbdd7d41f0938e9a03693f88416792ff8087f8c2
Reviewed-on: https://gerrit.libreoffice.org/34850Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst f210499a
......@@ -197,7 +197,7 @@ for d in definitionSet:
continue
if isOtherConstness(d, callSet):
continue
# include assignment operators, if we remove them, the compiler creates a default one, which can have odd consequences
# exclude assignment operators, if we remove them, the compiler creates a default one, which can have odd consequences
if "::operator=(" in d[1]:
continue
# these are only invoked implicitly, so the plugin does not see the calls
......@@ -245,9 +245,6 @@ for d in definitionSet:
continue
if d[0] == "basic_ostream<type-parameter-?-?, type-parameter-?-?> &" and d[1].startswith("operator<<(basic_ostream<type-parameter-?-?"):
continue
# ignore the SfxPoolItem CreateDefault methods for now
if d[1].endswith("::CreateDefault()"):
continue
if "::operator" in d[1]:
continue
......@@ -302,9 +299,6 @@ for d in definitionSet:
# ignore external code
if definitionToSourceLocationMap[d].startswith("external/"):
continue
# ignore the SfxPoolItem CreateDefault methods for now
if d[1].endswith("::CreateDefault()"):
continue
# ignore UNO constructor functions
if (d[0] == "class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface>" and
d[1].endswith("_createInstance(const class com::sun::star::uno::Reference<class com::sun::star::lang::XMultiServiceFactory> &)")):
......
......@@ -22,8 +22,6 @@
#include <editeng/eerdll.hxx>
SfxPoolItem* SvxCharHiddenItem::CreateDefault() { return new SvxCharHiddenItem(false, 0);}
SvxCharHiddenItem::SvxCharHiddenItem( const bool bHidden, const sal_uInt16 nId ) :
SfxBoolItem( nId, bHidden )
{
......
......@@ -147,8 +147,6 @@ SfxPoolItem* SvxPaperBinItem::CreateDefault() { return new SvxPaperBinItem(0);}
SfxPoolItem* SvxSizeItem::CreateDefault() { return new SvxSizeItem(0);}
SfxPoolItem* SvxLRSpaceItem::CreateDefault() { return new SvxLRSpaceItem(0);}
SfxPoolItem* SvxULSpaceItem::CreateDefault() { return new SvxULSpaceItem(0);}
SfxPoolItem* SvxPrintItem::CreateDefault() { return new SvxPrintItem(0);}
SfxPoolItem* SvxOpaqueItem::CreateDefault() { return new SvxOpaqueItem(0);}
SfxPoolItem* SvxProtectItem::CreateDefault() { return new SvxProtectItem(0);}
SfxPoolItem* SvxBrushItem::CreateDefault() { return new SvxBrushItem(0);}
SfxPoolItem* SvxShadowItem::CreateDefault() { return new SvxShadowItem(0);}
......@@ -157,7 +155,6 @@ SfxPoolItem* SvxBoxInfoItem::CreateDefault() { return new SvxBoxInfoItem(0);}
SfxPoolItem* SvxFormatBreakItem::CreateDefault() { return new SvxFormatBreakItem(SvxBreak::NONE, 0);}
SfxPoolItem* SvxFormatKeepItem::CreateDefault() { return new SvxFormatKeepItem(false, 0);}
SfxPoolItem* SvxLineItem::CreateDefault() { return new SvxLineItem(0);}
SfxPoolItem* SvxFrameDirectionItem::CreateDefault() { return new SvxFrameDirectionItem(FRMDIR_HORI_LEFT_TOP, 0);}
SfxPoolItem* SvxPaperBinItem::Clone( SfxItemPool* ) const
......
......@@ -61,11 +61,7 @@ SfxPoolItem* SvxHyphenZoneItem::CreateDefault() { return new SvxHyphenZoneItem(
SfxPoolItem* SvxTabStopItem::CreateDefault() { return new SvxTabStopItem(0);}
SfxPoolItem* SvxFormatSplitItem::CreateDefault() { return new SvxFormatSplitItem(false, 0);}
SfxPoolItem* SvxPageModelItem::CreateDefault() { return new SvxPageModelItem(0);}
SfxPoolItem* SvxScriptSpaceItem::CreateDefault() { return new SvxScriptSpaceItem(false, 0);}
SfxPoolItem* SvxHangingPunctuationItem::CreateDefault() { return new SvxHangingPunctuationItem(false, 0);}
SfxPoolItem* SvxForbiddenRuleItem::CreateDefault() { return new SvxForbiddenRuleItem(false, 0);}
SfxPoolItem* SvxParaVertAlignItem::CreateDefault() { return new SvxParaVertAlignItem(Align::Automatic, 0);}
SfxPoolItem* SvxParaGridItem::CreateDefault() { return new SvxParaGridItem(true, 0);}
enum class SvxSpecialLineSpace
......
......@@ -106,34 +106,23 @@ SfxPoolItem* SvxFontItem::CreateDefault() {return new SvxFontItem(0);}
SfxPoolItem* SvxPostureItem::CreateDefault() { return new SvxPostureItem(ITALIC_NONE, 0);}
SfxPoolItem* SvxWeightItem::CreateDefault() {return new SvxWeightItem(WEIGHT_NORMAL, 0);}
SfxPoolItem* SvxFontHeightItem::CreateDefault() {return new SvxFontHeightItem(240, 100, 0);}
SfxPoolItem* SvxFontWidthItem::CreateDefault() {return new SvxFontWidthItem(0, 100, 0);}
SfxPoolItem* SvxTextLineItem::CreateDefault() {return new SvxTextLineItem(LINESTYLE_NONE, 0);}
SfxPoolItem* SvxUnderlineItem::CreateDefault() {return new SvxUnderlineItem(LINESTYLE_NONE, 0);}
SfxPoolItem* SvxOverlineItem::CreateDefault() {return new SvxOverlineItem(LINESTYLE_NONE, 0);}
SfxPoolItem* SvxCrossedOutItem::CreateDefault() {return new SvxCrossedOutItem(STRIKEOUT_NONE, 0);}
SfxPoolItem* SvxShadowedItem::CreateDefault() {return new SvxShadowedItem(false, 0);}
SfxPoolItem* SvxAutoKernItem::CreateDefault() {return new SvxAutoKernItem(false, 0);}
SfxPoolItem* SvxWordLineModeItem::CreateDefault() {return new SvxWordLineModeItem(false, 0);}
SfxPoolItem* SvxContourItem::CreateDefault() {return new SvxContourItem(false, 0);}
SfxPoolItem* SvxPropSizeItem::CreateDefault() {return new SvxPropSizeItem(100, 0);}
SfxPoolItem* SvxColorItem::CreateDefault() {return new SvxColorItem(0);}
SfxPoolItem* SvxBackgroundColorItem::CreateDefault() {return new SvxBackgroundColorItem(0);}
SfxPoolItem* SvxCharSetColorItem::CreateDefault() {return new SvxCharSetColorItem(0);}
SfxPoolItem* SvxKerningItem::CreateDefault() {return new SvxKerningItem(0, 0);}
SfxPoolItem* SvxCaseMapItem::CreateDefault() {return new SvxCaseMapItem(SVX_CASEMAP_NOT_MAPPED, 0);}
SfxPoolItem* SvxEscapementItem::CreateDefault() {return new SvxEscapementItem(0);}
SfxPoolItem* SvxLanguageItem::CreateDefault() {return new SvxLanguageItem(LANGUAGE_GERMAN, 0);}
SfxPoolItem* SvxNoLinebreakItem::CreateDefault() {return new SvxNoLinebreakItem(true, 0);}
SfxPoolItem* SvxNoHyphenItem::CreateDefault() {return new SvxNoHyphenItem(true, 0);}
SfxPoolItem* SvxLineColorItem::CreateDefault() {return new SvxLineColorItem(0);}
SfxPoolItem* SvxBlinkItem::CreateDefault() {return new SvxBlinkItem(false, 0);}
SfxPoolItem* SvxEmphasisMarkItem::CreateDefault() {return new SvxEmphasisMarkItem(FontEmphasisMark::NONE, 0);}
SfxPoolItem* SvxTwoLinesItem::CreateDefault() {return new SvxTwoLinesItem(true, 0, 0, 0);}
SfxPoolItem* SvxScriptTypeItem::CreateDefault() {return new SvxScriptTypeItem();}
SfxPoolItem* SvxCharRotateItem::CreateDefault() {return new SvxCharRotateItem(0, false, 0);}
SfxPoolItem* SvxCharScaleWidthItem::CreateDefault() {return new SvxCharScaleWidthItem(100, 0);}
SfxPoolItem* SvxCharReliefItem::CreateDefault() {return new SvxCharReliefItem(FontRelief::NONE, 0);}
SfxPoolItem* SvxRsidItem::CreateDefault() {return new SvxRsidItem(0, 0);}
// class SvxFontListItem -------------------------------------------------
......
......@@ -25,8 +25,6 @@ using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::text;
SfxPoolItem* SvxWritingModeItem::CreateDefault() { return new SvxWritingModeItem(css::text::WritingMode_LR_TB, 0);}
SvxWritingModeItem::SvxWritingModeItem( WritingMode eValue, sal_uInt16 _nWhich )
: SfxUInt16Item( _nWhich, (sal_uInt16)eValue )
{
......
......@@ -59,8 +59,6 @@ class EDITENG_DLLPUBLIC SvxBulletItem : public SfxPoolItem
void SetDefaults_Impl();
public:
static SfxPoolItem* CreateDefault();
explicit SvxBulletItem( sal_uInt16 nWhich );
explicit SvxBulletItem( SvStream& rStrm, sal_uInt16 nWhich );
SvxBulletItem( const SvxBulletItem& );
......
......@@ -32,8 +32,6 @@
class EDITENG_DLLPUBLIC SvxCharHiddenItem : public SfxBoolItem
{
public:
static SfxPoolItem* CreateDefault();
SvxCharHiddenItem( const bool bHidden /*= false*/, const sal_uInt16 nId );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
......
......@@ -34,8 +34,6 @@ class EDITENG_DLLPUBLIC SvxCharSetColorItem : public SvxColorItem
{
rtl_TextEncoding eFrom;
public:
static SfxPoolItem* CreateDefault();
explicit SvxCharSetColorItem( const sal_uInt16 nId );
SvxCharSetColorItem( const Color& aColor, const rtl_TextEncoding eFrom,
const sal_uInt16 nId );
......
......@@ -72,8 +72,6 @@ private:
EDITENG_DLLPRIVATE SvxFieldItem( SvxFieldData* pField, const sal_uInt16 nId );
public:
static SfxPoolItem* CreateDefault();
SvxFieldItem( const SvxFieldData& rField, const sal_uInt16 nId );
SvxFieldItem( const SvxFieldItem& rItem );
virtual ~SvxFieldItem() override;
......
......@@ -42,8 +42,6 @@ private:
css::uno::Sequence< OUString > aFontNameSeq;
public:
static SfxPoolItem* CreateDefault();
SvxFontListItem( const FontList* pFontLst,
const sal_uInt16 nId );
SvxFontListItem( const SvxFontListItem& rItem );
......
......@@ -32,8 +32,6 @@
class EDITENG_DLLPUBLIC SvxForbiddenRuleItem : public SfxBoolItem
{
public:
static SfxPoolItem* CreateDefault();
SvxForbiddenRuleItem( bool bOn /*= false*/,
const sal_uInt16 nId );
......
......@@ -35,8 +35,6 @@
class EDITENG_DLLPUBLIC SvxFrameDirectionItem : public SfxUInt16Item
{
public:
static SfxPoolItem* CreateDefault();
SvxFrameDirectionItem( SvxFrameDirection nValue /*= FRMDIR_HORI_LEFT_TOP*/,
sal_uInt16 nWhich );
virtual ~SvxFrameDirectionItem() override;
......
......@@ -35,8 +35,6 @@ class SvxFontWidthItem : public SfxPoolItem
sal_uInt16 nWidth; // 0 = default
sal_uInt16 nProp; // default 100%
public:
static SfxPoolItem* CreateDefault();
SvxFontWidthItem( const sal_uInt16 nSz /*= 0*/,
const sal_uInt16 nPropWidth /*= 100*/,
const sal_uInt16 nId );
......
......@@ -32,8 +32,6 @@
class EDITENG_DLLPUBLIC SvxHangingPunctuationItem : public SfxBoolItem
{
public:
static SfxPoolItem* CreateDefault();
SvxHangingPunctuationItem( bool bOn /*= false*/, const sal_uInt16 nId );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
......
......@@ -30,8 +30,6 @@
class EDITENG_DLLPUBLIC SvxLineColorItem : public SvxColorItem
{
public:
static SfxPoolItem* CreateDefault();
explicit SvxLineColorItem( const sal_uInt16 nId );
SvxLineColorItem( const SvxLineColorItem& rCopy );
virtual ~SvxLineColorItem() override;
......
......@@ -26,8 +26,6 @@
class EDITENG_DLLPUBLIC SvxNoHyphenItem : public SfxBoolItem
{
public:
static SfxPoolItem* CreateDefault();
SvxNoHyphenItem( const bool bHyphen /*= true*/,
const sal_uInt16 nId );
......
......@@ -26,8 +26,6 @@
class EDITENG_DLLPUBLIC SvxNoLinebreakItem : public SfxBoolItem
{
public:
static SfxPoolItem* CreateDefault();
SvxNoLinebreakItem( const bool bBreak /*= true*/,
const sal_uInt16 nId );
......
......@@ -35,8 +35,6 @@ class SvXMLUnitConverter;
class EDITENG_DLLPUBLIC SvxOpaqueItem : public SfxBoolItem
{
public:
static SfxPoolItem* CreateDefault();
explicit SvxOpaqueItem( const sal_uInt16 nId , const bool bOpa = true );
inline SvxOpaqueItem &operator=( const SvxOpaqueItem &rCpy );
......
......@@ -33,8 +33,6 @@
class EDITENG_DLLPUBLIC SvxParaGridItem : public SfxBoolItem
{
public:
static SfxPoolItem* CreateDefault();
SvxParaGridItem( const bool bSnapToGrid /*= true*/,
const sal_uInt16 nId );
......
......@@ -35,8 +35,6 @@
class EDITENG_DLLPUBLIC SvxPrintItem : public SfxBoolItem
{
public:
static SfxPoolItem* CreateDefault();
explicit SvxPrintItem( const sal_uInt16 nId , const bool bPrt = true );
inline SvxPrintItem &operator=( const SvxPrintItem &rCpy );
......
......@@ -32,8 +32,6 @@
class EDITENG_DLLPUBLIC SvxPropSizeItem : public SfxUInt16Item
{
public:
static SfxPoolItem* CreateDefault();
SvxPropSizeItem( const sal_uInt16 nPercent /*= 100*/,
const sal_uInt16 nID );
......
......@@ -19,8 +19,6 @@
class EDITENG_DLLPUBLIC SvxRsidItem : public SfxUInt32Item
{
public:
static SfxPoolItem* CreateDefault();
SvxRsidItem( sal_uInt32 nRsid, sal_uInt16 nId ) : SfxUInt32Item( nId, nRsid ) {}
SvxRsidItem( SvStream& rIn, sal_uInt16 nId ) : SfxUInt32Item( nId, rIn ) {}
......
......@@ -33,8 +33,6 @@
class EDITENG_DLLPUBLIC SvxScriptSpaceItem : public SfxBoolItem
{
public:
static SfxPoolItem* CreateDefault();
SvxScriptSpaceItem( bool bOn /*= false*/,
const sal_uInt16 nId );
......
......@@ -34,8 +34,6 @@
class EDITENG_DLLPUBLIC SvxScriptTypeItem : public SfxUInt16Item
{
public:
static SfxPoolItem* CreateDefault();
explicit SvxScriptTypeItem( SvtScriptType nType = SvtScriptType::LATIN );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
......@@ -44,8 +42,6 @@ public:
class EDITENG_DLLPUBLIC SvxScriptSetItem : public SfxSetItem
{
public:
static SfxPoolItem* CreateDefault();
SvxScriptSetItem( sal_uInt16 nSlotId, SfxItemPool& rPool );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
......
......@@ -30,7 +30,6 @@ class EDITENG_DLLPUBLIC SvxTwoLinesItem : public SfxPoolItem
sal_Unicode cStartBracket, cEndBracket;
bool bOn;
public:
static SfxPoolItem* CreateDefault();
SvxTwoLinesItem( bool bOn /*= true*/,
sal_Unicode nStartBracket /*= 0*/,
sal_Unicode nEndBracket /*= 0*/,
......
......@@ -85,8 +85,6 @@ public:
class EDITENG_DLLPUBLIC SvxUnderlineItem : public SvxTextLineItem
{
public:
static SfxPoolItem* CreateDefault();
SvxUnderlineItem( const FontLineStyle eSt,
const sal_uInt16 nId );
......@@ -102,8 +100,6 @@ public:
class EDITENG_DLLPUBLIC SvxOverlineItem : public SvxTextLineItem
{
public:
static SfxPoolItem* CreateDefault();
SvxOverlineItem( const FontLineStyle eSt,
const sal_uInt16 nId );
......
......@@ -28,8 +28,6 @@
class EDITENG_DLLPUBLIC SvxWritingModeItem : public SfxUInt16Item
{
public:
static SfxPoolItem* CreateDefault();
SvxWritingModeItem( css::text::WritingMode eValue /*= css::text::WritingMode_LR_TB*/,
sal_uInt16 nWhich /*= SDRATTR_TEXTDIRECTION*/ );
virtual ~SvxWritingModeItem() override;
......
......@@ -119,8 +119,6 @@ This item describes a Macro table.
class SVL_DLLPUBLIC SvxMacroItem: public SfxPoolItem
{
public:
static SfxPoolItem* CreateDefault();
explicit inline SvxMacroItem ( const sal_uInt16 nId );
// "pure virtual methods" of SfxPoolItem
......
......@@ -30,8 +30,6 @@ class SvStream;
class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxOrientationItem: public SfxEnumItem<SvxCellOrientation>
{
public:
static SfxPoolItem* CreateDefault();
SvxOrientationItem(
const SvxCellOrientation eOrientation /*= SVX_ORIENTATION_STANDARD*/,
const sal_uInt16 nId );
......
......@@ -32,7 +32,6 @@
class SVX_DLLPUBLIC XFillBackgroundItem : public SfxBoolItem
{
public:
static SfxPoolItem* CreateDefault();
XFillBackgroundItem( bool bFill = false );
SVX_DLLPRIVATE XFillBackgroundItem( SvStream& rIn );
......
......@@ -27,7 +27,6 @@
class SVX_DLLPUBLIC XFillBmpPosItem : public SfxEnumItem<RectPoint>
{
public:
static SfxPoolItem* CreateDefault();
XFillBmpPosItem( RectPoint eRP = RectPoint::MM );
SVX_DLLPRIVATE XFillBmpPosItem( SvStream& rIn );
......
......@@ -26,7 +26,6 @@
class SVX_DLLPUBLIC XFillBmpSizeLogItem : public SfxBoolItem
{
public:
static SfxPoolItem* CreateDefault();
XFillBmpSizeLogItem( bool bLog = true );
SVX_DLLPRIVATE XFillBmpSizeLogItem( SvStream& rIn );
......
......@@ -26,7 +26,6 @@
class SVX_DLLPUBLIC XFillBmpSizeXItem : public SfxMetricItem
{
public:
static SfxPoolItem* CreateDefault();
XFillBmpSizeXItem( long nSizeX = 0 );
SVX_DLLPRIVATE XFillBmpSizeXItem( SvStream& rIn );
......@@ -45,7 +44,6 @@ public:
class SVX_DLLPUBLIC XFillBmpSizeYItem : public SfxMetricItem
{
public:
static SfxPoolItem* CreateDefault();
XFillBmpSizeYItem( long nSizeY = 0 );
SVX_DLLPRIVATE XFillBmpSizeYItem( SvStream& rIn );
......
......@@ -26,7 +26,6 @@
class SVX_DLLPUBLIC XFillBmpTileItem : public SfxBoolItem
{
public:
static SfxPoolItem* CreateDefault();
XFillBmpTileItem( bool bTile = true );
XFillBmpTileItem( SvStream& rIn );
......
......@@ -26,7 +26,6 @@
class SVX_DLLPUBLIC XFillBmpPosOffsetXItem : public SfxUInt16Item
{
public:
static SfxPoolItem* CreateDefault();
XFillBmpPosOffsetXItem( sal_uInt16 nOffPosX = 0 );
SVX_DLLPRIVATE XFillBmpPosOffsetXItem( SvStream& rIn );
......@@ -42,7 +41,6 @@ public:
class SVX_DLLPUBLIC XFillBmpPosOffsetYItem : public SfxUInt16Item
{
public:
static SfxPoolItem* CreateDefault();
XFillBmpPosOffsetYItem( sal_uInt16 nOffPosY = 0 );
SVX_DLLPRIVATE XFillBmpPosOffsetYItem( SvStream& rIn );
......
......@@ -26,7 +26,6 @@
class SVX_DLLPUBLIC XFillBmpStretchItem : public SfxBoolItem
{
public:
static SfxPoolItem* CreateDefault();
XFillBmpStretchItem( bool bStretch = true );
XFillBmpStretchItem( SvStream& rIn );
......
......@@ -26,7 +26,6 @@
class SVX_DLLPUBLIC XFillBmpTileOffsetXItem : public SfxUInt16Item
{
public:
static SfxPoolItem* CreateDefault();
XFillBmpTileOffsetXItem( sal_uInt16 nOffX = 0 );
SVX_DLLPRIVATE XFillBmpTileOffsetXItem( SvStream& rIn );
......@@ -42,7 +41,6 @@ public:
class SVX_DLLPUBLIC XFillBmpTileOffsetYItem : public SfxUInt16Item
{
public:
static SfxPoolItem* CreateDefault();
XFillBmpTileOffsetYItem( sal_uInt16 nOffX = 0 );
SVX_DLLPRIVATE XFillBmpTileOffsetYItem( SvStream& rIn );
......
......@@ -32,7 +32,6 @@
class SVX_DLLPUBLIC XFillTransparenceItem: public SfxUInt16Item
{
public:
static SfxPoolItem* CreateDefault();
XFillTransparenceItem(sal_uInt16 nFillTransparence = 0);
XFillTransparenceItem(SvStream& rIn);
virtual SfxPoolItem* Clone(SfxItemPool* pPool = nullptr) const override;
......
......@@ -31,8 +31,6 @@
class XFormTextShadowTranspItem: public SfxUInt16Item
{
public:
static SfxPoolItem* CreateDefault();
XFormTextShadowTranspItem(sal_uInt16 nShdwTransparence = 0);
XFormTextShadowTranspItem(SvStream& rIn);
virtual SfxPoolItem* Clone(SfxItemPool* pPool = nullptr) const override;
......
......@@ -32,7 +32,6 @@
class SVX_DLLPUBLIC XGradientStepCountItem: public SfxUInt16Item
{
public:
static SfxPoolItem* CreateDefault();
XGradientStepCountItem( sal_uInt16 nStepCount = 0 );
XGradientStepCountItem( SvStream& rIn );
virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
......
......@@ -29,7 +29,6 @@
class SVX_DLLPUBLIC XLineEndCenterItem : public SfxBoolItem
{
public:
static SfxPoolItem* CreateDefault();
XLineEndCenterItem(bool bEndCenter = false);
XLineEndCenterItem(SvStream& rIn);
virtual SfxPoolItem* Clone(SfxItemPool* pPool = nullptr) const override;
......
......@@ -32,7 +32,6 @@
class SVX_DLLPUBLIC XLineEndWidthItem : public SfxMetricItem
{
public:
static SfxPoolItem* CreateDefault();
XLineEndWidthItem(long nWidth = LINE_END_WIDTH_DEFAULT);
XLineEndWidthItem(SvStream& rIn);
virtual SfxPoolItem* Clone(SfxItemPool* pPool = nullptr) const override;
......
......@@ -29,7 +29,6 @@
class SVX_DLLPUBLIC XLineStartCenterItem : public SfxBoolItem
{
public:
static SfxPoolItem* CreateDefault();
XLineStartCenterItem(bool bStartCenter = false);
XLineStartCenterItem(SvStream& rIn);
virtual SfxPoolItem* Clone(SfxItemPool* pPool = nullptr) const override;
......
......@@ -31,7 +31,6 @@
class SVX_DLLPUBLIC XLineStartWidthItem : public SfxMetricItem
{
public:
static SfxPoolItem* CreateDefault();
XLineStartWidthItem(long nWidth = LINE_START_WIDTH_DEFAULT);
XLineStartWidthItem(SvStream& rIn);
virtual SfxPoolItem* Clone(SfxItemPool* pPool = nullptr) const override;
......
......@@ -32,7 +32,6 @@
class SVX_DLLPUBLIC XLineTransparenceItem: public SfxUInt16Item
{
public:
static SfxPoolItem* CreateDefault();
XLineTransparenceItem(sal_uInt16 nLineTransparence = 0);
XLineTransparenceItem(SvStream& rIn);
virtual SfxPoolItem* Clone(SfxItemPool* pPool = nullptr) const override;
......
......@@ -28,7 +28,6 @@
class SVX_DLLPUBLIC XSecondaryFillColorItem : public XColorItem
{
public:
static SfxPoolItem* CreateDefault();
SVX_DLLPRIVATE XSecondaryFillColorItem() {}
XSecondaryFillColorItem(const OUString& rName, const Color& rTheColor);
SVX_DLLPRIVATE XSecondaryFillColorItem(SvStream& rIn);
......
......@@ -155,8 +155,6 @@ public:
class ScRangeItem : public SfxPoolItem
{
public:
static SfxPoolItem* CreateDefault();
inline ScRangeItem( const sal_uInt16 nWhich );
inline ScRangeItem( const ScRangeItem& rCpy );
......@@ -195,8 +193,6 @@ inline ScRangeItem& ScRangeItem::operator=( const ScRangeItem &rCpy )
class ScTableListItem : public SfxPoolItem
{
public:
static SfxPoolItem* CreateDefault();
inline ScTableListItem( const sal_uInt16 nWhich );
ScTableListItem( const ScTableListItem& rCpy );
virtual ~ScTableListItem() override;
......@@ -263,8 +259,6 @@ public:
class SC_DLLPUBLIC ScViewObjectModeItem: public SfxEnumItem<ScVObjMode>
{
public:
static SfxPoolItem* CreateDefault();
ScViewObjectModeItem( sal_uInt16 nWhich );
ScViewObjectModeItem( sal_uInt16 nWhich, ScVObjMode eMode );
virtual ~ScViewObjectModeItem() override;
......@@ -306,8 +300,6 @@ const sal_uInt8 SC_MID_PAGE_SCALETO_HEIGHT = 2;
class SC_DLLPUBLIC ScPageScaleToItem : public SfxPoolItem
{
public:
static SfxPoolItem* CreateDefault();
/** Default c'tor sets the width and height to 0. */
explicit ScPageScaleToItem();
explicit ScPageScaleToItem( sal_uInt16 nWidth, sal_uInt16 nHeight );
......@@ -343,8 +335,6 @@ private:
class ScCondFormatItem : public SfxPoolItem
{
public:
static SfxPoolItem* CreateDefault();
explicit ScCondFormatItem();
explicit ScCondFormatItem(const std::vector<sal_uInt32>& nIndex);
......
......@@ -143,7 +143,6 @@ inline bool ScDocOptions::operator!=( const ScDocOptions& rOpt ) const
class SC_DLLPUBLIC ScTpCalcItem : public SfxPoolItem
{
public:
static SfxPoolItem* CreateDefault();
ScTpCalcItem( sal_uInt16 nWhich,
const ScDocOptions& rOpt );
ScTpCalcItem( const ScTpCalcItem& rItem );
......
......@@ -54,7 +54,6 @@ public:
class SC_DLLPUBLIC ScTpPrintItem : public SfxPoolItem
{
public:
static SfxPoolItem* CreateDefault();
ScTpPrintItem( sal_uInt16 nWhich,
const ScPrintOptions& rOpt );
ScTpPrintItem( const ScTpPrintItem& rItem );
......
......@@ -115,7 +115,6 @@ private:
class SC_DLLPUBLIC ScTpViewItem : public SfxPoolItem
{
public:
static SfxPoolItem* CreateDefault();
ScTpViewItem( sal_uInt16 nWhich, const ScViewOptions& rOpt );
ScTpViewItem( const ScTpViewItem& rItem );
virtual ~ScTpViewItem() override;
......
......@@ -25,9 +25,6 @@
#include <svl/macitem.hxx>
#include <stringio.hxx>
SfxPoolItem* SvxMacroItem::CreateDefault() { return new SvxMacroItem(0); }
SvxMacro::SvxMacro( const OUString &rMacName, const OUString &rLanguage)
: aMacName( rMacName ), aLibName( rLanguage),
eType( EXTENDED_STYPE)
......
......@@ -41,7 +41,6 @@
using namespace ::com::sun::star;
SfxPoolItem* SvxOrientationItem::CreateDefault() { return new SvxOrientationItem(SVX_ORIENTATION_STANDARD, 0) ;}
SfxPoolItem* SvxMarginItem::CreateDefault() { return new SvxMarginItem(0) ;}
SvxOrientationItem::SvxOrientationItem( const SvxCellOrientation eOrientation,
......
......@@ -1905,8 +1905,6 @@ bool XLineEndItem::PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId )
return true;
}
SfxPoolItem* XLineStartWidthItem::CreateDefault() {return new XLineStartWidthItem;}
XLineStartWidthItem::XLineStartWidthItem(long nWidth) :
SfxMetricItem(XATTR_LINESTARTWIDTH, nWidth)
{
......@@ -1955,8 +1953,6 @@ bool XLineStartWidthItem::PutValue( const css::uno::Any& rVal, sal_uInt8 /*nMemb
return true;
}
SfxPoolItem* XLineEndWidthItem::CreateDefault() {return new XLineEndWidthItem;}
XLineEndWidthItem::XLineEndWidthItem(long nWidth) :
SfxMetricItem(XATTR_LINEENDWIDTH, nWidth)
{
......@@ -2005,8 +2001,6 @@ bool XLineEndWidthItem::PutValue( const css::uno::Any& rVal, sal_uInt8 /*nMember
return true;
}
SfxPoolItem* XLineStartCenterItem::CreateDefault() {return new XLineStartCenterItem;}
XLineStartCenterItem::XLineStartCenterItem(bool bStartCenter) :
SfxBoolItem(XATTR_LINESTARTCENTER, bStartCenter)
{
......@@ -2057,8 +2051,6 @@ bool XLineStartCenterItem::PutValue( const css::uno::Any& rVal, sal_uInt8 /*nMem
return true;
}
SfxPoolItem* XLineEndCenterItem::CreateDefault() {return new XLineEndCenterItem;}
XLineEndCenterItem::XLineEndCenterItem(bool bEndCenter) :
SfxBoolItem(XATTR_LINEENDCENTER, bEndCenter)
{
......@@ -2278,7 +2270,6 @@ void XFillColorItem::dumpAsXml(xmlTextWriterPtr pWriter) const
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(GetColorValue().AsRGBHexString().toUtf8().getStr()));
xmlTextWriterEndElement(pWriter);
}
SfxPoolItem* XSecondaryFillColorItem::CreateDefault() {return new XSecondaryFillColorItem;}
XSecondaryFillColorItem::XSecondaryFillColorItem(const OUString& rName, const Color& rTheColor) :
XColorItem(XATTR_SECONDARYFILLCOLOR, rName, rTheColor)
......
......@@ -34,8 +34,6 @@
#include <libxml/xmlwriter.h>
SfxPoolItem* XLineTransparenceItem::CreateDefault() {return new XLineTransparenceItem;}
XLineTransparenceItem::XLineTransparenceItem(sal_uInt16 nLineTransparence) :
SfxUInt16Item(XATTR_LINETRANSPARENCE, nLineTransparence)
{
......@@ -394,8 +392,6 @@ css::drawing::LineCap XLineCapItem::GetValue() const
return eRetval;
}
SfxPoolItem* XFillTransparenceItem::CreateDefault() {return new XFillTransparenceItem;}
XFillTransparenceItem::XFillTransparenceItem(sal_uInt16 nFillTransparence) :
SfxUInt16Item(XATTR_FILLTRANSPARENCE, nFillTransparence)
{
......@@ -449,8 +445,6 @@ void XFillTransparenceItem::dumpAsXml(xmlTextWriterPtr pWriter) const
}
SfxPoolItem* XFormTextShadowTranspItem::CreateDefault() { return new XFormTextShadowTranspItem; }
XFormTextShadowTranspItem::XFormTextShadowTranspItem(sal_uInt16 nShdwTransparence) :
SfxUInt16Item(XATTR_FORMTXTSHDWTRANSP, nShdwTransparence)
{
......@@ -473,8 +467,6 @@ SfxPoolItem* XFormTextShadowTranspItem::Create(SvStream& rIn, sal_uInt16 /*nVer*
// class XFillGradientStepCountItem