summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-11-03 09:49:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-11-03 11:05:02 +0100
commit8a4bcae71053b2db33d80036a0707edbe1ddb270 (patch)
tree554b01fa57435fbe836e66d90012b10562680dfa
parent68cea95423818f6ae19b735e2029284c5fc9397b (diff)
loplugin:finalclasses
Change-Id: I80ac98249f8ef6b24939de59e32eda4fa2e79fba Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124631 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--sd/inc/Annotation.hxx2
-rw-r--r--sd/inc/CustomAnimationEffect.hxx4
-rw-r--r--sd/source/ui/inc/AccessibleOutlineEditSource.hxx2
-rw-r--r--sd/source/ui/inc/RemoteServer.hxx2
-rw-r--r--sd/source/ui/inc/SdUnoOutlineView.hxx2
-rw-r--r--sd/source/ui/inc/SdUnoSlideView.hxx2
-rw-r--r--sd/source/ui/inc/SlideSorterViewShell.hxx5
-rw-r--r--sd/source/ui/inc/SlideSorterViewShellBase.hxx2
-rw-r--r--sd/source/ui/inc/SlideTransitionPane.hxx2
-rw-r--r--sd/source/ui/inc/SpellDialogChildWindow.hxx5
-rw-r--r--sd/source/ui/inc/TabControl.hxx2
-rw-r--r--sd/source/ui/inc/TableDesignPane.hxx4
-rw-r--r--sd/source/ui/inc/TemplateScanner.hxx2
-rw-r--r--sd/source/ui/inc/TextObjectBar.hxx2
-rw-r--r--sd/source/ui/inc/ViewTabBar.hxx4
-rw-r--r--sd/source/ui/inc/WindowUpdater.hxx2
-rw-r--r--sd/source/ui/inc/prltempl.hxx2
-rw-r--r--sd/source/ui/inc/prntopts.hxx2
-rw-r--r--sd/source/ui/inc/pubdlg.hxx2
-rw-r--r--sd/source/ui/inc/scalectrl.hxx4
-rw-r--r--sd/source/ui/inc/sdpreslt.hxx2
-rw-r--r--sd/source/ui/inc/sdtreelb.hxx4
-rw-r--r--sd/source/ui/inc/sdundogr.hxx2
-rw-r--r--sd/source/ui/inc/slideshow.hxx2
-rw-r--r--sd/source/ui/inc/tabtempl.hxx2
-rw-r--r--sd/source/ui/inc/tmplctrl.hxx5
-rw-r--r--sd/source/ui/inc/tpaction.hxx4
-rw-r--r--sd/source/ui/inc/tpoption.hxx7
-rw-r--r--sd/source/ui/inc/uiobject.hxx5
-rw-r--r--sd/source/ui/inc/unchss.hxx2
-rw-r--r--sd/source/ui/inc/undoback.hxx2
-rw-r--r--sd/source/ui/inc/undoheaderfooter.hxx2
-rw-r--r--sd/source/ui/inc/undolayer.hxx2
-rw-r--r--sd/source/ui/inc/undopage.hxx6
-rw-r--r--sd/source/ui/inc/unmodpg.hxx4
-rw-r--r--sd/source/ui/inc/unmovss.hxx2
-rw-r--r--sd/source/ui/inc/unoaprms.hxx2
-rw-r--r--sd/source/ui/inc/unomodel.hxx2
-rw-r--r--sd/source/ui/inc/unopage.hxx2
-rw-r--r--sd/source/ui/inc/unosrch.hxx3
-rw-r--r--sd/source/ui/inc/unprlout.hxx2
-rw-r--r--sd/source/ui/inc/vectdlg.hxx2
42 files changed, 57 insertions, 63 deletions
diff --git a/sd/inc/Annotation.hxx b/sd/inc/Annotation.hxx
index ca3ac088d0d0..707f2cdc8e78 100644
--- a/sd/inc/Annotation.hxx
+++ b/sd/inc/Annotation.hxx
@@ -73,7 +73,7 @@ struct SD_DLLPUBLIC CustomAnnotationMarker
std::vector<basegfx::B2DPolygon> maPolygons;
};
-class Annotation : private ::cppu::BaseMutex,
+class Annotation final : private ::cppu::BaseMutex,
public ::cppu::WeakComponentImplHelper<css::office::XAnnotation>,
public ::cppu::PropertySetMixin<css::office::XAnnotation>
{
diff --git a/sd/inc/CustomAnimationEffect.hxx b/sd/inc/CustomAnimationEffect.hxx
index eebda95f01b8..67445cf0d854 100644
--- a/sd/inc/CustomAnimationEffect.hxx
+++ b/sd/inc/CustomAnimationEffect.hxx
@@ -367,7 +367,7 @@ private:
typedef std::shared_ptr< InteractiveSequence > InteractiveSequencePtr;
typedef std::vector< InteractiveSequencePtr > InteractiveSequenceVector;
-class SAL_DLLPUBLIC_RTTI MainSequence : public EffectSequenceHelper, public ISequenceListener
+class SD_DLLPUBLIC MainSequence final : public EffectSequenceHelper, public ISequenceListener
{
friend class UndoAnimation;
friend class MainSequenceRebuildGuard;
@@ -407,7 +407,7 @@ public:
virtual sal_Int32 getOffsetFromEffect( const CustomAnimationEffectPtr& xEffect ) const override;
virtual CustomAnimationEffectPtr getEffectFromOffset( sal_Int32 nOffset ) const override;
-protected:
+private:
/** permits rebuilds until unlockRebuilds() is called. All rebuild calls during a locked sequence are
process after unlockRebuilds() call. lockRebuilds() and unlockRebuilds() calls can be nested. */
void lockRebuilds();
diff --git a/sd/source/ui/inc/AccessibleOutlineEditSource.hxx b/sd/source/ui/inc/AccessibleOutlineEditSource.hxx
index 4b1a5903104a..d13d27e97c93 100644
--- a/sd/source/ui/inc/AccessibleOutlineEditSource.hxx
+++ b/sd/source/ui/inc/AccessibleOutlineEditSource.hxx
@@ -42,7 +42,7 @@ namespace accessibility
@see SvxEditSource
@see SvxViewForwarder
*/
- class AccessibleOutlineEditSource : public SvxEditSource, public SvxViewForwarder, public SfxBroadcaster, public SfxListener
+ class AccessibleOutlineEditSource final : public SvxEditSource, public SvxViewForwarder, public SfxBroadcaster, public SfxListener
{
public:
/// Create an SvxEditSource interface for the given Outliner
diff --git a/sd/source/ui/inc/RemoteServer.hxx b/sd/source/ui/inc/RemoteServer.hxx
index e676087899d9..965bf7a276c5 100644
--- a/sd/source/ui/inc/RemoteServer.hxx
+++ b/sd/source/ui/inc/RemoteServer.hxx
@@ -46,7 +46,7 @@ namespace sd
struct ClientInfoInternal;
- class RemoteServer : public salhelper::Thread
+ class RemoteServer final : public salhelper::Thread
{
public:
// Internal setup
diff --git a/sd/source/ui/inc/SdUnoOutlineView.hxx b/sd/source/ui/inc/SdUnoOutlineView.hxx
index ce51a5916486..2789cabee6ec 100644
--- a/sd/source/ui/inc/SdUnoOutlineView.hxx
+++ b/sd/source/ui/inc/SdUnoOutlineView.hxx
@@ -28,7 +28,7 @@ class OutlineViewShell;
/** This class implements the OutlineViewShell specific part of the controller.
*/
-class SdUnoOutlineView
+class SdUnoOutlineView final
: private cppu::BaseMutex,
public DrawSubControllerInterfaceBase
{
diff --git a/sd/source/ui/inc/SdUnoSlideView.hxx b/sd/source/ui/inc/SdUnoSlideView.hxx
index ce45c447cb99..7ca40a1abed8 100644
--- a/sd/source/ui/inc/SdUnoSlideView.hxx
+++ b/sd/source/ui/inc/SdUnoSlideView.hxx
@@ -30,7 +30,7 @@ namespace sd {
/** This class implements the SlideSorter specific part of the
controller.
*/
-class SdUnoSlideView
+class SdUnoSlideView final
: private cppu::BaseMutex,
public DrawSubControllerInterfaceBase
{
diff --git a/sd/source/ui/inc/SlideSorterViewShell.hxx b/sd/source/ui/inc/SlideSorterViewShell.hxx
index 91c0d4253926..64808d4343a7 100644
--- a/sd/source/ui/inc/SlideSorterViewShell.hxx
+++ b/sd/source/ui/inc/SlideSorterViewShell.hxx
@@ -32,7 +32,7 @@ namespace sd::slidesorter {
class SlideSorter;
-class SAL_DLLPUBLIC_RTTI SlideSorterViewShell
+class SAL_DLLPUBLIC_RTTI SlideSorterViewShell final
: public ViewShell
{
friend class controller::SlotManager;
@@ -190,14 +190,13 @@ public:
*/
virtual bool RelocateToParentWindow (vcl::Window* pParentWindow) override;
-protected:
+private:
/** Override this method to handle a missing tool bar correctly.
This is the case when the slide sorter is not the main view shell.
*/
virtual SfxUndoManager* ImpGetUndoManager() const override;
-private:
std::shared_ptr<SlideSorter> mpSlideSorter;
bool mbIsArrangeGUIElementsPending;
diff --git a/sd/source/ui/inc/SlideSorterViewShellBase.hxx b/sd/source/ui/inc/SlideSorterViewShellBase.hxx
index 8db2ccb41f17..e1ca1b57b9d2 100644
--- a/sd/source/ui/inc/SlideSorterViewShellBase.hxx
+++ b/sd/source/ui/inc/SlideSorterViewShellBase.hxx
@@ -26,7 +26,7 @@ namespace sd
/** This class exists to be able to register a factory that creates a
slide sorter view shell as default.
*/
-class SlideSorterViewShellBase : public ImpressViewShellBase
+class SlideSorterViewShellBase final : public ImpressViewShellBase
{
public:
SFX_DECL_VIEWFACTORY(SlideSorterViewShellBase);
diff --git a/sd/source/ui/inc/SlideTransitionPane.hxx b/sd/source/ui/inc/SlideTransitionPane.hxx
index b10fef8a26c0..2b6ea8f93c8b 100644
--- a/sd/source/ui/inc/SlideTransitionPane.hxx
+++ b/sd/source/ui/inc/SlideTransitionPane.hxx
@@ -45,7 +45,7 @@ namespace impl
struct TransitionEffect;
}
-class SlideTransitionPane : public PanelLayout
+class SlideTransitionPane final : public PanelLayout
, public sfx2::sidebar::ILayoutableWindow
{
public:
diff --git a/sd/source/ui/inc/SpellDialogChildWindow.hxx b/sd/source/ui/inc/SpellDialogChildWindow.hxx
index cacea3be5611..3d2163a7e018 100644
--- a/sd/source/ui/inc/SpellDialogChildWindow.hxx
+++ b/sd/source/ui/inc/SpellDialogChildWindow.hxx
@@ -30,7 +30,7 @@ namespace sd
provides Draw and Impress specific implementations of
GetNextWrongSentence() and ApplyChangedSentence().
*/
-class SpellDialogChildWindow : public svx::SpellDialogChildWindow, public SfxListener
+class SpellDialogChildWindow final : public svx::SpellDialogChildWindow, public SfxListener
{
public:
SpellDialogChildWindow(vcl::Window* pParent, sal_uInt16 nId, SfxBindings* pBindings,
@@ -47,7 +47,7 @@ public:
SFX_DECL_CHILDWINDOW_WITHID(SpellDialogChildWindow);
-protected:
+private:
/** Iterate over the sentences in all text shapes and stop at the
next sentence with spelling errors. While doing so the view
mode may be changed and text shapes are set into edit mode.
@@ -61,7 +61,6 @@ protected:
virtual void GetFocus() override;
virtual void LoseFocus() override;
-private:
/** This outliner is used to do the main work of iterating over a
document and finding sentences with spelling errors.
*/
diff --git a/sd/source/ui/inc/TabControl.hxx b/sd/source/ui/inc/TabControl.hxx
index 41ab8562e0a9..5e5eba7bbf09 100644
--- a/sd/source/ui/inc/TabControl.hxx
+++ b/sd/source/ui/inc/TabControl.hxx
@@ -78,7 +78,7 @@ private:
virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ) override;
// nested class to implement the TransferableHelper
- class TabControlTransferable : public TransferableHelper
+ class TabControlTransferable final : public TransferableHelper
{
public:
explicit TabControlTransferable( TabControl& rParent ) :
diff --git a/sd/source/ui/inc/TableDesignPane.hxx b/sd/source/ui/inc/TableDesignPane.hxx
index a39894b1c501..042eb6137662 100644
--- a/sd/source/ui/inc/TableDesignPane.hxx
+++ b/sd/source/ui/inc/TableDesignPane.hxx
@@ -48,7 +48,7 @@ enum TableCheckBox : sal_uInt16
CB_COUNT = CB_BANDED_COLUMNS + 1
};
-class TableValueSet : public ValueSet
+class TableValueSet final : public ValueSet
{
private:
bool m_bModal;
@@ -94,7 +94,7 @@ private:
css::uno::Reference< css::container::XIndexAccess > mxTableFamily;
};
-class TableDesignPane : public PanelLayout
+class TableDesignPane final : public PanelLayout
, public sfx2::sidebar::ILayoutableWindow
{
private:
diff --git a/sd/source/ui/inc/TemplateScanner.hxx b/sd/source/ui/inc/TemplateScanner.hxx
index a9a31546af7f..034f000a6d5d 100644
--- a/sd/source/ui/inc/TemplateScanner.hxx
+++ b/sd/source/ui/inc/TemplateScanner.hxx
@@ -65,7 +65,7 @@ public:
supported format) last. When a step does not add a new template then
the value of the previous step is returned.
*/
-class TemplateScanner : public ::sd::tools::AsynchronousTask
+class TemplateScanner final : public ::sd::tools::AsynchronousTask
{
public:
/** Create a new template scanner and prepare but do not execute the scanning.
diff --git a/sd/source/ui/inc/TextObjectBar.hxx b/sd/source/ui/inc/TextObjectBar.hxx
index 90d769bde8f2..61394834fbc2 100644
--- a/sd/source/ui/inc/TextObjectBar.hxx
+++ b/sd/source/ui/inc/TextObjectBar.hxx
@@ -27,7 +27,7 @@ namespace sd {
class View;
class ViewShell;
-class TextObjectBar
+class TextObjectBar final
: public SfxShell
{
public:
diff --git a/sd/source/ui/inc/ViewTabBar.hxx b/sd/source/ui/inc/ViewTabBar.hxx
index 907db7cfe090..9fa0854d80b7 100644
--- a/sd/source/ui/inc/ViewTabBar.hxx
+++ b/sd/source/ui/inc/ViewTabBar.hxx
@@ -43,7 +43,7 @@ namespace sd {
namespace sd {
-class TabBarControl : public InterimItemWindow
+class TabBarControl final : public InterimItemWindow
{
public:
TabBarControl(vcl::Window* pParentWindow, const ::rtl::Reference<ViewTabBar>& rpViewTabBar);
@@ -69,7 +69,7 @@ typedef ::cppu::WeakComponentImplHelper <
/** Tab control for switching between views in the center pane.
*/
-class ViewTabBar
+class ViewTabBar final
: private sd::MutexOwner,
public ViewTabBarInterfaceBase
{
diff --git a/sd/source/ui/inc/WindowUpdater.hxx b/sd/source/ui/inc/WindowUpdater.hxx
index 16549338fc75..2545af79f9e9 100644
--- a/sd/source/ui/inc/WindowUpdater.hxx
+++ b/sd/source/ui/inc/WindowUpdater.hxx
@@ -48,7 +48,7 @@ namespace sd
<member>RegisterWindow()</member> method. When a document is given then
this document is reformatted when the monitored option changes.</p>
*/
-class WindowUpdater : public utl::ConfigurationListener
+class WindowUpdater final : public utl::ConfigurationListener
{
public:
explicit WindowUpdater();
diff --git a/sd/source/ui/inc/prltempl.hxx b/sd/source/ui/inc/prltempl.hxx
index 65561ce92762..efd50e4f7206 100644
--- a/sd/source/ui/inc/prltempl.hxx
+++ b/sd/source/ui/inc/prltempl.hxx
@@ -31,7 +31,7 @@ class SfxStyleSheetBasePool;
/**
* Template-Tab-Dialog
*/
-class SdPresLayoutTemplateDlg : public SfxTabDialogController
+class SdPresLayoutTemplateDlg final : public SfxTabDialogController
{
private:
const SfxObjectShell* mpDocShell;
diff --git a/sd/source/ui/inc/prntopts.hxx b/sd/source/ui/inc/prntopts.hxx
index 99bb6139cc6f..51c3a3603b44 100644
--- a/sd/source/ui/inc/prntopts.hxx
+++ b/sd/source/ui/inc/prntopts.hxx
@@ -21,7 +21,7 @@
#include <sfx2/tabdlg.hxx>
-class SdPrintOptions : public SfxTabPage
+class SdPrintOptions final : public SfxTabPage
{
friend class SdModule;
diff --git a/sd/source/ui/inc/pubdlg.hxx b/sd/source/ui/inc/pubdlg.hxx
index 22091b2c63e5..1f0b7274c668 100644
--- a/sd/source/ui/inc/pubdlg.hxx
+++ b/sd/source/ui/inc/pubdlg.hxx
@@ -47,7 +47,7 @@ template <class E> class Sequence;
// Html-Export Autopilot
// *********************************************************************
// should turn this into a wizard
-class SdPublishingDlg : public weld::GenericDialogController
+class SdPublishingDlg final : public weld::GenericDialogController
{
private:
// page 1 controls
diff --git a/sd/source/ui/inc/scalectrl.hxx b/sd/source/ui/inc/scalectrl.hxx
index 96745973f6d1..2a0ed5b28e1d 100644
--- a/sd/source/ui/inc/scalectrl.hxx
+++ b/sd/source/ui/inc/scalectrl.hxx
@@ -21,7 +21,7 @@
#include <sfx2/stbitem.hxx>
-class SdScaleControl : public SfxStatusBarControl
+class SdScaleControl final : public SfxStatusBarControl
{
public:
SdScaleControl(sal_uInt16 nSlotId, sal_uInt16 nId, StatusBar& rStb);
@@ -32,7 +32,7 @@ public:
SFX_DECL_STATUSBAR_CONTROL();
-protected:
+private:
virtual void Command(const CommandEvent& rCEvt) override;
};
diff --git a/sd/source/ui/inc/sdpreslt.hxx b/sd/source/ui/inc/sdpreslt.hxx
index a3e7eabe1da4..77187a0b3780 100644
--- a/sd/source/ui/inc/sdpreslt.hxx
+++ b/sd/source/ui/inc/sdpreslt.hxx
@@ -31,7 +31,7 @@ namespace sd {
class DrawDocShell;
}
-class SdPresLayoutDlg
+class SdPresLayoutDlg final
: public weld::GenericDialogController
{
public:
diff --git a/sd/source/ui/inc/sdtreelb.hxx b/sd/source/ui/inc/sdtreelb.hxx
index 57a98dabfb47..1d5af3bc942a 100644
--- a/sd/source/ui/inc/sdtreelb.hxx
+++ b/sd/source/ui/inc/sdtreelb.hxx
@@ -50,7 +50,7 @@ namespace svt {
class AcceleratorExecute;
}
-class SdPageObjsTLVDropTarget : public DropTargetHelper
+class SdPageObjsTLVDropTarget final : public DropTargetHelper
{
private:
weld::TreeView& m_rTreeView;
@@ -350,7 +350,7 @@ public:
}
// nested class to implement the TransferableHelper
- class SAL_DLLPRIVATE SdPageObjsTransferable : public SdTransferable
+ class SAL_DLLPRIVATE SdPageObjsTransferable final : public SdTransferable
{
public:
SdPageObjsTransferable(
diff --git a/sd/source/ui/inc/sdundogr.hxx b/sd/source/ui/inc/sdundogr.hxx
index 49d05061c587..466182faf422 100644
--- a/sd/source/ui/inc/sdundogr.hxx
+++ b/sd/source/ui/inc/sdundogr.hxx
@@ -25,7 +25,7 @@
#include <memory>
#include <vector>
-class SD_DLLPUBLIC SdUndoGroup : public SdUndoAction
+class SD_DLLPUBLIC SdUndoGroup final : public SdUndoAction
{
std::vector<std::unique_ptr<SdUndoAction>> aCtn;
public:
diff --git a/sd/source/ui/inc/slideshow.hxx b/sd/source/ui/inc/slideshow.hxx
index b6d199bdda5e..926147a724b1 100644
--- a/sd/source/ui/inc/slideshow.hxx
+++ b/sd/source/ui/inc/slideshow.hxx
@@ -76,7 +76,7 @@ enum AnimationMode
typedef ::cppu::WeakComponentImplHelper< css::presentation::XPresentation2, css::lang::XServiceInfo > SlideshowBase;
-class SlideShow : private ::cppu::BaseMutex, public SlideshowBase
+class SlideShow final : private ::cppu::BaseMutex, public SlideshowBase
{
public:
/// used by the model to create a slideshow for it
diff --git a/sd/source/ui/inc/tabtempl.hxx b/sd/source/ui/inc/tabtempl.hxx
index b177078ea41f..d32388d7bdc4 100644
--- a/sd/source/ui/inc/tabtempl.hxx
+++ b/sd/source/ui/inc/tabtempl.hxx
@@ -29,7 +29,7 @@ class SdrView;
/**
* Template-Tab-Dialog
*/
-class SdTabTemplateDlg : public SfxStyleDialogController
+class SdTabTemplateDlg final : public SfxStyleDialogController
{
private:
const SfxObjectShell& rDocShell;
diff --git a/sd/source/ui/inc/tmplctrl.hxx b/sd/source/ui/inc/tmplctrl.hxx
index 2366a8c693dc..bdf6eed86d36 100644
--- a/sd/source/ui/inc/tmplctrl.hxx
+++ b/sd/source/ui/inc/tmplctrl.hxx
@@ -20,7 +20,7 @@
#include <sfx2/stbitem.hxx>
-class SdTemplateControl : public SfxStatusBarControl
+class SdTemplateControl final : public SfxStatusBarControl
{
public:
SdTemplateControl( sal_uInt16 nSlotId, sal_uInt16 nId, StatusBar& rStb );
@@ -31,10 +31,9 @@ public:
SFX_DECL_STATUSBAR_CONTROL();
-protected:
+private:
virtual void Command( const CommandEvent& rCEvt ) override;
-private:
OUString msTemplate;
};
diff --git a/sd/source/ui/inc/tpaction.hxx b/sd/source/ui/inc/tpaction.hxx
index 22c4dd82a779..9b0b272c62df 100644
--- a/sd/source/ui/inc/tpaction.hxx
+++ b/sd/source/ui/inc/tpaction.hxx
@@ -35,7 +35,7 @@ class SdDrawDocument;
/**
* Effect-SingleTab-Dialog
*/
-class SdActionDlg : public SfxSingleTabDialogController
+class SdActionDlg final : public SfxSingleTabDialogController
{
public:
SdActionDlg(weld::Window* pParent, const SfxItemSet* pAttr, ::sd::View const * pView);
@@ -44,7 +44,7 @@ public:
/**
* Interaction-Tab-Page
*/
-class SdTPAction : public SfxTabPage
+class SdTPAction final : public SfxTabPage
{
private:
const ::sd::View* mpView;
diff --git a/sd/source/ui/inc/tpoption.hxx b/sd/source/ui/inc/tpoption.hxx
index 8844013829ef..bc101dca3490 100644
--- a/sd/source/ui/inc/tpoption.hxx
+++ b/sd/source/ui/inc/tpoption.hxx
@@ -25,7 +25,7 @@
/**
* Option-Tab-Page: Snap
*/
-class SdTpOptionsSnap : public SvxGridTabPage
+class SdTpOptionsSnap final : public SvxGridTabPage
{
public:
SdTpOptionsSnap(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
@@ -39,7 +39,7 @@ public:
/**
* Option-Tab-Page: Contents
*/
-class SdTpOptionsContents : public SfxTabPage
+class SdTpOptionsContents final : public SfxTabPage
{
private:
std::unique_ptr<weld::CheckButton> m_xCbxRuler;
@@ -60,7 +60,7 @@ public:
* Option-Tab-Page: View
*/
-class SdTpOptionsMisc : public SfxTabPage
+class SdTpOptionsMisc final : public SfxTabPage
{
friend class SdModule;
@@ -116,7 +116,6 @@ private:
*/
void UpdateCompatibilityControls();
-protected:
virtual void ActivatePage( const SfxItemSet& rSet ) override;
virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
diff --git a/sd/source/ui/inc/uiobject.hxx b/sd/source/ui/inc/uiobject.hxx
index 06cf98937a52..06cb6105fa9b 100644
--- a/sd/source/ui/inc/uiobject.hxx
+++ b/sd/source/ui/inc/uiobject.hxx
@@ -11,7 +11,7 @@
#include <vcl/uitest/uiobject.hxx>
#include "Window.hxx"
-class ImpressWindowUIObject : public WindowUIObject
+class ImpressWindowUIObject final : public WindowUIObject
{
public:
ImpressWindowUIObject(const VclPtr<sd::Window>& xWindow);
@@ -26,10 +26,9 @@ public:
static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
-protected:
+private:
virtual OUString get_name() const override;
-private:
VclPtr<sd::Window> mxWindow;
};
diff --git a/sd/source/ui/inc/unchss.hxx b/sd/source/ui/inc/unchss.hxx
index b33b53ff8a1a..7c3845f8bd0c 100644
--- a/sd/source/ui/inc/unchss.hxx
+++ b/sd/source/ui/inc/unchss.hxx
@@ -29,7 +29,7 @@ class SfxItemSet;
class SfxStyleSheet;
class SdDrawDocument;
-class StyleSheetUndoAction : public SdUndoAction
+class StyleSheetUndoAction final : public SdUndoAction
{
SfxStyleSheet* mpStyleSheet;
diff --git a/sd/source/ui/inc/undoback.hxx b/sd/source/ui/inc/undoback.hxx
index acc261f6d93d..afbb13eca461 100644
--- a/sd/source/ui/inc/undoback.hxx
+++ b/sd/source/ui/inc/undoback.hxx
@@ -30,7 +30,7 @@ class SdPage;
class SfxItemSet;
class SfxPoolItem;
-class SdBackgroundObjUndoAction : public SdUndoAction
+class SdBackgroundObjUndoAction final : public SdUndoAction
{
private:
diff --git a/sd/source/ui/inc/undoheaderfooter.hxx b/sd/source/ui/inc/undoheaderfooter.hxx
index 709f71aa838f..2c8c9c8e9938 100644
--- a/sd/source/ui/inc/undoheaderfooter.hxx
+++ b/sd/source/ui/inc/undoheaderfooter.hxx
@@ -27,7 +27,7 @@ class SdDrawDocument;
/************************************************************************/
-class SD_DLLPUBLIC SdHeaderFooterUndoAction : public SdUndoAction
+class SD_DLLPUBLIC SdHeaderFooterUndoAction final : public SdUndoAction
{
SdPage* mpPage;
diff --git a/sd/source/ui/inc/undolayer.hxx b/sd/source/ui/inc/undolayer.hxx
index 9391cbcfc17b..431f60d4f632 100644
--- a/sd/source/ui/inc/undolayer.hxx
+++ b/sd/source/ui/inc/undolayer.hxx
@@ -26,7 +26,7 @@ class SdrLayer;
/************************************************************************/
-class SdLayerModifyUndoAction : public SdUndoAction
+class SdLayerModifyUndoAction final : public SdUndoAction
{
public:
diff --git a/sd/source/ui/inc/undopage.hxx b/sd/source/ui/inc/undopage.hxx
index cbae3d06f289..87d5b5b21748 100644
--- a/sd/source/ui/inc/undopage.hxx
+++ b/sd/source/ui/inc/undopage.hxx
@@ -29,7 +29,7 @@ class SdPage;
/************************************************************************/
-class SdPageFormatUndoAction : public SdUndoAction
+class SdPageFormatUndoAction final : public SdUndoAction
{
SdPage* mpPage;
@@ -104,7 +104,7 @@ public:
/************************************************************************/
-class SdPageLRUndoAction : public SdUndoAction
+class SdPageLRUndoAction final : public SdUndoAction
{
SdPage* mpPage;
@@ -132,7 +132,7 @@ public:
/************************************************************************/
-class SdPageULUndoAction : public SdUndoAction
+class SdPageULUndoAction final : public SdUndoAction
{
SdPage* mpPage;
diff --git a/sd/source/ui/inc/unmodpg.hxx b/sd/source/ui/inc/unmodpg.hxx
index f9af2c02cb97..9248642bf377 100644
--- a/sd/source/ui/inc/unmodpg.hxx
+++ b/sd/source/ui/inc/unmodpg.hxx
@@ -26,7 +26,7 @@
class SdDrawDocument;
class SdPage;
-class ModifyPageUndoAction : public SdUndoAction
+class ModifyPageUndoAction final : public SdUndoAction
{
SdPage* mpPage;
OUString maOldName;
@@ -52,7 +52,7 @@ public:
virtual void Redo() override;
};
-class RenameLayoutTemplateUndoAction : public SdUndoAction
+class RenameLayoutTemplateUndoAction final : public SdUndoAction
{
public:
RenameLayoutTemplateUndoAction(
diff --git a/sd/source/ui/inc/unmovss.hxx b/sd/source/ui/inc/unmovss.hxx
index 9cff0e4510ee..93e87cd407b2 100644
--- a/sd/source/ui/inc/unmovss.hxx
+++ b/sd/source/ui/inc/unmovss.hxx
@@ -25,7 +25,7 @@
class SdDrawDocument;
-class SdMoveStyleSheetsUndoAction : public SdUndoAction
+class SdMoveStyleSheetsUndoAction final : public SdUndoAction
{
StyleSheetCopyResultVector maStyles;
std::vector< SdStyleSheetVector > maListOfChildLists;
diff --git a/sd/source/ui/inc/unoaprms.hxx b/sd/source/ui/inc/unoaprms.hxx
index 80bd26d8c153..9ad32766842a 100644
--- a/sd/source/ui/inc/unoaprms.hxx
+++ b/sd/source/ui/inc/unoaprms.hxx
@@ -28,7 +28,7 @@
class SdDrawDocument;
class SdrObject;
-class SdAnimationPrmsUndoAction : public SdUndoAction
+class SdAnimationPrmsUndoAction final : public SdUndoAction
{
SdrObject* pObject;
bool bOldActive;
diff --git a/sd/source/ui/inc/unomodel.hxx b/sd/source/ui/inc/unomodel.hxx
index 86b1f7a854e0..62545ec2f0c4 100644
--- a/sd/source/ui/inc/unomodel.hxx
+++ b/sd/source/ui/inc/unomodel.hxx
@@ -368,7 +368,7 @@ public:
* *
***********************************************************************/
-class SdDocLinkTargets : public ::cppu::WeakImplHelper< css::container::XNameAccess,
+class SdDocLinkTargets final : public ::cppu::WeakImplHelper< css::container::XNameAccess,
css::lang::XServiceInfo , css::lang::XComponent >
{
private:
diff --git a/sd/source/ui/inc/unopage.hxx b/sd/source/ui/inc/unopage.hxx
index a95cbc80d868..993a6634cc68 100644
--- a/sd/source/ui/inc/unopage.hxx
+++ b/sd/source/ui/inc/unopage.hxx
@@ -270,7 +270,7 @@ public:
* *
***********************************************************************/
-class SdPageLinkTargets : public ::cppu::WeakImplHelper< css::container::XNameAccess,
+class SdPageLinkTargets final : public ::cppu::WeakImplHelper< css::container::XNameAccess,
css::lang::XServiceInfo >
{
private:
diff --git a/sd/source/ui/inc/unosrch.hxx b/sd/source/ui/inc/unosrch.hxx
index 2f1df481e9ba..6dcf681cbee6 100644
--- a/sd/source/ui/inc/unosrch.hxx
+++ b/sd/source/ui/inc/unosrch.hxx
@@ -71,9 +71,8 @@ public:
/** this class holds the parameters and status of a search or replace operation performed
by class SdUnoSearchReplaceShape */
-class SdUnoSearchReplaceDescriptor : public ::cppu::WeakImplHelper< css::lang::XUnoTunnel, css::util::XReplaceDescriptor > // public css::util::XSearchDescriptor, css::beans::XPropertySet
+class SdUnoSearchReplaceDescriptor final : public ::cppu::WeakImplHelper< css::lang::XUnoTunnel, css::util::XReplaceDescriptor > // public css::util::XSearchDescriptor, css::beans::XPropertySet
{
-protected:
std::unique_ptr<SvxItemPropertySet> mpPropSet;
bool mbBackwards;
diff --git a/sd/source/ui/inc/unprlout.hxx b/sd/source/ui/inc/unprlout.hxx
index 8cb960db957f..8d75204f195f 100644
--- a/sd/source/ui/inc/unprlout.hxx
+++ b/sd/source/ui/inc/unprlout.hxx
@@ -26,7 +26,7 @@
class SdDrawDocument;
class SdPage;
-class SdPresentationLayoutUndoAction : public SdUndoAction
+class SdPresentationLayoutUndoAction final : public SdUndoAction
{
OUString aOldLayoutName;
OUString aNewLayoutName;
diff --git a/sd/source/ui/inc/vectdlg.hxx b/sd/source/ui/inc/vectdlg.hxx
index 67df42ce6707..ac7a1bfd49fe 100644
--- a/sd/source/ui/inc/vectdlg.hxx
+++ b/sd/source/ui/inc/vectdlg.hxx
@@ -32,7 +32,7 @@ class DrawDocShell;
|*
\******************************************************************************/
-class SdVectorizeDlg : public weld::GenericDialogController
+class SdVectorizeDlg final : public weld::GenericDialogController
{
::sd::DrawDocShell* m_pDocSh;
Bitmap aBmp;