diff options
Diffstat (limited to 'include')
29 files changed, 19 insertions, 207 deletions
diff --git a/include/editeng/autokernitem.hxx b/include/editeng/autokernitem.hxx index b841f79e0be6..e357b01c0d0b 100644 --- a/include/editeng/autokernitem.hxx +++ b/include/editeng/autokernitem.hxx @@ -46,12 +46,6 @@ public: MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper& ) const override; - - SvxAutoKernItem& operator=(const SvxAutoKernItem& rAutoKern) - { - SetValue( rAutoKern.GetValue() ); - return *this; - } }; #endif diff --git a/include/editeng/blinkitem.hxx b/include/editeng/blinkitem.hxx index 658c783171bd..62e0f05c124e 100644 --- a/include/editeng/blinkitem.hxx +++ b/include/editeng/blinkitem.hxx @@ -45,11 +45,6 @@ public: MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper& ) const override; - - SvxBlinkItem& operator=(const SvxBlinkItem& rBlink) { - SetValue(rBlink.GetValue()); - return *this; - } }; #endif diff --git a/include/editeng/charhiddenitem.hxx b/include/editeng/charhiddenitem.hxx index ec2b1400adaf..625675dc2a89 100644 --- a/include/editeng/charhiddenitem.hxx +++ b/include/editeng/charhiddenitem.hxx @@ -39,11 +39,6 @@ public: MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper& ) const override; - - SvxCharHiddenItem& operator=(const SvxCharHiddenItem& rHidden) { - SetValue(rHidden.GetValue()); - return *this; - } }; #endif diff --git a/include/editeng/charreliefitem.hxx b/include/editeng/charreliefitem.hxx index 5284040fcb86..fd6607070852 100644 --- a/include/editeng/charreliefitem.hxx +++ b/include/editeng/charreliefitem.hxx @@ -53,12 +53,6 @@ public: virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; - - SvxCharReliefItem& operator=( const SvxCharReliefItem& rItem ) - { - SetValue( rItem.GetValue() ); - return *this; - } }; #endif diff --git a/include/editeng/charrotateitem.hxx b/include/editeng/charrotateitem.hxx index 848815ca098c..1c0b82ffc8b8 100644 --- a/include/editeng/charrotateitem.hxx +++ b/include/editeng/charrotateitem.hxx @@ -48,12 +48,6 @@ public: virtual bool QueryValue(css::uno::Any& rVal, sal_uInt8 nMemberId = 0) const override; virtual bool PutValue(const css::uno::Any& rVal, sal_uInt8 nMemberId) override; - SvxTextRotateItem& operator=(const SvxTextRotateItem& rItem) - { - SetValue(rItem.GetValue()); - return *this; - } - virtual bool operator==(const SfxPoolItem&) const override; // our currently only degree values @@ -100,13 +94,6 @@ public: virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; - SvxCharRotateItem& operator=( const SvxCharRotateItem& rItem ) - { - SetValue( rItem.GetValue() ); - SetFitToLine( rItem.IsFitToLine() ); - return *this; - } - virtual bool operator==( const SfxPoolItem& ) const override; bool IsFitToLine() const { return bFitToLine; } diff --git a/include/editeng/charscaleitem.hxx b/include/editeng/charscaleitem.hxx index 1a18f30e1393..cd116334d005 100644 --- a/include/editeng/charscaleitem.hxx +++ b/include/editeng/charscaleitem.hxx @@ -51,13 +51,6 @@ public: virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; - - SvxCharScaleWidthItem& operator=(const SvxCharScaleWidthItem& rItem ) - { - SetValue( rItem.GetValue() ); - return *this; - } - }; #endif diff --git a/include/editeng/charsetcoloritem.hxx b/include/editeng/charsetcoloritem.hxx index 5a1b86f7b06a..33ff2c2fa522 100644 --- a/include/editeng/charsetcoloritem.hxx +++ b/include/editeng/charsetcoloritem.hxx @@ -46,13 +46,6 @@ public: virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; rtl_TextEncoding GetCharSet() const { return eFrom; } - - SvxCharSetColorItem& operator=(const SvxCharSetColorItem& rColor) - { - SetValue( rColor.GetValue() ); - eFrom = rColor.GetCharSet(); - return *this; - } }; #endif diff --git a/include/editeng/cmapitem.hxx b/include/editeng/cmapitem.hxx index b3e8536bc4ed..dace57245fe2 100644 --- a/include/editeng/cmapitem.hxx +++ b/include/editeng/cmapitem.hxx @@ -50,12 +50,6 @@ public: OUString GetValueTextByPos( sal_uInt16 nPos ) const; virtual sal_uInt16 GetValueCount() const override; - SvxCaseMapItem& operator=(const SvxCaseMapItem& rMap) - { - SetValue( rMap.GetValue() ); - return *this; - } - // enum cast SvxCaseMap GetCaseMap() const { return GetValue(); } virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; diff --git a/include/editeng/emphasismarkitem.hxx b/include/editeng/emphasismarkitem.hxx index 9bc5ce883b58..67019d7d29c5 100644 --- a/include/editeng/emphasismarkitem.hxx +++ b/include/editeng/emphasismarkitem.hxx @@ -53,12 +53,6 @@ public: virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; - SvxEmphasisMarkItem& operator=(const SvxEmphasisMarkItem& rItem ) - { - SetValue( rItem.GetValue() ); - return *this; - } - // enum cast FontEmphasisMark GetEmphasisMark() const { return static_cast<FontEmphasisMark>(GetValue()); } diff --git a/include/editeng/escapementitem.hxx b/include/editeng/escapementitem.hxx index 6269d1322434..77c8eb1cb2b7 100644 --- a/include/editeng/escapementitem.hxx +++ b/include/editeng/escapementitem.hxx @@ -90,13 +90,6 @@ public: sal_uInt8 &GetProportionalHeight() { return nProp; } sal_uInt8 GetProportionalHeight() const { return nProp; } - SvxEscapementItem& operator=(const SvxEscapementItem& rEsc) - { - nEsc = rEsc.GetEsc(); - nProp = rEsc.GetProportionalHeight(); - return *this; - } - virtual sal_uInt16 GetValueCount() const override; OUString GetValueTextByPos( sal_uInt16 nPos ) const; virtual sal_uInt16 GetEnumValue() const override; diff --git a/include/editeng/forbiddenruleitem.hxx b/include/editeng/forbiddenruleitem.hxx index 768ed4af33c9..6213eab66a64 100644 --- a/include/editeng/forbiddenruleitem.hxx +++ b/include/editeng/forbiddenruleitem.hxx @@ -43,13 +43,6 @@ public: MapUnit ePresMetric, OUString &rText, const IntlWrapper& ) const override; - - SvxForbiddenRuleItem& operator=( - const SvxForbiddenRuleItem& rItem ) - { - SetValue( rItem.GetValue() ); - return *this; - } }; #endif diff --git a/include/editeng/hngpnctitem.hxx b/include/editeng/hngpnctitem.hxx index 9c0736dc47d4..dea50716f29d 100644 --- a/include/editeng/hngpnctitem.hxx +++ b/include/editeng/hngpnctitem.hxx @@ -42,13 +42,6 @@ public: MapUnit ePresMetric, OUString &rText, const IntlWrapper& ) const override; - - SvxHangingPunctuationItem& operator=( - const SvxHangingPunctuationItem& rItem ) - { - SetValue( rItem.GetValue() ); - return *this; - } }; #endif diff --git a/include/editeng/hyphenzoneitem.hxx b/include/editeng/hyphenzoneitem.hxx index b3c12a226860..9d04c8a3b744 100644 --- a/include/editeng/hyphenzoneitem.hxx +++ b/include/editeng/hyphenzoneitem.hxx @@ -72,16 +72,6 @@ public: sal_uInt8 &GetMaxHyphens() { return nMaxHyphens; } sal_uInt8 GetMaxHyphens() const { return nMaxHyphens; } - - SvxHyphenZoneItem &operator=( const SvxHyphenZoneItem &rNew ) - { - bHyphen = rNew.IsHyphen(); - bPageEnd = rNew.IsPageEnd(); - nMinLead = rNew.GetMinLead(); - nMinTrail = rNew.GetMinTrail(); - nMaxHyphens = rNew.GetMaxHyphens(); - return *this; - } }; #endif diff --git a/include/editeng/justifyitem.hxx b/include/editeng/justifyitem.hxx index a4513a76e257..59d4182f2c01 100644 --- a/include/editeng/justifyitem.hxx +++ b/include/editeng/justifyitem.hxx @@ -107,8 +107,6 @@ public: virtual sal_uInt16 GetValueCount() const override; static OUString GetValueText( SvxCellJustifyMethod nVal ); virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; - - SvxJustifyMethodItem& operator=(const SvxJustifyMethodItem& r); }; #endif diff --git a/include/editeng/kernitem.hxx b/include/editeng/kernitem.hxx index b6a3259f568d..1abd3c880faa 100644 --- a/include/editeng/kernitem.hxx +++ b/include/editeng/kernitem.hxx @@ -51,11 +51,6 @@ public: MapUnit ePresMetric, OUString &rText, const IntlWrapper& ) const override; - SvxKerningItem& operator=(const SvxKerningItem& rKern) { - SetValue( rKern.GetValue() ); - return *this; - } - virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; }; diff --git a/include/editeng/nhypitem.hxx b/include/editeng/nhypitem.hxx index 2e6a9f39b6f7..b05569f0599f 100644 --- a/include/editeng/nhypitem.hxx +++ b/include/editeng/nhypitem.hxx @@ -36,12 +36,6 @@ public: MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper& ) const override; - - SvxNoHyphenItem& operator=(const SvxNoHyphenItem& rNHH) - { - SetValue( rNHH.GetValue() ); - return *this; - } }; #endif diff --git a/include/editeng/optitems.hxx b/include/editeng/optitems.hxx index ccf91408aeb7..f85095962bb9 100644 --- a/include/editeng/optitems.hxx +++ b/include/editeng/optitems.hxx @@ -47,13 +47,6 @@ public: sal_uInt8 &GetMinTrail() { return nMinTrail; } sal_uInt8 GetMinTrail() const { return nMinTrail; } - - SfxHyphenRegionItem& operator=( const SfxHyphenRegionItem& rNew ) - { - nMinLead = rNew.GetMinLead(); - nMinTrail = rNew.GetMinTrail(); - return *this; - } }; #endif diff --git a/include/editeng/orphitem.hxx b/include/editeng/orphitem.hxx index a9df24573541..d40e5144b494 100644 --- a/include/editeng/orphitem.hxx +++ b/include/editeng/orphitem.hxx @@ -45,12 +45,6 @@ public: MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper& ) const override; - - SvxOrphansItem& operator=( const SvxOrphansItem& rOrphans ) - { - SetValue( rOrphans.GetValue() ); - return *this; - } }; #endif diff --git a/include/editeng/paravertalignitem.hxx b/include/editeng/paravertalignitem.hxx index 1059343268ab..57f82c6d8e44 100644 --- a/include/editeng/paravertalignitem.hxx +++ b/include/editeng/paravertalignitem.hxx @@ -55,12 +55,6 @@ public: Align GetValue() const { return static_cast<Align>(SfxUInt16Item::GetValue()); } void SetValue(Align n) { SfxUInt16Item::SetValue(static_cast<sal_uInt16>(n)); } - SvxParaVertAlignItem& operator=( const SvxParaVertAlignItem& rItem ) - { - SetValue( rItem.GetValue() ); - return *this; - } - virtual bool operator==( const SfxPoolItem& ) const override; }; diff --git a/include/editeng/pbinitem.hxx b/include/editeng/pbinitem.hxx index 324bda43e5f9..d65bd53dbbcb 100644 --- a/include/editeng/pbinitem.hxx +++ b/include/editeng/pbinitem.hxx @@ -40,7 +40,6 @@ public: explicit inline SvxPaperBinItem( const sal_uInt16 nId , const sal_uInt8 nTray = PAPERBIN_PRINTER_SETTINGS ); - inline SvxPaperBinItem &operator=( const SvxPaperBinItem &rCpy ); // "pure virtual Methods" from SfxPoolItem virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; @@ -54,13 +53,6 @@ inline SvxPaperBinItem::SvxPaperBinItem( const sal_uInt16 nId, const sal_uInt8 n : SfxByteItem( nId, nT ) {} -inline SvxPaperBinItem &SvxPaperBinItem::operator=( - const SvxPaperBinItem &rCpy ) -{ - SetValue( rCpy.GetValue() ); - return *this; -} - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/editeng/prntitem.hxx b/include/editeng/prntitem.hxx index 47cd59d0158f..a5d5e9c1fa5a 100644 --- a/include/editeng/prntitem.hxx +++ b/include/editeng/prntitem.hxx @@ -36,7 +36,6 @@ class EDITENG_DLLPUBLIC SvxPrintItem : public SfxBoolItem { public: explicit SvxPrintItem( const sal_uInt16 nId , const bool bPrt = true ); - inline SvxPrintItem &operator=( const SvxPrintItem &rCpy ); // "pure virtual Methods" from SfxPoolItem virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; @@ -51,13 +50,6 @@ inline SvxPrintItem::SvxPrintItem( const sal_uInt16 nId, const bool bPrt ) : SfxBoolItem( nId, bPrt ) {} -inline SvxPrintItem &SvxPrintItem::operator=( const SvxPrintItem &rCpy ) -{ - SetValue( rCpy.GetValue() ); - return *this; -} - - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/editeng/scriptspaceitem.hxx b/include/editeng/scriptspaceitem.hxx index 09776ba13510..46d3be6c7315 100644 --- a/include/editeng/scriptspaceitem.hxx +++ b/include/editeng/scriptspaceitem.hxx @@ -44,13 +44,6 @@ public: MapUnit ePresMetric, OUString &rText, const IntlWrapper& ) const override; - - SvxScriptSpaceItem& operator=(const SvxScriptSpaceItem& rItem ) - { - SetValue( rItem.GetValue() ); - return *this; - } - }; #endif diff --git a/include/editeng/spltitem.hxx b/include/editeng/spltitem.hxx index 623dca2bfda6..081d8b8ee87a 100644 --- a/include/editeng/spltitem.hxx +++ b/include/editeng/spltitem.hxx @@ -39,7 +39,11 @@ public: inline SvxFormatSplitItem( const bool bSplit /*= true*/, const sal_uInt16 nWh ); - inline SvxFormatSplitItem& operator=( const SvxFormatSplitItem& rSplit ); + + SvxFormatSplitItem(SvxFormatSplitItem const &) = default; + SvxFormatSplitItem(SvxFormatSplitItem &&) = default; + SvxFormatSplitItem & operator =(SvxFormatSplitItem const &) = default; + SvxFormatSplitItem & operator =(SvxFormatSplitItem &&) = default; // "pure virtual Methods" from SfxPoolItem virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; @@ -54,13 +58,6 @@ inline SvxFormatSplitItem::SvxFormatSplitItem( const bool bSplit, const sal_uInt SfxBoolItem( nWh, bSplit ) {} -inline SvxFormatSplitItem& SvxFormatSplitItem::operator=( - const SvxFormatSplitItem& rSplit ) -{ - SetValue( rSplit.GetValue() ); - return *this; -} - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/editeng/twolinesitem.hxx b/include/editeng/twolinesitem.hxx index 6386844ca466..2833d49e9df6 100644 --- a/include/editeng/twolinesitem.hxx +++ b/include/editeng/twolinesitem.hxx @@ -36,6 +36,11 @@ public: sal_uInt16 nId ); virtual ~SvxTwoLinesItem() override; + SvxTwoLinesItem(SvxTwoLinesItem const &) = default; + SvxTwoLinesItem(SvxTwoLinesItem &&) = default; + SvxTwoLinesItem & operator =(SvxTwoLinesItem const &) = default; + SvxTwoLinesItem & operator =(SvxTwoLinesItem &&) = default; + // "pure virtual Methods" from SfxPoolItem virtual bool operator==( const SfxPoolItem& ) const override; virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override; @@ -50,14 +55,6 @@ public: virtual sal_uInt16 GetVersion( sal_uInt16 nFFVer ) const override; - SvxTwoLinesItem& operator=( const SvxTwoLinesItem& rCpy ) - { - SetValue( rCpy.GetValue() ); - SetStartBracket( rCpy.GetStartBracket() ); - SetEndBracket( rCpy.GetEndBracket() ); - return *this; - } - bool GetValue() const { return bOn; } void SetValue( bool bFlag ) { bOn = bFlag; } diff --git a/include/editeng/widwitem.hxx b/include/editeng/widwitem.hxx index 3f5966864e19..32d255731c33 100644 --- a/include/editeng/widwitem.hxx +++ b/include/editeng/widwitem.hxx @@ -45,12 +45,6 @@ public: MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper& ) const override; - - SvxWidowsItem& operator=( const SvxWidowsItem& rWidows ) - { - SetValue( rWidows.GetValue() ); - return *this; - } }; #endif diff --git a/include/editeng/writingmodeitem.hxx b/include/editeng/writingmodeitem.hxx index c7a823d8c6bd..737de29f3269 100644 --- a/include/editeng/writingmodeitem.hxx +++ b/include/editeng/writingmodeitem.hxx @@ -32,7 +32,10 @@ public: sal_uInt16 nWhich /*= SDRATTR_TEXTDIRECTION*/ ); virtual ~SvxWritingModeItem() override; - SvxWritingModeItem& operator=( const SvxWritingModeItem& rItem ); + SvxWritingModeItem(SvxWritingModeItem const &) = default; + SvxWritingModeItem(SvxWritingModeItem &&) = default; + SvxWritingModeItem & operator =(SvxWritingModeItem const &) = default; + SvxWritingModeItem & operator =(SvxWritingModeItem &&) = default; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const override; diff --git a/include/editeng/wrlmitem.hxx b/include/editeng/wrlmitem.hxx index 15230e10386e..648b2fca61e5 100644 --- a/include/editeng/wrlmitem.hxx +++ b/include/editeng/wrlmitem.hxx @@ -47,12 +47,6 @@ public: MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper& ) const override; - - SvxWordLineModeItem& operator=( const SvxWordLineModeItem& rWLM ) - { - SetValue( rWLM.GetValue() ); - return *this; - } }; #endif diff --git a/include/svx/grfcrop.hxx b/include/svx/grfcrop.hxx index 96fc7d5c802f..73693e65123d 100644 --- a/include/svx/grfcrop.hxx +++ b/include/svx/grfcrop.hxx @@ -36,6 +36,11 @@ public: sal_uInt16 ); virtual ~SvxGrfCrop() override; + SvxGrfCrop(SvxGrfCrop const &) = default; + SvxGrfCrop(SvxGrfCrop &&) = default; + SvxGrfCrop & operator =(SvxGrfCrop const &) = default; + SvxGrfCrop & operator =(SvxGrfCrop &&) = default; + // "pure virtual methods" from SfxPoolItem virtual bool operator==( const SfxPoolItem& ) const override; virtual bool GetPresentation( SfxItemPresentation ePres, @@ -57,13 +62,6 @@ public: sal_Int32 GetRight() const { return nRight; } sal_Int32 GetTop() const { return nTop; } sal_Int32 GetBottom() const { return nBottom; } - - SvxGrfCrop& operator=( const SvxGrfCrop& rCrop ) - { - nLeft = rCrop.GetLeft(); nTop = rCrop.GetTop(); - nRight = rCrop.GetRight(); nBottom = rCrop.GetBottom(); - return *this; - } }; #endif // INCLUDED_SVX_GRFCROP_HXX diff --git a/include/svx/postattr.hxx b/include/svx/postattr.hxx index 65dee15106d5..1e5da716376e 100644 --- a/include/svx/postattr.hxx +++ b/include/svx/postattr.hxx @@ -40,12 +40,6 @@ public: OUString &rText, const IntlWrapper& ) const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; - - SvxPostItAuthorItem& operator=( const SvxPostItAuthorItem& rAuthor ) - { - SetValue( rAuthor.GetValue() ); - return *this; - } }; @@ -66,12 +60,6 @@ public: OUString &rText, const IntlWrapper& ) const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; - - SvxPostItDateItem& operator=( const SvxPostItDateItem& rDate ) - { - SetValue( rDate.GetValue() ); - return *this; - } }; /** The text of a note @@ -92,12 +80,6 @@ public: OUString &rText, const IntlWrapper& ) const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; - - SvxPostItTextItem& operator=( const SvxPostItTextItem& rText ) - { - SetValue( rText.GetValue() ); - return *this; - } }; @@ -112,12 +94,6 @@ public: SvxPostItIdItem( sal_uInt16 nWhich ); virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; - - SvxPostItIdItem& operator=( const SvxPostItIdItem& rId ) - { - SetValue( rId.GetValue() ); - return *this; - } }; #endif |