[Libreoffice-commits] core.git: svx/inc svx/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jun 25 12:10:19 UTC 2021
svx/inc/AccessibleTableShape.hxx | 2
svx/inc/galbrws2.hxx | 4 -
svx/inc/galleryobjectbinarystorage.hxx | 2
svx/inc/galleryobjectxmlstorage.hxx | 2
svx/inc/sdgcoitm.hxx | 6 +-
svx/inc/sdginitm.hxx | 2
svx/inc/sdgtritm.hxx | 2
svx/inc/sdr/contact/viewcontactofsdrpage.hxx | 5 --
svx/inc/sdr/contact/viewcontactofunocontrol.hxx | 6 --
svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx | 3 -
svx/inc/sxallitm.hxx | 8 +--
svx/inc/sxcikitm.hxx | 2
svx/inc/sxlayitm.hxx | 4 -
svx/inc/sxlogitm.hxx | 4 -
svx/inc/sxmfsitm.hxx | 2
svx/inc/sxmkitm.hxx | 2
svx/inc/sxmoitm.hxx | 2
svx/inc/sxmovitm.hxx | 4 -
svx/inc/sxmtaitm.hxx | 2
svx/inc/sxoneitm.hxx | 8 +--
svx/inc/sxopitm.hxx | 4 -
svx/inc/sxreaitm.hxx | 4 -
svx/inc/sxreoitm.hxx | 4 -
svx/inc/sxrooitm.hxx | 2
svx/inc/sxsaitm.hxx | 2
svx/inc/sxsalitm.hxx | 4 -
svx/inc/sxsoitm.hxx | 4 -
svx/inc/sxtraitm.hxx | 8 +--
svx/inc/tbxcolorupdate.hxx | 4 -
svx/inc/textchainflow.hxx | 5 --
svx/source/inc/DefaultShapesPanel.hxx | 2
svx/source/inc/StylesPreviewWindow.hxx | 6 +-
svx/source/inc/cell.hxx | 11 ++--
svx/source/inc/charmapacc.hxx | 9 +--
svx/source/inc/datalistener.hxx | 4 -
svx/source/inc/datanavi.hxx | 25 +++++-----
svx/source/inc/docrecovery.hxx | 12 ++---
svx/source/inc/filtnav.hxx | 21 ++++-----
svx/source/inc/fmPropBrw.hxx | 2
svx/source/inc/fmexch.hxx | 8 +--
svx/source/inc/fmexpl.hxx | 27 +++++------
svx/source/inc/fmobj.hxx | 6 --
svx/source/inc/fmscriptingenv.hxx | 2
svx/source/inc/fmshimp.hxx | 7 +--
svx/source/inc/fmtextcontroldialogs.hxx | 6 +-
svx/source/inc/fmtextcontrolfeature.hxx | 5 --
svx/source/inc/fmtextcontrolshell.hxx | 5 --
svx/source/inc/fmundo.hxx | 4 -
svx/source/inc/fmvwimp.hxx | 3 -
svx/source/inc/formcontrolling.hxx | 6 --
svx/source/inc/gridcell.hxx | 42 ++++++++----------
svx/source/inc/tablemodel.hxx | 4 -
svx/source/inc/tabwin.hxx | 7 +--
svx/source/inc/tbxform.hxx | 12 ++---
svx/source/inc/xmlxtexp.hxx | 2
svx/source/inc/xmlxtimp.hxx | 5 --
56 files changed, 166 insertions(+), 190 deletions(-)
New commits:
commit 060bab5d3c87468d769fc0de8b2d96411414816a
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu Jun 24 15:43:40 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri Jun 25 14:09:39 2021 +0200
loplugin:finalclasses in svx
Change-Id: I7dd8d1a900694687fbed3f3f29b0ea4bb11b7d72
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117790
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/svx/inc/AccessibleTableShape.hxx b/svx/inc/AccessibleTableShape.hxx
index 979fa64d3451..6fe03c15363b 100644
--- a/svx/inc/AccessibleTableShape.hxx
+++ b/svx/inc/AccessibleTableShape.hxx
@@ -142,7 +142,7 @@ typedef ::cppu::WeakImplHelper<
css::accessibility::XAccessibleTableSelection >
AccessibleTableHeaderShape_BASE;
-class AccessibleTableHeaderShape : public MutexOwner,
+class AccessibleTableHeaderShape final : public MutexOwner,
public AccessibleTableHeaderShape_BASE
{
public:
diff --git a/svx/inc/galbrws2.hxx b/svx/inc/galbrws2.hxx
index 2640184846e3..fc97d9bccdb5 100644
--- a/svx/inc/galbrws2.hxx
+++ b/svx/inc/galbrws2.hxx
@@ -67,7 +67,7 @@ struct DispatchInfo;
namespace svx::sidebar { class GalleryControl; }
-class GalleryBrowser2 : public SfxListener
+class GalleryBrowser2 final : public SfxListener
{
friend class GalleryBrowser;
friend class svx::sidebar::GalleryControl;
@@ -158,7 +158,7 @@ public:
DECL_STATIC_LINK( GalleryBrowser2, AsyncDispatch_Impl, void*, void );
};
-class GalleryDragDrop : public DropTargetHelper
+class GalleryDragDrop final : public DropTargetHelper
{
private:
GalleryBrowser2* m_pParent;
diff --git a/svx/inc/galleryobjectbinarystorage.hxx b/svx/inc/galleryobjectbinarystorage.hxx
index 85dd9e22836c..611ff637bead 100644
--- a/svx/inc/galleryobjectbinarystorage.hxx
+++ b/svx/inc/galleryobjectbinarystorage.hxx
@@ -22,7 +22,7 @@
#include <tools/urlobj.hxx>
#include <svx/galleryobjectstorage.hxx>
-class GalleryObjectBinaryStorage : public GalleryObjectStorage
+class GalleryObjectBinaryStorage final : public GalleryObjectStorage
{
private:
INetURLObject m_aURL;
diff --git a/svx/inc/galleryobjectxmlstorage.hxx b/svx/inc/galleryobjectxmlstorage.hxx
index 35a9384524f9..f72d7067a38f 100644
--- a/svx/inc/galleryobjectxmlstorage.hxx
+++ b/svx/inc/galleryobjectxmlstorage.hxx
@@ -22,7 +22,7 @@
#include <tools/urlobj.hxx>
#include <svx/galleryobjectstorage.hxx>
-class GalleryObjectXMLStorage : public GalleryObjectStorage
+class GalleryObjectXMLStorage final : public GalleryObjectStorage
{
private:
INetURLObject m_aURL;
diff --git a/svx/inc/sdgcoitm.hxx b/svx/inc/sdgcoitm.hxx
index 7d77643aeea5..d49bad207275 100644
--- a/svx/inc/sdgcoitm.hxx
+++ b/svx/inc/sdgcoitm.hxx
@@ -28,7 +28,7 @@
// SdrGrafRedItem -
-class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) SdrGrafRedItem : public SdrSignedPercentItem
+class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) SdrGrafRedItem final : public SdrSignedPercentItem
{
public:
@@ -42,7 +42,7 @@ public:
// SdrGrafGreenItem -
-class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) SdrGrafGreenItem : public SdrSignedPercentItem
+class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) SdrGrafGreenItem final : public SdrSignedPercentItem
{
public:
@@ -56,7 +56,7 @@ public:
// SdrGrafBlueItem -
-class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) SdrGrafBlueItem : public SdrSignedPercentItem
+class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) SdrGrafBlueItem final : public SdrSignedPercentItem
{
public:
diff --git a/svx/inc/sdginitm.hxx b/svx/inc/sdginitm.hxx
index ef5ef1a02db6..35cfa3da7865 100644
--- a/svx/inc/sdginitm.hxx
+++ b/svx/inc/sdginitm.hxx
@@ -26,7 +26,7 @@
// SdrGrafInvertItem -
-class SdrGrafInvertItem : public SdrOnOffItem
+class SdrGrafInvertItem final : public SdrOnOffItem
{
public:
diff --git a/svx/inc/sdgtritm.hxx b/svx/inc/sdgtritm.hxx
index 001e30e7d712..084ac694493d 100644
--- a/svx/inc/sdgtritm.hxx
+++ b/svx/inc/sdgtritm.hxx
@@ -28,7 +28,7 @@
// SdrGrafTransparenceItem -
-class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) SdrGrafTransparenceItem : public SdrPercentItem
+class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) SdrGrafTransparenceItem final : public SdrPercentItem
{
public:
diff --git a/svx/inc/sdr/contact/viewcontactofsdrpage.hxx b/svx/inc/sdr/contact/viewcontactofsdrpage.hxx
index 4168d1aa718a..59e49b5f2a62 100644
--- a/svx/inc/sdr/contact/viewcontactofsdrpage.hxx
+++ b/svx/inc/sdr/contact/viewcontactofsdrpage.hxx
@@ -149,7 +149,7 @@ public:
bool getFront() const { return mbFront; }
};
-class ViewContactOfSdrPage : public ViewContact
+class ViewContactOfSdrPage final : public ViewContact
{
// the owner of this ViewContact. Set from constructor and not
// to be changed in any way.
@@ -168,7 +168,6 @@ class ViewContactOfSdrPage : public ViewContact
ViewContactOfGrid maViewContactOfGridFront;
ViewContactOfHelplines maViewContactOfHelplinesFront;
-protected:
// Create an Object-Specific ViewObjectContact, set ViewContact and
// ObjectContact. Always needs to return something. Default is to create
// a standard ViewObjectContact containing the given ObjectContact and *this
@@ -192,7 +191,7 @@ public:
// React on changes of the object of this ViewContact
virtual void ActionChanged() override;
-protected:
+private:
// This method is responsible for creating the graphical visualisation data
// ONLY based on model data
virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const override;
diff --git a/svx/inc/sdr/contact/viewcontactofunocontrol.hxx b/svx/inc/sdr/contact/viewcontactofunocontrol.hxx
index 824051543250..8d16362aa092 100644
--- a/svx/inc/sdr/contact/viewcontactofunocontrol.hxx
+++ b/svx/inc/sdr/contact/viewcontactofunocontrol.hxx
@@ -39,7 +39,7 @@ namespace sdr::contact {
//= ViewContactOfUnoControl
- class ViewContactOfUnoControl : public ViewContactOfSdrObj
+ class ViewContactOfUnoControl final : public ViewContactOfSdrObj
{
public:
// access to SdrObject
@@ -57,14 +57,12 @@ namespace sdr::contact {
css::uno::Reference< css::awt::XControl >
getTemporaryControlForWindow( const vcl::Window& _rWindow, css::uno::Reference< css::awt::XControlContainer >& _inout_ControlContainer ) const;
- protected:
+ private:
virtual ViewObjectContact& CreateObjectSpecificViewObjectContact( ObjectContact& _rObjectContact ) override;
- private:
ViewContactOfUnoControl( const ViewContactOfUnoControl& ) = delete;
ViewContactOfUnoControl& operator=( const ViewContactOfUnoControl& ) = delete;
- protected:
// This method is responsible for creating the graphical visualisation data
// ONLY based on model data
virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const override;
diff --git a/svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx b/svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx
index 7b837e1bf6d6..e84ef0a4d3e8 100644
--- a/svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx
+++ b/svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx
@@ -30,7 +30,7 @@
namespace drawinglayer::primitive2d
{
- class SdrCustomShapePrimitive2D : public BufferedDecompositionPrimitive2D
+ class SdrCustomShapePrimitive2D final : public BufferedDecompositionPrimitive2D
{
private:
attribute::SdrEffectsTextAttribute maSdrSTAttribute;
@@ -47,7 +47,6 @@ namespace drawinglayer::primitive2d
basegfx::B2DHomMatrix maTransform;
- protected:
// local decomposition.
virtual void create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& aViewInformation) const override;
diff --git a/svx/inc/sxallitm.hxx b/svx/inc/sxallitm.hxx
index a02f95b06361..144d3bae2b07 100644
--- a/svx/inc/sxallitm.hxx
+++ b/svx/inc/sxallitm.hxx
@@ -22,7 +22,7 @@
#include <svx/svddef.hxx>
#include <svx/sdmetitm.hxx>
-class SdrAllPositionXItem: public SdrMetricItem {
+class SdrAllPositionXItem final : public SdrMetricItem {
public:
SdrAllPositionXItem(tools::Long nPosX=0): SdrMetricItem(SDRATTR_ALLPOSITIONX,nPosX) {}
virtual SdrAllPositionXItem* Clone(SfxItemPool*) const override
@@ -31,7 +31,7 @@ public:
}
};
-class SdrAllPositionYItem: public SdrMetricItem {
+class SdrAllPositionYItem final : public SdrMetricItem {
public:
SdrAllPositionYItem(tools::Long nPosY=0): SdrMetricItem(SDRATTR_ALLPOSITIONY,nPosY) {}
virtual SdrAllPositionYItem* Clone(SfxItemPool*) const override
@@ -40,7 +40,7 @@ public:
}
};
-class SdrAllSizeWidthItem: public SdrMetricItem {
+class SdrAllSizeWidthItem final : public SdrMetricItem {
public:
SdrAllSizeWidthItem(tools::Long nWdt=0): SdrMetricItem(SDRATTR_ALLSIZEWIDTH,nWdt) {}
virtual SdrAllSizeWidthItem* Clone(SfxItemPool*) const override
@@ -49,7 +49,7 @@ public:
}
};
-class SdrAllSizeHeightItem: public SdrMetricItem {
+class SdrAllSizeHeightItem final : public SdrMetricItem {
public:
SdrAllSizeHeightItem(tools::Long nHgt=0): SdrMetricItem(SDRATTR_ALLSIZEHEIGHT,nHgt) {}
virtual SdrAllSizeHeightItem* Clone(SfxItemPool*) const override
diff --git a/svx/inc/sxcikitm.hxx b/svx/inc/sxcikitm.hxx
index c3fc7ce475c0..738e59366524 100644
--- a/svx/inc/sxcikitm.hxx
+++ b/svx/inc/sxcikitm.hxx
@@ -23,7 +23,7 @@
#include <svl/eitem.hxx>
#include <svx/svdocirc.hxx>
-class SdrCircKindItem: public SfxEnumItem<SdrCircKind> {
+class SdrCircKindItem final : public SfxEnumItem<SdrCircKind> {
public:
SdrCircKindItem(SdrCircKind eKind=SdrCircKind::Full): SfxEnumItem(SDRATTR_CIRCKIND, eKind) {}
virtual SdrCircKindItem* Clone(SfxItemPool* pPool=nullptr) const override;
diff --git a/svx/inc/sxlayitm.hxx b/svx/inc/sxlayitm.hxx
index 6260ae4147bd..a52c47f3d9af 100644
--- a/svx/inc/sxlayitm.hxx
+++ b/svx/inc/sxlayitm.hxx
@@ -24,14 +24,14 @@
#include <svl/intitem.hxx>
#include <svx/svdtypes.hxx>
-class SdrLayerIdItem: public SfxUInt16Item {
+class SdrLayerIdItem final : public SfxUInt16Item {
public:
SdrLayerIdItem(SdrLayerID nId): SfxUInt16Item(SDRATTR_LAYERID,sal_uInt8(nId)) {}
SdrLayerID GetValue() const { return SdrLayerID(SfxUInt16Item::GetValue()); }
virtual SdrLayerIdItem* Clone(SfxItemPool* pPool=nullptr) const override;
};
-class SdrLayerNameItem: public SfxStringItem {
+class SdrLayerNameItem final : public SfxStringItem {
public:
SdrLayerNameItem() : SfxStringItem() { SetWhich(SDRATTR_LAYERNAME); }
SdrLayerNameItem(const OUString& rStr) : SfxStringItem(SDRATTR_LAYERNAME,rStr) {}
diff --git a/svx/inc/sxlogitm.hxx b/svx/inc/sxlogitm.hxx
index 46a18b6f8db5..20d61724b303 100644
--- a/svx/inc/sxlogitm.hxx
+++ b/svx/inc/sxlogitm.hxx
@@ -22,7 +22,7 @@
#include <svx/svddef.hxx>
#include <svx/sdmetitm.hxx>
-class SdrLogicSizeWidthItem: public SdrMetricItem {
+class SdrLogicSizeWidthItem final : public SdrMetricItem {
public:
SdrLogicSizeWidthItem(tools::Long nWdt=0): SdrMetricItem(SDRATTR_LOGICSIZEWIDTH,nWdt) {}
virtual SdrLogicSizeWidthItem* Clone(SfxItemPool*) const override
@@ -31,7 +31,7 @@ public:
}
};
-class SdrLogicSizeHeightItem: public SdrMetricItem {
+class SdrLogicSizeHeightItem final : public SdrMetricItem {
public:
SdrLogicSizeHeightItem(tools::Long nHgt=0): SdrMetricItem(SDRATTR_LOGICSIZEHEIGHT,nHgt) {}
virtual SdrLogicSizeHeightItem* Clone(SfxItemPool*) const override
diff --git a/svx/inc/sxmfsitm.hxx b/svx/inc/sxmfsitm.hxx
index 5a9049740481..c3c070952326 100644
--- a/svx/inc/sxmfsitm.hxx
+++ b/svx/inc/sxmfsitm.hxx
@@ -23,7 +23,7 @@
// Format string (similar to Calc), e.g. "#.###,00km"
// overwrites SdrMeasureUnitItem and SdrMeasureShowUnitItem
-class SdrMeasureFormatStringItem: public SfxStringItem {
+class SdrMeasureFormatStringItem final : public SfxStringItem {
public:
SdrMeasureFormatStringItem() : SfxStringItem() { SetWhich(SDRATTR_MEASUREFORMATSTRING); }
virtual SdrMeasureFormatStringItem* Clone(SfxItemPool*) const override
diff --git a/svx/inc/sxmkitm.hxx b/svx/inc/sxmkitm.hxx
index bebcda57b642..12769a08577f 100644
--- a/svx/inc/sxmkitm.hxx
+++ b/svx/inc/sxmkitm.hxx
@@ -26,7 +26,7 @@ enum SdrMeasureKind {SDRMEASURE_STD,SDRMEASURE_RADIUS}; // n.i.
-class SdrMeasureKindItem: public SfxEnumItem<SdrMeasureKind> {
+class SdrMeasureKindItem final : public SfxEnumItem<SdrMeasureKind> {
public:
SdrMeasureKindItem() : SfxEnumItem(SDRATTR_MEASUREKIND, SDRMEASURE_STD) {}
virtual SdrMeasureKindItem* Clone(SfxItemPool* pPool=nullptr) const override;
diff --git a/svx/inc/sxmoitm.hxx b/svx/inc/sxmoitm.hxx
index 24ee1fc32b6b..f207f7411794 100644
--- a/svx/inc/sxmoitm.hxx
+++ b/svx/inc/sxmoitm.hxx
@@ -24,7 +24,7 @@
// Overlap of the measure line over the measure helper lines
// Only of the measure arrows are on the outside
-class SdrMeasureOverhangItem : public SdrMetricItem
+class SdrMeasureOverhangItem final : public SdrMetricItem
{
public:
SdrMeasureOverhangItem(tools::Long nVal)
diff --git a/svx/inc/sxmovitm.hxx b/svx/inc/sxmovitm.hxx
index d3a4087c6f13..eda423e27c87 100644
--- a/svx/inc/sxmovitm.hxx
+++ b/svx/inc/sxmovitm.hxx
@@ -22,7 +22,7 @@
#include <svx/svddef.hxx>
#include <svx/sdmetitm.hxx>
-class SdrMoveXItem: public SdrMetricItem {
+class SdrMoveXItem final : public SdrMetricItem {
public:
SdrMoveXItem(): SdrMetricItem(SDRATTR_MOVEX,0) {}
SdrMoveXItem* Clone(SfxItemPool*) const override
@@ -31,7 +31,7 @@ public:
}
};
-class SdrMoveYItem: public SdrMetricItem {
+class SdrMoveYItem final : public SdrMetricItem {
public:
SdrMoveYItem(): SdrMetricItem(SDRATTR_MOVEY,0) {}
SdrMoveYItem* Clone(SfxItemPool*) const override
diff --git a/svx/inc/sxmtaitm.hxx b/svx/inc/sxmtaitm.hxx
index 8798b05e13de..cb94874bdf62 100644
--- a/svx/inc/sxmtaitm.hxx
+++ b/svx/inc/sxmtaitm.hxx
@@ -25,7 +25,7 @@
// Turn text automatically in wright position (automatic UpsideDown).
// TextUpsideDown stays active and turns the text again if sal_True.
-class SdrMeasureTextAutoAngleItem: public SdrYesNoItem {
+class SdrMeasureTextAutoAngleItem final : public SdrYesNoItem {
public:
SdrMeasureTextAutoAngleItem(bool bOn=true): SdrYesNoItem(SDRATTR_MEASURETEXTAUTOANGLE,bOn) {}
virtual SdrMeasureTextAutoAngleItem* Clone(SfxItemPool*) const override
diff --git a/svx/inc/sxoneitm.hxx b/svx/inc/sxoneitm.hxx
index 0799c94b1b71..424563008bfb 100644
--- a/svx/inc/sxoneitm.hxx
+++ b/svx/inc/sxoneitm.hxx
@@ -22,7 +22,7 @@
#include <svx/svddef.hxx>
#include <svx/sdmetitm.hxx>
-class SdrOnePositionXItem: public SdrMetricItem {
+class SdrOnePositionXItem final : public SdrMetricItem {
public:
SdrOnePositionXItem(tools::Long nPosX=0): SdrMetricItem(SDRATTR_ONEPOSITIONX,nPosX) {}
virtual SdrOnePositionXItem* Clone(SfxItemPool*) const override
@@ -31,7 +31,7 @@ public:
}
};
-class SdrOnePositionYItem: public SdrMetricItem {
+class SdrOnePositionYItem final : public SdrMetricItem {
public:
SdrOnePositionYItem(tools::Long nPosY=0): SdrMetricItem(SDRATTR_ONEPOSITIONY,nPosY) {}
virtual SdrOnePositionYItem* Clone(SfxItemPool*) const override
@@ -40,7 +40,7 @@ public:
}
};
-class SdrOneSizeWidthItem: public SdrMetricItem {
+class SdrOneSizeWidthItem final : public SdrMetricItem {
public:
SdrOneSizeWidthItem(tools::Long nWdt=0): SdrMetricItem(SDRATTR_ONESIZEWIDTH,nWdt) {}
virtual SdrOneSizeWidthItem* Clone(SfxItemPool*) const override
@@ -49,7 +49,7 @@ public:
}
};
-class SdrOneSizeHeightItem: public SdrMetricItem {
+class SdrOneSizeHeightItem final : public SdrMetricItem {
public:
SdrOneSizeHeightItem(tools::Long nHgt=0): SdrMetricItem(SDRATTR_ONESIZEHEIGHT,nHgt) {}
virtual SdrOneSizeHeightItem* Clone(SfxItemPool*) const override
diff --git a/svx/inc/sxopitm.hxx b/svx/inc/sxopitm.hxx
index b0d45bd54323..cd7d2bb1f599 100644
--- a/svx/inc/sxopitm.hxx
+++ b/svx/inc/sxopitm.hxx
@@ -22,7 +22,7 @@
#include <svx/svddef.hxx>
#include <svx/sdynitm.hxx>
-class SdrObjPrintableItem: public SdrYesNoItem {
+class SdrObjPrintableItem final : public SdrYesNoItem {
public:
SdrObjPrintableItem(bool bOn=false): SdrYesNoItem(SDRATTR_OBJPRINTABLE,bOn) {}
virtual SdrObjPrintableItem* Clone(SfxItemPool*) const override
@@ -31,7 +31,7 @@ public:
}
};
-class SdrObjVisibleItem: public SdrYesNoItem {
+class SdrObjVisibleItem final : public SdrYesNoItem {
public:
SdrObjVisibleItem(bool bOn=true): SdrYesNoItem(SDRATTR_OBJVISIBLE,bOn) {}
virtual SdrObjVisibleItem* Clone(SfxItemPool*) const override
diff --git a/svx/inc/sxreaitm.hxx b/svx/inc/sxreaitm.hxx
index b7675a63c88c..2887e8ba0aab 100644
--- a/svx/inc/sxreaitm.hxx
+++ b/svx/inc/sxreaitm.hxx
@@ -23,7 +23,7 @@
#include "sxfiitm.hxx"
-class SdrResizeXAllItem: public SdrFractionItem {
+class SdrResizeXAllItem final : public SdrFractionItem {
public:
SdrResizeXAllItem(): SdrFractionItem(SDRATTR_RESIZEXALL,Fraction(1,1)) {}
virtual SdrResizeXAllItem* Clone(SfxItemPool*) const override
@@ -32,7 +32,7 @@ public:
}
};
-class SdrResizeYAllItem: public SdrFractionItem {
+class SdrResizeYAllItem final : public SdrFractionItem {
public:
SdrResizeYAllItem(): SdrFractionItem(SDRATTR_RESIZEYALL,Fraction(1,1)) {}
virtual SdrResizeYAllItem* Clone(SfxItemPool*) const override
diff --git a/svx/inc/sxreoitm.hxx b/svx/inc/sxreoitm.hxx
index b619f57f888a..19d1cb6b8c54 100644
--- a/svx/inc/sxreoitm.hxx
+++ b/svx/inc/sxreoitm.hxx
@@ -23,7 +23,7 @@
#include "sxfiitm.hxx"
-class SdrResizeXOneItem: public SdrFractionItem {
+class SdrResizeXOneItem final : public SdrFractionItem {
public:
SdrResizeXOneItem(): SdrFractionItem(SDRATTR_RESIZEXONE,Fraction(1,1)) {}
SdrResizeXOneItem* Clone(SfxItemPool*) const override
@@ -32,7 +32,7 @@ public:
}
};
-class SdrResizeYOneItem: public SdrFractionItem {
+class SdrResizeYOneItem final : public SdrFractionItem {
public:
SdrResizeYOneItem(): SdrFractionItem(SDRATTR_RESIZEYONE,Fraction(1,1)) {}
SdrResizeYOneItem* Clone(SfxItemPool*) const override
diff --git a/svx/inc/sxrooitm.hxx b/svx/inc/sxrooitm.hxx
index 39cef3d4b1d2..f14bcf77f153 100644
--- a/svx/inc/sxrooitm.hxx
+++ b/svx/inc/sxrooitm.hxx
@@ -22,7 +22,7 @@
#include <svx/svddef.hxx>
#include <svx/sdangitm.hxx>
-class SdrRotateOneItem: public SdrAngleItem {
+class SdrRotateOneItem final : public SdrAngleItem {
public:
SdrRotateOneItem(): SdrAngleItem(SDRATTR_ROTATEONE,0_deg100) {}
SdrRotateOneItem* Clone(SfxItemPool*) const override
diff --git a/svx/inc/sxsaitm.hxx b/svx/inc/sxsaitm.hxx
index 01824ef9e4a1..190d66d7b653 100644
--- a/svx/inc/sxsaitm.hxx
+++ b/svx/inc/sxsaitm.hxx
@@ -22,7 +22,7 @@
#include <svx/svddef.hxx>
#include <svx/sdangitm.hxx>
-class SdrShearAngleItem : public SdrAngleItem
+class SdrShearAngleItem final : public SdrAngleItem
{
public:
SdrShearAngleItem(Degree100 nAngle = 0_deg100)
diff --git a/svx/inc/sxsalitm.hxx b/svx/inc/sxsalitm.hxx
index 6e0cb2b38f70..304396206ac0 100644
--- a/svx/inc/sxsalitm.hxx
+++ b/svx/inc/sxsalitm.hxx
@@ -22,7 +22,7 @@
#include <svx/svddef.hxx>
#include <svx/sdangitm.hxx>
-class SdrHorzShearAllItem: public SdrAngleItem {
+class SdrHorzShearAllItem final : public SdrAngleItem {
public:
SdrHorzShearAllItem(): SdrAngleItem(SDRATTR_HORZSHEARALL,0_deg100) {}
virtual SdrHorzShearAllItem* Clone(SfxItemPool*) const override
@@ -31,7 +31,7 @@ public:
}
};
-class SdrVertShearAllItem: public SdrAngleItem {
+class SdrVertShearAllItem final : public SdrAngleItem {
public:
SdrVertShearAllItem(): SdrAngleItem(SDRATTR_VERTSHEARALL,0_deg100) {}
virtual SdrVertShearAllItem* Clone(SfxItemPool*) const override
diff --git a/svx/inc/sxsoitm.hxx b/svx/inc/sxsoitm.hxx
index 75faab3f1d66..ce5ce237e1ee 100644
--- a/svx/inc/sxsoitm.hxx
+++ b/svx/inc/sxsoitm.hxx
@@ -22,7 +22,7 @@
#include <svx/svddef.hxx>
#include <svx/sdangitm.hxx>
-class SdrHorzShearOneItem: public SdrAngleItem {
+class SdrHorzShearOneItem final : public SdrAngleItem {
public:
SdrHorzShearOneItem(): SdrAngleItem(SDRATTR_HORZSHEARONE,0_deg100) {}
SdrHorzShearOneItem* Clone(SfxItemPool*) const override
@@ -31,7 +31,7 @@ public:
}
};
-class SdrVertShearOneItem: public SdrAngleItem {
+class SdrVertShearOneItem final : public SdrAngleItem {
public:
SdrVertShearOneItem(): SdrAngleItem(SDRATTR_VERTSHEARONE,0_deg100) {}
SdrVertShearOneItem* Clone(SfxItemPool*) const override
diff --git a/svx/inc/sxtraitm.hxx b/svx/inc/sxtraitm.hxx
index d5035ffbd6b7..2a1fdec4ccca 100644
--- a/svx/inc/sxtraitm.hxx
+++ b/svx/inc/sxtraitm.hxx
@@ -22,7 +22,7 @@
#include <svx/svddef.hxx>
#include <svx/sdmetitm.hxx>
-class SdrTransformRef1XItem: public SdrMetricItem {
+class SdrTransformRef1XItem final : public SdrMetricItem {
public:
SdrTransformRef1XItem(tools::Long nHgt=0): SdrMetricItem(SDRATTR_TRANSFORMREF1X,nHgt) {}
virtual SdrTransformRef1XItem* Clone(SfxItemPool*) const override
@@ -31,7 +31,7 @@ public:
}
};
-class SdrTransformRef1YItem: public SdrMetricItem {
+class SdrTransformRef1YItem final : public SdrMetricItem {
public:
SdrTransformRef1YItem(tools::Long nHgt=0): SdrMetricItem(SDRATTR_TRANSFORMREF1Y,nHgt) {}
virtual SdrTransformRef1YItem* Clone(SfxItemPool*) const override
@@ -40,7 +40,7 @@ public:
}
};
-class SdrTransformRef2XItem: public SdrMetricItem {
+class SdrTransformRef2XItem final : public SdrMetricItem {
public:
SdrTransformRef2XItem(tools::Long nHgt=0): SdrMetricItem(SDRATTR_TRANSFORMREF2X,nHgt) {}
virtual SdrTransformRef2XItem* Clone(SfxItemPool*) const override
@@ -49,7 +49,7 @@ public:
}
};
-class SdrTransformRef2YItem: public SdrMetricItem {
+class SdrTransformRef2YItem final : public SdrMetricItem {
public:
SdrTransformRef2YItem(tools::Long nHgt=0): SdrMetricItem(SDRATTR_TRANSFORMREF2Y,nHgt) {}
virtual SdrTransformRef2YItem* Clone(SfxItemPool*) const override
diff --git a/svx/inc/tbxcolorupdate.hxx b/svx/inc/tbxcolorupdate.hxx
index df7751f9b58d..e6520f862a16 100644
--- a/svx/inc/tbxcolorupdate.hxx
+++ b/svx/inc/tbxcolorupdate.hxx
@@ -86,7 +86,7 @@ namespace svx
virtual Size GetItemSize(const Size& rImageSize) const = 0;
};
- class VclToolboxButtonColorUpdater : public ToolboxButtonColorUpdaterBase
+ class VclToolboxButtonColorUpdater final : public ToolboxButtonColorUpdaterBase
{
public:
VclToolboxButtonColorUpdater(sal_uInt16 nSlotId, ToolBoxItemId nTbxBtnId, ToolBox* ptrTbx, bool bWideButton,
@@ -106,7 +106,7 @@ namespace svx
virtual Size GetItemSize(const Size& rImageSize) const override;
};
- class ToolboxButtonColorUpdater : public ToolboxButtonColorUpdaterBase
+ class ToolboxButtonColorUpdater final : public ToolboxButtonColorUpdaterBase
{
public:
ToolboxButtonColorUpdater(sal_uInt16 nSlotId, const OString& rTbxBtnId, weld::Toolbar* ptrTbx, bool bWideButton,
diff --git a/svx/inc/textchainflow.hxx b/svx/inc/textchainflow.hxx
index e8ffd654b5b6..a46c47a2d59a 100644
--- a/svx/inc/textchainflow.hxx
+++ b/svx/inc/textchainflow.hxx
@@ -83,7 +83,7 @@ private:
};
// NOTE: EditingTextChainFlow might be strongly coupled with behavior in SdrTextObj::onChainingEvent
-class EditingTextChainFlow : public TextChainFlow
+class EditingTextChainFlow final : public TextChainFlow
{
public:
EditingTextChainFlow(SdrTextObj*);
@@ -91,12 +91,11 @@ public:
//virtual void ExecuteOverflow(SdrOutliner *, SdrOutliner *) override;
-protected:
+private:
virtual void impLeaveOnlyNonOverflowingText(SdrOutliner*) override;
virtual void impSetFlowOutlinerParams(SdrOutliner*, SdrOutliner*) override;
-private:
void impBroadcastCursorInfo() const;
};
diff --git a/svx/source/inc/DefaultShapesPanel.hxx b/svx/source/inc/DefaultShapesPanel.hxx
index 6c2781b4ef6d..71396c5ce40a 100644
--- a/svx/source/inc/DefaultShapesPanel.hxx
+++ b/svx/source/inc/DefaultShapesPanel.hxx
@@ -33,7 +33,7 @@ namespace svx::sidebar {
/** This panel provides buttons for inserting shapes into a document.
*/
-class DefaultShapesPanel
+class DefaultShapesPanel final
: public PanelLayout, public SvxShapeCommandsMap
{
public:
diff --git a/svx/source/inc/StylesPreviewWindow.hxx b/svx/source/inc/StylesPreviewWindow.hxx
index 5d46a9482726..c638f29d87e5 100644
--- a/svx/source/inc/StylesPreviewWindow.hxx
+++ b/svx/source/inc/StylesPreviewWindow.hxx
@@ -29,7 +29,7 @@
class StylesPreviewWindow_Base;
/// Listener for style selection
-class StyleStatusListener : public SfxStatusListener
+class StyleStatusListener final : public SfxStatusListener
{
StylesPreviewWindow_Base* m_pPreviewControl;
@@ -42,7 +42,7 @@ public:
};
/// Listener for styles creation or modification
-class StylePoolChangeListener : public SfxListener
+class StylePoolChangeListener final : public SfxListener
{
StylesPreviewWindow_Base* m_pPreviewControl;
SfxStyleSheetBasePool* m_pStyleSheetPool;
@@ -109,7 +109,7 @@ private:
bool Command(const CommandEvent& rEvent);
};
-class StylesPreviewWindow_Impl : public InterimItemWindow, public StylesPreviewWindow_Base
+class StylesPreviewWindow_Impl final : public InterimItemWindow, public StylesPreviewWindow_Base
{
public:
StylesPreviewWindow_Impl(
diff --git a/svx/source/inc/cell.hxx b/svx/source/inc/cell.hxx
index 6e56dbe6f893..e612e40818a4 100644
--- a/svx/source/inc/cell.hxx
+++ b/svx/source/inc/cell.hxx
@@ -42,7 +42,7 @@ namespace sdr::properties { class TextProperties; }
namespace sdr::table {
-class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) Cell : public SdrText,
+class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) Cell final : public SdrText,
public SvxUnoTextBase,
public css::table::XMergeableCell,
public css::awt::XLayoutConstrains,
@@ -99,8 +99,8 @@ public:
// XInterface
SVX_DLLPRIVATE virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& Type ) override;
- SVX_DLLPRIVATE virtual void SAL_CALL acquire() noexcept override;
- SVX_DLLPRIVATE virtual void SAL_CALL release() noexcept override;
+ virtual void SAL_CALL acquire() noexcept override;
+ virtual void SAL_CALL release() noexcept override;
// XTypeProvider
SVX_DLLPRIVATE virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
@@ -114,7 +114,7 @@ public:
// XMergeableCell
SVX_DLLPRIVATE virtual ::sal_Int32 SAL_CALL getRowSpan() override;
SVX_DLLPRIVATE virtual ::sal_Int32 SAL_CALL getColumnSpan() override;
- SVX_DLLPRIVATE virtual sal_Bool SAL_CALL isMerged() override;
+ virtual sal_Bool SAL_CALL isMerged() override;
// XCell
SVX_DLLPRIVATE virtual OUString SAL_CALL getFormula() override;
@@ -181,13 +181,12 @@ public:
void dumpAsXml(xmlTextWriterPtr pWriter, sal_Int32 nRow, sal_Int32 nCol) const;
-protected:
+private:
SVX_DLLPRIVATE virtual const SfxItemSet& GetObjectItemSet() override;
SVX_DLLPRIVATE void SetObjectItem(const SfxPoolItem& rItem);
SVX_DLLPRIVATE static css::uno::Any GetAnyForItem( SfxItemSet const & aSet, const SfxItemPropertyMapEntry* pMap );
-private:
/// @throws css::uno::RuntimeException
SVX_DLLPRIVATE Cell( SdrTableObj& rTableObj );
SVX_DLLPRIVATE virtual ~Cell() noexcept override;
diff --git a/svx/source/inc/charmapacc.hxx b/svx/source/inc/charmapacc.hxx
index 71bcc63a4e88..193314ba4661 100644
--- a/svx/source/inc/charmapacc.hxx
+++ b/svx/source/inc/charmapacc.hxx
@@ -67,12 +67,11 @@ namespace svx
/** The table implementation of the vcl control.
*/
- class SvxShowCharSetAcc : public ::comphelper::OAccessibleSelectionHelper,
+ class SvxShowCharSetAcc final : public ::comphelper::OAccessibleSelectionHelper,
public OAccessibleHelper_Base
{
::std::vector< css::uno::Reference< css::accessibility::XAccessible > > m_aChildren;
SvxShowCharSet* m_pParent; // the vcl control
- protected:
virtual void SAL_CALL disposing() override;
public:
SvxShowCharSetAcc(SvxShowCharSet* pParent);
@@ -131,7 +130,7 @@ namespace svx
}
void clearCharSetControl() { m_pParent = nullptr; }
- protected:
+ private:
virtual ~SvxShowCharSetAcc() override;
@@ -158,12 +157,12 @@ namespace svx
/** The child implementation of the table.
*/
- class SvxShowCharSetItemAcc : public ::comphelper::OAccessibleComponentHelper,
+ class SvxShowCharSetItemAcc final : public ::comphelper::OAccessibleComponentHelper,
public OAccessibleHelper_Base_3
{
private:
SvxShowCharSetItem* mpParent;
- protected:
+
virtual ~SvxShowCharSetItemAcc() override;
// OCommonAccessibleComponent
diff --git a/svx/source/inc/datalistener.hxx b/svx/source/inc/datalistener.hxx
index 5d6621c97eea..88f0a9f5a9ea 100644
--- a/svx/source/inc/datalistener.hxx
+++ b/svx/source/inc/datalistener.hxx
@@ -36,7 +36,7 @@ namespace svxform
css::frame::XFrameActionListener,
css::xml::dom::events::XEventListener > DataListener_t;
- class DataListener : public DataListener_t
+ class DataListener final : public DataListener_t
{
private:
DataNavigatorWindow* m_pNaviWin;
@@ -44,7 +44,7 @@ namespace svxform
public:
DataListener( DataNavigatorWindow* pNaviWin );
- protected:
+ private:
virtual ~DataListener() override;
public:
diff --git a/svx/source/inc/datanavi.hxx b/svx/source/inc/datanavi.hxx
index a1e23dd05cb6..fbdd4667de4f 100644
--- a/svx/source/inc/datanavi.hxx
+++ b/svx/source/inc/datanavi.hxx
@@ -166,7 +166,7 @@ namespace svxform
}
};
- class DataTreeDropTarget : public DropTargetHelper
+ class DataTreeDropTarget final : public DropTargetHelper
{
private:
virtual sal_Int8 AcceptDrop(const AcceptDropEvent& rEvt) override;
@@ -176,7 +176,7 @@ namespace svxform
DataTreeDropTarget(weld::TreeView& rWidget);
};
- class XFormsPage : public BuilderPage
+ class XFormsPage final : public BuilderPage
{
private:
MethodString m_aMethodString;
@@ -313,12 +313,11 @@ namespace svxform
void DisableNotify( bool _bDisable ) { m_bIsNotifyDisabled = _bDisable; }
};
- class DataNavigator : public SfxDockingWindow, public SfxControllerItem
+ class DataNavigator final : public SfxDockingWindow, public SfxControllerItem
{
private:
std::unique_ptr<DataNavigatorWindow> m_xDataWin;
- protected:
virtual Size CalcDockingSize( SfxChildAlignment ) override;
virtual SfxChildAlignment CheckAlignment( SfxChildAlignment, SfxChildAlignment ) override;
@@ -333,7 +332,7 @@ namespace svxform
const SfxPoolItem* pState ) override;
};
- class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) DataNavigatorManager : public SfxChildWindow
+ class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) DataNavigatorManager final : public SfxChildWindow
{
public:
SVX_DLLPRIVATE DataNavigatorManager( vcl::Window* pParent, sal_uInt16 nId,
@@ -341,7 +340,7 @@ namespace svxform
SFX_DECL_CHILDWINDOW( DataNavigatorManager );
};
- class AddDataItemDialog : public weld::GenericDialogController
+ class AddDataItemDialog final : public weld::GenericDialogController
{
private:
css::uno::Reference< css::xforms::XFormsUIHelper1 >
@@ -397,7 +396,7 @@ namespace svxform
void InitText( DataItemType _eType );
};
- class AddConditionDialog : public weld::GenericDialogController
+ class AddConditionDialog final : public weld::GenericDialogController
{
private:
Idle m_aResultIdle;
@@ -432,7 +431,7 @@ namespace svxform
}
};
- class NamespaceItemDialog : public weld::GenericDialogController
+ class NamespaceItemDialog final : public weld::GenericDialogController
{
private:
AddConditionDialog* m_pConditionDlg;
@@ -458,7 +457,7 @@ namespace svxform
virtual ~NamespaceItemDialog() override;
};
- class ManageNamespaceDialog : public weld::GenericDialogController
+ class ManageNamespaceDialog final : public weld::GenericDialogController
{
private:
AddConditionDialog* m_pConditionDlg;
@@ -483,7 +482,7 @@ namespace svxform
OUString GetURL() const { return m_xUrlED->get_text(); }
};
- class AddSubmissionDialog : public weld::GenericDialogController
+ class AddSubmissionDialog final : public weld::GenericDialogController
{
private:
MethodString m_aMethodString;
@@ -524,7 +523,7 @@ namespace svxform
const css::uno::Reference< css::xforms::XSubmission >& GetNewSubmission() const { return m_xNewSubmission; }
};
- class AddModelDialog : public weld::GenericDialogController
+ class AddModelDialog final : public weld::GenericDialogController
{
private:
std::unique_ptr<weld::Entry> m_xNameED;
@@ -542,7 +541,7 @@ namespace svxform
void SetModifyDoc( const bool bModify ) { m_xModifyCB->set_active(bModify); }
};
- class AddInstanceDialog : public weld::GenericDialogController
+ class AddInstanceDialog final : public weld::GenericDialogController
{
private:
OUString m_sAllFilterName;
@@ -568,7 +567,7 @@ namespace svxform
void SetLinkInstance( bool bLink ) { m_xLinkInstanceCB->set_active(bLink); }
};
- class LinkedInstanceWarningBox : public weld::MessageDialogController
+ class LinkedInstanceWarningBox final : public weld::MessageDialogController
{
public:
LinkedInstanceWarningBox(weld::Widget* pParent);
diff --git a/svx/source/inc/docrecovery.hxx b/svx/source/inc/docrecovery.hxx
index 4a954f57b7fa..93d6dd8ff562 100644
--- a/svx/source/inc/docrecovery.hxx
+++ b/svx/source/inc/docrecovery.hxx
@@ -170,7 +170,7 @@ class IRecoveryUpdateListener
};
-class RecoveryCore : public ::cppu::WeakImplHelper< css::frame::XStatusListener >
+class RecoveryCore final : public ::cppu::WeakImplHelper< css::frame::XStatusListener >
{
// types, const
@@ -281,7 +281,7 @@ class RecoveryCore : public ::cppu::WeakImplHelper< css::frame::XStatusListener
css::util::URL impl_getParsedURL(const OUString& sURL);
};
-class PluginProgress : public ::cppu::WeakImplHelper<css::task::XStatusIndicator, css::lang::XComponent>
+class PluginProgress final : public ::cppu::WeakImplHelper<css::task::XStatusIndicator, css::lang::XComponent>
{
// member
private:
@@ -308,7 +308,7 @@ public:
virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener) override;
};
-class SaveDialog : public weld::GenericDialogController
+class SaveDialog final : public weld::GenericDialogController
{
// member
private:
@@ -339,7 +339,7 @@ public:
DECL_LINK(OKButtonHdl, weld::Button&, void);
};
-class SaveProgressDialog : public weld::GenericDialogController
+class SaveProgressDialog final : public weld::GenericDialogController
, public IRecoveryUpdateListener
{
// member
@@ -379,7 +379,7 @@ class SaveProgressDialog : public weld::GenericDialogController
virtual void end() override;
};
-class RecoveryDialog : public weld::GenericDialogController
+class RecoveryDialog final : public weld::GenericDialogController
, public IRecoveryUpdateListener
{
// member
@@ -442,7 +442,7 @@ class RecoveryDialog : public weld::GenericDialogController
};
-class BrokenRecoveryDialog : public weld::GenericDialogController
+class BrokenRecoveryDialog final : public weld::GenericDialogController
{
// member
private:
diff --git a/svx/source/inc/filtnav.hxx b/svx/source/inc/filtnav.hxx
index adc9cda6593d..59af45acbd86 100644
--- a/svx/source/inc/filtnav.hxx
+++ b/svx/source/inc/filtnav.hxx
@@ -80,7 +80,7 @@ public:
};
// Item representing the forms and subforms
-class FmFormItem : public FmParentData
+class FmFormItem final : public FmParentData
{
css::uno::Reference< css::form::runtime::XFormController > m_xController;
css::uno::Reference< css::form::runtime::XFilterController > m_xFilterController;
@@ -105,7 +105,7 @@ public:
virtual OUString GetImage() const override;
};
-class FmFilterItems : public FmParentData
+class FmFilterItems final : public FmParentData
{
public:
FmFilterItems(FmFormItem* pParent, const OUString& rText ) : FmParentData(pParent, rText) {}
@@ -114,7 +114,7 @@ public:
virtual OUString GetImage() const override;
};
-class FmFilterItem : public FmFilterData
+class FmFilterItem final : public FmFilterData
{
OUString m_aFieldName;
sal_Int32 m_nComponentIndex;
@@ -174,7 +174,7 @@ private:
};
-class OFilterItemExchange : public OLocalExchange
+class OFilterItemExchange final : public OLocalExchange
{
::std::vector<FmFilterItem*> m_aDraggedEntries;
FmFormItem* m_pFormItem; // ensure that we drop on the same form
@@ -191,7 +191,7 @@ public:
void setFormItem( FmFormItem* _pItem ) { m_pFormItem = _pItem; }
-protected:
+private:
virtual void AddSupportedFormats() override;
};
@@ -200,7 +200,7 @@ inline bool OFilterItemExchange::hasFormat( const DataFlavorExVector& _rFormats
return OLocalExchange::hasFormat( _rFormats, getFormatId() );
}
-class OFilterExchangeHelper : public OLocalExchangeHelper
+class OFilterExchangeHelper final : public OLocalExchangeHelper
{
public:
OFilterExchangeHelper() : OLocalExchangeHelper() { }
@@ -208,13 +208,13 @@ public:
OFilterItemExchange* operator->() const { return static_cast<OFilterItemExchange*>(m_xTransferable.get()); }
OFilterItemExchange& operator*() const { return *static_cast<OFilterItemExchange*>(m_xTransferable.get()); }
-protected:
+private:
virtual rtl::Reference<OLocalExchange> createExchange() const override;
};
class FmFilterNavigator;
-class FmFilterNavigatorDropTarget : public DropTargetHelper
+class FmFilterNavigatorDropTarget final : public DropTargetHelper
{
private:
FmFilterNavigator& m_rTreeView;
@@ -301,12 +301,11 @@ private:
bool getNextEntry(weld::TreeIter& rEntry);
};
-class FmFilterNavigatorWin : public SfxDockingWindow, public SfxControllerItem
+class FmFilterNavigatorWin final : public SfxDockingWindow, public SfxControllerItem
{
private:
std::unique_ptr<FmFilterNavigator> m_xNavigatorTree;
-protected:
virtual bool Close() override;
virtual void GetFocus() override;
virtual Size CalcDockingSize( SfxChildAlignment ) override;
@@ -325,7 +324,7 @@ public:
void FillInfo( SfxChildWinInfo& rInfo ) const override;
};
-class FmFilterNavigatorWinMgr : public SfxChildWindow
+class FmFilterNavigatorWinMgr final : public SfxChildWindow
{
public:
FmFilterNavigatorWinMgr( vcl::Window *pParent, sal_uInt16 nId, SfxBindings *pBindings,
diff --git a/svx/source/inc/fmPropBrw.hxx b/svx/source/inc/fmPropBrw.hxx
index 8fa9f0951e6a..b33597b24d6c 100644
--- a/svx/source/inc/fmPropBrw.hxx
+++ b/svx/source/inc/fmPropBrw.hxx
@@ -29,7 +29,7 @@
#include <svx/fmtools.hxx>
-class FmPropBrwMgr : public SfxChildWindow
+class FmPropBrwMgr final : public SfxChildWindow
{
public:
FmPropBrwMgr(vcl::Window *pParent, sal_uInt16 nId, SfxBindings *pBindings, const SfxChildWinInfo *pInfo);
diff --git a/svx/source/inc/fmexch.hxx b/svx/source/inc/fmexch.hxx
index ffc61af79685..5399ac89c0e5 100644
--- a/svx/source/inc/fmexch.hxx
+++ b/svx/source/inc/fmexch.hxx
@@ -187,7 +187,7 @@ namespace svxform
return m_aCurrentFormats;
}
- class OControlExchange : public OLocalExchange, public OControlTransferData
+ class OControlExchange final : public OLocalExchange, public OControlTransferData
{
public:
OControlExchange( );
@@ -201,12 +201,12 @@ namespace svxform
inline static bool hasControlPathFormat( const DataFlavorExVector& _rFormats );
inline static bool hasHiddenControlModelsFormat( const DataFlavorExVector& _rFormats );
- protected:
+ private:
virtual bool GetData( const css::datatransfer::DataFlavor& rFlavor, const OUString& rDestDoc ) override;
virtual void AddSupportedFormats() override;
};
- class OControlExchangeHelper : public OLocalExchangeHelper
+ class OControlExchangeHelper final : public OLocalExchangeHelper
{
public:
OControlExchangeHelper() : OLocalExchangeHelper() { }
@@ -214,7 +214,7 @@ namespace svxform
OControlExchange* operator->() const { return static_cast< OControlExchange* >( m_xTransferable.get() ); }
OControlExchange& operator*() const { return *static_cast< OControlExchange* >( m_xTransferable.get() ); }
- protected:
+ private:
virtual rtl::Reference<OLocalExchange> createExchange() const override;
};
diff --git a/svx/source/inc/fmexpl.hxx b/svx/source/inc/fmexpl.hxx
index 9dc28709a71a..572b563b7cd9 100644
--- a/svx/source/inc/fmexpl.hxx
+++ b/svx/source/inc/fmexpl.hxx
@@ -52,7 +52,7 @@ class SdrMarkList;
class FmEntryData;
-class FmNavInsertedHint : public SfxHint
+class FmNavInsertedHint final : public SfxHint
{
FmEntryData* pEntryData;
sal_uInt32 nPos;
@@ -66,7 +66,7 @@ public:
};
-class FmNavModelReplacedHint : public SfxHint
+class FmNavModelReplacedHint final : public SfxHint
{
FmEntryData* pEntryData; // the data of the entry that has got a new model
@@ -78,7 +78,7 @@ public:
};
-class FmNavRemovedHint : public SfxHint
+class FmNavRemovedHint final : public SfxHint
{
FmEntryData* pEntryData;
@@ -90,7 +90,7 @@ public:
};
-class FmNavNameChangedHint : public SfxHint
+class FmNavNameChangedHint final : public SfxHint
{
FmEntryData* pEntryData;
OUString aNewName;
@@ -104,7 +104,7 @@ public:
};
-class FmNavClearedHint : public SfxHint
+class FmNavClearedHint final : public SfxHint
{
public:
FmNavClearedHint();
@@ -112,7 +112,7 @@ public:
};
-class FmNavViewMarksChanged : public SfxHint
+class FmNavViewMarksChanged final : public SfxHint
{
FmFormView* pView;
public:
@@ -201,7 +201,7 @@ public:
typedef std::set<FmEntryData*> FmEntryDataArray;
-class FmNavRequestSelectHint : public SfxHint
+class FmNavRequestSelectHint final : public SfxHint
{
FmEntryDataArray m_arredToSelect;
bool m_bMixedSelection;
@@ -219,7 +219,7 @@ public:
};
-class FmFormData : public FmEntryData
+class FmFormData final : public FmEntryData
{
css::uno::Reference< css::form::XForm > m_xForm;
@@ -235,7 +235,7 @@ public:
};
-class FmControlData : public FmEntryData
+class FmControlData final : public FmEntryData
{
css::uno::Reference< css::form::XFormComponent > m_xFormComponent;
@@ -298,7 +298,7 @@ namespace svxform
void Remove( const css::uno::Reference< css::uno::XInterface >& _rxElement );
};
- class NavigatorTreeModel : public SfxBroadcaster
+ class NavigatorTreeModel final : public SfxBroadcaster
,public SfxListener
{
friend class NavigatorTree;
@@ -358,7 +358,7 @@ namespace svxform
class NavigatorTree;
- class NavigatorTreeDropTarget : public DropTargetHelper
+ class NavigatorTreeDropTarget final : public DropTargetHelper
{
private:
NavigatorTree& m_rTreeView;
@@ -514,12 +514,11 @@ namespace svxform
bool doingKeyboardCut( ) const { return m_bKeyboardCut; }
};
- class NavigatorFrame : public SfxDockingWindow, public SfxControllerItem
+ class NavigatorFrame final : public SfxDockingWindow, public SfxControllerItem
{
private:
std::unique_ptr<NavigatorTree> m_xNavigatorTree;
- protected:
virtual bool Close() override;
virtual void GetFocus() override;
virtual Size CalcDockingSize( SfxChildAlignment ) override;
@@ -538,7 +537,7 @@ namespace svxform
void FillInfo( SfxChildWinInfo& rInfo ) const override;
};
- class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) NavigatorFrameManager : public SfxChildWindow
+ class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) NavigatorFrameManager final : public SfxChildWindow
{
public:
SVX_DLLPRIVATE NavigatorFrameManager( vcl::Window *pParent, sal_uInt16 nId, SfxBindings *pBindings,
diff --git a/svx/source/inc/fmobj.hxx b/svx/source/inc/fmobj.hxx
index 6e6b2d0edb4f..d604cfd207ac 100644
--- a/svx/source/inc/fmobj.hxx
+++ b/svx/source/inc/fmobj.hxx
@@ -28,7 +28,7 @@
// FmFormObj
-class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) FmFormObj : public SdrUnoObj
+class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) FmFormObj final : public SdrUnoObj
{
FmFormObj( const FmFormObj& ) = delete;
@@ -47,7 +47,6 @@ class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) FmFormObj : public SdrUnoObj
// the last ref device we know, as set at the model
// only to be used for comparison with the current ref device!
-protected:
// protected destructor
SAL_DLLPRIVATE virtual ~FmFormObj() override;
@@ -97,11 +96,10 @@ public:
SAL_DLLPRIVATE virtual void SetUnoControlModel( const css::uno::Reference< css::awt::XControlModel >& _rxModel ) override;
-protected:
+private:
SAL_DLLPRIVATE virtual bool EndCreate( SdrDragStat& rStat, SdrCreateCmd eCmd ) override;
SAL_DLLPRIVATE virtual void BrkCreate( SdrDragStat& rStat ) override;
-private:
/** isolates the control model from its form component hierarchy, i.e. removes it from
its parent.
*/
diff --git a/svx/source/inc/fmscriptingenv.hxx b/svx/source/inc/fmscriptingenv.hxx
index ef4f29f80418..18d8a5e44ad5 100644
--- a/svx/source/inc/fmscriptingenv.hxx
+++ b/svx/source/inc/fmscriptingenv.hxx
@@ -35,7 +35,7 @@ namespace svxform
/** describes the interface implemented by a component which handles scripting requirements
in a form/control environment.
*/
- class FormScriptingEnvironment : public ::salhelper::SimpleReferenceObject
+ class FormScriptingEnvironment final : public ::salhelper::SimpleReferenceObject
{
friend class FormScriptListener;
public:
diff --git a/svx/source/inc/fmshimp.hxx b/svx/source/inc/fmshimp.hxx
index 4c296ed820b7..f347e6cd2e7b 100644
--- a/svx/source/inc/fmshimp.hxx
+++ b/svx/source/inc/fmshimp.hxx
@@ -94,12 +94,12 @@ namespace weld {
// a class iterating through all fields of a form which are bound to a field
// sub forms are ignored, grid columns (where the grid is a direct child of the form) are included
-class FmXBoundFormFieldIterator : public ::comphelper::IndexAccessIterator
+class FmXBoundFormFieldIterator final : public ::comphelper::IndexAccessIterator
{
public:
FmXBoundFormFieldIterator(const css::uno::Reference< css::uno::XInterface>& _rStartingPoint) : ::comphelper::IndexAccessIterator(_rStartingPoint) { }
-protected:
+private:
virtual bool ShouldHandleElement(const css::uno::Reference< css::uno::XInterface>& _rElement) override;
virtual bool ShouldStepInto(const css::uno::Reference< css::uno::XInterface>& _rContainer) const override;
};
@@ -541,7 +541,7 @@ inline bool FmXFormShell::IsSelectionUpdatePending_Lock() const
// = for that object is omitted.
// =
-class SearchableControlIterator : public ::comphelper::IndexAccessIterator
+class SearchableControlIterator final : public ::comphelper::IndexAccessIterator
{
OUString m_sCurrentValue;
// the current value of the ControlSource css::beans::Property
@@ -549,7 +549,6 @@ class SearchableControlIterator : public ::comphelper::IndexAccessIterator
public:
const OUString& getCurrentValue() const { return m_sCurrentValue; }
-public:
SearchableControlIterator(css::uno::Reference< css::uno::XInterface> const & xStartingPoint);
virtual bool ShouldHandleElement(const css::uno::Reference< css::uno::XInterface>& rElement) override;
diff --git a/svx/source/inc/fmtextcontroldialogs.hxx b/svx/source/inc/fmtextcontroldialogs.hxx
index 613f17bf5c4a..e915b06f1a53 100644
--- a/svx/source/inc/fmtextcontroldialogs.hxx
+++ b/svx/source/inc/fmtextcontroldialogs.hxx
@@ -26,7 +26,7 @@
namespace svx
{
- class TextControlCharAttribDialog : public SfxTabDialogController
+ class TextControlCharAttribDialog final : public SfxTabDialogController
{
private:
SvxFontListItem m_aFontList;
@@ -34,11 +34,11 @@ namespace svx
public:
TextControlCharAttribDialog(weld::Window* pParent, const SfxItemSet& rCoreSet, const SvxFontListItem& rFontList);
- protected:
+ private:
virtual void PageCreated(const OString& rId, SfxTabPage& _rPage) override;
};
- class TextControlParaAttribDialog : public SfxTabDialogController
+ class TextControlParaAttribDialog final : public SfxTabDialogController
{
public:
TextControlParaAttribDialog(weld::Window* pParent, const SfxItemSet& rCoreSet);
diff --git a/svx/source/inc/fmtextcontrolfeature.hxx b/svx/source/inc/fmtextcontrolfeature.hxx
index 0acc884bcd1d..2414f2bbdfff 100644
--- a/svx/source/inc/fmtextcontrolfeature.hxx
+++ b/svx/source/inc/fmtextcontrolfeature.hxx
@@ -35,7 +35,7 @@ namespace svx
typedef ::cppu::WeakImplHelper < css::frame::XStatusListener
> FmTextControlFeature_Base;
- class FmTextControlFeature : public FmTextControlFeature_Base
+ class FmTextControlFeature final : public FmTextControlFeature_Base
{
private:
css::uno::Reference< css::frame::XDispatch >
@@ -75,10 +75,9 @@ namespace svx
/// releases any resources associated with this instance
void dispose();
- protected:
+ private:
virtual ~FmTextControlFeature() override;
- protected:
// XStatusListener
virtual void SAL_CALL statusChanged( const css::frame::FeatureStateEvent& State ) override;
virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
diff --git a/svx/source/inc/fmtextcontrolshell.hxx b/svx/source/inc/fmtextcontrolshell.hxx
index 4f6714de4d76..77ea5c5d2f94 100644
--- a/svx/source/inc/fmtextcontrolshell.hxx
+++ b/svx/source/inc/fmtextcontrolshell.hxx
@@ -71,7 +71,7 @@ namespace svx
~IContextRequestObserver() {}
};
- class FmTextControlShell :public IFocusObserver
+ class FmTextControlShell final : public IFocusObserver
,public IContextRequestObserver
{
private:
@@ -135,7 +135,7 @@ namespace svx
void Invalidate( SfxSlotId _nSlot );
- protected:
+ private:
// IFocusObserver
virtual void focusGained( const css::awt::FocusEvent& _rEvent ) override;
virtual void focusLost( const css::awt::FocusEvent& _rEvent ) override;
@@ -148,7 +148,6 @@ namespace svx
void executeSelectAll( );
void executeClipboardSlot( SfxSlotId _nSlot );
- private:
bool isControllerListening() const { return !m_aControlObservers.empty(); }
rtl::Reference<FmTextControlFeature>
diff --git a/svx/source/inc/fmundo.hxx b/svx/source/inc/fmundo.hxx
index 02b8f4998766..61792e1afa3f 100644
--- a/svx/source/inc/fmundo.hxx
+++ b/svx/source/inc/fmundo.hxx
@@ -43,7 +43,7 @@ class FmFormModel;
class FmFormObj;
class SdrObject;
-class FmUndoPropertyAction: public SdrUndoAction
+class FmUndoPropertyAction final : public SdrUndoAction
{
css::uno::Reference< css::beans::XPropertySet> xObj;
OUString aPropertyName;
@@ -97,7 +97,7 @@ private:
Action m_eAction;
};
-class FmUndoModelReplaceAction : public SdrUndoAction
+class FmUndoModelReplaceAction final : public SdrUndoAction
{
css::uno::Reference< css::awt::XControlModel> m_xReplaced;
SdrUnoObj* m_pObject;
diff --git a/svx/source/inc/fmvwimp.hxx b/svx/source/inc/fmvwimp.hxx
index ee85e565e4c0..c7cb3681b418 100644
--- a/svx/source/inc/fmvwimp.hxx
+++ b/svx/source/inc/fmvwimp.hxx
@@ -129,7 +129,7 @@ private:
class SdrModel;
-class FmXFormView : public ::cppu::WeakImplHelper<
+class FmXFormView final : public ::cppu::WeakImplHelper<
css::form::XFormControllerListener,
css::awt::XFocusListener,
css::container::XContainerListener>
@@ -172,7 +172,6 @@ class FmXFormView : public ::cppu::WeakImplHelper<
css::uno::Reference<css::awt::XWindow> GetParentWindow() const;
-protected:
FmXFormView( FmFormView* _pView );
virtual ~FmXFormView() override;
diff --git a/svx/source/inc/formcontrolling.hxx b/svx/source/inc/formcontrolling.hxx
index dc93489c343c..c9bd8f23f8a6 100644
--- a/svx/source/inc/formcontrolling.hxx
+++ b/svx/source/inc/formcontrolling.hxx
@@ -128,9 +128,8 @@ namespace svx
A <em>feature</em> is for instance moving the form associated with the controller
to a certain position, or reloading the form, and so on.</p>
*/
- class FormControllerHelper : public FormControllerHelper_Base
+ class FormControllerHelper final : public FormControllerHelper_Base
{
- protected:
IControllerFeatureInvalidation* m_pInvalidationCallback;
css::uno::Reference< css::form::runtime::XFormOperations >
m_xFormOperations;
@@ -174,7 +173,7 @@ namespace svx
*/
void dispose();
- protected:
+ private:
/// dtor
virtual ~FormControllerHelper() override;
@@ -188,7 +187,6 @@ namespace svx
// XEventListener
virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
- private:
enum FormOperation { EXECUTE, EXECUTE_ARGS, COMMIT_CONTROL, COMMIT_RECORD };
bool impl_operateForm_nothrow(
diff --git a/svx/source/inc/gridcell.hxx b/svx/source/inc/gridcell.hxx
index 0ffeebcf84b2..8a0ecc5b52fa 100644
--- a/svx/source/inc/gridcell.hxx
+++ b/svx/source/inc/gridcell.hxx
@@ -377,13 +377,12 @@ protected:
};
-class DbTextField : public DbLimitedLengthField
+class DbTextField final : public DbLimitedLengthField
{
std::unique_ptr<::svt::IEditImplementation> m_pEdit;
std::unique_ptr<::svt::IEditImplementation> m_pPainterImplementation;
bool m_bIsSimpleEdit;
-protected:
virtual ~DbTextField( ) override;
public:
@@ -400,7 +399,7 @@ public:
const css::uno::Reference< css::sdb::XColumn >& _rxField,
const css::uno::Reference< css::util::XNumberFormatter >& _rxFormatter ) override;
-protected:
+private:
// DbCellControl
virtual bool commitControl( ) override;
virtual void updateFromModel( css::uno::Reference< css::beans::XPropertySet > _rxModel ) override;
@@ -432,7 +431,7 @@ private:
};
-class DbCheckBox : public DbCellControl
+class DbCheckBox final : public DbCellControl
{
public:
DbCheckBox(DbGridColumn& _rColumn);
@@ -445,14 +444,14 @@ public:
const css::uno::Reference< css::util::XNumberFormatter >& xFormatter) override;
virtual OUString GetFormatText(const css::uno::Reference< css::sdb::XColumn >& _rxField, const css::uno::Reference< css::util::XNumberFormatter >& xFormatter, const Color** ppColor = nullptr) override;
-protected:
+private:
// DbCellControl
virtual bool commitControl( ) override;
virtual void updateFromModel( css::uno::Reference< css::beans::XPropertySet > _rxModel ) override;
};
-class DbComboBox : public DbCellControl
+class DbComboBox final : public DbCellControl
{
public:
@@ -465,7 +464,7 @@ public:
void SetList(const css::uno::Any& rItems);
-protected:
+private:
// DbCellControl
virtual bool commitControl( ) override;
virtual void updateFromModel( css::uno::Reference< css::beans::XPropertySet > _rxModel ) override;
@@ -477,7 +476,7 @@ protected:
};
-class DbListBox :public DbCellControl
+class DbListBox final : public DbCellControl
{
bool m_bBound : 1;
css::uno::Sequence< OUString > m_aValueList;
@@ -492,7 +491,7 @@ public:
void SetList(const css::uno::Any& rItems);
-protected:
+private:
// DbCellControl
virtual bool commitControl( ) override;
virtual void updateFromModel( css::uno::Reference< css::beans::XPropertySet > _rxModel ) override;
@@ -504,7 +503,7 @@ protected:
};
-class DbPatternField : public DbCellControl
+class DbPatternField final : public DbCellControl
{
public:
DbPatternField( DbGridColumn& _rColumn, const css::uno::Reference<css::uno::XComponentContext>& _rContext );
@@ -513,17 +512,15 @@ public:
virtual void UpdateFromField(const css::uno::Reference< css::sdb::XColumn >& _rxField, const css::uno::Reference< css::util::XNumberFormatter >& xFormatter) override;
virtual ::svt::CellControllerRef CreateController() const override;
-protected:
+private:
/// DbCellControl
virtual bool commitControl( ) override;
virtual void updateFromModel( css::uno::Reference< css::beans::XPropertySet > _rxModel ) override;
virtual void implAdjustGenericFieldSetting( const css::uno::Reference< css::beans::XPropertySet >& _rxModel ) override;
-private:
OUString impl_formatText(const OUString& _rText);
-private:
::std::unique_ptr< ::dbtools::FormattedColumnValue > m_pValueFormatter;
::std::unique_ptr< ::dbtools::FormattedColumnValue > m_pPaintFormatter;
css::uno::Reference<css::uno::XComponentContext> m_xContext;
@@ -552,14 +549,14 @@ protected:
) = 0;
};
-class DbDateField : public DbSpinField
+class DbDateField final : public DbSpinField
{
public:
DbDateField(DbGridColumn& _rColumn);
virtual OUString GetFormatText(const css::uno::Reference< css::sdb::XColumn >& _rxField, const css::uno::Reference< css::util::XNumberFormatter >& xFormatter, const Color** ppColor = nullptr) override;
virtual void UpdateFromField(const css::uno::Reference< css::sdb::XColumn >& _rxField, const css::uno::Reference< css::util::XNumberFormatter >& xFormatter) override;
-protected:
+private:
// DbCellControl
virtual bool commitControl( ) override;
virtual void updateFromModel( css::uno::Reference< css::beans::XPropertySet > _rxModel ) override;
@@ -575,14 +572,14 @@ protected:
virtual void implAdjustGenericFieldSetting( const css::uno::Reference< css::beans::XPropertySet >& _rxModel ) override;
};
-class DbTimeField : public DbSpinField
+class DbTimeField final : public DbSpinField
{
public:
DbTimeField(DbGridColumn& _rColumn);
virtual OUString GetFormatText(const css::uno::Reference< css::sdb::XColumn >& _rxField, const css::uno::Reference< css::util::XNumberFormatter >& xFormatter, const Color** ppColor = nullptr) override;
virtual void UpdateFromField(const css::uno::Reference< css::sdb::XColumn >& _rxField, const css::uno::Reference< css::util::XNumberFormatter >& xFormatter) override;
-protected:
+private:
// DbCellControl
virtual bool commitControl( ) override;
virtual void updateFromModel( css::uno::Reference< css::beans::XPropertySet > _rxModel ) override;
@@ -598,14 +595,14 @@ protected:
virtual void implAdjustGenericFieldSetting( const css::uno::Reference< css::beans::XPropertySet >& _rxModel ) override;
};
-class DbCurrencyField : public DbSpinField
+class DbCurrencyField final : public DbSpinField
{
public:
DbCurrencyField(DbGridColumn& _rColumn);
virtual OUString GetFormatText(const css::uno::Reference< css::sdb::XColumn >& _rxField, const css::uno::Reference< css::util::XNumberFormatter >& xFormatter, const Color** ppColor = nullptr) override;
virtual void UpdateFromField(const css::uno::Reference< css::sdb::XColumn >& _rxField, const css::uno::Reference< css::util::XNumberFormatter >& xFormatter) override;
-protected:
+private:
// DbCellControl
virtual bool commitControl( ) override;
virtual void updateFromModel( css::uno::Reference< css::beans::XPropertySet > _rxModel ) override;
@@ -621,7 +618,7 @@ protected:
virtual void implAdjustGenericFieldSetting( const css::uno::Reference< css::beans::XPropertySet >& _rxModel ) override;
};
-class DbNumericField : public DbSpinField
+class DbNumericField final : public DbSpinField
{
public:
DbNumericField(DbGridColumn& _rColumn);
@@ -629,7 +626,7 @@ public:
virtual OUString GetFormatText(const css::uno::Reference< css::sdb::XColumn >& _rxField, const css::uno::Reference< css::util::XNumberFormatter >& xFormatter, const Color** ppColor = nullptr) override;
virtual void UpdateFromField(const css::uno::Reference< css::sdb::XColumn >& _rxField, const css::uno::Reference< css::util::XNumberFormatter >& xFormatter) override;
-protected:
+private:
// DbCellControl
virtual bool commitControl( ) override;
virtual void updateFromModel( css::uno::Reference< css::beans::XPropertySet > _rxModel ) override;
@@ -900,7 +897,7 @@ private:
typedef ::cppu::ImplHelper2 < css::awt::XCheckBox
, css::awt::XButton
> FmXCheckBoxCell_Base;
-class FmXCheckBoxCell : public FmXDataCell,
+class FmXCheckBoxCell final : public FmXDataCell,
public FmXCheckBoxCell_Base
{
::comphelper::OInterfaceContainerHelper2 m_aItemListeners;
@@ -910,7 +907,6 @@ class FmXCheckBoxCell : public FmXDataCell,
DECL_LINK(ModifyHdl, LinkParamNone*, void);
-protected:
virtual ~FmXCheckBoxCell() override;
public:
diff --git a/svx/source/inc/tablemodel.hxx b/svx/source/inc/tablemodel.hxx
index c97b15be3e6c..63c08a9b8891 100644
--- a/svx/source/inc/tablemodel.hxx
+++ b/svx/source/inc/tablemodel.hxx
@@ -50,7 +50,7 @@ protected:
typedef ::cppu::WeakComponentImplHelper< css::table::XTable, css::util::XBroadcaster > TableModelBase;
-class TableModel : public ::cppu::BaseMutex,
+class TableModel final : public ::cppu::BaseMutex,
public TableModelBase,
public ICellRange
{
@@ -135,7 +135,7 @@ public:
virtual void SAL_CALL lockBroadcasts() override;
virtual void SAL_CALL unlockBroadcasts() override;
-protected:
+private:
void notifyModification();
void insertColumns( sal_Int32 nIndex, sal_Int32 nCount );
diff --git a/svx/source/inc/tabwin.hxx b/svx/source/inc/tabwin.hxx
index 5de4bc33357b..c1cf70664bcc 100644
--- a/svx/source/inc/tabwin.hxx
+++ b/svx/source/inc/tabwin.hxx
@@ -31,7 +31,7 @@
class FmFormShell;
struct ColumnInfo;
-class FmFieldWin : public SfxModelessDialogController
+class FmFieldWin final : public SfxModelessDialogController
, public SfxControllerItem
, public ::comphelper::OPropertyChangeListener
{
@@ -70,16 +70,15 @@ public:
bool createSelectionControls( );
-protected:
+private:
// FmXChangeListener
virtual void _propertyChanged(const css::beans::PropertyChangeEvent& evt) override;
-protected:
using SfxControllerItem::GetBindings;
};
-class FmFieldWinMgr : public SfxChildWindow
+class FmFieldWinMgr final : public SfxChildWindow
{
public:
FmFieldWinMgr(vcl::Window *pParent, sal_uInt16 nId,
diff --git a/svx/source/inc/tbxform.hxx b/svx/source/inc/tbxform.hxx
index 4afc994c20fb..20c22a0b5863 100644
--- a/svx/source/inc/tbxform.hxx
+++ b/svx/source/inc/tbxform.hxx
@@ -33,7 +33,7 @@ private:
SfxToolBoxControl* m_pController;
};
-class SvxFmTbxCtlAbsRec : public SfxToolBoxControl
+class SvxFmTbxCtlAbsRec final : public SfxToolBoxControl
{
public:
SFX_DECL_TOOLBOX_CONTROL();
@@ -47,7 +47,7 @@ public:
const SfxPoolItem* pState) override;
};
-class SvxFmTbxCtlRecText : public SfxToolBoxControl
+class SvxFmTbxCtlRecText final : public SfxToolBoxControl
{
public:
SFX_DECL_TOOLBOX_CONTROL();
@@ -58,7 +58,7 @@ public:
virtual VclPtr<InterimItemWindow> CreateItemWindow(vcl::Window* pParent) override;
};
-class SvxFmTbxCtlRecFromText : public SfxToolBoxControl
+class SvxFmTbxCtlRecFromText final : public SfxToolBoxControl
{
public:
SFX_DECL_TOOLBOX_CONTROL();
@@ -71,7 +71,7 @@ public:
class LabelItemWindow;
-class SvxFmTbxCtlRecTotal : public SfxToolBoxControl
+class SvxFmTbxCtlRecTotal final : public SfxToolBoxControl
{
VclPtr<LabelItemWindow> m_xFixedText;
@@ -86,14 +86,14 @@ public:
const SfxPoolItem* pState) override;
};
-class SvxFmTbxNextRec : public SfxToolBoxControl
+class SvxFmTbxNextRec final : public SfxToolBoxControl
{
public:
SFX_DECL_TOOLBOX_CONTROL();
SvxFmTbxNextRec(sal_uInt16 nSlotId, ToolBoxItemId nId, ToolBox& rTbx);
};
-class SvxFmTbxPrevRec : public SfxToolBoxControl
+class SvxFmTbxPrevRec final : public SfxToolBoxControl
{
public:
SFX_DECL_TOOLBOX_CONTROL();
diff --git a/svx/source/inc/xmlxtexp.hxx b/svx/source/inc/xmlxtexp.hxx
index 6ed07675b4f6..e47dbf1df934 100644
--- a/svx/source/inc/xmlxtexp.hxx
+++ b/svx/source/inc/xmlxtexp.hxx
@@ -31,7 +31,7 @@ namespace com::sun::star {
namespace xml::sax { class XDocumentHandler; }
}
-class SvxXMLXTableExportComponent : public SvXMLExport
+class SvxXMLXTableExportComponent final : public SvXMLExport
{
public:
SvxXMLXTableExportComponent(
diff --git a/svx/source/inc/xmlxtimp.hxx b/svx/source/inc/xmlxtimp.hxx
index a5bf4b39a1f0..ee442ac40c41 100644
--- a/svx/source/inc/xmlxtimp.hxx
+++ b/svx/source/inc/xmlxtimp.hxx
@@ -29,7 +29,7 @@ namespace com::sun::star {
namespace container { class XNameContainer; }
}
-class SvxXMLXTableImport : public SvXMLImport
+class SvxXMLXTableImport final : public SvXMLImport
{
public:
SvxXMLXTableImport(
@@ -43,11 +43,10 @@ public:
const css::uno::Reference < css::embed::XStorage > &xStorage,
const css::uno::Reference< css::container::XNameContainer >& xTable,
bool *bOptLoadedFromStorage ) noexcept;
-protected:
+private:
virtual SvXMLImportContext *CreateFastContext( sal_Int32 Element,
const ::css::uno::Reference< ::css::xml::sax::XFastAttributeList >& xAttrList ) override;
-private:
const css::uno::Reference< css::container::XNameContainer > & mrTable;
};
More information about the Libreoffice-commits
mailing list