summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/inc/DateFormFieldButton.hxx2
-rw-r--r--sw/source/core/inc/DocumentContentOperationsManager.hxx2
-rw-r--r--sw/source/core/inc/DocumentRedlineManager.hxx2
-rw-r--r--sw/source/core/inc/DropDownFormFieldButton.hxx2
-rw-r--r--sw/source/core/inc/SwUndoFmt.hxx24
-rw-r--r--sw/source/core/inc/SwUndoPageDesc.hxx6
-rw-r--r--sw/source/core/inc/SwUndoTOXChange.hxx2
-rw-r--r--sw/source/core/inc/SwXMLBlockExport.hxx2
-rw-r--r--sw/source/core/inc/UndoAttribute.hxx20
-rw-r--r--sw/source/core/inc/UndoBookmark.hxx14
-rw-r--r--sw/source/core/inc/UndoCore.hxx12
-rw-r--r--sw/source/core/inc/UndoDelete.hxx2
-rw-r--r--sw/source/core/inc/UndoDraw.hxx10
-rw-r--r--sw/source/core/inc/UndoInsert.hxx8
-rw-r--r--sw/source/core/inc/UndoManager.hxx5
-rw-r--r--sw/source/core/inc/UndoNumbering.hxx12
-rw-r--r--sw/source/core/inc/UndoRedline.hxx10
-rw-r--r--sw/source/core/inc/UndoSection.hxx4
-rw-r--r--sw/source/core/inc/UndoSort.hxx2
-rw-r--r--sw/source/core/inc/UndoSplitMove.hxx4
-rw-r--r--sw/source/core/inc/UndoTable.hxx32
-rw-r--r--sw/source/core/inc/bodyfrm.hxx3
-rw-r--r--sw/source/core/inc/bookmrk.hxx12
-rw-r--r--sw/source/core/inc/cellfrm.hxx3
-rw-r--r--sw/source/core/inc/dview.hxx3
-rw-r--r--sw/source/core/inc/fntcache.hxx6
-rw-r--r--sw/source/core/inc/frmtool.hxx2
-rw-r--r--sw/source/core/inc/ftnfrm.hxx2
-rw-r--r--sw/source/core/inc/rootfrm.hxx4
-rw-r--r--sw/source/core/inc/rowfrm.hxx3
-rw-r--r--sw/source/core/inc/swfntcch.hxx4
-rw-r--r--sw/source/core/inc/textapi.hxx2
-rw-r--r--sw/source/core/inc/txtfrm.hxx3
-rw-r--r--sw/source/core/inc/undoflystrattr.hxx2
-rw-r--r--sw/source/core/inc/visiturl.hxx2
-rw-r--r--sw/source/filter/inc/fltini.hxx4
-rw-r--r--sw/source/filter/inc/fltshell.hxx12
-rw-r--r--sw/source/filter/inc/msfilter.hxx2
-rw-r--r--sw/source/ui/inc/mmresultdialogs.hxx8
-rw-r--r--sw/source/uibase/inc/DateFormFieldDialog.hxx2
-rw-r--r--sw/source/uibase/inc/DropDownFieldDialog.hxx2
-rw-r--r--sw/source/uibase/inc/DropDownFormFieldDialog.hxx2
-rw-r--r--sw/source/uibase/inc/HeaderFooterWin.hxx2
-rw-r--r--sw/source/uibase/inc/OutlineContentVisibilityWin.hxx2
-rw-r--r--sw/source/uibase/inc/PageBreakWin.hxx2
-rw-r--r--sw/source/uibase/inc/SwSpellDialogChildWindow.hxx3
-rw-r--r--sw/source/uibase/inc/SwXFilterOptions.hxx2
-rw-r--r--sw/source/uibase/inc/UnfloatTableButton.hxx2
-rw-r--r--sw/source/uibase/inc/abstract.hxx2
-rw-r--r--sw/source/uibase/inc/addrdlg.hxx2
-rw-r--r--sw/source/uibase/inc/ascfldlg.hxx2
-rw-r--r--sw/source/uibase/inc/autoformatpreview.hxx2
-rw-r--r--sw/source/uibase/inc/barcfg.hxx2
-rw-r--r--sw/source/uibase/inc/bmpwin.hxx2
-rw-r--r--sw/source/uibase/inc/bookctrl.hxx2
-rw-r--r--sw/source/uibase/inc/bookmark.hxx2
-rw-r--r--sw/source/uibase/inc/break.hxx2
-rw-r--r--sw/source/uibase/inc/cfgitems.hxx10
-rw-r--r--sw/source/uibase/inc/changedb.hxx2
-rw-r--r--sw/source/uibase/inc/chrdlg.hxx4
-rw-r--r--sw/source/uibase/inc/colex.hxx10
-rw-r--r--sw/source/uibase/inc/column.hxx4
-rw-r--r--sw/source/uibase/inc/condedit.hxx2
-rw-r--r--sw/source/uibase/inc/content.hxx4
-rw-r--r--sw/source/uibase/inc/conttree.hxx4
-rw-r--r--sw/source/uibase/inc/convert.hxx2
-rw-r--r--sw/source/uibase/inc/cption.hxx2
-rw-r--r--sw/source/uibase/inc/dbconfig.hxx2
-rw-r--r--sw/source/uibase/inc/dbinsdlg.hxx2
-rw-r--r--sw/source/uibase/inc/dbui.hxx6
-rw-r--r--sw/source/uibase/inc/docfnote.hxx2
-rw-r--r--sw/source/uibase/inc/drpcps.hxx6
-rw-r--r--sw/source/uibase/inc/dselect.hxx2
-rw-r--r--sw/source/uibase/inc/envimg.hxx4
-rw-r--r--sw/source/uibase/inc/envlop.hxx6
-rw-r--r--sw/source/uibase/inc/fldedt.hxx2
-rw-r--r--sw/source/uibase/inc/fldtdlg.hxx2
-rw-r--r--sw/source/uibase/inc/fldwrap.hxx4
-rw-r--r--sw/source/uibase/inc/fontcfg.hxx2
-rw-r--r--sw/source/uibase/inc/frmdlg.hxx2
-rw-r--r--sw/source/uibase/inc/frmpage.hxx8
-rw-r--r--sw/source/uibase/inc/gloslst.hxx2
-rw-r--r--sw/source/uibase/inc/glossary.hxx2
-rw-r--r--sw/source/uibase/inc/hyp.hxx3
-rw-r--r--sw/source/uibase/inc/inpdlg.hxx2
-rw-r--r--sw/source/uibase/inc/inputwin.hxx2
-rw-r--r--sw/source/uibase/inc/insfnote.hxx2
-rw-r--r--sw/source/uibase/inc/instable.hxx2
-rw-r--r--sw/source/uibase/inc/javaedit.hxx2
-rw-r--r--sw/source/uibase/inc/label.hxx2
-rw-r--r--sw/source/uibase/inc/labelcfg.hxx2
-rw-r--r--sw/source/uibase/inc/labimg.hxx4
-rw-r--r--sw/source/uibase/inc/linenum.hxx2
-rw-r--r--sw/source/uibase/inc/mailconfigpage.hxx4
-rw-r--r--sw/source/uibase/inc/maildispatcher.hxx7
-rw-r--r--sw/source/uibase/inc/mailmergehelper.hxx12
-rw-r--r--sw/source/uibase/inc/mailmergewizard.hxx3
-rw-r--r--sw/source/uibase/inc/mailmrge.hxx6
-rw-r--r--sw/source/uibase/inc/mergetbl.hxx2
-rw-r--r--sw/source/uibase/inc/multmrk.hxx2
-rw-r--r--sw/source/uibase/inc/navicfg.hxx2
-rw-r--r--sw/source/uibase/inc/navipi.hxx4
-rw-r--r--sw/source/uibase/inc/num.hxx2
-rw-r--r--sw/source/uibase/inc/numfmtlb.hxx4
-rw-r--r--sw/source/uibase/inc/numprevw.hxx2
-rw-r--r--sw/source/uibase/inc/optcomp.hxx2
-rw-r--r--sw/source/uibase/inc/optload.hxx10
-rw-r--r--sw/source/uibase/inc/optpage.hxx18
-rw-r--r--sw/source/uibase/inc/outline.hxx2
-rw-r--r--sw/source/uibase/inc/pattern.hxx2
-rw-r--r--sw/source/uibase/inc/pgfnote.hxx2
-rw-r--r--sw/source/uibase/inc/pggrid.hxx2
-rw-r--r--sw/source/uibase/inc/pview.hxx5
-rw-r--r--sw/source/uibase/inc/redlndlg.hxx6
-rw-r--r--sw/source/uibase/inc/regionsw.hxx12
-rw-r--r--sw/source/uibase/inc/rowht.hxx2
-rw-r--r--sw/source/uibase/inc/scroll.hxx2
-rw-r--r--sw/source/uibase/inc/splittbl.hxx2
-rw-r--r--sw/source/uibase/inc/srcedtw.hxx7
-rw-r--r--sw/source/uibase/inc/srcview.hxx3
-rw-r--r--sw/source/uibase/inc/srtdlg.hxx2
-rw-r--r--sw/source/uibase/inc/swdtflvr.hxx3
-rw-r--r--sw/source/uibase/inc/swmodalredlineacceptdlg.hxx2
-rw-r--r--sw/source/uibase/inc/swrenamexnameddlg.hxx2
-rw-r--r--sw/source/uibase/inc/swuiccoll.hxx2
-rw-r--r--sw/source/uibase/inc/swuicnttab.hxx8
-rw-r--r--sw/source/uibase/inc/swuiidxmrk.hxx8
-rw-r--r--sw/source/uibase/inc/swuipardlg.hxx2
-rw-r--r--sw/source/uibase/inc/swwrtshitem.hxx2
-rw-r--r--sw/source/uibase/inc/syncbtn.hxx4
-rw-r--r--sw/source/uibase/inc/tabledlg.hxx2
-rw-r--r--sw/source/uibase/inc/tautofmt.hxx2
-rw-r--r--sw/source/uibase/inc/tblnumfm.hxx2
-rw-r--r--sw/source/uibase/inc/titlepage.hxx2
-rw-r--r--sw/source/uibase/inc/tmpdlg.hxx2
-rw-r--r--sw/source/uibase/inc/tmplctrl.hxx3
-rw-r--r--sw/source/uibase/inc/uiborder.hxx2
-rw-r--r--sw/source/uibase/inc/uiitems.hxx8
-rw-r--r--sw/source/uibase/inc/uiobject.hxx14
-rw-r--r--sw/source/uibase/inc/uivwimp.hxx4
-rw-r--r--sw/source/uibase/inc/unoatxt.hxx10
-rw-r--r--sw/source/uibase/inc/unomailmerge.hxx4
-rw-r--r--sw/source/uibase/inc/unotools.hxx2
-rw-r--r--sw/source/uibase/inc/usrpref.hxx10
-rw-r--r--sw/source/uibase/inc/viewlayoutctrl.hxx2
-rw-r--r--sw/source/uibase/inc/watermarkdialog.hxx2
-rw-r--r--sw/source/uibase/inc/wordcountctrl.hxx2
-rw-r--r--sw/source/uibase/inc/wordcountdialog.hxx2
-rw-r--r--sw/source/uibase/inc/workctrl.hxx6
-rw-r--r--sw/source/uibase/inc/wrap.hxx4
-rw-r--r--sw/source/uibase/inc/wrtsh.hxx2
-rw-r--r--sw/source/uibase/inc/zoomctrl.hxx2
152 files changed, 316 insertions, 347 deletions
diff --git a/sw/source/core/inc/DateFormFieldButton.hxx b/sw/source/core/inc/DateFormFieldButton.hxx
index a03bfc9117be..3d74706a8a5d 100644
--- a/sw/source/core/inc/DateFormFieldButton.hxx
+++ b/sw/source/core/inc/DateFormFieldButton.hxx
@@ -23,7 +23,7 @@ class DateFieldmark;
* This button is shown when the cursor is on a date form field.
* The user can select a date from a date picker while filling in a form.
*/
-class DateFormFieldButton : public FormFieldButton
+class DateFormFieldButton final : public FormFieldButton
{
private:
SvNumberFormatter* m_pNumberFormatter;
diff --git a/sw/source/core/inc/DocumentContentOperationsManager.hxx b/sw/source/core/inc/DocumentContentOperationsManager.hxx
index b3cabeb85dab..3b2d82d75b6b 100644
--- a/sw/source/core/inc/DocumentContentOperationsManager.hxx
+++ b/sw/source/core/inc/DocumentContentOperationsManager.hxx
@@ -31,7 +31,7 @@ class SwHistory;
namespace sw
{
-class DocumentContentOperationsManager : public IDocumentContentOperations
+class DocumentContentOperationsManager final : public IDocumentContentOperations
{
public:
DocumentContentOperationsManager( SwDoc& i_rSwdoc );
diff --git a/sw/source/core/inc/DocumentRedlineManager.hxx b/sw/source/core/inc/DocumentRedlineManager.hxx
index 9f3a3e8bf806..ffdd07f0f8fa 100644
--- a/sw/source/core/inc/DocumentRedlineManager.hxx
+++ b/sw/source/core/inc/DocumentRedlineManager.hxx
@@ -28,7 +28,7 @@ class SwDoc;
namespace sw
{
-class SAL_DLLPUBLIC_RTTI DocumentRedlineManager : public IDocumentRedlineAccess
+class SAL_DLLPUBLIC_RTTI DocumentRedlineManager final : public IDocumentRedlineAccess
{
public:
DocumentRedlineManager( SwDoc& i_rSwdoc );
diff --git a/sw/source/core/inc/DropDownFormFieldButton.hxx b/sw/source/core/inc/DropDownFormFieldButton.hxx
index 9853c57a3116..6f8aa42edd1d 100644
--- a/sw/source/core/inc/DropDownFormFieldButton.hxx
+++ b/sw/source/core/inc/DropDownFormFieldButton.hxx
@@ -21,7 +21,7 @@ class DropDownFieldmark;
* This button is shown when the cursor is on a drop-down form field.
* The user can select an item of the field using this button while filling in a form.
*/
-class DropDownFormFieldButton : public FormFieldButton
+class DropDownFormFieldButton final : public FormFieldButton
{
private:
std::unique_ptr<weld::TreeView> m_xTreeView;
diff --git a/sw/source/core/inc/SwUndoFmt.hxx b/sw/source/core/inc/SwUndoFmt.hxx
index f02776339c90..499a6fcd65b3 100644
--- a/sw/source/core/inc/SwUndoFmt.hxx
+++ b/sw/source/core/inc/SwUndoFmt.hxx
@@ -121,21 +121,21 @@ public:
virtual SwFormat * Find(const OUString & rName) const override;
};
-class SwUndoCondTextFormatCollCreate : public SwUndoTextFormatCollCreate
+class SwUndoCondTextFormatCollCreate final : public SwUndoTextFormatCollCreate
{
public:
SwUndoCondTextFormatCollCreate(SwConditionTextFormatColl * pNew, SwTextFormatColl const * pDerivedFrom, SwDoc& rDoc);
virtual SwFormat * Create(SwFormat * pDerivedFrom) override;
};
-class SwUndoCondTextFormatCollDelete : public SwUndoTextFormatCollDelete
+class SwUndoCondTextFormatCollDelete final : public SwUndoTextFormatCollDelete
{
public:
SwUndoCondTextFormatCollDelete(SwTextFormatColl const * pOld, SwDoc& rDoc);
virtual SwFormat * Create(SwFormat * pDerivedFrom) override;
};
-class SwUndoRenameFormatColl : public SwUndoRenameFormat
+class SwUndoRenameFormatColl final : public SwUndoRenameFormat
{
public:
SwUndoRenameFormatColl(const OUString & sOldName,
@@ -145,7 +145,7 @@ public:
virtual SwFormat * Find(const OUString & rName) const override;
};
-class SwUndoCharFormatCreate : public SwUndoFormatCreate
+class SwUndoCharFormatCreate final : public SwUndoFormatCreate
{
public:
SwUndoCharFormatCreate(SwCharFormat * pNew, SwCharFormat const * pDerivedFrom,
@@ -156,7 +156,7 @@ public:
virtual SwFormat * Find(const OUString & rName) const override;
};
-class SwUndoCharFormatDelete : public SwUndoFormatDelete
+class SwUndoCharFormatDelete final : public SwUndoFormatDelete
{
public:
SwUndoCharFormatDelete(SwCharFormat const * pOld, SwDoc& rDoc);
@@ -166,7 +166,7 @@ public:
virtual SwFormat * Find(const OUString & rName) const override;
};
-class SwUndoRenameCharFormat : public SwUndoRenameFormat
+class SwUndoRenameCharFormat final : public SwUndoRenameFormat
{
public:
SwUndoRenameCharFormat(const OUString & sOldName,
@@ -176,7 +176,7 @@ public:
virtual SwFormat * Find(const OUString & rName) const override;
};
-class SwUndoFrameFormatCreate : public SwUndoFormatCreate
+class SwUndoFrameFormatCreate final : public SwUndoFormatCreate
{
public:
SwUndoFrameFormatCreate(SwFrameFormat * pNew, SwFrameFormat const * pDerivedFrom,
@@ -187,7 +187,7 @@ public:
virtual SwFormat * Find(const OUString & rName) const override;
};
-class SwUndoFrameFormatDelete : public SwUndoFormatDelete
+class SwUndoFrameFormatDelete final : public SwUndoFormatDelete
{
public:
SwUndoFrameFormatDelete(SwFrameFormat const * pOld, SwDoc& rDoc);
@@ -197,7 +197,7 @@ public:
virtual SwFormat * Find(const OUString & rName) const override;
};
-class SwUndoRenameFrameFormat : public SwUndoRenameFormat
+class SwUndoRenameFrameFormat final : public SwUndoRenameFormat
{
public:
SwUndoRenameFrameFormat(const OUString & sOldName,
@@ -207,7 +207,7 @@ public:
virtual SwFormat * Find(const OUString & rName) const override;
};
-class SwUndoNumruleCreate : public SwUndo
+class SwUndoNumruleCreate final : public SwUndo
{
const SwNumRule * m_pNew;
mutable SwNumRule m_aNew;
@@ -223,7 +223,7 @@ public:
SwRewriter GetRewriter() const override;
};
-class SwUndoNumruleDelete : public SwUndo
+class SwUndoNumruleDelete final : public SwUndo
{
SwNumRule m_aOld;
SwDoc& m_rDoc;
@@ -237,7 +237,7 @@ public:
SwRewriter GetRewriter() const override;
};
-class SwUndoNumruleRename : public SwUndo
+class SwUndoNumruleRename final : public SwUndo
{
OUString m_aOldName, m_aNewName;
SwDoc& m_rDoc;
diff --git a/sw/source/core/inc/SwUndoPageDesc.hxx b/sw/source/core/inc/SwUndoPageDesc.hxx
index acdaed7cc259..c8d88f6cbd04 100644
--- a/sw/source/core/inc/SwUndoPageDesc.hxx
+++ b/sw/source/core/inc/SwUndoPageDesc.hxx
@@ -25,7 +25,7 @@
class SwDoc;
-class SwUndoPageDesc : public SwUndo
+class SwUndoPageDesc final : public SwUndo
{
SwPageDescExt m_aOld, m_aNew;
SwDoc * m_pDoc;
@@ -45,7 +45,7 @@ public:
virtual SwRewriter GetRewriter() const override;
};
-class SwUndoPageDescCreate : public SwUndo
+class SwUndoPageDescCreate final : public SwUndo
{
const SwPageDesc * m_pDesc;
SwPageDescExt m_aNew;
@@ -64,7 +64,7 @@ public:
virtual SwRewriter GetRewriter() const override;
};
-class SwUndoPageDescDelete : public SwUndo
+class SwUndoPageDescDelete final : public SwUndo
{
SwPageDescExt m_aOld;
SwDoc * m_pDoc;
diff --git a/sw/source/core/inc/SwUndoTOXChange.hxx b/sw/source/core/inc/SwUndoTOXChange.hxx
index b3acd453fc75..b3b5d57a88cc 100644
--- a/sw/source/core/inc/SwUndoTOXChange.hxx
+++ b/sw/source/core/inc/SwUndoTOXChange.hxx
@@ -25,7 +25,7 @@
class SwDoc;
class SwTOXBaseSection;
-class SwUndoTOXChange : public SwUndo
+class SwUndoTOXChange final : public SwUndo
{
private:
SwTOXBase m_Old;
diff --git a/sw/source/core/inc/SwXMLBlockExport.hxx b/sw/source/core/inc/SwXMLBlockExport.hxx
index d9db25cbd9c0..0468cab1912e 100644
--- a/sw/source/core/inc/SwXMLBlockExport.hxx
+++ b/sw/source/core/inc/SwXMLBlockExport.hxx
@@ -41,7 +41,7 @@ public:
void ExportContent_() override {}
};
-class SwXMLTextBlockExport : public SvXMLExport
+class SwXMLTextBlockExport final : public SvXMLExport
{
private:
SwXMLTextBlocks &m_rBlockList;
diff --git a/sw/source/core/inc/UndoAttribute.hxx b/sw/source/core/inc/UndoAttribute.hxx
index 4aa7001db613..c1387cbda734 100644
--- a/sw/source/core/inc/UndoAttribute.hxx
+++ b/sw/source/core/inc/UndoAttribute.hxx
@@ -34,7 +34,7 @@ class SwFootnoteInfo;
class SwEndNoteInfo;
class SwDoc;
-class SwUndoAttr : public SwUndo, private SwUndRng
+class SwUndoAttr final : public SwUndo, private SwUndRng
{
SfxItemSet m_AttrSet; // attributes for Redo
const std::unique_ptr<SwHistory> m_pHistory; // History for Undo
@@ -61,7 +61,7 @@ public:
SwHistory& GetHistory() { return *m_pHistory; }
};
-class SwUndoResetAttr : public SwUndo, private SwUndRng
+class SwUndoResetAttr final : public SwUndo, private SwUndRng
{
const std::unique_ptr<SwHistory> m_pHistory;
o3tl::sorted_vector<sal_uInt16> m_Ids;
@@ -82,7 +82,7 @@ public:
SwHistory& GetHistory() { return *m_pHistory; }
};
-class SwUndoFormatAttr : public SwUndo
+class SwUndoFormatAttr final : public SwUndo
{
friend class SwUndoDefaultAttr;
OUString m_sFormatName;
@@ -127,7 +127,7 @@ public:
};
// --> OD 2008-02-12 #newlistlevelattrs#
-class SwUndoFormatResetAttr : public SwUndo
+class SwUndoFormatResetAttr final : public SwUndo
{
public:
SwUndoFormatResetAttr( SwFormat& rChangedFormat,
@@ -146,7 +146,7 @@ class SwUndoFormatResetAttr : public SwUndo
std::unique_ptr<SfxPoolItem> m_pOldItem;
};
-class SwUndoDontExpandFormat : public SwUndo
+class SwUndoDontExpandFormat final : public SwUndo
{
const sal_uLong m_nNodeIndex;
const sal_Int32 m_nContentIndex;
@@ -176,7 +176,7 @@ public:
std::unique_ptr<SwUndoFormatAttr> ReleaseUndo() { return std::move(m_pUndo); }
};
-class SwUndoMoveLeftMargin : public SwUndo, private SwUndRng
+class SwUndoMoveLeftMargin final : public SwUndo, private SwUndRng
{
const std::unique_ptr<SwHistory> m_pHistory;
const bool m_bModulus;
@@ -194,7 +194,7 @@ public:
};
-class SwUndoDefaultAttr : public SwUndo
+class SwUndoDefaultAttr final : public SwUndo
{
std::unique_ptr<SfxItemSet> m_pOldSet; // the old attributes
std::unique_ptr<SvxTabStopItem> m_pTabStop;
@@ -209,7 +209,7 @@ public:
virtual void RedoImpl( ::sw::UndoRedoContext & ) override;
};
-class SwUndoChangeFootNote : public SwUndo, private SwUndRng
+class SwUndoChangeFootNote final : public SwUndo, private SwUndRng
{
const std::unique_ptr<SwHistory> m_pHistory;
const OUString m_Text;
@@ -227,7 +227,7 @@ public:
SwHistory& GetHistory() { return *m_pHistory; }
};
-class SwUndoFootNoteInfo : public SwUndo
+class SwUndoFootNoteInfo final : public SwUndo
{
std::unique_ptr<SwFootnoteInfo> m_pFootNoteInfo;
@@ -240,7 +240,7 @@ public:
virtual void RedoImpl( ::sw::UndoRedoContext & ) override;
};
-class SwUndoEndNoteInfo : public SwUndo
+class SwUndoEndNoteInfo final : public SwUndo
{
std::unique_ptr<SwEndNoteInfo> m_pEndNoteInfo;
diff --git a/sw/source/core/inc/UndoBookmark.hxx b/sw/source/core/inc/UndoBookmark.hxx
index f8fb3dd54dc9..dc57ad300635 100644
--- a/sw/source/core/inc/UndoBookmark.hxx
+++ b/sw/source/core/inc/UndoBookmark.hxx
@@ -64,7 +64,7 @@ public:
virtual SwRewriter GetRewriter() const override;
};
-class SwUndoInsBookmark : public SwUndoBookmark
+class SwUndoInsBookmark final : public SwUndoBookmark
{
public:
SwUndoInsBookmark(const ::sw::mark::IMark&);
@@ -73,7 +73,7 @@ public:
virtual void RedoImpl(::sw::UndoRedoContext&) override;
};
-class SwUndoDeleteBookmark : public SwUndoBookmark
+class SwUndoDeleteBookmark final : public SwUndoBookmark
{
public:
SwUndoDeleteBookmark(const ::sw::mark::IMark&);
@@ -82,7 +82,7 @@ public:
virtual void RedoImpl(::sw::UndoRedoContext&) override;
};
-class SwUndoRenameBookmark : public SwUndo
+class SwUndoRenameBookmark final : public SwUndo
{
const OUString m_sOldName;
const OUString m_sNewName;
@@ -99,7 +99,7 @@ private:
};
/// Handling undo / redo of checkbox and drop-down form field insertion
-class SwUndoInsNoTextFieldmark : public SwUndo
+class SwUndoInsNoTextFieldmark final : public SwUndo
{
private:
const std::unique_ptr<SwHistoryNoTextFieldmark> m_pHistoryNoTextFieldmark;
@@ -112,7 +112,7 @@ public:
};
/// Handling undo / redo of checkbox and drop-down form field deletion
-class SwUndoDelNoTextFieldmark : public SwUndo
+class SwUndoDelNoTextFieldmark final : public SwUndo
{
private:
const std::unique_ptr<SwHistoryNoTextFieldmark> m_pHistoryNoTextFieldmark;
@@ -126,7 +126,7 @@ public:
};
/// Handling undo / redo of text form field insertion
-class SwUndoInsTextFieldmark : public SwUndo
+class SwUndoInsTextFieldmark final : public SwUndo
{
private:
const std::unique_ptr<SwHistoryTextFieldmark> m_pHistoryTextFieldmark;
@@ -139,7 +139,7 @@ public:
};
/// Handling undo / redo of text form field deletion
-class SwUndoDelTextFieldmark : public SwUndo
+class SwUndoDelTextFieldmark final : public SwUndo
{
private:
const std::unique_ptr<SwHistoryTextFieldmark> m_pHistoryTextFieldmark;
diff --git a/sw/source/core/inc/UndoCore.hxx b/sw/source/core/inc/UndoCore.hxx
index 8fb5e8dcf3f7..1fcfae22f6e2 100644
--- a/sw/source/core/inc/UndoCore.hxx
+++ b/sw/source/core/inc/UndoCore.hxx
@@ -40,7 +40,7 @@ namespace sw {
class IShellCursorSupplier;
}
-class SwRedlineSaveData: public SwUndRng, public SwRedlineData, private SwUndoSaveSection
+class SwRedlineSaveData final : public SwUndRng, public SwRedlineData, private SwUndoSaveSection
{
public:
SwRedlineSaveData(
@@ -80,7 +80,7 @@ public:
};
namespace sw {
-class UndoRedoContext
+class UndoRedoContext final
: public SfxUndoContext
{
public:
@@ -113,7 +113,7 @@ private:
SdrMarkList * m_pMarkList;
};
-class RepeatContext
+class RepeatContext final
: public SfxRepeatTarget
{
public:
@@ -141,7 +141,7 @@ private:
} // namespace sw
-class SwUndoFormatColl : public SwUndo, private SwUndRng
+class SwUndoFormatColl final : public SwUndo, private SwUndRng
{
OUString maFormatName;
std::unique_ptr<SwHistory> mpHistory;
@@ -184,7 +184,7 @@ public:
};
-class SwUndoSetFlyFormat : public SwUndo, public SwClient
+class SwUndoSetFlyFormat final : public SwUndo, public SwClient
{
SwFrameFormat* m_pFrameFormat; // saved FlyFormat
const OUString m_DerivedFromFormatName;
@@ -209,7 +209,7 @@ public:
virtual SwRewriter GetRewriter() const override;
};
-class SwUndoOutlineLeftRight : public SwUndo, private SwUndRng
+class SwUndoOutlineLeftRight final : public SwUndo, private SwUndRng
{
short m_nOffset;
diff --git a/sw/source/core/inc/UndoDelete.hxx b/sw/source/core/inc/UndoDelete.hxx
index 6ecc3385a2af..9656d59e3ca6 100644
--- a/sw/source/core/inc/UndoDelete.hxx
+++ b/sw/source/core/inc/UndoDelete.hxx
@@ -33,7 +33,7 @@ namespace sfx2 {
class MetadatableUndo;
}
-class SwUndoDelete
+class SwUndoDelete final
: public SwUndo
, private SwUndRng
, private SwUndoSaveContent
diff --git a/sw/source/core/inc/UndoDraw.hxx b/sw/source/core/inc/UndoDraw.hxx
index 07dfca71ca74..951902817b02 100644
--- a/sw/source/core/inc/UndoDraw.hxx
+++ b/sw/source/core/inc/UndoDraw.hxx
@@ -33,7 +33,7 @@ class SwDrawFrameFormat;
class SwDoc;
// Undo for Draw Objects
-class SwSdrUndo : public SwUndo
+class SwSdrUndo final : public SwUndo
{
std::unique_ptr<SdrUndoAction> m_pSdrUndo;
std::unique_ptr<SdrMarkList> m_pMarkList; // MarkList for all selected SdrObjects
@@ -49,7 +49,7 @@ public:
virtual OUString GetComment() const override;
};
-class SwUndoDrawGroup : public SwUndo
+class SwUndoDrawGroup final : public SwUndo
{
std::unique_ptr<SwUndoGroupObjImpl[]> m_pObjArray;
sal_uInt16 m_nSize;
@@ -78,7 +78,7 @@ public:
// - Existing class <SwUndoDrawUnGroup> takes over the part for the formats.
// - New class <SwUndoDrawUnGroupConnectToLayout> takes over the part for
// contact object.
-class SwUndoDrawUnGroup : public SwUndo
+class SwUndoDrawUnGroup final : public SwUndo
{
std::unique_ptr<SwUndoGroupObjImpl[]> m_pObjArray;
sal_uInt16 m_nSize;
@@ -95,7 +95,7 @@ public:
void AddObj(sal_uInt16 nPos, SwDrawFrameFormat*);
};
-class SwUndoDrawUnGroupConnectToLayout : public SwUndo
+class SwUndoDrawUnGroupConnectToLayout final : public SwUndo
{
private:
std::vector<std::pair<SwDrawFrameFormat*, SdrObject*>> m_aDrawFormatsAndObjs;
@@ -111,7 +111,7 @@ public:
void AddFormatAndObj(SwDrawFrameFormat* pDrawFrameFormat, SdrObject* pDrawObject);
};
-class SwUndoDrawDelete : public SwUndo
+class SwUndoDrawDelete final : public SwUndo
{
std::unique_ptr<SwUndoGroupObjImpl[]> m_pObjArray;
std::unique_ptr<SdrMarkList> m_pMarkList; // MarkList for all selected SdrObjects
diff --git a/sw/source/core/inc/UndoInsert.hxx b/sw/source/core/inc/UndoInsert.hxx
index 801997d65e39..7263bbcafab4 100644
--- a/sw/source/core/inc/UndoInsert.hxx
+++ b/sw/source/core/inc/UndoInsert.hxx
@@ -37,7 +37,7 @@ class SwDoc;
namespace sw { class DocumentContentOperationsManager; }
enum class MirrorGraph;
-class SwUndoInsert: public SwUndo, private SwUndoSaveContent
+class SwUndoInsert final : public SwUndo, private SwUndoSaveContent
{
/// start of Content in UndoNodes for Redo
std::unique_ptr<SwNodeIndex> m_pUndoNodeIndex;
@@ -92,7 +92,7 @@ SwRewriter
MakeUndoReplaceRewriter(sal_uLong const occurrences,
OUString const& sOld, OUString const& sNew);
-class SwUndoReplace
+class SwUndoReplace final
: public SwUndo
{
public:
@@ -132,7 +132,7 @@ private:
std::unique_ptr<Impl> m_pImpl;
};
-class SwUndoReRead : public SwUndo
+class SwUndoReRead final : public SwUndo
{
std::unique_ptr<Graphic> mpGraphic;
std::optional<OUString> maNm;
@@ -152,7 +152,7 @@ public:
virtual void RedoImpl( ::sw::UndoRedoContext & ) override;
};
-class SwUndoInsertLabel : public SwUndo
+class SwUndoInsertLabel final : public SwUndo
{
union {
struct {
diff --git a/sw/source/core/inc/UndoManager.hxx b/sw/source/core/inc/UndoManager.hxx
index 4113d54d8f52..4690fd171492 100644
--- a/sw/source/core/inc/UndoManager.hxx
+++ b/sw/source/core/inc/UndoManager.hxx
@@ -33,7 +33,7 @@ class SwView;
namespace sw {
-class SAL_DLLPUBLIC_RTTI UndoManager
+class SW_DLLPUBLIC UndoManager final
: public IDocumentUndoRedo
, public SdrUndoManager
{
@@ -95,10 +95,9 @@ public:
SwNodes & GetUndoNodes();
void SetDocShell(SwDocShell* pDocShell);
-protected:
+private:
virtual void EmptyActionsChanged() override;
-private:
IDocumentDrawModelAccess & m_rDrawModelAccess;
IDocumentRedlineAccess & m_rRedlineAccess;
IDocumentState & m_rState;
diff --git a/sw/source/core/inc/UndoNumbering.hxx b/sw/source/core/inc/UndoNumbering.hxx
index 5414b70257a2..77567f772639 100644
--- a/sw/source/core/inc/UndoNumbering.hxx
+++ b/sw/source/core/inc/UndoNumbering.hxx
@@ -26,7 +26,7 @@
#include <rtl/ustring.hxx>
#include <numrule.hxx>
-class SwUndoInsNum : public SwUndo, private SwUndRng
+class SwUndoInsNum final : public SwUndo, private SwUndRng
{
SwNumRule m_aNumRule;
std::unique_ptr<SwHistory> m_pHistory;
@@ -56,7 +56,7 @@ public:
};
-class SwUndoDelNum : public SwUndo, private SwUndRng
+class SwUndoDelNum final : public SwUndo, private SwUndRng
{
struct NodeLevel
{
@@ -80,7 +80,7 @@ public:
SwHistory* GetHistory() { return m_pHistory.get(); }
};
-class SwUndoMoveNum : public SwUndo, private SwUndRng
+class SwUndoMoveNum final : public SwUndo, private SwUndRng
{
sal_uLong m_nNewStart;
tools::Long m_nOffset;
@@ -95,7 +95,7 @@ public:
void SetStartNode( sal_uLong nValue ) { m_nNewStart = nValue; }
};
-class SwUndoNumUpDown : public SwUndo, private SwUndRng
+class SwUndoNumUpDown final : public SwUndo, private SwUndRng
{
short m_nOffset;
@@ -107,7 +107,7 @@ public:
virtual void RepeatImpl( ::sw::RepeatContext & ) override;
};
-class SwUndoNumOrNoNum : public SwUndo
+class SwUndoNumOrNoNum final : public SwUndo
{
sal_uLong m_nIndex;
bool mbNewNum, mbOldNum;
@@ -121,7 +121,7 @@ public:
virtual void RepeatImpl( ::sw::RepeatContext & ) override;
};
-class SwUndoNumRuleStart : public SwUndo
+class SwUndoNumRuleStart final : public SwUndo
{
sal_uLong m_nIndex;
sal_uInt16 m_nOldStart, m_nNewStart;
diff --git a/sw/source/core/inc/UndoRedline.hxx b/sw/source/core/inc/UndoRedline.hxx
index 7eaf23a62a22..e5a0029f0aea 100644
--- a/sw/source/core/inc/UndoRedline.hxx
+++ b/sw/source/core/inc/UndoRedline.hxx
@@ -51,7 +51,7 @@ public:
sal_uInt16 GetRedlSaveCount() const;
};
-class SwUndoRedlineDelete : public SwUndoRedline
+class SwUndoRedlineDelete final : public SwUndoRedline
{
bool m_bCanGroup : 1;
bool m_bIsDelim : 1;
@@ -75,7 +75,7 @@ public:
void SetRedlineText(const OUString & rText);
};
-class SwUndoRedlineSort : public SwUndoRedline
+class SwUndoRedlineSort final : public SwUndoRedline
{
std::unique_ptr<SwSortOptions> m_pOpt;
sal_uLong m_nSaveEndNode;
@@ -94,7 +94,7 @@ public:
void SetSaveRange( const SwPaM& rRange );
};
-class SwUndoAcceptRedline : public SwUndoRedline
+class SwUndoAcceptRedline final : public SwUndoRedline
{
private:
virtual void RedoRedlineImpl(SwDoc & rDoc, SwPaM & rPam) override;
@@ -105,7 +105,7 @@ public:
virtual void RepeatImpl( ::sw::RepeatContext & ) override;
};
-class SwUndoRejectRedline : public SwUndoRedline
+class SwUndoRejectRedline final : public SwUndoRedline
{
private:
virtual void RedoRedlineImpl(SwDoc & rDoc, SwPaM & rPam) override;
@@ -116,7 +116,7 @@ public:
virtual void RepeatImpl( ::sw::RepeatContext & ) override;
};
-class SwUndoCompDoc : public SwUndo, public SwUndRng
+class SwUndoCompDoc final : public SwUndo, public SwUndRng
{
std::unique_ptr<SwRedlineData> m_pRedlineData;
std::unique_ptr<SwUndoDelete> m_pUndoDelete, m_pUndoDelete2;
diff --git a/sw/source/core/inc/UndoSection.hxx b/sw/source/core/inc/UndoSection.hxx
index 25d51ccb9660..1e514b0e2b0f 100644
--- a/sw/source/core/inc/UndoSection.hxx
+++ b/sw/source/core/inc/UndoSection.hxx
@@ -37,7 +37,7 @@ namespace sw {
enum class FieldmarkMode;
};
-class SwUndoInsSection : public SwUndo, private SwUndRng
+class SwUndoInsSection final : public SwUndo, private SwUndRng
{
private:
const std::unique_ptr<SwSectionData> m_pSectionData;
@@ -77,7 +77,7 @@ std::unique_ptr<SwUndo> MakeUndoUpdateSection(SwSectionFormat const&, bool const
class SwTOXBaseSection;
class SwUndoDelSection;
-class SwUndoUpdateIndex : public SwUndo
+class SwUndoUpdateIndex final : public SwUndo
{
private:
std::unique_ptr<SwUndoDelSection> m_pTitleSectionUpdated;
diff --git a/sw/source/core/inc/UndoSort.hxx b/sw/source/core/inc/UndoSort.hxx
index 798a5ea1894f..70ec29ada13e 100644
--- a/sw/source/core/inc/UndoSort.hxx
+++ b/sw/source/core/inc/UndoSort.hxx
@@ -57,7 +57,7 @@ struct SwSortUndoElement
~SwSortUndoElement();
};
-class SwUndoSort : public SwUndo, private SwUndRng
+class SwUndoSort final : public SwUndo, private SwUndRng
{
std::unique_ptr<SwSortOptions> m_pSortOptions;
std::vector<std::unique_ptr<SwSortUndoElement>> m_SortList;
diff --git a/sw/source/core/inc/UndoSplitMove.hxx b/sw/source/core/inc/UndoSplitMove.hxx
index 1a8546238c12..361f1281d596 100644
--- a/sw/source/core/inc/UndoSplitMove.hxx
+++ b/sw/source/core/inc/UndoSplitMove.hxx
@@ -22,7 +22,7 @@
#include <undobj.hxx>
-class SwUndoSplitNode: public SwUndo
+class SwUndoSplitNode final : public SwUndo
{
std::unique_ptr<SwHistory> m_pHistory;
std::unique_ptr<SwRedlineData> m_pRedlineData;
@@ -44,7 +44,7 @@ public:
void SetTableFlag() { m_bTableFlag = true; }
};
-class SwUndoMove : public SwUndo, private SwUndRng, private SwUndoSaveContent
+class SwUndoMove final : public SwUndo, private SwUndRng, private SwUndoSaveContent
{
// nDest... - destination range of move (after move!)
// nIns... - source Position of move (after move!)
diff --git a/sw/source/core/inc/UndoTable.hxx b/sw/source/core/inc/UndoTable.hxx
index c15f0f10ca1c..a3fab2eed2d4 100644
--- a/sw/source/core/inc/UndoTable.hxx
+++ b/sw/source/core/inc/UndoTable.hxx
@@ -44,7 +44,7 @@ class SwTableNode;
class SwTableAutoFormat;
class SwTableSortBoxes;
-class SwUndoInsTable : public SwUndo
+class SwUndoInsTable final : public SwUndo
{
OUString m_sTableName;
SwInsertTableOptions m_aInsTableOptions;
@@ -71,7 +71,7 @@ public:
virtual SwRewriter GetRewriter() const override;
};
-class SwUndoTextToTable : public SwUndo, public SwUndRng
+class SwUndoTextToTable final : public SwUndo, public SwUndRng
{
OUString m_sTableName;
SwInsertTableOptions m_aInsertTableOpts;
@@ -97,7 +97,7 @@ public:
void AddFillBox( const SwTableBox& rBox );
};
-class SwUndoTableToText : public SwUndo
+class SwUndoTableToText final : public SwUndo
{
OUString m_sTableName;
std::unique_ptr<SwDDEFieldType> m_pDDEFieldType;
@@ -123,7 +123,7 @@ public:
sal_Int32 nContentIdx = SAL_MAX_INT32);
};
-class SwUndoAttrTable : public SwUndo
+class SwUndoAttrTable final : public SwUndo
{
sal_uLong m_nStartNode;
std::unique_ptr<SaveTable> m_pSaveTable;
@@ -140,7 +140,7 @@ public:
class SwUndoTableNumFormat;
-class SwUndoTableAutoFormat : public SwUndo
+class SwUndoTableAutoFormat final : public SwUndo
{
OUString m_TableStyleName;
sal_uLong m_nStartNode;
@@ -164,7 +164,7 @@ public:
using SwUndoSaveSections = std::vector<std::unique_ptr<SwUndoSaveSection, o3tl::default_delete<SwUndoSaveSection>>>;
-class SwUndoTableNdsChg : public SwUndo
+class SwUndoTableNdsChg final : public SwUndo
{
std::unique_ptr<SaveTable> m_pSaveTable;
std::set<sal_uLong> m_Boxes;
@@ -208,7 +208,7 @@ public:
class SwUndoMove;
-class SwUndoTableMerge : public SwUndo, private SwUndRng
+class SwUndoTableMerge final : public SwUndo, private SwUndRng
{
sal_uLong m_nTableNode;
std::unique_ptr<SaveTable> m_pSaveTable;
@@ -235,7 +235,7 @@ public:
void SaveCollection( const SwTableBox& rBox );
};
-class SwUndoTableNumFormat : public SwUndo
+class SwUndoTableNumFormat final : public SwUndo
{
std::unique_ptr<SfxItemSet> m_pBoxSet;
std::unique_ptr<SwHistory> m_pHistory;
@@ -265,7 +265,7 @@ public:
struct UndoTableCpyTable_Entry;
-class SwUndoTableCpyTable : public SwUndo
+class SwUndoTableCpyTable final : public SwUndo
{
std::vector<std::unique_ptr<UndoTableCpyTable_Entry>> m_vArr;
std::unique_ptr<SwUndoTableNdsChg> m_pInsRowUndo;
@@ -292,7 +292,7 @@ public:
void dumpAsXml(xmlTextWriterPtr pWriter) const override;
};
-class SwUndoCpyTable : public SwUndo
+class SwUndoCpyTable final : public SwUndo
{
std::unique_ptr<SwUndoDelete> m_pDelete;
sal_uLong m_nTableNode;
@@ -308,7 +308,7 @@ public:
void SetTableSttIdx( sal_uLong nIdx ) { m_nTableNode = nIdx; }
};
-class SwUndoSplitTable : public SwUndo
+class SwUndoSplitTable final : public SwUndo
{
sal_uLong m_nTableNode, m_nOffset;
std::unique_ptr<SwSaveRowSpan> mpSaveRowSpan; // stores row span values at the splitting row
@@ -333,7 +333,7 @@ public:
void SaveFormula( SwHistory& rHistory );
};
-class SwUndoMergeTable : public SwUndo
+class SwUndoMergeTable final : public SwUndo
{
OUString m_aName;
sal_uLong m_nTableNode;
@@ -355,7 +355,7 @@ public:
void SaveFormula( SwHistory& rHistory );
};
-class SwUndoTableHeadline : public SwUndo
+class SwUndoTableHeadline final : public SwUndo
{
sal_uLong m_nTableNode;
sal_uInt16 m_nOldHeadline;
@@ -371,7 +371,7 @@ public:
void InsertSort( std::vector<sal_uInt16>& rArr, sal_uInt16 nIdx );
-class SwUndoTableStyleMake : public SwUndo
+class SwUndoTableStyleMake final : public SwUndo
{
OUString m_sName;
std::unique_ptr<SwTableAutoFormat> m_pAutoFormat;
@@ -386,7 +386,7 @@ public:
virtual SwRewriter GetRewriter() const override;
};
-class SwUndoTableStyleDelete : public SwUndo
+class SwUndoTableStyleDelete final : public SwUndo
{
std::unique_ptr<SwTableAutoFormat> m_pAutoFormat;
std::vector<SwTable*> m_rAffectedTables;
@@ -401,7 +401,7 @@ public:
virtual SwRewriter GetRewriter() const override;
};
-class SwUndoTableStyleUpdate : public SwUndo
+class SwUndoTableStyleUpdate final : public SwUndo
{
std::unique_ptr<SwTableAutoFormat> m_pOldFormat, m_pNewFormat;
public:
diff --git a/sw/source/core/inc/bodyfrm.hxx b/sw/source/core/inc/bodyfrm.hxx
index f6b046e9dd32..436b8fbb465a 100644
--- a/sw/source/core/inc/bodyfrm.hxx
+++ b/sw/source/core/inc/bodyfrm.hxx
@@ -25,9 +25,8 @@ class SwBorderAttrs;
/// Container of body content (i.e. not header or footer). Typical parent is an
/// SwPageFrame, typical lower is an SwTextFrame.
-class SAL_DLLPUBLIC_RTTI SwBodyFrame: public SwLayoutFrame
+class SAL_DLLPUBLIC_RTTI SwBodyFrame final : public SwLayoutFrame
{
-protected:
virtual void Format( vcl::RenderContext* pRenderContext, const SwBorderAttrs *pAttrs = nullptr ) override;
public:
diff --git a/sw/source/core/inc/bookmrk.hxx b/sw/source/core/inc/bookmrk.hxx
index a954890f2caa..6a99309d3294 100644
--- a/sw/source/core/inc/bookmrk.hxx
+++ b/sw/source/core/inc/bookmrk.hxx
@@ -119,14 +119,14 @@ namespace sw::mark {
css::uno::WeakReference< css::text::XTextContent> m_wXBookmark;
};
- class NavigatorReminder
+ class NavigatorReminder final
: public MarkBase
{
public:
NavigatorReminder(const SwPaM& rPaM);
};
- class UnoMark
+ class UnoMark final
: public MarkBase
{
public:
@@ -235,7 +235,7 @@ namespace sw::mark {
IFieldmark::parameter_map_t m_vParams;
};
- class TextFieldmark
+ class TextFieldmark final
: public Fieldmark
{
public:
@@ -255,7 +255,7 @@ namespace sw::mark {
};
/// Fieldmark representing a checkbox form field.
- class CheckboxFieldmark
+ class CheckboxFieldmark final
: virtual public ICheckboxFieldmark
, public NonTextFieldmark
{
@@ -281,7 +281,7 @@ namespace sw::mark {
};
/// Fieldmark representing a drop-down form field.
- class DropDownFieldmark
+ class DropDownFieldmark final
: public FieldmarkWithDropDownButton
{
public:
@@ -302,7 +302,7 @@ namespace sw::mark {
};
/// Fieldmark representing a date form field.
- class DateFieldmark
+ class DateFieldmark final
: virtual public IDateFieldmark
, public FieldmarkWithDropDownButton
{
diff --git a/sw/source/core/inc/cellfrm.hxx b/sw/source/core/inc/cellfrm.hxx
index e8f894af3058..7a3f393880df 100644
--- a/sw/source/core/inc/cellfrm.hxx
+++ b/sw/source/core/inc/cellfrm.hxx
@@ -27,14 +27,13 @@ struct SwCursorMoveState;
class SwBorderAttrs;
/// SwCellFrame is one table cell in the document layout.
-class SwCellFrame: public SwLayoutFrame
+class SwCellFrame final : public SwLayoutFrame
{
const SwTableBox* m_pTabBox;
virtual void DestroyImpl() override;
virtual ~SwCellFrame() override;
-protected:
virtual void Format( vcl::RenderContext* pRenderContext, const SwBorderAttrs *pAttrs = nullptr ) override;
virtual void SwClientNotify(const SwModify&, const SfxHint&) override;
diff --git a/sw/source/core/inc/dview.hxx b/sw/source/core/inc/dview.hxx
index 2251efa48a76..6b6910d0e77a 100644
--- a/sw/source/core/inc/dview.hxx
+++ b/sw/source/core/inc/dview.hxx
@@ -29,7 +29,7 @@ class SwFlyFrame;
class SwAnchoredObject;
class SdrUndoManager;
-class SwDrawView : public FmFormView
+class SwDrawView final : public FmFormView
{
Point m_aAnchorPoint; // anchor position
SwViewShellImp &m_rImp; // a view is always part of a shell
@@ -68,7 +68,6 @@ class SwDrawView : public FmFormView
void MoveRepeatedObjs( const SwAnchoredObject& _rMovedAnchoredObj,
const std::vector<SdrObject*>& _rMovedChildObjs ) const;
-protected:
// add custom handles (used by other apps, e.g. AnchorPos)
virtual void AddCustomHdl() override;
diff --git a/sw/source/core/inc/fntcache.hxx b/sw/source/core/inc/fntcache.hxx
index 710b10088d7f..44a1483ed499 100644
--- a/sw/source/core/inc/fntcache.hxx
+++ b/sw/source/core/inc/fntcache.hxx
@@ -64,7 +64,7 @@ struct SwTextGlyphsKey;
bool operator<(const SwTextGlyphsKey& l, const SwTextGlyphsKey& r);
struct SwTextGlyphsData;
-class SwFntObj : public SwCacheObj
+class SwFntObj final : public SwCacheObj
{
friend class SwFntAccess;
friend void InitCore();
@@ -139,10 +139,10 @@ SwFntObj *SwFntCache::Next( SwFntObj *pFntObj)
return static_cast<SwFntObj *>(SwCache::Next( pFntObj ));
}
-class SwFntAccess : public SwCacheAccess
+class SwFntAccess final : public SwCacheAccess
{
SwViewShell const *m_pShell;
-protected:
+
virtual SwCacheObj *NewObj( ) override;
public:
diff --git a/sw/source/core/inc/frmtool.hxx b/sw/source/core/inc/frmtool.hxx
index 6481e6c0be6f..1974338f7936 100644
--- a/sw/source/core/inc/frmtool.hxx
+++ b/sw/source/core/inc/frmtool.hxx
@@ -294,7 +294,7 @@ public:
// WARNING! If more attributes should be cached also adjust the method
// Modify::Modify!
-class SwBorderAttrs : public SwCacheObj
+class SwBorderAttrs final : public SwCacheObj
{
const SwAttrSet &m_rAttrSet;
const SvxULSpaceItem &m_rUL;
diff --git a/sw/source/core/inc/ftnfrm.hxx b/sw/source/core/inc/ftnfrm.hxx
index e0538e3692bb..1d56901bd94b 100644
--- a/sw/source/core/inc/ftnfrm.hxx
+++ b/sw/source/core/inc/ftnfrm.hxx
@@ -76,7 +76,7 @@ inline SwFootnoteFrame* SwFootnoteContFrame::PrependChained(SwFrame* pThis, bool
return AddChained(false, pThis, bDefaultFormat);
}
-class SwFootnoteFrame: public SwLayoutFrame
+class SwFootnoteFrame final : public SwLayoutFrame
{
// Pointer to FootnoteFrame in which the footnote will be continued:
// - 0 no following existent
diff --git a/sw/source/core/inc/rootfrm.hxx b/sw/source/core/inc/rootfrm.hxx
index fbc95b8a8691..41bea3fa7211 100644
--- a/sw/source/core/inc/rootfrm.hxx
+++ b/sw/source/core/inc/rootfrm.hxx
@@ -79,7 +79,7 @@ using SwDestroyList = o3tl::sorted_vector<SwSectionFrame*>;
/// The root element of a Writer document layout. Lower frames are expected to
/// be SwPageFrame instances.
-class SAL_DLLPUBLIC_RTTI SwRootFrame: public SwLayoutFrame
+class SW_DLLPUBLIC SwRootFrame final : public SwLayoutFrame
{
// Needs to disable the Superfluous temporarily
friend void AdjustSizeChgNotify( SwRootFrame *pRoot );
@@ -181,8 +181,6 @@ class SAL_DLLPUBLIC_RTTI SwRootFrame: public SwLayoutFrame
virtual void DestroyImpl() override;
virtual ~SwRootFrame() override;
-protected:
-
virtual void MakeAll(vcl::RenderContext* pRenderContext) override;
public:
diff --git a/sw/source/core/inc/rowfrm.hxx b/sw/source/core/inc/rowfrm.hxx
index a37b72255be6..99c12107c64b 100644
--- a/sw/source/core/inc/rowfrm.hxx
+++ b/sw/source/core/inc/rowfrm.hxx
@@ -25,7 +25,7 @@ class SwTableLine;
class SwBorderAttrs;
/// SwRowFrame is one table row in the document layout.
-class SwRowFrame : public SwLayoutFrame
+class SwRowFrame final : public SwLayoutFrame
{
virtual void Format(vcl::RenderContext* pRenderContext,
const SwBorderAttrs* pAttrs = nullptr) override;
@@ -50,7 +50,6 @@ class SwRowFrame : public SwLayoutFrame
virtual void DestroyImpl() override;
virtual ~SwRowFrame() override;
-protected:
virtual void MakeAll(vcl::RenderContext* pRenderContext) override;
virtual void SwClientNotify(const SwModify&, const SfxHint&) override;
diff --git a/sw/source/core/inc/swfntcch.hxx b/sw/source/core/inc/swfntcch.hxx
index 59baaefd94c8..8c9e59b6897f 100644
--- a/sw/source/core/inc/swfntcch.hxx
+++ b/sw/source/core/inc/swfntcch.hxx
@@ -60,10 +60,10 @@ public:
const SfxPoolItem** GetDefault() { return m_pDefaultArray; }
};
-class SwFontAccess : public SwCacheAccess
+class SwFontAccess final : public SwCacheAccess
{
SwViewShell *m_pShell;
-protected:
+
virtual SwCacheObj *NewObj( ) override;
public:
diff --git a/sw/source/core/inc/textapi.hxx b/sw/source/core/inc/textapi.hxx
index 1e5e78e4a079..261388446333 100644
--- a/sw/source/core/inc/textapi.hxx
+++ b/sw/source/core/inc/textapi.hxx
@@ -27,7 +27,7 @@
class SwDoc;
struct SwTextAPIEditSource_Impl;
-class SwTextAPIEditSource : public SvxEditSource
+class SwTextAPIEditSource final : public SvxEditSource
{
SwTextAPIEditSource_Impl* m_pImpl;
diff --git a/sw/source/core/inc/txtfrm.hxx b/sw/source/core/inc/txtfrm.hxx
index 0a2f4fbbd2bc..4a3ce62e2c43 100644
--- a/sw/source/core/inc/txtfrm.hxx
+++ b/sw/source/core/inc/txtfrm.hxx
@@ -155,7 +155,7 @@ bool HasNumberingWhichNeedsLayoutUpdate(const SwTextNode& rTextNode);
/// Represents the visualization of a paragraph. Typical upper is an
/// SwBodyFrame. The first text portion of the first line is az SwParaPortion.
-class SW_DLLPUBLIC SwTextFrame: public SwContentFrame
+class SW_DLLPUBLIC SwTextFrame final : public SwContentFrame
{
friend class SwTextIter;
friend class SwTestFormat;
@@ -323,7 +323,6 @@ class SW_DLLPUBLIC SwTextFrame: public SwContentFrame
void UpdateOutlineContentVisibilityButton(SwWrtShell* pWrtSh) const;
void PaintOutlineContentVisibilityButton() const;
-protected:
virtual void SwClientNotify(SwModify const& rModify, SfxHint const& rHint) override;
public:
diff --git a/sw/source/core/inc/undoflystrattr.hxx b/sw/source/core/inc/undoflystrattr.hxx
index 4110b91e6acf..5032c26c14b6 100644
--- a/sw/source/core/inc/undoflystrattr.hxx
+++ b/sw/source/core/inc/undoflystrattr.hxx
@@ -24,7 +24,7 @@
class SwFlyFrameFormat;
-class SwUndoFlyStrAttr : public SwUndo
+class SwUndoFlyStrAttr final : public SwUndo
{
public:
SwUndoFlyStrAttr( SwFlyFrameFormat& rFlyFrameFormat,
diff --git a/sw/source/core/inc/visiturl.hxx b/sw/source/core/inc/visiturl.hxx
index d2d3b25ac52d..f273f33bb7f4 100644
--- a/sw/source/core/inc/visiturl.hxx
+++ b/sw/source/core/inc/visiturl.hxx
@@ -24,7 +24,7 @@
class SwDoc;
-class SwURLStateChanged : public SfxListener
+class SwURLStateChanged final : public SfxListener
{
SwDoc& m_rDoc;
diff --git a/sw/source/filter/inc/fltini.hxx b/sw/source/filter/inc/fltini.hxx
index f66ea56ebac6..500247cdb29a 100644
--- a/sw/source/filter/inc/fltini.hxx
+++ b/sw/source/filter/inc/fltini.hxx
@@ -29,7 +29,7 @@ class SwNodeIndex;
// the special readers
-class HTMLReader : public Reader
+class HTMLReader final : public Reader
{
// we don't want to have the streams/storages open
virtual bool SetStrmStgPtr() override;
@@ -45,7 +45,7 @@ public:
virtual ErrCode Read(SwDoc&, const OUString& rBaseURL, SwPaM&, const OUString&) override;
};
-class XMLReader : public Reader
+class XMLReader final : public Reader
{
virtual ErrCode Read(SwDoc&, const OUString& rBaseURL, SwPaM&, const OUString&) override;
diff --git a/sw/source/filter/inc/fltshell.hxx b/sw/source/filter/inc/fltshell.hxx
index 9f7ccd3ac2fd..8156dfd8b210 100644
--- a/sw/source/filter/inc/fltshell.hxx
+++ b/sw/source/filter/inc/fltshell.hxx
@@ -163,7 +163,7 @@ public:
class SwFltAnchorListener;
-class SW_DLLPUBLIC SwFltAnchor: public SfxPoolItem
+class SW_DLLPUBLIC SwFltAnchor final : public SfxPoolItem
{
SwFrameFormat* m_pFrameFormat;
std::unique_ptr<SwFltAnchorListener> m_pListener;
@@ -181,7 +181,7 @@ public:
SwFrameFormat* GetFrameFormat() { return m_pFrameFormat; }
};
-class SwFltAnchorListener : public SvtListener
+class SwFltAnchorListener final : public SvtListener
{
SwFltAnchor* m_pFltAnchor;
public:
@@ -189,7 +189,7 @@ class SwFltAnchorListener : public SvtListener
virtual void Notify(const SfxHint&) override;
};
-class SW_DLLPUBLIC SwFltRedline : public SfxPoolItem
+class SW_DLLPUBLIC SwFltRedline final : public SfxPoolItem
{
public:
DateTime m_aStamp;
@@ -210,7 +210,7 @@ public:
virtual SwFltRedline* Clone(SfxItemPool* = nullptr) const override;
};
-class SW_DLLPUBLIC SwFltBookmark : public SfxPoolItem
+class SW_DLLPUBLIC SwFltBookmark final : public SfxPoolItem
{
private:
@@ -239,7 +239,7 @@ public:
};
/// Stores RDF statements on a paragraph (key-value pairs where the subject is the paragraph).
-class SW_DLLPUBLIC SwFltRDFMark : public SfxPoolItem
+class SW_DLLPUBLIC SwFltRDFMark final : public SfxPoolItem
{
tools::Long m_nHandle;
std::vector< std::pair<OUString, OUString> > m_aAttributes;
@@ -256,7 +256,7 @@ public:
const std::vector< std::pair<OUString, OUString> >& GetAttributes() const;
};
-class SW_DLLPUBLIC SwFltTOX : public SfxPoolItem
+class SW_DLLPUBLIC SwFltTOX final : public SfxPoolItem
{
std::shared_ptr<SwTOXBase> m_xTOXBase;
bool m_bHadBreakItem; // there was a break item BEFORE insertion of the TOX
diff --git a/sw/source/filter/inc/msfilter.hxx b/sw/source/filter/inc/msfilter.hxx
index 5bf126833afe..ce6f82a7dd82 100644
--- a/sw/source/filter/inc/msfilter.hxx
+++ b/sw/source/filter/inc/msfilter.hxx
@@ -248,7 +248,7 @@ namespace sw
explicit FontMapExport(const OUString &rFontDescription);
};
- class InsertedTableListener: public SvtListener
+ class InsertedTableListener final : public SvtListener
{
SwTableNode* m_pTableNode;
public:
diff --git a/sw/source/ui/inc/mmresultdialogs.hxx b/sw/source/ui/inc/mmresultdialogs.hxx
index 72d86389ac8e..a2cd01f85a7a 100644
--- a/sw/source/ui/inc/mmresultdialogs.hxx
+++ b/sw/source/ui/inc/mmresultdialogs.hxx
@@ -31,7 +31,7 @@ namespace com::sun::star::mail { class XMailMessage; }
/// Dialog implementing the saving as of the result document.
-class SwMMResultSaveDialog : public SfxDialogController
+class SwMMResultSaveDialog final : public SfxDialogController
{
bool m_bCancelSaving;
@@ -52,7 +52,7 @@ public:
};
/// Dialog implementing the printing of the result document.
-class SwMMResultPrintDialog : public SfxDialogController
+class SwMMResultPrintDialog final : public SfxDialogController
{
VclPtr<Printer> m_pTempPrinter;
@@ -79,7 +79,7 @@ public:
};
/// Dialog implementing the sending as email of the result document.
-class SwMMResultEmailDialog : public SfxDialogController
+class SwMMResultEmailDialog final : public SfxDialogController
{
OUString m_sConfigureMail;
OUString m_sCC;
@@ -135,7 +135,7 @@ struct SwMailDescriptor
};
struct SwSendMailDialog_Impl;
class SwMailMergeConfigItem;
-class SwSendMailDialog : public weld::GenericDialogController
+class SwSendMailDialog final : public weld::GenericDialogController
{
OUString m_sContinue;
OUString m_sStop;
diff --git a/sw/source/uibase/inc/DateFormFieldDialog.hxx b/sw/source/uibase/inc/DateFormFieldDialog.hxx
index f56626aac2a9..2b4573af7dea 100644
--- a/sw/source/uibase/inc/DateFormFieldDialog.hxx
+++ b/sw/source/uibase/inc/DateFormFieldDialog.hxx
@@ -23,7 +23,7 @@ class IDateFieldmark;
/// Dialog to specify the properties of date form field
namespace sw
{
-class DateFormFieldDialog : public weld::GenericDialogController
+class DateFormFieldDialog final : public weld::GenericDialogController
{
private:
sw::mark::IDateFieldmark* m_pDateField;
diff --git a/sw/source/uibase/inc/DropDownFieldDialog.hxx b/sw/source/uibase/inc/DropDownFieldDialog.hxx
index 59510d37b751..b8b60f20c293 100644
--- a/sw/source/uibase/inc/DropDownFieldDialog.hxx
+++ b/sw/source/uibase/inc/DropDownFieldDialog.hxx
@@ -28,7 +28,7 @@ class SwWrtShell;
// Dialog to edit drop down field selection
namespace sw
{
-class DropDownFieldDialog : public weld::GenericDialogController
+class DropDownFieldDialog final : public weld::GenericDialogController
{
SwWrtShell &m_rSh;
SwDropDownField* m_pDropField;
diff --git a/sw/source/uibase/inc/DropDownFormFieldDialog.hxx b/sw/source/uibase/inc/DropDownFormFieldDialog.hxx
index 0719b740163a..c6bcc9837304 100644
--- a/sw/source/uibase/inc/DropDownFormFieldDialog.hxx
+++ b/sw/source/uibase/inc/DropDownFormFieldDialog.hxx
@@ -20,7 +20,7 @@ class IFieldmark;
/// Dialog to specify the properties of drop-down form field
namespace sw
{
-class DropDownFormFieldDialog : public weld::GenericDialogController
+class DropDownFormFieldDialog final : public weld::GenericDialogController
{
private:
mark::IFieldmark* m_pDropDownField;
diff --git a/sw/source/uibase/inc/HeaderFooterWin.hxx b/sw/source/uibase/inc/HeaderFooterWin.hxx
index 5b83bbc79548..95dcbd243d55 100644
--- a/sw/source/uibase/inc/HeaderFooterWin.hxx
+++ b/sw/source/uibase/inc/HeaderFooterWin.hxx
@@ -32,7 +32,7 @@ public:
This control is showing the header / footer style name and provides
a few useful actions to the user.
*/
-class SwHeaderFooterWin : public SwFrameMenuButtonBase
+class SwHeaderFooterWin final : public SwFrameMenuButtonBase
{
std::unique_ptr<weld::MenuButton> m_xMenuButton;
std::unique_ptr<weld::Button> m_xPushButton;
diff --git a/sw/source/uibase/inc/OutlineContentVisibilityWin.hxx b/sw/source/uibase/inc/OutlineContentVisibilityWin.hxx
index 36f096ae3df4..a03c3c1f1e2c 100644
--- a/sw/source/uibase/inc/OutlineContentVisibilityWin.hxx
+++ b/sw/source/uibase/inc/OutlineContentVisibilityWin.hxx
@@ -19,7 +19,7 @@ enum class ButtonSymbol
NONE
};
-class SwOutlineContentVisibilityWin : public InterimItemWindow, public ISwFrameControl
+class SwOutlineContentVisibilityWin final : public InterimItemWindow, public ISwFrameControl
{
private:
std::unique_ptr<weld::Button> m_xShowBtn;
diff --git a/sw/source/uibase/inc/PageBreakWin.hxx b/sw/source/uibase/inc/PageBreakWin.hxx
index 761a983eeb8b..53d2eec4c1a9 100644
--- a/sw/source/uibase/inc/PageBreakWin.hxx
+++ b/sw/source/uibase/inc/PageBreakWin.hxx
@@ -22,7 +22,7 @@ class SwPageFrame;
This control shows a line indicating a manual page break and a
button providing a few actions on that page break.
*/
-class SwPageBreakWin : public SwFrameMenuButtonBase
+class SwPageBreakWin final : public SwFrameMenuButtonBase
{
std::unique_ptr<weld::MenuButton> m_xMenuButton;
VclPtr<vcl::Window> m_pLine;
diff --git a/sw/source/uibase/inc/SwSpellDialogChildWindow.hxx b/sw/source/uibase/inc/SwSpellDialogChildWindow.hxx
index 82cd29204457..8599256da21c 100644
--- a/sw/source/uibase/inc/SwSpellDialogChildWindow.hxx
+++ b/sw/source/uibase/inc/SwSpellDialogChildWindow.hxx
@@ -25,7 +25,7 @@
class SwWrtShell;
struct SpellState;
-class SwSpellDialogChildWindow
+class SwSpellDialogChildWindow final
: public svx::SpellDialogChildWindow
{
bool m_bIsGrammarCheckingOn;
@@ -37,7 +37,6 @@ class SwSpellDialogChildWindow
bool SpellDrawText_Impl(SwWrtShell& rSh, svx::SpellPortions& rPortions);
void LockFocusNotification(bool bLock);
-protected:
virtual svx::SpellPortions GetNextWrongSentence(bool bRecheck) override;
virtual void ApplyChangedSentence(const svx::SpellPortions& rChanged, bool bRecheck) override;
virtual void AddAutoCorrection(const OUString& rOld, const OUString& rNew, LanguageType eLanguage) override;
diff --git a/sw/source/uibase/inc/SwXFilterOptions.hxx b/sw/source/uibase/inc/SwXFilterOptions.hxx
index e9e036b5f193..ce1f991465ba 100644
--- a/sw/source/uibase/inc/SwXFilterOptions.hxx
+++ b/sw/source/uibase/inc/SwXFilterOptions.hxx
@@ -30,7 +30,7 @@
namespace com::sun::star::io { class XInputStream; }
-class SwXFilterOptions : public ::cppu::WeakImplHelper<
+class SwXFilterOptions final : public ::cppu::WeakImplHelper<
css::beans::XPropertyAccess,
css::ui::dialogs::XExecutableDialog,
css::document::XImporter,
diff --git a/sw/source/uibase/inc/UnfloatTableButton.hxx b/sw/source/uibase/inc/UnfloatTableButton.hxx
index 99598bcc2a15..164b240f28b1 100644
--- a/sw/source/uibase/inc/UnfloatTableButton.hxx
+++ b/sw/source/uibase/inc/UnfloatTableButton.hxx
@@ -22,7 +22,7 @@
* floating properties.
*
*/
-class UnfloatTableButton : public SwFrameMenuButtonBase
+class UnfloatTableButton final : public SwFrameMenuButtonBase
{
std::unique_ptr<weld::Button> m_xPushButton;
OUString m_sLabel;
diff --git a/sw/source/uibase/inc/abstract.hxx b/sw/source/uibase/inc/abstract.hxx
index 3a9e16f9888e..ded62f0ff598 100644
--- a/sw/source/uibase/inc/abstract.hxx
+++ b/sw/source/uibase/inc/abstract.hxx
@@ -20,7 +20,7 @@
#include <sfx2/basedlgs.hxx>
-class SwInsertAbstractDlg : public SfxDialogController
+class SwInsertAbstractDlg final : public SfxDialogController
{
std::unique_ptr<weld::SpinButton> m_xLevelNF;
std::unique_ptr<weld::SpinButton> m_xParaNF;
diff --git a/sw/source/uibase/inc/addrdlg.hxx b/sw/source/uibase/inc/addrdlg.hxx
index feb839afdd51..66706915aa6c 100644
--- a/sw/source/uibase/inc/addrdlg.hxx
+++ b/sw/source/uibase/inc/addrdlg.hxx
@@ -21,7 +21,7 @@
#include <sfx2/basedlgs.hxx>
-class SwAddrDlg : public SfxSingleTabDialogController
+class SwAddrDlg final : public SfxSingleTabDialogController
{
public:
SwAddrDlg(weld::Window* pParent, const SfxItemSet& rSet);
diff --git a/sw/source/uibase/inc/ascfldlg.hxx b/sw/source/uibase/inc/ascfldlg.hxx
index fc652fab3da3..f62e6574f2c8 100644
--- a/sw/source/uibase/inc/ascfldlg.hxx
+++ b/sw/source/uibase/inc/ascfldlg.hxx
@@ -28,7 +28,7 @@ class SwAsciiOptions;
class SvStream;
class SwDocShell;
-class SwAsciiFilterDlg : public SfxDialogController
+class SwAsciiFilterDlg final : public SfxDialogController
{
bool m_bSaveLineStatus;
OUString m_sExtraData;
diff --git a/sw/source/uibase/inc/autoformatpreview.hxx b/sw/source/uibase/inc/autoformatpreview.hxx
index 8617e35e02f8..f9825bc91951 100644
--- a/sw/source/uibase/inc/autoformatpreview.hxx
+++ b/sw/source/uibase/inc/autoformatpreview.hxx
@@ -31,7 +31,7 @@
#include "wrtsh.hxx"
#include <tblafmt.hxx>
-class AutoFormatPreview : public weld::CustomWidgetController
+class AutoFormatPreview final : public weld::CustomWidgetController
{
public:
AutoFormatPreview();
diff --git a/sw/source/uibase/inc/barcfg.hxx b/sw/source/uibase/inc/barcfg.hxx
index a980cbc064e9..f194c431ccd0 100644
--- a/sw/source/uibase/inc/barcfg.hxx
+++ b/sw/source/uibase/inc/barcfg.hxx
@@ -24,7 +24,7 @@
enum class SelectionType : sal_Int32;
-class SwToolbarConfigItem : public utl::ConfigItem
+class SwToolbarConfigItem final : public utl::ConfigItem
{
sal_Int32 aTbxIdArray[5];
diff --git a/sw/source/uibase/inc/bmpwin.hxx b/sw/source/uibase/inc/bmpwin.hxx
index 46d9544b7cbd..20d31100b83b 100644
--- a/sw/source/uibase/inc/bmpwin.hxx
+++ b/sw/source/uibase/inc/bmpwin.hxx
@@ -25,7 +25,7 @@
#include <vcl/graph.hxx>
// extended page for graphics
-class BmpWindow : public weld::CustomWidgetController
+class BmpWindow final : public weld::CustomWidgetController
{
private:
Graphic aGraphic;
diff --git a/sw/source/uibase/inc/bookctrl.hxx b/sw/source/uibase/inc/bookctrl.hxx
index f87395e516a3..d35252ceac4c 100644
--- a/sw/source/uibase/inc/bookctrl.hxx
+++ b/sw/source/uibase/inc/bookctrl.hxx
@@ -22,7 +22,7 @@
#include <rtl/ustring.hxx>
#include <sfx2/stbitem.hxx>
-class SwBookmarkControl : public SfxStatusBarControl
+class SwBookmarkControl final : public SfxStatusBarControl
{
virtual void Command(const CommandEvent& rCEvt) override;
diff --git a/sw/source/uibase/inc/bookmark.hxx b/sw/source/uibase/inc/bookmark.hxx
index 2c3b81ffe69e..6441a5f16f63 100644
--- a/sw/source/uibase/inc/bookmark.hxx
+++ b/sw/source/uibase/inc/bookmark.hxx
@@ -60,7 +60,7 @@ public:
static const char cSeparator;
};
-class SwInsertBookmarkDlg : public SfxDialogController
+class SwInsertBookmarkDlg final : public SfxDialogController
{
SwWrtShell& rSh;
std::vector<std::pair<sw::mark::IMark*, OUString>> aTableBookmarks;
diff --git a/sw/source/uibase/inc/break.hxx b/sw/source/uibase/inc/break.hxx
index 8b021d0d6d1a..928761305027 100644
--- a/sw/source/uibase/inc/break.hxx
+++ b/sw/source/uibase/inc/break.hxx
@@ -25,7 +25,7 @@
class SwWrtShell;
-class SwBreakDlg : public weld::GenericDialogController
+class SwBreakDlg final : public weld::GenericDialogController
{
std::unique_ptr<weld::RadioButton> m_xLineBtn;
std::unique_ptr<weld::RadioButton> m_xColumnBtn;
diff --git a/sw/source/uibase/inc/cfgitems.hxx b/sw/source/uibase/inc/cfgitems.hxx
index 0aa6c2c8d135..34ffa2d24e12 100644
--- a/sw/source/uibase/inc/cfgitems.hxx
+++ b/sw/source/uibase/inc/cfgitems.hxx
@@ -38,7 +38,7 @@ class SwShdwCursorOptionsTabPage;
enum class SwFillMode;
/// Item for settings dialog - document view
-class SW_DLLPUBLIC SwDocDisplayItem : public SfxPoolItem
+class SW_DLLPUBLIC SwDocDisplayItem final : public SfxPoolItem
{
friend class SwShdwCursorOptionsTabPage;
friend class SwModule;
@@ -64,7 +64,7 @@ public:
// OS 12.01.95
// Item for settings dialog, element page
-class SW_DLLPUBLIC SwElemItem : public SfxPoolItem
+class SW_DLLPUBLIC SwElemItem final : public SfxPoolItem
{
//view
bool m_bVertRuler :1;
@@ -99,7 +99,7 @@ public:
// OS 12.01.95
// Item for settings dialog - printer/add-ons
-class SW_DLLPUBLIC SwAddPrinterItem : public SfxPoolItem, public SwPrintData
+class SW_DLLPUBLIC SwAddPrinterItem final : public SfxPoolItem, public SwPrintData
{
using SwPrintData::operator ==;
@@ -113,7 +113,7 @@ public:
};
/// Item for settings dialog, ShadowCursorPage
-class SW_DLLPUBLIC SwShadowCursorItem : public SfxPoolItem
+class SW_DLLPUBLIC SwShadowCursorItem final : public SfxPoolItem
{
SwFillMode m_eMode;
bool m_bOn;
@@ -136,7 +136,7 @@ public:
#ifdef DBG_UTIL
// Item for settings dialog - test settings
-class SW_DLLPUBLIC SwTestItem : public SfxPoolItem
+class SW_DLLPUBLIC SwTestItem final : public SfxPoolItem
{
friend class SwModule;
friend class SwTestTabPage;
diff --git a/sw/source/uibase/inc/changedb.hxx b/sw/source/uibase/inc/changedb.hxx
index a56144bd995d..a928a5d3074f 100644
--- a/sw/source/uibase/inc/changedb.hxx
+++ b/sw/source/uibase/inc/changedb.hxx
@@ -28,7 +28,7 @@ class SwWrtShell;
struct SwDBData;
// exchange database at fields
-class SwChangeDBDlg : public SfxDialogController
+class SwChangeDBDlg final : public SfxDialogController
{
SwWrtShell *pSh;
diff --git a/sw/source/uibase/inc/chrdlg.hxx b/sw/source/uibase/inc/chrdlg.hxx
index 09138b5ccb51..8527f15e2693 100644
--- a/sw/source/uibase/inc/chrdlg.hxx
+++ b/sw/source/uibase/inc/chrdlg.hxx
@@ -25,7 +25,7 @@
class SwView;
class SvxMacroItem;
-class SwCharDlg : public SfxTabDialogController
+class SwCharDlg final : public SfxTabDialogController
{
SwView& m_rView;
SwCharDlgMode m_nDialogMode;
@@ -39,7 +39,7 @@ public:
virtual void PageCreated(const OString& rId, SfxTabPage &rPage) override;
};
-class SwCharURLPage : public SfxTabPage
+class SwCharURLPage final : public SfxTabPage
{
std::unique_ptr<SvxMacroItem> pINetItem;
bool bModified;
diff --git a/sw/source/uibase/inc/colex.hxx b/sw/source/uibase/inc/colex.hxx
index 41f7e4143a71..07c007465da2 100644
--- a/sw/source/uibase/inc/colex.hxx
+++ b/sw/source/uibase/inc/colex.hxx
@@ -42,10 +42,10 @@ public:
void UpdateExample( const SfxItemSet& rSet );
};
-class SW_DLLPUBLIC SwPageGridExample : public SwPageExample
+class SW_DLLPUBLIC SwPageGridExample final : public SwPageExample
{
std::unique_ptr<SwTextGridItem> pGridItem;
-protected:
+
virtual void DrawPage(vcl::RenderContext& rRenderContext,
const Point& rPoint,
const bool bSecond,
@@ -57,13 +57,12 @@ public:
};
-class SW_DLLPUBLIC SwColExample : public SwPageExample
+class SW_DLLPUBLIC SwColExample final : public SwPageExample
{
SwColMgr* pColMgr;
using SwPageExample::UpdateExample;
-protected:
virtual void DrawPage(vcl::RenderContext& rRenderContext,
const Point& rPoint,
const bool bSecond,
@@ -82,7 +81,7 @@ public:
}
};
-class SW_DLLPUBLIC SwColumnOnlyExample : public weld::CustomWidgetController
+class SW_DLLPUBLIC SwColumnOnlyExample final : public weld::CustomWidgetController
{
private:
Size m_aWinSize;
@@ -90,7 +89,6 @@ private:
Size m_aFrameSize;
SwFormatCol m_aCols;
-protected:
virtual void Resize() override;
virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect) override;
diff --git a/sw/source/uibase/inc/column.hxx b/sw/source/uibase/inc/column.hxx
index e7c39cb7db90..133757a77d52 100644
--- a/sw/source/uibase/inc/column.hxx
+++ b/sw/source/uibase/inc/column.hxx
@@ -33,7 +33,7 @@ class SwColMgr;
class SwWrtShell;
class SwColumnPage;
-class SwColumnDlg : public SfxDialogController
+class SwColumnDlg final : public SfxDialogController
{
SwWrtShell& m_rWrtShell;
std::unique_ptr<SwColumnPage> m_xTabPage;
@@ -81,7 +81,7 @@ public:
};
// column dialog now as TabPage
-class SwColumnPage : public SfxTabPage
+class SwColumnPage final : public SfxTabPage
{
std::unique_ptr<SwColMgr> m_xColMgr;
diff --git a/sw/source/uibase/inc/condedit.hxx b/sw/source/uibase/inc/condedit.hxx
index 1c4df0086b55..a4599508c000 100644
--- a/sw/source/uibase/inc/condedit.hxx
+++ b/sw/source/uibase/inc/condedit.hxx
@@ -25,7 +25,7 @@
class ConditionEdit;
-class SW_DLLPUBLIC ConditionEditDropTarget : public DropTargetHelper
+class SW_DLLPUBLIC ConditionEditDropTarget final : public DropTargetHelper
{
private:
ConditionEdit& m_rEdit;
diff --git a/sw/source/uibase/inc/content.hxx b/sw/source/uibase/inc/content.hxx
index 69f9696158ee..64b1e265f10b 100644
--- a/sw/source/uibase/inc/content.hxx
+++ b/sw/source/uibase/inc/content.hxx
@@ -152,7 +152,7 @@ public:
* GetMember. It is reloaded after Invalidate() only if the content
* should be read again.
*/
-class SwContentType : public SwTypeNumber
+class SwContentType final : public SwTypeNumber
{
SwWrtShell* m_pWrtShell;
std::unique_ptr<SwContentArr>
@@ -166,7 +166,7 @@ class SwContentType : public SwTypeNumber
bool m_bDataValid : 1;
bool m_bEdit: 1; // can this type be edited?
bool m_bDelete: 1; // can this type be deleted?
-protected:
+
static OUString RemoveNewline(const OUString&);
public:
SwContentType(SwWrtShell* pParent, ContentTypeId nType, sal_uInt8 nLevel );
diff --git a/sw/source/uibase/inc/conttree.hxx b/sw/source/uibase/inc/conttree.hxx
index f572bc76a983..4ac942e9ecd7 100644
--- a/sw/source/uibase/inc/conttree.hxx
+++ b/sw/source/uibase/inc/conttree.hxx
@@ -71,7 +71,7 @@ namespace o3tl {
class SwContentTree;
-class SwContentTreeDropTarget : public DropTargetHelper
+class SwContentTreeDropTarget final : public DropTargetHelper
{
private:
SwContentTree& m_rTreeView;
@@ -270,7 +270,7 @@ namespace sfx2 { class FileDialogHelper; }
class SwGlobalTree;
-class SwGlobalTreeDropTarget : public DropTargetHelper
+class SwGlobalTreeDropTarget final : public DropTargetHelper
{
private:
SwGlobalTree& m_rTreeView;
diff --git a/sw/source/uibase/inc/convert.hxx b/sw/source/uibase/inc/convert.hxx
index 867ae46ce21a..fabfeca26a53 100644
--- a/sw/source/uibase/inc/convert.hxx
+++ b/sw/source/uibase/inc/convert.hxx
@@ -28,7 +28,7 @@ class SwView;
class SwWrtShell;
struct SwInsertTableOptions;
-class SwConvertTableDlg : public SfxDialogController
+class SwConvertTableDlg final : public SfxDialogController
{
std::unique_ptr<weld::RadioButton> m_xTabBtn;
std::unique_ptr<weld::RadioButton> m_xSemiBtn;
diff --git a/sw/source/uibase/inc/cption.hxx b/sw/source/uibase/inc/cption.hxx
index b26a1fb2178f..b442857a44b8 100644
--- a/sw/source/uibase/inc/cption.hxx
+++ b/sw/source/uibase/inc/cption.hxx
@@ -29,7 +29,7 @@
class SwFieldMgr;
class SwView;
-class SwCaptionDialog : public SfxDialogController
+class SwCaptionDialog final : public SfxDialogController
{
OUString m_sNone;
TextFilterAutoConvert m_aTextFilter;
diff --git a/sw/source/uibase/inc/dbconfig.hxx b/sw/source/uibase/inc/dbconfig.hxx
index 5a611f5d8be0..a21319690a9a 100644
--- a/sw/source/uibase/inc/dbconfig.hxx
+++ b/sw/source/uibase/inc/dbconfig.hxx
@@ -24,7 +24,7 @@
struct SwDBData;
-class SW_DLLPUBLIC SwDBConfig : public utl::ConfigItem
+class SW_DLLPUBLIC SwDBConfig final : public utl::ConfigItem
{
private:
SAL_DLLPRIVATE static const css::uno::Sequence<OUString>& GetPropertyNames();
diff --git a/sw/source/uibase/inc/dbinsdlg.hxx b/sw/source/uibase/inc/dbinsdlg.hxx
index 3cd7a76a6b26..be1496229f91 100644
--- a/sw/source/uibase/inc/dbinsdlg.hxx
+++ b/sw/source/uibase/inc/dbinsdlg.hxx
@@ -76,7 +76,7 @@ class SwInsDBColumns : public o3tl::sorted_vector<std::unique_ptr<SwInsDBColumn>
{
};
-class SwInsertDBColAutoPilot : public SfxDialogController, public utl::ConfigItem
+class SwInsertDBColAutoPilot final : public SfxDialogController, public utl::ConfigItem
{
SwInsDBColumns aDBColumns;
const SwDBData aDBData;
diff --git a/sw/source/uibase/inc/dbui.hxx b/sw/source/uibase/inc/dbui.hxx
index ea42bb44da13..b58b2abed951 100644
--- a/sw/source/uibase/inc/dbui.hxx
+++ b/sw/source/uibase/inc/dbui.hxx
@@ -23,7 +23,7 @@
#include <swdllapi.h>
-class PrintMonitor : public weld::GenericDialogController
+class PrintMonitor final : public weld::GenericDialogController
{
public:
std::unique_ptr<weld::Label> m_xDocName;
@@ -34,7 +34,7 @@ public:
virtual ~PrintMonitor() override;
};
-class SW_DLLPUBLIC SaveMonitor : public weld::GenericDialogController
+class SW_DLLPUBLIC SaveMonitor final : public weld::GenericDialogController
{
public:
std::unique_ptr<weld::Label> m_xDocName;
@@ -45,7 +45,7 @@ public:
virtual ~SaveMonitor() override;
};
-class CreateMonitor : public weld::GenericDialogController
+class CreateMonitor final : public weld::GenericDialogController
{
public:
CreateMonitor(weld::Window* pParent);
diff --git a/sw/source/uibase/inc/docfnote.hxx b/sw/source/uibase/inc/docfnote.hxx
index 6e232c85ac63..1719349ab5ef 100644
--- a/sw/source/uibase/inc/docfnote.hxx
+++ b/sw/source/uibase/inc/docfnote.hxx
@@ -23,7 +23,7 @@
class SwWrtShell;
-class SwFootNoteOptionDlg : public SfxTabDialogController
+class SwFootNoteOptionDlg final : public SfxTabDialogController
{
SwWrtShell& rSh;
diff --git a/sw/source/uibase/inc/drpcps.hxx b/sw/source/uibase/inc/drpcps.hxx
index bf02a7284b09..d07746a0386a 100644
--- a/sw/source/uibase/inc/drpcps.hxx
+++ b/sw/source/uibase/inc/drpcps.hxx
@@ -28,7 +28,7 @@
class SwWrtShell;
-class SwDropCapsDlg : public SfxSingleTabDialogController
+class SwDropCapsDlg final : public SfxSingleTabDialogController
{
public:
SwDropCapsDlg(weld::Window *pParent, const SfxItemSet &rSet);
@@ -36,7 +36,7 @@ public:
class SwDropCapsPage;
-class SwDropCapsPict : public weld::CustomWidgetController
+class SwDropCapsPict final : public weld::CustomWidgetController
{
SwDropCapsPage* mpPage;
OUString maText;
@@ -107,7 +107,7 @@ public:
void DrawPrev(vcl::RenderContext& rRenderContext, const Point& rPt);
};
-class SwDropCapsPage : public SfxTabPage
+class SwDropCapsPage final : public SfxTabPage
{
friend class SwDropCapsPict;
SwDropCapsPict m_aPict;
diff --git a/sw/source/uibase/inc/dselect.hxx b/sw/source/uibase/inc/dselect.hxx
index e6002e1d6107..4f53feb31006 100644
--- a/sw/source/uibase/inc/dselect.hxx
+++ b/sw/source/uibase/inc/dselect.hxx
@@ -22,7 +22,7 @@
#include "drawbase.hxx"
// draw rectangle
-class DrawSelection : public SwDrawBase
+class DrawSelection final : public SwDrawBase
{
public:
DrawSelection(SwWrtShell* pSh, SwEditWin* pWin, SwView* pView);
diff --git a/sw/source/uibase/inc/envimg.hxx b/sw/source/uibase/inc/envimg.hxx
index b63d6b0a5d15..15c2560b9b00 100644
--- a/sw/source/uibase/inc/envimg.hxx
+++ b/sw/source/uibase/inc/envimg.hxx
@@ -35,7 +35,7 @@ enum SwEnvAlign
ENV_VER_RGHT
};
-class SW_DLLPUBLIC SwEnvItem : public SfxPoolItem
+class SW_DLLPUBLIC SwEnvItem final : public SfxPoolItem
{
public:
@@ -66,7 +66,7 @@ public:
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
};
-class SwEnvCfgItem : public utl::ConfigItem
+class SwEnvCfgItem final : public utl::ConfigItem
{
private:
SwEnvItem m_aEnvItem;
diff --git a/sw/source/uibase/inc/envlop.hxx b/sw/source/uibase/inc/envlop.hxx
index 00abb7ab2889..49a1d9429578 100644
--- a/sw/source/uibase/inc/envlop.hxx
+++ b/sw/source/uibase/inc/envlop.hxx
@@ -43,7 +43,7 @@ class SwEnvFormatPage;
class SwWrtShell;
class Printer;
-class SwEnvPreview : public weld::CustomWidgetController
+class SwEnvPreview final : public weld::CustomWidgetController
{
private:
SwEnvDlg* m_pDialog;
@@ -56,7 +56,7 @@ public:
void SetDialog(SwEnvDlg* pDialog) { m_pDialog = pDialog; }
};
-class SwEnvDlg : public SfxTabDialogController
+class SwEnvDlg final : public SfxTabDialogController
{
friend class SwEnvPage;
friend class SwEnvFormatPage;
@@ -80,7 +80,7 @@ public:
virtual ~SwEnvDlg() override;
};
-class SwEnvPage : public SfxTabPage
+class SwEnvPage final : public SfxTabPage
{
SwEnvDlg* m_pDialog;
SwWrtShell* m_pSh;
diff --git a/sw/source/uibase/inc/fldedt.hxx b/sw/source/uibase/inc/fldedt.hxx
index 9f512ea3f7b8..ecb2ff04abf3 100644
--- a/sw/source/uibase/inc/fldedt.hxx
+++ b/sw/source/uibase/inc/fldedt.hxx
@@ -27,7 +27,7 @@ class SwView;
class SwWrtShell;
class SwFieldMgr;
-class SwFieldEditDlg : public SfxSingleTabDialogController
+class SwFieldEditDlg final : public SfxSingleTabDialogController
{
SwWrtShell* pSh;
std::unique_ptr<weld::Button> m_xPrevBT;
diff --git a/sw/source/uibase/inc/fldtdlg.hxx b/sw/source/uibase/inc/fldtdlg.hxx
index f55e84e2c202..b2cd767e41f1 100644
--- a/sw/source/uibase/inc/fldtdlg.hxx
+++ b/sw/source/uibase/inc/fldtdlg.hxx
@@ -30,7 +30,7 @@ class SfxTabPage;
class SwChildWinWrapper;
struct SfxChildWinInfo;
-class SwFieldDlg : public SfxTabDialogController
+class SwFieldDlg final : public SfxTabDialogController
{
SwChildWinWrapper* m_pChildWin;
SfxBindings* m_pBindings;
diff --git a/sw/source/uibase/inc/fldwrap.hxx b/sw/source/uibase/inc/fldwrap.hxx
index 6532ff7db891..a0d0b9d9dfbc 100644
--- a/sw/source/uibase/inc/fldwrap.hxx
+++ b/sw/source/uibase/inc/fldwrap.hxx
@@ -26,7 +26,7 @@
#include "chldwrap.hxx"
class AbstractSwFieldDlg;
-class SwFieldDlgWrapper : public SwChildWinWrapper
+class SwFieldDlgWrapper final : public SwChildWinWrapper
{
ScopedVclPtr<AbstractSwFieldDlg> pDlgInterface;
public:
@@ -40,7 +40,7 @@ public:
};
// field dialog only showing database page to support mail merge
-class SwFieldDataOnlyDlgWrapper : public SwChildWinWrapper
+class SwFieldDataOnlyDlgWrapper final : public SwChildWinWrapper
{
ScopedVclPtr<AbstractSwFieldDlg> pDlgInterface;
public:
diff --git a/sw/source/uibase/inc/fontcfg.hxx b/sw/source/uibase/inc/fontcfg.hxx
index 388f16d81c2b..e752d90f08f6 100644
--- a/sw/source/uibase/inc/fontcfg.hxx
+++ b/sw/source/uibase/inc/fontcfg.hxx
@@ -52,7 +52,7 @@
#define FONTSIZE_CJK_DEFAULT 210
#define FONTSIZE_OUTLINE 280
-class SW_DLLPUBLIC SwStdFontConfig : public utl::ConfigItem
+class SW_DLLPUBLIC SwStdFontConfig final : public utl::ConfigItem
{
OUString sDefaultFonts[DEF_FONT_COUNT];
sal_Int32 nDefaultFontHeight[DEF_FONT_COUNT];
diff --git a/sw/source/uibase/inc/frmdlg.hxx b/sw/source/uibase/inc/frmdlg.hxx
index e3c079a2228f..87f03d8cc97a 100644
--- a/sw/source/uibase/inc/frmdlg.hxx
+++ b/sw/source/uibase/inc/frmdlg.hxx
@@ -26,7 +26,7 @@
class SwWrtShell;
// frame dialog
-class SwFrameDlg : public SfxTabDialogController
+class SwFrameDlg final : public SfxTabDialogController
{
bool m_bFormat;
bool m_bNew;
diff --git a/sw/source/uibase/inc/frmpage.hxx b/sw/source/uibase/inc/frmpage.hxx
index 831ce60933d1..a555440622ad 100644
--- a/sw/source/uibase/inc/frmpage.hxx
+++ b/sw/source/uibase/inc/frmpage.hxx
@@ -35,7 +35,7 @@ struct FrameMap;
struct SwPosition;
// frame dialog
-class SwFramePage: public SfxTabPage
+class SwFramePage final : public SfxTabPage
{
bool m_bAtHorzPosModified;
bool m_bAtVertPosModified;
@@ -192,7 +192,7 @@ public:
void EnableVerticalPositioning( bool bEnable );
};
-class SwGrfExtPage : public SfxTabPage
+class SwGrfExtPage final : public SfxTabPage
{
OUString aFilterName;
OUString aGrfName, aNewGrfName;
@@ -240,7 +240,7 @@ public:
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override;
};
-class SwFrameURLPage : public SfxTabPage
+class SwFrameURLPage final : public SfxTabPage
{
// hyperlink
std::unique_ptr<weld::Entry> m_xURLED;
@@ -264,7 +264,7 @@ public:
virtual void Reset(const SfxItemSet *rSet) override;
};
-class SwFrameAddPage : public SfxTabPage
+class SwFrameAddPage final : public SfxTabPage
{
SwWrtShell* m_pWrtSh;
diff --git a/sw/source/uibase/inc/gloslst.hxx b/sw/source/uibase/inc/gloslst.hxx
index 11192ecd6234..bd6954bfa2ff 100644
--- a/sw/source/uibase/inc/gloslst.hxx
+++ b/sw/source/uibase/inc/gloslst.hxx
@@ -44,7 +44,7 @@ struct AutoTextGroup
}
};
-class SwGlossaryList : public AutoTimer
+class SwGlossaryList final : public AutoTimer
{
std::vector<std::unique_ptr<AutoTextGroup>> aGroupArr;
OUString sPath;
diff --git a/sw/source/uibase/inc/glossary.hxx b/sw/source/uibase/inc/glossary.hxx
index 6427f04a5c34..ada07976450f 100644
--- a/sw/source/uibase/inc/glossary.hxx
+++ b/sw/source/uibase/inc/glossary.hxx
@@ -39,7 +39,7 @@ class SwOneExampleFrame;
const short RET_EDIT = 100;
-class SwGlossaryDlg : public SfxDialogController
+class SwGlossaryDlg final : public SfxDialogController
{
friend class SwNewGlosNameDlg;
diff --git a/sw/source/uibase/inc/hyp.hxx b/sw/source/uibase/inc/hyp.hxx
index 9b2d26d1216e..acec1b25f163 100644
--- a/sw/source/uibase/inc/hyp.hxx
+++ b/sw/source/uibase/inc/hyp.hxx
@@ -26,7 +26,7 @@
class SwView;
-class SW_DLLPUBLIC SwHyphWrapper : public SvxSpellWrapper {
+class SW_DLLPUBLIC SwHyphWrapper final : public SvxSpellWrapper {
private:
SwView* pView;
sal_uInt16 nPageCount; // page count for progress view
@@ -35,7 +35,6 @@ private:
bool bAutomatic : 1; // insert separators without further inquiry
bool bInfoBox : 1; // display info-box when ending
-protected:
virtual void SpellStart( SvxSpellArea eSpell ) override;
virtual void SpellContinue() override;
virtual void SpellEnd( ) override;
diff --git a/sw/source/uibase/inc/inpdlg.hxx b/sw/source/uibase/inc/inpdlg.hxx
index f1dfc725dc33..c724e3b76bd6 100644
--- a/sw/source/uibase/inc/inpdlg.hxx
+++ b/sw/source/uibase/inc/inpdlg.hxx
@@ -29,7 +29,7 @@ class SwWrtShell;
class SwFieldMgr;
// insert fields
-class SwFieldInputDlg : public weld::GenericDialogController
+class SwFieldInputDlg final : public weld::GenericDialogController
{
void Apply();
diff --git a/sw/source/uibase/inc/inputwin.hxx b/sw/source/uibase/inc/inputwin.hxx
index f4cd41508572..6f2a47a31a30 100644
--- a/sw/source/uibase/inc/inputwin.hxx
+++ b/sw/source/uibase/inc/inputwin.hxx
@@ -189,7 +189,7 @@ public:
const SwView* GetView() const{return pView;}
};
-class SwInputChild : public SfxChildWindow
+class SwInputChild final : public SfxChildWindow
{
SfxDispatcher* pDispatch;
public:
diff --git a/sw/source/uibase/inc/insfnote.hxx b/sw/source/uibase/inc/insfnote.hxx
index bf0600bb73aa..396e87404644 100644
--- a/sw/source/uibase/inc/insfnote.hxx
+++ b/sw/source/uibase/inc/insfnote.hxx
@@ -25,7 +25,7 @@ class SwWrtShell;
class VclFrame;
-class SwInsFootNoteDlg: public weld::GenericDialogController
+class SwInsFootNoteDlg final : public weld::GenericDialogController
{
SwWrtShell &m_rSh;
diff --git a/sw/source/uibase/inc/instable.hxx b/sw/source/uibase/inc/instable.hxx
index 381b1ba4f39a..cc3fd0204ccb 100644
--- a/sw/source/uibase/inc/instable.hxx
+++ b/sw/source/uibase/inc/instable.hxx
@@ -32,7 +32,7 @@
#include <itabenum.hxx>
#include <memory>
-class SwInsTableDlg : public SfxDialogController
+class SwInsTableDlg final : public SfxDialogController
{
TextFilter m_aTextFilter;
diff --git a/sw/source/uibase/inc/javaedit.hxx b/sw/source/uibase/inc/javaedit.hxx
index b71adfc18348..0b4ca37cab07 100644
--- a/sw/source/uibase/inc/javaedit.hxx
+++ b/sw/source/uibase/inc/javaedit.hxx
@@ -26,7 +26,7 @@ class SwScriptField;
namespace sfx2 { class FileDialogHelper; }
-class SwJavaEditDialog : public weld::GenericDialogController
+class SwJavaEditDialog final : public weld::GenericDialogController
{
private:
OUString m_aText;
diff --git a/sw/source/uibase/inc/label.hxx b/sw/source/uibase/inc/label.hxx
index a7a1c66412c6..5914423697d1 100644
--- a/sw/source/uibase/inc/label.hxx
+++ b/sw/source/uibase/inc/label.hxx
@@ -29,7 +29,7 @@ class SwLabPrtPage;
class SwDBManager;
class Printer;
-class SwLabDlg : public SfxTabDialogController
+class SwLabDlg final : public SfxTabDialogController
{
SwLabelConfig aLabelsCfg;
SwDBManager* pDBManager;
diff --git a/sw/source/uibase/inc/labelcfg.hxx b/sw/source/uibase/inc/labelcfg.hxx
index c206f67de809..2a88d590215e 100644
--- a/sw/source/uibase/inc/labelcfg.hxx
+++ b/sw/source/uibase/inc/labelcfg.hxx
@@ -32,7 +32,7 @@ struct SwLabelMeasure
bool m_bPredefined; // used to distinguish predefined from user-defined labels
};
-class SW_DLLPUBLIC SwLabelConfig : public utl::ConfigItem
+class SW_DLLPUBLIC SwLabelConfig final : public utl::ConfigItem
{
private:
std::vector<OUString> m_aManufacturers;
diff --git a/sw/source/uibase/inc/labimg.hxx b/sw/source/uibase/inc/labimg.hxx
index ec01bf38ffcc..47255d37c078 100644
--- a/sw/source/uibase/inc/labimg.hxx
+++ b/sw/source/uibase/inc/labimg.hxx
@@ -26,7 +26,7 @@
class SwLabCfgItem;
-class SW_DLLPUBLIC SwLabItem : public SfxPoolItem
+class SW_DLLPUBLIC SwLabItem final : public SfxPoolItem
{
public:
@@ -102,7 +102,7 @@ public:
OUString m_sGlossaryBlockName;
};
-class SwLabCfgItem : public utl::ConfigItem
+class SwLabCfgItem final : public utl::ConfigItem
{
private:
SwLabItem aItem;
diff --git a/sw/source/uibase/inc/linenum.hxx b/sw/source/uibase/inc/linenum.hxx
index d239e631992f..eaed16129626 100644
--- a/sw/source/uibase/inc/linenum.hxx
+++ b/sw/source/uibase/inc/linenum.hxx
@@ -25,7 +25,7 @@
class SwView;
class SwWrtShell;
-class SwLineNumberingDlg : public SfxDialogController
+class SwLineNumberingDlg final : public SfxDialogController
{
private:
SwWrtShell* m_pSh;
diff --git a/sw/source/uibase/inc/mailconfigpage.hxx b/sw/source/uibase/inc/mailconfigpage.hxx
index e008a702ab46..47c1f8bdaaa5 100644
--- a/sw/source/uibase/inc/mailconfigpage.hxx
+++ b/sw/source/uibase/inc/mailconfigpage.hxx
@@ -25,7 +25,7 @@
class SwTestAccountSettingsDialog;
class SwMailMergeConfigItem;
-class SwMailConfigPage : public SfxTabPage
+class SwMailConfigPage final : public SfxTabPage
{
friend class SwTestAccountSettingsDialog;
@@ -58,7 +58,7 @@ public:
virtual void Reset( const SfxItemSet* rSet ) override;
};
-class SwMailConfigDlg : public SfxSingleTabDialogController
+class SwMailConfigDlg final : public SfxSingleTabDialogController
{
public:
SwMailConfigDlg(weld::Window* pParent, SfxItemSet& rSet);
diff --git a/sw/source/uibase/inc/maildispatcher.hxx b/sw/source/uibase/inc/maildispatcher.hxx
index e6f9f0cc7888..5fd862d36331 100644
--- a/sw/source/uibase/inc/maildispatcher.hxx
+++ b/sw/source/uibase/inc/maildispatcher.hxx
@@ -41,7 +41,8 @@ class IMailDispatcherListener;
must not be shared among different client threads. Instead each client
thread should create an own instance of this class.
*/
-class SW_DLLPUBLIC MailDispatcher : public salhelper::SimpleReferenceObject, private ::osl::Thread
+class SW_DLLPUBLIC MailDispatcher final : public salhelper::SimpleReferenceObject,
+ private ::osl::Thread
{
public:
// bringing operator new/delete into scope
@@ -130,15 +131,13 @@ public:
*/
void addListener(::rtl::Reference<IMailDispatcherListener> const& listener);
-protected:
+private:
virtual void SAL_CALL run() override;
virtual void SAL_CALL onTerminated() override;
-private:
std::vector<::rtl::Reference<IMailDispatcherListener>> cloneListener();
void sendMailMessageNotifyListener(css::uno::Reference<css::mail::XMailMessage> const& message);
-private:
css::uno::Reference<css::mail::XSmtpService> m_xMailserver;
std::list<css::uno::Reference<css::mail::XMailMessage>> m_aXMessageList;
std::vector<::rtl::Reference<IMailDispatcherListener>> m_aListenerVector;
diff --git a/sw/source/uibase/inc/mailmergehelper.hxx b/sw/source/uibase/inc/mailmergehelper.hxx
index 3b476a5245bf..60882df8aba5 100644
--- a/sw/source/uibase/inc/mailmergehelper.hxx
+++ b/sw/source/uibase/inc/mailmergehelper.hxx
@@ -56,7 +56,7 @@ struct SwAddressPreview_Impl;
// Preview window used to show the possible selection of address blocks
// and also the resulting address filled with database data
-class SW_DLLPUBLIC SwAddressPreview : public weld::CustomWidgetController
+class SW_DLLPUBLIC SwAddressPreview final : public weld::CustomWidgetController
{
std::unique_ptr<SwAddressPreview_Impl> pImpl;
std::unique_ptr<weld::ScrolledWindow> m_xVScrollBar;
@@ -133,7 +133,7 @@ public:
bool HasMore() const { return !sAddress.isEmpty(); }
};
-class SW_DLLPUBLIC SwAuthenticator :
+class SW_DLLPUBLIC SwAuthenticator final :
public cppu::WeakImplHelper<css::mail::XAuthenticator>
{
OUString m_aUserName;
@@ -155,7 +155,7 @@ public:
};
-class SW_DLLPUBLIC SwConnectionContext : public cppu::WeakImplHelper<css::uno::XCurrentContext>
+class SW_DLLPUBLIC SwConnectionContext final : public cppu::WeakImplHelper<css::uno::XCurrentContext>
{
OUString m_sMailServer;
sal_Int16 m_nPort;
@@ -174,7 +174,7 @@ public:
osl::Mutex m_aMutex;
};
-class SW_DLLPUBLIC SwConnectionListener :
+class SW_DLLPUBLIC SwConnectionListener final :
public SwMutexBase,
public cppu::WeakComponentImplHelper<css::mail::XConnectionListener>
{
@@ -193,7 +193,7 @@ public:
virtual void SAL_CALL disposing(const css::lang::EventObject& aEvent) override;
};
-class SW_DLLPUBLIC SwMailTransferable :
+class SW_DLLPUBLIC SwMailTransferable final :
public SwMutexBase,
public cppu::WeakComponentImplHelper<css::datatransfer::XTransferable, css::beans::XPropertySet>
{
@@ -228,7 +228,7 @@ class SW_DLLPUBLIC SwMailTransferable :
};
-class SW_DLLPUBLIC SwMailMessage :
+class SW_DLLPUBLIC SwMailMessage final :
public SwMutexBase,
public cppu::WeakComponentImplHelper<css::mail::XMailMessage>
{
diff --git a/sw/source/uibase/inc/mailmergewizard.hxx b/sw/source/uibase/inc/mailmergewizard.hxx
index 0ab3c8dce8aa..657341cf307c 100644
--- a/sw/source/uibase/inc/mailmergewizard.hxx
+++ b/sw/source/uibase/inc/mailmergewizard.hxx
@@ -34,7 +34,7 @@ using vcl::WizardTypes::CommitPageReason;
#define MM_GREETINGSPAGE 3
#define MM_LAYOUTPAGE 4
-class SwMailMergeWizard : public ::vcl::RoadmapWizardMachine
+class SwMailMergeWizard final : public ::vcl::RoadmapWizardMachine
{
SwView* m_pSwView;
OUString sDocumentURL;
@@ -53,7 +53,6 @@ class SwMailMergeWizard : public ::vcl::RoadmapWizardMachine
using vcl::WizardMachine::skipUntil;
-protected:
virtual std::unique_ptr<BuilderPage> createPage( WizardState _nState ) override;
virtual void enterState( WizardState _nState ) override;
diff --git a/sw/source/uibase/inc/mailmrge.hxx b/sw/source/uibase/inc/mailmrge.hxx
index 0eebc628618b..c141029e3122 100644
--- a/sw/source/uibase/inc/mailmrge.hxx
+++ b/sw/source/uibase/inc/mailmrge.hxx
@@ -41,7 +41,7 @@ namespace com::sun::star{
}
}
-class SwMailMergeDlg : public SfxDialogController
+class SwMailMergeDlg final : public SfxDialogController
{
friend class SwXSelChgLstnr_Impl;
@@ -137,7 +137,7 @@ public:
};
-class SwMailMergeCreateFromDlg : public weld::GenericDialogController
+class SwMailMergeCreateFromDlg final : public weld::GenericDialogController
{
std::unique_ptr<weld::RadioButton> m_xThisDocRB;
public:
@@ -149,7 +149,7 @@ public:
}
};
-class SwMailMergeFieldConnectionsDlg : public weld::GenericDialogController
+class SwMailMergeFieldConnectionsDlg final : public weld::GenericDialogController
{
std::unique_ptr<weld::RadioButton> m_xUseExistingRB;
public:
diff --git a/sw/source/uibase/inc/mergetbl.hxx b/sw/source/uibase/inc/mergetbl.hxx
index 765c3d603947..5b4ef970ef8a 100644
--- a/sw/source/uibase/inc/mergetbl.hxx
+++ b/sw/source/uibase/inc/mergetbl.hxx
@@ -21,7 +21,7 @@
#include <vcl/weld.hxx>
-class SwMergeTableDlg : public weld::GenericDialogController
+class SwMergeTableDlg final : public weld::GenericDialogController
{
bool& m_rMergePrev;
diff --git a/sw/source/uibase/inc/multmrk.hxx b/sw/source/uibase/inc/multmrk.hxx
index 5027e216e5e8..7e2fead65048 100644
--- a/sw/source/uibase/inc/multmrk.hxx
+++ b/sw/source/uibase/inc/multmrk.hxx
@@ -25,7 +25,7 @@
class SwTOXMgr;
// insert mark for index entry
-class SwMultiTOXMarkDlg : public weld::GenericDialogController
+class SwMultiTOXMarkDlg final : public weld::GenericDialogController
{
DECL_LINK(SelectHdl, weld::TreeView&, void);
SwTOXMgr& m_rMgr;
diff --git a/sw/source/uibase/inc/navicfg.hxx b/sw/source/uibase/inc/navicfg.hxx
index a9b562493623..43bf52b3d7ed 100644
--- a/sw/source/uibase/inc/navicfg.hxx
+++ b/sw/source/uibase/inc/navicfg.hxx
@@ -24,7 +24,7 @@
enum class RegionMode;
enum class ContentTypeId;
-class SwNavigationConfig : public utl::ConfigItem
+class SwNavigationConfig final : public utl::ConfigItem
{
ContentTypeId nRootType; //RootType
sal_Int32 nSelectedPos; //SelectedPosition
diff --git a/sw/source/uibase/inc/navipi.hxx b/sw/source/uibase/inc/navipi.hxx
index c203284ca500..85eacaf826e5 100644
--- a/sw/source/uibase/inc/navipi.hxx
+++ b/sw/source/uibase/inc/navipi.hxx
@@ -39,7 +39,7 @@ class SfxObjectShellLock;
enum class RegionMode;
class SpinField;
-class SwNavigationPI : public PanelLayout
+class SwNavigationPI final : public PanelLayout
, public ::sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
, public SfxListener
{
@@ -115,8 +115,6 @@ class SwNavigationPI : public PanelLayout
void UpdateInitShow();
-protected:
-
// release ObjectShellLock early enough for app end
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
diff --git a/sw/source/uibase/inc/num.hxx b/sw/source/uibase/inc/num.hxx
index ff4d1e7671b7..781023f0a949 100644
--- a/sw/source/uibase/inc/num.hxx
+++ b/sw/source/uibase/inc/num.hxx
@@ -27,7 +27,7 @@ class SwWrtShell;
class SvxBrushItem;
class SwOutlineTabDialog;
-class SwNumPositionTabPage : public SfxTabPage
+class SwNumPositionTabPage final : public SfxTabPage
{
std::unique_ptr<SwNumRule> pActNum;
SwNumRule* pSaveNum;
diff --git a/sw/source/uibase/inc/numfmtlb.hxx b/sw/source/uibase/inc/numfmtlb.hxx
index a5776659130a..437537307d7d 100644
--- a/sw/source/uibase/inc/numfmtlb.hxx
+++ b/sw/source/uibase/inc/numfmtlb.hxx
@@ -70,7 +70,7 @@ public:
virtual ~SwNumFormatBase() {}
};
-class SW_DLLPUBLIC NumFormatListBox : public SwNumFormatBase
+class SW_DLLPUBLIC NumFormatListBox final : public SwNumFormatBase
{
std::unique_ptr<weld::ComboBox> mxControl;
@@ -101,7 +101,7 @@ public:
void connect_changed(const Link<weld::ComboBox&, void>& rLink) { mxControl->connect_changed(rLink); }
};
-class SW_DLLPUBLIC SwNumFormatTreeView : public SwNumFormatBase
+class SW_DLLPUBLIC SwNumFormatTreeView final : public SwNumFormatBase
{
std::unique_ptr<weld::TreeView> mxControl;
diff --git a/sw/source/uibase/inc/numprevw.hxx b/sw/source/uibase/inc/numprevw.hxx
index af86246d6a46..3c9059c06cec 100644
--- a/sw/source/uibase/inc/numprevw.hxx
+++ b/sw/source/uibase/inc/numprevw.hxx
@@ -25,7 +25,7 @@
class SwNumRule;
namespace rtl { class OUString; }
-class NumberingPreview : public weld::CustomWidgetController
+class NumberingPreview final : public weld::CustomWidgetController
{
const SwNumRule* pActNum;
vcl::Font aStdFont;
diff --git a/sw/source/uibase/inc/optcomp.hxx b/sw/source/uibase/inc/optcomp.hxx
index c6d907656e67..42ebc49d1c04 100644
--- a/sw/source/uibase/inc/optcomp.hxx
+++ b/sw/source/uibase/inc/optcomp.hxx
@@ -27,7 +27,7 @@
class SwWrtShell;
struct SwCompatibilityOptPage_Impl;
-class SwCompatibilityOptPage : public SfxTabPage
+class SwCompatibilityOptPage final : public SfxTabPage
{
private:
// config item
diff --git a/sw/source/uibase/inc/optload.hxx b/sw/source/uibase/inc/optload.hxx
index 931156795eb8..6dee914d89c8 100644
--- a/sw/source/uibase/inc/optload.hxx
+++ b/sw/source/uibase/inc/optload.hxx
@@ -40,7 +40,7 @@ public:
static FieldUnit GetValue(sal_uInt32 i);
};
-class TextFilterAutoConvert : public TextFilter
+class TextFilterAutoConvert final : public TextFilter
{
private:
OUString m_sLastGoodText;
@@ -53,7 +53,7 @@ public:
virtual OUString filter(const OUString &rText) override;
};
-class SwLoadOptPage : public SfxTabPage
+class SwLoadOptPage final : public SfxTabPage
{
private:
SwWrtShell* m_pWrtShell;
@@ -90,13 +90,13 @@ public:
virtual void Reset( const SfxItemSet* rSet ) override;
};
-class SwCaptionOptDlg : public SfxSingleTabDialogController
+class SwCaptionOptDlg final : public SfxSingleTabDialogController
{
public:
SwCaptionOptDlg(weld::Window* pParent, const SfxItemSet& rSet);
};
-class SwCaptionPreview : public weld::CustomWidgetController
+class SwCaptionPreview final : public weld::CustomWidgetController
{
private:
OUString maText;
@@ -112,7 +112,7 @@ public:
virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect) override;
};
-class SwCaptionOptPage : public SfxTabPage
+class SwCaptionOptPage final : public SfxTabPage
{
private:
OUString m_sSWTable;
diff --git a/sw/source/uibase/inc/optpage.hxx b/sw/source/uibase/inc/optpage.hxx
index dfd0e4d4bf85..99e24ed7f487 100644
--- a/sw/source/uibase/inc/optpage.hxx
+++ b/sw/source/uibase/inc/optpage.hxx
@@ -33,7 +33,7 @@ class FontList;
// Tools->Options->Writer->View
// Tools->Options->Writer/Web->View
-class SwContentOptPage : public SfxTabPage
+class SwContentOptPage final : public SfxTabPage
{
std::unique_ptr<weld::CheckButton> m_xCrossCB;
@@ -74,7 +74,7 @@ public:
};
// TabPage printer settings additions
-class SwAddPrinterTabPage : public SfxTabPage
+class SwAddPrinterTabPage final : public SfxTabPage
{
OUString sNone;
bool bAttrModified;
@@ -120,7 +120,7 @@ public:
virtual void PageCreated(const SfxAllItemSet& aSet) override;
};
-class SwStdFontTabPage : public SfxTabPage
+class SwStdFontTabPage final : public SfxTabPage
{
OUString m_sShellStd;
OUString m_sShellTitle;
@@ -181,7 +181,7 @@ public:
virtual void PageCreated(const SfxAllItemSet& aSet) override;
};
-class SwTableOptionsTabPage : public SfxTabPage
+class SwTableOptionsTabPage final : public SfxTabPage
{
SwWrtShell* m_pWrtShell;
bool m_bHTMLMode;
@@ -221,7 +221,7 @@ public:
};
// TabPage for ShadowCursor
-class SwShdwCursorOptionsTabPage : public SfxTabPage
+class SwShdwCursorOptionsTabPage final : public SfxTabPage
{
SwWrtShell * m_pWrtShell;
@@ -262,7 +262,7 @@ public:
};
// mark preview
-class SwMarkPreview : public weld::CustomWidgetController
+class SwMarkPreview final : public weld::CustomWidgetController
{
Color m_aBgCol; // background
Color m_aTransCol; // transparency
@@ -292,7 +292,7 @@ public:
};
// redlining options
-class SwRedlineOptionsTabPage : public SfxTabPage
+class SwRedlineOptionsTabPage final : public SfxTabPage
{
std::unique_ptr<weld::ComboBox> m_xInsertLB;
std::unique_ptr<ColorListBox> m_xInsertColorLB;
@@ -336,7 +336,7 @@ public:
#ifdef DBG_UTIL
-class SwTestTabPage : public SfxTabPage
+class SwTestTabPage final : public SfxTabPage
{
public:
SwTestTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
@@ -366,7 +366,7 @@ private:
};
#endif // DBG_UTIL
-class SwCompareOptionsTabPage : public SfxTabPage
+class SwCompareOptionsTabPage final : public SfxTabPage
{
std::unique_ptr<weld::RadioButton> m_xAutoRB;
std::unique_ptr<weld::RadioButton> m_xWordRB;
diff --git a/sw/source/uibase/inc/outline.hxx b/sw/source/uibase/inc/outline.hxx
index 17b9568bac23..6d9a23ab506a 100644
--- a/sw/source/uibase/inc/outline.hxx
+++ b/sw/source/uibase/inc/outline.hxx
@@ -63,7 +63,7 @@ public:
static void SetActNumLevel(sal_uInt16 nSet) {nNumLevel = nSet;}
};
-class SwOutlineSettingsTabPage : public SfxTabPage
+class SwOutlineSettingsTabPage final : public SfxTabPage
{
OUString aNoFormatName;
OUString aSaveCollNames[MAXLEVEL];
diff --git a/sw/source/uibase/inc/pattern.hxx b/sw/source/uibase/inc/pattern.hxx
index 4be18c6342a8..06bb5bb06e71 100644
--- a/sw/source/uibase/inc/pattern.hxx
+++ b/sw/source/uibase/inc/pattern.hxx
@@ -22,7 +22,7 @@
#include <sfx2/basedlgs.hxx>
-class SwBackgroundDlg : public SfxSingleTabDialogController
+class SwBackgroundDlg final : public SfxSingleTabDialogController
{
public:
SwBackgroundDlg(weld::Window* pParent, const SfxItemSet& rSet);
diff --git a/sw/source/uibase/inc/pgfnote.hxx b/sw/source/uibase/inc/pgfnote.hxx
index 1bf5bd63fa81..6fc8196161b1 100644
--- a/sw/source/uibase/inc/pgfnote.hxx
+++ b/sw/source/uibase/inc/pgfnote.hxx
@@ -24,7 +24,7 @@
#include <svx/colorbox.hxx>
// footnote settings TabPage
-class SwFootNotePage: public SfxTabPage
+class SwFootNotePage final : public SfxTabPage
{
static const sal_uInt16 aPageRg[];
public:
diff --git a/sw/source/uibase/inc/pggrid.hxx b/sw/source/uibase/inc/pggrid.hxx
index a714abff7fd4..be53c1a6721a 100644
--- a/sw/source/uibase/inc/pggrid.hxx
+++ b/sw/source/uibase/inc/pggrid.hxx
@@ -26,7 +26,7 @@
#include <svx/colorbox.hxx>
// TabPage Format/(Styles/)Page/Text grid
-class SwTextGridPage: public SfxTabPage
+class SwTextGridPage final : public SfxTabPage
{
sal_Int32 m_nRubyUserValue;
bool m_bRubyUserValue;
diff --git a/sw/source/uibase/inc/pview.hxx b/sw/source/uibase/inc/pview.hxx
index 6a2c898069f0..ec573024d206 100644
--- a/sw/source/uibase/inc/pview.hxx
+++ b/sw/source/uibase/inc/pview.hxx
@@ -43,7 +43,7 @@ class SvtAccessibilityOptions;
class SwPagePreviewLayout;
// Delete member <mnVirtPage> and its accessor
-class SAL_DLLPUBLIC_RTTI SwPagePreviewWin : public vcl::Window
+class SAL_DLLPUBLIC_RTTI SwPagePreviewWin final : public vcl::Window
{
SwViewShell* mpViewShell;
sal_uInt16 mnSttPage;
@@ -158,7 +158,7 @@ public:
/**
* View of a document
*/
-class SW_DLLPUBLIC SwPagePreview: public SfxViewShell
+class SW_DLLPUBLIC SwPagePreview final : public SfxViewShell
{
// ViewWindow and handle to core
// current dispatcher shell
@@ -217,7 +217,6 @@ class SW_DLLPUBLIC SwPagePreview: public SfxViewShell
SAL_DLLPRIVATE void ExecPgUpAndPgDown( const bool _bPgUp,
SfxRequest* _pReq );
-protected:
virtual void InnerResizePixel( const Point &rOfs, const Size &rSize, bool inplaceEditModeChange ) override;
virtual void OuterResizePixel( const Point &rOfs, const Size &rSize ) override;
diff --git a/sw/source/uibase/inc/redlndlg.hxx b/sw/source/uibase/inc/redlndlg.hxx
index e07af66b3aa3..0e38dd83764e 100644
--- a/sw/source/uibase/inc/redlndlg.hxx
+++ b/sw/source/uibase/inc/redlndlg.hxx
@@ -122,7 +122,7 @@ public:
void Activate();
};
-class SwModelessRedlineAcceptDlg : public SfxModelessDialogController
+class SwModelessRedlineAcceptDlg final : public SfxModelessDialogController
{
std::unique_ptr<weld::Container> m_xContentArea;
std::unique_ptr<SwRedlineAcceptDlg> m_xImplDlg;
@@ -137,7 +137,7 @@ public:
void Initialize(SfxChildWinInfo * pInfo);
};
-class SwRedlineAcceptChild : public SwChildWinWrapper
+class SwRedlineAcceptChild final : public SwChildWinWrapper
{
public:
SwRedlineAcceptChild(vcl::Window* ,
@@ -151,7 +151,7 @@ public:
};
/// Redline (Manage Changes) panel for the sidebar.
-class SwRedlineAcceptPanel : public PanelLayout, public SfxListener
+class SwRedlineAcceptPanel final : public PanelLayout, public SfxListener
{
std::unique_ptr<SwRedlineAcceptDlg> mpImplDlg;
std::unique_ptr<weld::Container> mxContentArea;
diff --git a/sw/source/uibase/inc/regionsw.hxx b/sw/source/uibase/inc/regionsw.hxx
index fb959c521d1e..b9e1165e3197 100644
--- a/sw/source/uibase/inc/regionsw.hxx
+++ b/sw/source/uibase/inc/regionsw.hxx
@@ -43,7 +43,7 @@ namespace sfx2
class SectRepr;
typedef std::map<size_t, std::unique_ptr<SectRepr>> SectReprs_t;
-class SwEditRegionDlg : public SfxDialogController
+class SwEditRegionDlg final : public SfxDialogController
{
bool m_bSubRegionsFilled;
@@ -115,7 +115,7 @@ public:
};
// dialog "insert region"
-class SwInsertSectionTabPage : public SfxTabPage
+class SwInsertSectionTabPage final : public SfxTabPage
{
OUString m_sFileName;
OUString m_sFilterName;
@@ -205,7 +205,7 @@ public:
const SfxItemSet* rAttrSet);
};
-class SwSectionIndentTabPage : public SfxTabPage
+class SwSectionIndentTabPage final : public SfxTabPage
{
SvxParaPrevWindow m_aPreviewWin;
std::unique_ptr<weld::MetricSpinButton> m_xBeforeMF;
@@ -225,12 +225,11 @@ public:
void SetWrtShell(SwWrtShell const & rSh);
};
-class SwInsertSectionTabDialog : public SfxTabDialogController
+class SwInsertSectionTabDialog final : public SfxTabDialogController
{
SwWrtShell& rWrtSh;
std::unique_ptr<SwSectionData> m_pSectionData;
-protected:
virtual void PageCreated(const OString& rId, SfxTabPage &rPage) override;
virtual short Ok() override;
public:
@@ -241,11 +240,10 @@ public:
SwSectionData * GetSectionData() { return m_pSectionData.get(); }
};
-class SwSectionPropertyTabDialog : public SfxTabDialogController
+class SwSectionPropertyTabDialog final : public SfxTabDialogController
{
SwWrtShell& rWrtSh;
-protected:
virtual void PageCreated(const OString& rId, SfxTabPage &rPage) override;
public:
SwSectionPropertyTabDialog(weld::Window* pParent, const SfxItemSet& rSet, SwWrtShell& rSh);
diff --git a/sw/source/uibase/inc/rowht.hxx b/sw/source/uibase/inc/rowht.hxx
index f1d66dbab63f..659b9ac6331a 100644
--- a/sw/source/uibase/inc/rowht.hxx
+++ b/sw/source/uibase/inc/rowht.hxx
@@ -23,7 +23,7 @@
class SwWrtShell;
-class SwTableHeightDlg : public weld::GenericDialogController
+class SwTableHeightDlg final : public weld::GenericDialogController
{
SwWrtShell& m_rSh;
diff --git a/sw/source/uibase/inc/scroll.hxx b/sw/source/uibase/inc/scroll.hxx
index 883b896a2c63..6a532b0ed28d 100644
--- a/sw/source/uibase/inc/scroll.hxx
+++ b/sw/source/uibase/inc/scroll.hxx
@@ -20,7 +20,7 @@
#include <vcl/scrbar.hxx>
-class SwScrollbar: public ScrollBar
+class SwScrollbar final : public ScrollBar
{
Size aDocSz;
bool bHori :1; // horizontal = salTrue, otherwise vertical
diff --git a/sw/source/uibase/inc/splittbl.hxx b/sw/source/uibase/inc/splittbl.hxx
index 523632ef8045..99e61f7d4075 100644
--- a/sw/source/uibase/inc/splittbl.hxx
+++ b/sw/source/uibase/inc/splittbl.hxx
@@ -24,7 +24,7 @@
class SwWrtShell;
-class SwSplitTableDlg : public weld::GenericDialogController
+class SwSplitTableDlg final : public weld::GenericDialogController
{
private:
std::unique_ptr<weld::RadioButton> m_xHorzBox;
diff --git a/sw/source/uibase/inc/srcedtw.hxx b/sw/source/uibase/inc/srcedtw.hxx
index 7a989b4bff39..51457cd7c97f 100644
--- a/sw/source/uibase/inc/srcedtw.hxx
+++ b/sw/source/uibase/inc/srcedtw.hxx
@@ -35,11 +35,10 @@ class TextEngine;
class TextView;
class DataChangedEvent;
-class TextViewOutWin : public vcl::Window
+class TextViewOutWin final : public vcl::Window
{
TextView* pTextView;
-protected:
virtual void Paint( vcl::RenderContext& rRenderContext, const tools::Rectangle& ) override;
virtual void KeyInput( const KeyEvent& rKeyEvt ) override;
virtual void MouseMove( const MouseEvent& rMEvt ) override;
@@ -56,7 +55,7 @@ public:
};
-class SwSrcEditWindow : public vcl::Window, public SfxListener
+class SwSrcEditWindow final : public vcl::Window, public SfxListener
{
private:
class ChangesListener;
@@ -92,8 +91,6 @@ private:
using Window::Invalidate;
-protected:
-
virtual void Resize() override;
virtual void DataChanged( const DataChangedEvent& ) override;
virtual void GetFocus() override;
diff --git a/sw/source/uibase/inc/srcview.hxx b/sw/source/uibase/inc/srcview.hxx
index a2e8277b9892..f58712b57e59 100644
--- a/sw/source/uibase/inc/srcview.hxx
+++ b/sw/source/uibase/inc/srcview.hxx
@@ -30,7 +30,7 @@ class SwDocShell;
class SvxSearchItem;
class SfxMedium;
-class SwSrcView: public SfxViewShell
+class SwSrcView final : public SfxViewShell
{
VclPtr<SwSrcEditWindow> aEditWin;
@@ -43,7 +43,6 @@ class SwSrcView: public SfxViewShell
// for read-only switching
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
-protected:
void StartSearchAndReplace(const SvxSearchItem& rItem,
bool bApi,
bool bRecursive = false);
diff --git a/sw/source/uibase/inc/srtdlg.hxx b/sw/source/uibase/inc/srtdlg.hxx
index 2e3a6a137088..2b6a39092f5b 100644
--- a/sw/source/uibase/inc/srtdlg.hxx
+++ b/sw/source/uibase/inc/srtdlg.hxx
@@ -25,7 +25,7 @@
class SwWrtShell;
-class SwSortDlg : public weld::GenericDialogController
+class SwSortDlg final : public weld::GenericDialogController
{
weld::Window* m_pParent;
std::unique_ptr<weld::Label> m_xColLbl;
diff --git a/sw/source/uibase/inc/swdtflvr.hxx b/sw/source/uibase/inc/swdtflvr.hxx
index e4575ad4796e..7f410739f079 100644
--- a/sw/source/uibase/inc/swdtflvr.hxx
+++ b/sw/source/uibase/inc/swdtflvr.hxx
@@ -72,7 +72,7 @@ enum class PasteTableType
PASTE_TABLE // paste table as nested table
};
-class SW_DLLPUBLIC SwTransferable : public TransferableHelper
+class SW_DLLPUBLIC SwTransferable final : public TransferableHelper
{
friend class SwView_Impl;
SfxObjectShellLock m_aDocShellRef;
@@ -155,7 +155,6 @@ class SW_DLLPUBLIC SwTransferable : public TransferableHelper
SwTransferable( const SwTransferable& ) = delete;
SwTransferable& operator=( const SwTransferable& ) = delete;
-protected:
virtual void AddSupportedFormats() override;
virtual bool GetData( const css::datatransfer::DataFlavor& rFlavor, const OUString& rDestDoc ) override;
virtual bool WriteObject( tools::SvRef<SotTempStream>& rxOStm,
diff --git a/sw/source/uibase/inc/swmodalredlineacceptdlg.hxx b/sw/source/uibase/inc/swmodalredlineacceptdlg.hxx
index 450380b33c2c..00d4e1e028f1 100644
--- a/sw/source/uibase/inc/swmodalredlineacceptdlg.hxx
+++ b/sw/source/uibase/inc/swmodalredlineacceptdlg.hxx
@@ -22,7 +22,7 @@
class SwRedlineAcceptDlg;
-class SwModalRedlineAcceptDlg : public SfxDialogController
+class SwModalRedlineAcceptDlg final : public SfxDialogController
{
std::unique_ptr<weld::Container> m_xContentArea;
std::unique_ptr<SwRedlineAcceptDlg> m_xImplDlg;
diff --git a/sw/source/uibase/inc/swrenamexnameddlg.hxx b/sw/source/uibase/inc/swrenamexnameddlg.hxx
index fee64c7d6681..bb8333d3fb7e 100644
--- a/sw/source/uibase/inc/swrenamexnameddlg.hxx
+++ b/sw/source/uibase/inc/swrenamexnameddlg.hxx
@@ -23,7 +23,7 @@
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/container/XNamed.hpp>
-class SwRenameXNamedDlg : public weld::GenericDialogController
+class SwRenameXNamedDlg final : public weld::GenericDialogController
{
css::uno::Reference< css::container::XNamed > & xNamed;
css::uno::Reference< css::container::XNameAccess > & xNameAccess;
diff --git a/sw/source/uibase/inc/swuiccoll.hxx b/sw/source/uibase/inc/swuiccoll.hxx
index 86d24b9138c2..80adad95fe73 100644
--- a/sw/source/uibase/inc/swuiccoll.hxx
+++ b/sw/source/uibase/inc/swuiccoll.hxx
@@ -26,7 +26,7 @@
class SwWrtShell;
class SwFormat;
-class SwCondCollPage : public SfxTabPage
+class SwCondCollPage final : public SfxTabPage
{
std::vector<OUString> m_aStrArr;
diff --git a/sw/source/uibase/inc/swuicnttab.hxx b/sw/source/uibase/inc/swuicnttab.hxx
index 5afa438eb5a1..8d3fc168da2f 100644
--- a/sw/source/uibase/inc/swuicnttab.hxx
+++ b/sw/source/uibase/inc/swuicnttab.hxx
@@ -52,7 +52,7 @@ struct SwIndexSections_Impl
css::uno::Reference< css::text::XDocumentIndex > xDocumentIndex;
};
-class SwMultiTOXTabDialog : public SfxTabDialogController
+class SwMultiTOXTabDialog final : public SfxTabDialogController
{
std::unique_ptr<SwTOXMgr> m_pMgr;
SwWrtShell& m_rWrtShell;
@@ -114,7 +114,7 @@ public:
static bool IsNoNum(SwWrtShell& rSh, const OUString& rName);
};
-class SwTOXSelectTabPage : public SfxTabPage
+class SwTOXSelectTabPage final : public SfxTabPage
{
std::unique_ptr<IndexEntryResource> pIndexRes;
@@ -301,7 +301,7 @@ private:
sal_uInt32 GetControlIndex(FormTokenType eType) const;
};
-class SwTOXEntryTabPage : public SfxTabPage
+class SwTOXEntryTabPage final : public SfxTabPage
{
OUString sDelimStr;
OUString sLevelStr;
@@ -399,7 +399,7 @@ public:
void SetFocus2theAllBtn();
};
-class SwTOXStylesTabPage : public SfxTabPage
+class SwTOXStylesTabPage final : public SfxTabPage
{
std::unique_ptr<SwForm> m_pCurrentForm;
diff --git a/sw/source/uibase/inc/swuiidxmrk.hxx b/sw/source/uibase/inc/swuiidxmrk.hxx
index 617425c6def8..1c4a38e0fcf3 100644
--- a/sw/source/uibase/inc/swuiidxmrk.hxx
+++ b/sw/source/uibase/inc/swuiidxmrk.hxx
@@ -133,7 +133,7 @@ public:
bool IsTOXType(const OUString& rName) { return m_xTypeDCB->find_text(rName) != -1; }
};
-class SwIndexMarkFloatDlg : public SfxModelessDialogController
+class SwIndexMarkFloatDlg final : public SfxModelessDialogController
{
SwIndexMarkPane m_aContent;
@@ -147,7 +147,7 @@ public:
void ReInitDlg(SwWrtShell& rWrtShell);
};
-class SwIndexMarkModalDlg : public SfxDialogController
+class SwIndexMarkModalDlg final : public SfxDialogController
{
SwIndexMarkPane m_aContent;
public:
@@ -207,7 +207,7 @@ public:
void ReInitDlg(SwWrtShell& rWrtShell);
};
-class SwAuthMarkFloatDlg : public SfxModelessDialogController
+class SwAuthMarkFloatDlg final : public SfxModelessDialogController
{
SwAuthorMarkPane m_aContent;
virtual void Activate() override;
@@ -220,7 +220,7 @@ public:
void ReInitDlg(SwWrtShell& rWrtShell);
};
-class SwAuthMarkModalDlg : public SfxDialogController
+class SwAuthMarkModalDlg final : public SfxDialogController
{
SwAuthorMarkPane m_aContent;
diff --git a/sw/source/uibase/inc/swuipardlg.hxx b/sw/source/uibase/inc/swuipardlg.hxx
index bd282a470b20..de5e83828a91 100644
--- a/sw/source/uibase/inc/swuipardlg.hxx
+++ b/sw/source/uibase/inc/swuipardlg.hxx
@@ -23,7 +23,7 @@
#include <sfx2/tabdlg.hxx>
-class SwParaDlg: public SfxTabDialogController
+class SwParaDlg final : public SfxTabDialogController
{
SwView& rView;
bool bDrawParaDlg;
diff --git a/sw/source/uibase/inc/swwrtshitem.hxx b/sw/source/uibase/inc/swwrtshitem.hxx
index 45be074db906..cae378413ded 100644
--- a/sw/source/uibase/inc/swwrtshitem.hxx
+++ b/sw/source/uibase/inc/swwrtshitem.hxx
@@ -23,7 +23,7 @@
class SwWrtShell;
-class SW_DLLPUBLIC SwWrtShellItem: public SfxPoolItem
+class SW_DLLPUBLIC SwWrtShellItem final : public SfxPoolItem
{
SwWrtShell* pWrtSh;
diff --git a/sw/source/uibase/inc/syncbtn.hxx b/sw/source/uibase/inc/syncbtn.hxx
index 43ae7ac43f34..e100edc2eff1 100644
--- a/sw/source/uibase/inc/syncbtn.hxx
+++ b/sw/source/uibase/inc/syncbtn.hxx
@@ -22,7 +22,7 @@
#include <sfx2/basedlgs.hxx>
#include <sfx2/childwin.hxx>
-class SwSyncBtnDlg : public SfxModelessDialogController
+class SwSyncBtnDlg final : public SfxModelessDialogController
{
std::unique_ptr<weld::Button> m_xSyncBtn;
@@ -33,7 +33,7 @@ public:
virtual ~SwSyncBtnDlg() override;
};
-class SwSyncChildWin : public SfxChildWindow
+class SwSyncChildWin final : public SfxChildWindow
{
public:
SwSyncChildWin(vcl::Window*,
diff --git a/sw/source/uibase/inc/tabledlg.hxx b/sw/source/uibase/inc/tabledlg.hxx
index 1b0dd0917b18..0edb8efed3cb 100644
--- a/sw/source/uibase/inc/tabledlg.hxx
+++ b/sw/source/uibase/inc/tabledlg.hxx
@@ -25,7 +25,7 @@ class SwWrtShell;
struct TColumn;
// table dialog
-class SwTableTabDlg : public SfxTabDialogController
+class SwTableTabDlg final : public SfxTabDialogController
{
SwWrtShell* pShell;
diff --git a/sw/source/uibase/inc/tautofmt.hxx b/sw/source/uibase/inc/tautofmt.hxx
index f5ea72206dad..4c03bd981d92 100644
--- a/sw/source/uibase/inc/tautofmt.hxx
+++ b/sw/source/uibase/inc/tautofmt.hxx
@@ -33,7 +33,7 @@ class SwTableAutoFormat;
class SwTableAutoFormatTable;
class SwWrtShell;
-class SwAutoFormatDlg : public SfxDialogController
+class SwAutoFormatDlg final : public SfxDialogController
{
OUString m_aStrTitle;
OUString m_aStrLabel;
diff --git a/sw/source/uibase/inc/tblnumfm.hxx b/sw/source/uibase/inc/tblnumfm.hxx
index 3d0eee08c6ea..8e0f32f3eabb 100644
--- a/sw/source/uibase/inc/tblnumfm.hxx
+++ b/sw/source/uibase/inc/tblnumfm.hxx
@@ -27,7 +27,7 @@ class Window;
}
class SfxItemSet;
-class SwNumFormatDlg : public SfxSingleTabDialogController
+class SwNumFormatDlg final : public SfxSingleTabDialogController
{
public:
SwNumFormatDlg(weld::Widget* pParent, const SfxItemSet& rSet);
diff --git a/sw/source/uibase/inc/titlepage.hxx b/sw/source/uibase/inc/titlepage.hxx
index c37def2e3e41..35a97c13041f 100644
--- a/sw/source/uibase/inc/titlepage.hxx
+++ b/sw/source/uibase/inc/titlepage.hxx
@@ -21,7 +21,7 @@ class Window;
class SwWrtShell;
class SwPageDesc;
-class SwTitlePageDlg : public SfxDialogController
+class SwTitlePageDlg final : public SfxDialogController
{
private:
SwWrtShell& mrSh;
diff --git a/sw/source/uibase/inc/tmpdlg.hxx b/sw/source/uibase/inc/tmpdlg.hxx
index 95682aaa07e5..e77b928bff19 100644
--- a/sw/source/uibase/inc/tmpdlg.hxx
+++ b/sw/source/uibase/inc/tmpdlg.hxx
@@ -26,7 +26,7 @@ class SfxItemSet;
class SwWrtShell;
// the tab dialog carrier of TabPages
-class SwTemplateDlgController : public SfxStyleDialogController
+class SwTemplateDlgController final : public SfxStyleDialogController
{
SfxStyleFamily nType;
diff --git a/sw/source/uibase/inc/tmplctrl.hxx b/sw/source/uibase/inc/tmplctrl.hxx
index cf089fae618d..dfd0af308625 100644
--- a/sw/source/uibase/inc/tmplctrl.hxx
+++ b/sw/source/uibase/inc/tmplctrl.hxx
@@ -21,9 +21,8 @@
#include <sfx2/stbitem.hxx>
-class SwTemplateControl : public SfxStatusBarControl
+class SwTemplateControl final : public SfxStatusBarControl
{
-protected:
virtual void Command(const CommandEvent& rCEvt) override;
public:
diff --git a/sw/source/uibase/inc/uiborder.hxx b/sw/source/uibase/inc/uiborder.hxx
index 8820a769b5c9..e0b98570dc26 100644
--- a/sw/source/uibase/inc/uiborder.hxx
+++ b/sw/source/uibase/inc/uiborder.hxx
@@ -22,7 +22,7 @@
#include <sfx2/basedlgs.hxx>
#include <svx/flagsdef.hxx>
-class SwBorderDlg : public SfxSingleTabDialogController
+class SwBorderDlg final : public SfxSingleTabDialogController
{
public:
// nType may be:
diff --git a/sw/source/uibase/inc/uiitems.hxx b/sw/source/uibase/inc/uiitems.hxx
index 629013cf32b8..c108c9e915c3 100644
--- a/sw/source/uibase/inc/uiitems.hxx
+++ b/sw/source/uibase/inc/uiitems.hxx
@@ -29,7 +29,7 @@ class IntlWrapper;
class SwPaM;
// container for FootNote
-class SW_DLLPUBLIC SwPageFootnoteInfoItem : public SfxPoolItem
+class SW_DLLPUBLIC SwPageFootnoteInfoItem final : public SfxPoolItem
{
SwPageFootnoteInfo aFootnoteInfo;
@@ -58,7 +58,7 @@ public:
const SwPageFootnoteInfo& GetPageFootnoteInfo() const { return aFootnoteInfo; }
};
-class SW_DLLPUBLIC SwPtrItem : public SfxPoolItem
+class SW_DLLPUBLIC SwPtrItem final : public SfxPoolItem
{
void* pMisc;
@@ -71,7 +71,7 @@ public:
void* GetValue() const { return pMisc; }
};
-class SW_DLLPUBLIC SwUINumRuleItem : public SfxPoolItem
+class SW_DLLPUBLIC SwUINumRuleItem final : public SfxPoolItem
{
std::unique_ptr<SwNumRule> pRule;
@@ -90,7 +90,7 @@ public:
SwNumRule* GetNumRule() { return pRule.get(); }
};
-class SwPaMItem : public SfxPoolItem
+class SwPaMItem final : public SfxPoolItem
{
SwPaM* m_pPaM;
diff --git a/sw/source/uibase/inc/uiobject.hxx b/sw/source/uibase/inc/uiobject.hxx
index 7f6ff239be6b..248654023e32 100644
--- a/sw/source/uibase/inc/uiobject.hxx
+++ b/sw/source/uibase/inc/uiobject.hxx
@@ -19,7 +19,7 @@
#include <AnnotationWin.hxx>
-class SwEditWinUIObject : public WindowUIObject
+class SwEditWinUIObject final : public WindowUIObject
{
public:
@@ -32,8 +32,6 @@ public:
static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
-protected:
-
virtual OUString get_name() const override;
private:
@@ -43,7 +41,7 @@ private:
};
// This class handles the Comments as a UIObject to be used in UITest Framework
-class CommentUIObject : public WindowUIObject
+class CommentUIObject final : public WindowUIObject
{
VclPtr<sw::annotation::SwAnnotationWin> mxCommentUIObject;
@@ -58,13 +56,13 @@ public:
static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
-protected:
+private:
OUString get_name() const override;
};
-class PageBreakUIObject : public WindowUIObject
+class PageBreakUIObject final : public WindowUIObject
{
public:
@@ -75,12 +73,10 @@ public:
static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
-protected:
+private:
virtual OUString get_name() const override;
-private:
-
VclPtr<SwPageBreakWin> mxPageBreakUIObject;
};
diff --git a/sw/source/uibase/inc/uivwimp.hxx b/sw/source/uibase/inc/uivwimp.hxx
index ae9f3d7b3693..1b407b73e2dd 100644
--- a/sw/source/uibase/inc/uivwimp.hxx
+++ b/sw/source/uibase/inc/uivwimp.hxx
@@ -42,7 +42,7 @@ namespace com::sun::star {
}
}
-class SwScannerEventListener : public ::cppu::WeakImplHelper<
+class SwScannerEventListener final : public ::cppu::WeakImplHelper<
css::lang::XEventListener >
{
SwView* pView;
@@ -60,7 +60,7 @@ public:
};
// Clipboard EventListener
-class SwClipboardChangeListener : public ::cppu::WeakImplHelper<
+class SwClipboardChangeListener final : public ::cppu::WeakImplHelper<
css::datatransfer::clipboard::XClipboardListener >
{
SwView* pView;
diff --git a/sw/source/uibase/inc/unoatxt.hxx b/sw/source/uibase/inc/unoatxt.hxx
index dba379b2c43e..376b1dced7c5 100644
--- a/sw/source/uibase/inc/unoatxt.hxx
+++ b/sw/source/uibase/inc/unoatxt.hxx
@@ -48,7 +48,7 @@ class SwXBodyText;
typedef tools::SvRef<SwDocShell> SwDocShellRef;
#endif
-class SwXAutoTextContainer : public cppu::WeakImplHelper
+class SwXAutoTextContainer final : public cppu::WeakImplHelper
<
css::text::XAutoTextContainer2,
css::lang::XServiceInfo
@@ -56,7 +56,6 @@ class SwXAutoTextContainer : public cppu::WeakImplHelper
{
SwGlossaries *pGlossaries;
-protected:
virtual ~SwXAutoTextContainer() override; // ref-counted objects are not to be deleted from outside -> protected dtor
public:
@@ -86,7 +85,7 @@ public:
};
-class SwXAutoTextGroup : public cppu::WeakImplHelper
+class SwXAutoTextGroup final : public cppu::WeakImplHelper
<
css::text::XAutoTextGroup,
css::beans::XPropertySet,
@@ -101,7 +100,6 @@ class SwXAutoTextGroup : public cppu::WeakImplHelper
OUString sName;
OUString m_sGroupName; // prefix m_ to disambiguate from some local vars in the implementation
-protected:
virtual ~SwXAutoTextGroup() override; // ref-counted objects are not to be deleted from outside -> protected dtor
public:
@@ -239,7 +237,7 @@ public:
};
/** Implement the XNameAccess for the AutoText events */
-class SwAutoTextEventDescriptor : public SvBaseEventDescriptor
+class SwAutoTextEventDescriptor final : public SvBaseEventDescriptor
{
SwXAutoTextEntry& rAutoTextEntry;
@@ -253,7 +251,7 @@ public:
virtual OUString SAL_CALL getImplementationName() override;
-protected:
+private:
virtual void replaceByName(
const SvMacroItemId nEvent, /// item ID of event
diff --git a/sw/source/uibase/inc/unomailmerge.hxx b/sw/source/uibase/inc/unomailmerge.hxx
index 2b35f7cd3a13..325c992e43fd 100644
--- a/sw/source/uibase/inc/unomailmerge.hxx
+++ b/sw/source/uibase/inc/unomailmerge.hxx
@@ -62,7 +62,7 @@ typedef cppu::OMultiTypeInterfaceContainerHelperVar<sal_Int32>
class SwDBManager;
class MailMergeExecuteFinalizer;
-class SwXMailMerge :
+class SwXMailMerge final :
public cppu::WeakImplHelper
<
css::task::XJob,
@@ -128,7 +128,7 @@ class SwXMailMerge :
SwXMailMerge( const SwXMailMerge & ) = delete;
SwXMailMerge & operator = ( const SwXMailMerge & ) = delete;
-protected:
+
virtual ~SwXMailMerge() override;
public:
SwXMailMerge();
diff --git a/sw/source/uibase/inc/unotools.hxx b/sw/source/uibase/inc/unotools.hxx
index c5d45ed3a6ef..4e56f9f8be5f 100644
--- a/sw/source/uibase/inc/unotools.hxx
+++ b/sw/source/uibase/inc/unotools.hxx
@@ -36,7 +36,7 @@
class SwView;
-class SW_DLLPUBLIC SwOneExampleFrame : public weld::CustomWidgetController
+class SW_DLLPUBLIC SwOneExampleFrame final : public weld::CustomWidgetController
{
ScopedVclPtr<VirtualDevice> m_xVirDev;
css::uno::Reference< css::frame::XModel > m_xModel;
diff --git a/sw/source/uibase/inc/usrpref.hxx b/sw/source/uibase/inc/usrpref.hxx
index 41ba99b6c988..e93d6a050d06 100644
--- a/sw/source/uibase/inc/usrpref.hxx
+++ b/sw/source/uibase/inc/usrpref.hxx
@@ -27,7 +27,7 @@
class SwMasterUsrPref;
-class SwContentViewConfig : public utl::ConfigItem
+class SwContentViewConfig final : public utl::ConfigItem
{
private:
SwMasterUsrPref& m_rParent;
@@ -48,7 +48,7 @@ public:
using ConfigItem::SetModified;
};
-class SwLayoutViewConfig : public utl::ConfigItem
+class SwLayoutViewConfig final : public utl::ConfigItem
{
private:
SwMasterUsrPref& m_rParent;
@@ -67,7 +67,7 @@ public:
using ConfigItem::SetModified;
};
-class SwGridConfig : public utl::ConfigItem
+class SwGridConfig final : public utl::ConfigItem
{
private:
SwMasterUsrPref& m_rParent;
@@ -85,7 +85,7 @@ public:
using ConfigItem::SetModified;
};
-class SwCursorConfig : public utl::ConfigItem
+class SwCursorConfig final : public utl::ConfigItem
{
private:
SwMasterUsrPref& m_rParent;
@@ -103,7 +103,7 @@ public:
using ConfigItem::SetModified;
};
-class SwWebColorConfig : public utl::ConfigItem
+class SwWebColorConfig final : public utl::ConfigItem
{
private:
SwMasterUsrPref& m_rParent;
diff --git a/sw/source/uibase/inc/viewlayoutctrl.hxx b/sw/source/uibase/inc/viewlayoutctrl.hxx
index b531ef4f21ae..716b5fdbfbf5 100644
--- a/sw/source/uibase/inc/viewlayoutctrl.hxx
+++ b/sw/source/uibase/inc/viewlayoutctrl.hxx
@@ -22,7 +22,7 @@
#include <sfx2/stbitem.hxx>
#include <memory>
-class SwViewLayoutControl : public SfxStatusBarControl
+class SwViewLayoutControl final : public SfxStatusBarControl
{
private:
diff --git a/sw/source/uibase/inc/watermarkdialog.hxx b/sw/source/uibase/inc/watermarkdialog.hxx
index dff87a792a57..57281a4d3faa 100644
--- a/sw/source/uibase/inc/watermarkdialog.hxx
+++ b/sw/source/uibase/inc/watermarkdialog.hxx
@@ -14,7 +14,7 @@
#include <svx/colorbox.hxx>
#include <sfx2/basedlgs.hxx>
-class SwWatermarkDialog : public SfxDialogController
+class SwWatermarkDialog final : public SfxDialogController
{
public:
SwWatermarkDialog(weld::Window* pParent, SfxBindings& rBindings);
diff --git a/sw/source/uibase/inc/wordcountctrl.hxx b/sw/source/uibase/inc/wordcountctrl.hxx
index d8ecc4a5963d..2079729741e9 100644
--- a/sw/source/uibase/inc/wordcountctrl.hxx
+++ b/sw/source/uibase/inc/wordcountctrl.hxx
@@ -19,7 +19,7 @@ Word count status bar control for Writer.
logic whatsoever. The actual updating of the word count string happens in
SwView::StateStatusLine (see sw/source/ui/uiview/view2.cxx).
*/
-class SwWordCountStatusBarControl : public SfxStatusBarControl
+class SwWordCountStatusBarControl final : public SfxStatusBarControl
{
public:
SFX_DECL_STATUSBAR_CONTROL();
diff --git a/sw/source/uibase/inc/wordcountdialog.hxx b/sw/source/uibase/inc/wordcountdialog.hxx
index dafc87ea0913..653a04e6bfeb 100644
--- a/sw/source/uibase/inc/wordcountdialog.hxx
+++ b/sw/source/uibase/inc/wordcountdialog.hxx
@@ -23,7 +23,7 @@ struct SwDocStat;
#include <sfx2/childwin.hxx>
#include <swabstdlg.hxx>
-class SwWordCountFloatDlg : public SfxModelessDialogController
+class SwWordCountFloatDlg final : public SfxModelessDialogController
{
void SetValues(const SwDocStat& rCurrent, const SwDocStat& rDoc);
void showCJK(bool bShowCJK);
diff --git a/sw/source/uibase/inc/workctrl.hxx b/sw/source/uibase/inc/workctrl.hxx
index 7f4d93a4afae..1ffa50ead702 100644
--- a/sw/source/uibase/inc/workctrl.hxx
+++ b/sw/source/uibase/inc/workctrl.hxx
@@ -51,7 +51,7 @@ class SwView;
#define NID_FIELD_BYTYPE 20020
#define NID_COUNT 21
-class SwTbxAutoTextCtrl : public SfxToolBoxControl
+class SwTbxAutoTextCtrl final : public SfxToolBoxControl
{
public:
SFX_DECL_TOOLBOX_CONTROL();
@@ -67,7 +67,7 @@ public:
DECL_STATIC_LINK(SwTbxAutoTextCtrl, PopupHdl, Menu*, bool);
};
-class SwPreviewZoomControl : public SfxToolBoxControl
+class SwPreviewZoomControl final : public SfxToolBoxControl
{
public:
SFX_DECL_TOOLBOX_CONTROL();
@@ -82,7 +82,7 @@ public:
virtual VclPtr<InterimItemWindow> CreateItemWindow( vcl::Window *pParent ) override;
};
-class SwJumpToSpecificPageControl : public SfxToolBoxControl
+class SwJumpToSpecificPageControl final : public SfxToolBoxControl
{
public:
SFX_DECL_TOOLBOX_CONTROL();
diff --git a/sw/source/uibase/inc/wrap.hxx b/sw/source/uibase/inc/wrap.hxx
index 6588bd359953..7ce99b1696d3 100644
--- a/sw/source/uibase/inc/wrap.hxx
+++ b/sw/source/uibase/inc/wrap.hxx
@@ -27,14 +27,14 @@ namespace vcl { class Window; }
class SfxItemSet;
class SwWrtShell;
-class SwWrapDlg : public SfxSingleTabDialogController
+class SwWrapDlg final : public SfxSingleTabDialogController
{
public:
SwWrapDlg(weld::Window* pParent, SfxItemSet& rSet, SwWrtShell* pSh, bool bDrawMode);
};
// circulation TabPage
-class SwWrapTabPage: public SfxTabPage
+class SwWrapTabPage final : public SfxTabPage
{
RndStdIds m_nAnchorId;
sal_uInt16 m_nHtmlMode;
diff --git a/sw/source/uibase/inc/wrtsh.hxx b/sw/source/uibase/inc/wrtsh.hxx
index 96c7cec3b31a..727d4cfb64c9 100644
--- a/sw/source/uibase/inc/wrtsh.hxx
+++ b/sw/source/uibase/inc/wrtsh.hxx
@@ -90,7 +90,7 @@ namespace o3tl {
Eg. the Insert() method will take the current cursor position, insert the
string, and take care of undo etc.
*/
-class SW_DLLPUBLIC SwWrtShell: public SwFEShell
+class SW_DLLPUBLIC SwWrtShell final : public SwFEShell
{
private:
using SwCursorShell::Left;
diff --git a/sw/source/uibase/inc/zoomctrl.hxx b/sw/source/uibase/inc/zoomctrl.hxx
index 02d89b0dc5bb..38119e0b5a68 100644
--- a/sw/source/uibase/inc/zoomctrl.hxx
+++ b/sw/source/uibase/inc/zoomctrl.hxx
@@ -21,7 +21,7 @@
#include <svx/zoomctrl.hxx>
-class SwZoomControl : public SvxZoomStatusBarControl
+class SwZoomControl final : public SvxZoomStatusBarControl
{
private:
OUString sPreviewZoom;