summaryrefslogtreecommitdiff
path: root/vcl/inc/listbox.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-06-25 09:29:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-06-28 08:52:07 +0200
commit0171a9e2f0dc9dd2dc85b23871a8f32418b9edf2 (patch)
treefe86413b43a8f6280444a2fbd6b15c45515e2f88 /vcl/inc/listbox.hxx
parent5f9fb51ba84619c60f304afda76a013a8f3dc14c (diff)
loplugin:finalclasses in vcl
Change-Id: I0bad93927248e5d8d19a69661a1b243e55791fd9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117889 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/inc/listbox.hxx')
-rw-r--r--vcl/inc/listbox.hxx16
1 files changed, 6 insertions, 10 deletions
diff --git a/vcl/inc/listbox.hxx b/vcl/inc/listbox.hxx
index 95c2ed959627..29a570a17aa2 100644
--- a/vcl/inc/listbox.hxx
+++ b/vcl/inc/listbox.hxx
@@ -171,7 +171,7 @@ public:
sal_Int32 FindFirstSelectable( sal_Int32 nPos, bool bForward = true );
};
-class ImplListBoxWindow : public Control, public vcl::ISearchableStringList
+class ImplListBoxWindow final : public Control, public vcl::ISearchableStringList
{
private:
std::unique_ptr<ImplEntryList> mpEntryList; ///< EntryList
@@ -232,7 +232,6 @@ private:
vcl::QuickSelectionEngine maQuickSelectionEngine;
-protected:
virtual void KeyInput( const KeyEvent& rKEvt ) override;
virtual void MouseButtonDown( const MouseEvent& rMEvt ) override;
virtual void MouseMove( const MouseEvent& rMEvt ) override;
@@ -366,14 +365,14 @@ public:
using Control::ImplInitSettings;
virtual void ApplySettings(vcl::RenderContext& rRenderContext) override;
-protected:
+private:
// ISearchableStringList
virtual vcl::StringEntryIdentifier CurrentEntry( OUString& _out_entryText ) const override;
virtual vcl::StringEntryIdentifier NextEntry( vcl::StringEntryIdentifier _currentEntry, OUString& _out_entryText ) const override;
virtual void SelectEntry( vcl::StringEntryIdentifier _entry ) override;
};
-class ImplListBox : public Control
+class ImplListBox final : public Control
{
private:
VclPtr<ImplListBoxWindow> maLBWindow;
@@ -388,7 +387,6 @@ private:
Link<ImplListBox*,void> maScrollHdl; // because it is needed by ImplListBoxWindow itself
-protected:
virtual void GetFocus() override;
virtual void StateChanged( StateChangedType nType ) override;
@@ -494,7 +492,7 @@ public:
void SetEdgeBlending(bool bNew);
};
-class ImplListBoxFloatingWindow : public FloatingWindow
+class ImplListBoxFloatingWindow final : public FloatingWindow
{
private:
VclPtr<ImplListBox> mpImplLB;
@@ -503,7 +501,6 @@ private:
sal_Int32 mnPopupModeStartSaveSelection;
bool mbAutoWidth;
-protected:
virtual bool PreNotify( NotifyEvent& rNEvt ) override;
public:
@@ -531,7 +528,7 @@ public:
virtual void Resize() override;
};
-class ImplWin : public Control
+class ImplWin final : public Control
{
private:
@@ -546,7 +543,6 @@ private:
bool mbEdgeBlending : 1;
void ImplDraw(vcl::RenderContext& rRenderContext, bool bLayout = false);
-protected:
virtual void FillLayoutData() const override;
public:
@@ -580,7 +576,7 @@ public:
};
-class ImplBtn : public PushButton
+class ImplBtn final : public PushButton
{
private:
Link<void*,void> maMBDownHdl;