diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-03 13:49:58 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-03 20:06:23 +0100 |
commit | b64efd7b291cfb231ab511ec80db2d12b30ac05d (patch) | |
tree | 017fb6867646f2580fa7b208eabc5f4211f17356 /basctl | |
parent | 0464b86787da269be7b16a6f1f124d774f78fa97 (diff) |
Revert "loplugin:finalclasses"
This reverts commit 9ce9011230a97f3fe4fcd2f8d761781c4300772b.
Reason for revert: see comments in https://gerrit.libreoffice.org/c/core/+/124632
Change-Id: Ibc8b7a8c190e7a8afec793c1202dba97ac6909bd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124483
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/inc/IDEComboBox.hxx | 14 | ||||
-rw-r--r-- | basctl/source/inc/ObjectCatalog.hxx | 2 | ||||
-rw-r--r-- | basctl/source/inc/baside3.hxx | 17 | ||||
-rw-r--r-- | basctl/source/inc/basidectrlr.hxx | 4 | ||||
-rw-r--r-- | basctl/source/inc/basidesh.hxx | 2 | ||||
-rw-r--r-- | basctl/source/inc/bastype2.hxx | 7 | ||||
-rw-r--r-- | basctl/source/inc/bastypes.hxx | 3 | ||||
-rw-r--r-- | basctl/source/inc/dlged.hxx | 4 | ||||
-rw-r--r-- | basctl/source/inc/dlgedfunc.hxx | 4 | ||||
-rw-r--r-- | basctl/source/inc/dlgedlist.hxx | 4 | ||||
-rw-r--r-- | basctl/source/inc/dlgedmod.hxx | 2 | ||||
-rw-r--r-- | basctl/source/inc/dlgedobj.hxx | 6 | ||||
-rw-r--r-- | basctl/source/inc/dlgedview.hxx | 4 | ||||
-rw-r--r-- | basctl/source/inc/managelang.hxx | 4 | ||||
-rw-r--r-- | basctl/source/inc/sbxitem.hxx | 2 |
15 files changed, 47 insertions, 32 deletions
diff --git a/basctl/source/inc/IDEComboBox.hxx b/basctl/source/inc/IDEComboBox.hxx index 5c5fdfc8385b..a5e7008a42e9 100644 --- a/basctl/source/inc/IDEComboBox.hxx +++ b/basctl/source/inc/IDEComboBox.hxx @@ -33,7 +33,7 @@ namespace basctl * * @see LibBox Class */ -class LibBoxControl final : public SfxToolBoxControl +class LibBoxControl : public SfxToolBoxControl { public: /*! @@ -121,7 +121,7 @@ public: * * @see LibBoxControl Class */ -class LibBox final : public DocListenerBox +class LibBox : public DocListenerBox { public: /// @param pParent @@ -136,10 +136,11 @@ public: */ void Update(const SfxStringItem* pItem); -private: +protected: /// Called for setting language when user selects a language in ComboBox virtual void Select() override; +private: static void ReleaseFocus(); /*! @@ -177,7 +178,7 @@ private: * * @see LanguageBox Class */ -class LanguageBoxControl final : public SfxToolBoxControl +class LanguageBoxControl : public SfxToolBoxControl { public: /*! Macro for registering two methods @@ -220,7 +221,7 @@ public: * * @see LanguageBoxControl Class */ -class LanguageBox final : public DocListenerBox +class LanguageBox : public DocListenerBox { public: /*! @@ -237,7 +238,7 @@ public: */ void Update(const SfxStringItem* pItem); -private: +protected: /// Called for setting language when user selects a language in ComboBox virtual void Select() override; @@ -249,6 +250,7 @@ private: */ virtual bool HandleKeyInput(const KeyEvent& rKEvt) override; +private: /// Delete all languages from ComboBox void ClearBox(); /// Switch interface of dialog to selected language diff --git a/basctl/source/inc/ObjectCatalog.hxx b/basctl/source/inc/ObjectCatalog.hxx index 8ea0cd023b67..a5b63eef424a 100644 --- a/basctl/source/inc/ObjectCatalog.hxx +++ b/basctl/source/inc/ObjectCatalog.hxx @@ -33,7 +33,7 @@ namespace basctl * in a tree structure which allows user to quickly select the necessary * macro in BasicIDE. */ -class ObjectCatalog final : public DockingWindow +class ObjectCatalog : public DockingWindow { public: explicit ObjectCatalog(vcl::Window* pParent); diff --git a/basctl/source/inc/baside3.hxx b/basctl/source/inc/baside3.hxx index 3eef27cd2f63..f5d367182d0a 100644 --- a/basctl/source/inc/baside3.hxx +++ b/basctl/source/inc/baside3.hxx @@ -45,13 +45,15 @@ class ObjectCatalog; bool implImportDialog(weld::Window* pWin, const ScriptDocument& rDocument, const OUString& rLibName); -class DialogWindow final : public BaseWindow +class DialogWindow: public BaseWindow { +private: DialogWindowLayout& m_rLayout; std::unique_ptr<DlgEditor> m_pEditor; std::unique_ptr<SfxUndoManager> m_pUndoMgr; // never nullptr sal_uInt16 m_nControlSlotId; +protected: virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect) override; virtual void Resize() override; virtual void dispose() override; @@ -112,32 +114,37 @@ public: // DialogWindowLayout -class DialogWindowLayout final : public Layout +class DialogWindowLayout : public Layout { public: DialogWindowLayout (vcl::Window* pParent, ObjectCatalog&); virtual ~DialogWindowLayout() override; virtual void dispose() override; +public: void ShowPropertyBrowser (); void UpdatePropertyBrowser (); void DisablePropertyBrowser (); +public: // Layout: virtual void Activating (BaseWindow&) override; virtual void Deactivating () override; virtual void ExecuteGlobal (SfxRequest&) override; virtual void GetState (SfxItemSet&, unsigned nWhich) override; virtual void UpdateDebug (bool) override {}; - -private: +protected: // Layout: virtual void OnFirstSize (tools::Long nWidth, tools::Long nHeight) override; + +private: // dockable windows: // object catalog (owned by Shell) ObjectCatalog& rObjectCatalog; // property browser (created by this, deleted by toolkit) VclPtr<PropBrw> pPropertyBrowser; - void AddPropertyBrowser (); +private: + void AddPropertyBrowser (); +private: friend class DialogWindow; }; diff --git a/basctl/source/inc/basidectrlr.hxx b/basctl/source/inc/basidectrlr.hxx index 449ad0b4dc5e..a32e1ffd94af 100644 --- a/basctl/source/inc/basidectrlr.hxx +++ b/basctl/source/inc/basidectrlr.hxx @@ -29,7 +29,7 @@ namespace basctl class Shell; -class Controller final : +class Controller : public comphelper::OMutexAndBroadcastHelper, public comphelper::OPropertyContainer, public comphelper::OPropertyArrayUsageHelper<Controller>, @@ -58,7 +58,7 @@ public: // OPropertySetHelper virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override; -private: +protected: // OPropertyArrayUsageHelper virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const override; }; diff --git a/basctl/source/inc/basidesh.hxx b/basctl/source/inc/basidesh.hxx index e09601d65ec2..2d494cd8d4ee 100644 --- a/basctl/source/inc/basidesh.hxx +++ b/basctl/source/inc/basidesh.hxx @@ -49,7 +49,7 @@ class TabBar; class BaseWindow; class LocalizationMgr; -class Shell final : +class Shell : public SfxViewShell, public DocumentEventListener { diff --git a/basctl/source/inc/bastype2.hxx b/basctl/source/inc/bastype2.hxx index cfc916867c63..e2e81a26916c 100644 --- a/basctl/source/inc/bastype2.hxx +++ b/basctl/source/inc/bastype2.hxx @@ -100,7 +100,7 @@ public: LibraryLocation GetLocation() const { return m_eLocation; } }; -class LibEntry final : public DocumentEntry +class LibEntry : public DocumentEntry { private: OUString m_aLibName; @@ -171,7 +171,7 @@ public: */ -class SbTreeListBox final : public DocumentEventListener +class SbTreeListBox : public DocumentEventListener { private: std::unique_ptr<weld::TreeView> m_xControl; @@ -180,8 +180,9 @@ private: bool m_bFreezeOnFirstAddRemove; BrowseMode nMode; DocumentEventNotifier m_aNotifier; - void SetEntryBitmaps(const weld::TreeIter& rIter, const OUString& rImage); + +protected: DECL_LINK(RequestingChildrenHdl, const weld::TreeIter&, bool); DECL_LINK(OpenCurrentHdl, weld::TreeView&, bool); void ImpCreateLibEntries(const weld::TreeIter& rShellRootEntry, const ScriptDocument& rDocument, LibraryLocation eLocation); diff --git a/basctl/source/inc/bastypes.hxx b/basctl/source/inc/bastypes.hxx index 19fe8bbe8c62..e6e306a73b5a 100644 --- a/basctl/source/inc/bastypes.hxx +++ b/basctl/source/inc/bastypes.hxx @@ -124,8 +124,9 @@ private: // basctl::TabBar // Not to be confused with ::TabBar from svtools. -class TabBar final : public ::TabBar +class TabBar : public ::TabBar { +protected: virtual void MouseButtonDown( const MouseEvent& rMEvt ) override; virtual void Command( const CommandEvent& rCEvt ) override; diff --git a/basctl/source/inc/dlged.hxx b/basctl/source/inc/dlged.hxx index 8948b75a56c3..82d3a14f605d 100644 --- a/basctl/source/inc/dlged.hxx +++ b/basctl/source/inc/dlged.hxx @@ -57,7 +57,7 @@ class DialogWindowLayout; class DlgEdObj; -class DlgEdHint final : public SfxHint +class DlgEdHint: public SfxHint { public: enum Kind { @@ -92,7 +92,7 @@ class DlgEdForm; class DlgEdFactory; class DlgEdFunc; -class DlgEditor final : public SfxBroadcaster +class DlgEditor: public SfxBroadcaster { public: enum Mode { diff --git a/basctl/source/inc/dlgedfunc.hxx b/basctl/source/inc/dlgedfunc.hxx index bbb128bf3938..9e20f39015a8 100644 --- a/basctl/source/inc/dlgedfunc.hxx +++ b/basctl/source/inc/dlgedfunc.hxx @@ -51,7 +51,7 @@ public: // DlgEdFuncInsert -class DlgEdFuncInsert final : public DlgEdFunc +class DlgEdFuncInsert : public DlgEdFunc { public: explicit DlgEdFuncInsert(DlgEditor& rParent); @@ -64,7 +64,7 @@ public: // DlgEdFuncSelect -class DlgEdFuncSelect final : public DlgEdFunc +class DlgEdFuncSelect : public DlgEdFunc { public: explicit DlgEdFuncSelect(DlgEditor& rParent); diff --git a/basctl/source/inc/dlgedlist.hxx b/basctl/source/inc/dlgedlist.hxx index 5243153c6ee9..373f38b1467a 100644 --- a/basctl/source/inc/dlgedlist.hxx +++ b/basctl/source/inc/dlgedlist.hxx @@ -31,7 +31,7 @@ class DlgEdObj; typedef ::cppu::WeakImplHelper<css::beans::XPropertyChangeListener> PropertyChangeListenerHelper; -class DlgEdPropListenerImpl final : public PropertyChangeListenerHelper +class DlgEdPropListenerImpl : public PropertyChangeListenerHelper { private: DlgEdObj& rDlgEdObj; @@ -51,7 +51,7 @@ public: typedef ::cppu::WeakImplHelper<css::container::XContainerListener> ContainerListenerHelper; -class DlgEdEvtContListenerImpl final : public ContainerListenerHelper +class DlgEdEvtContListenerImpl : public ContainerListenerHelper { private: DlgEdObj& rDlgEdObj; diff --git a/basctl/source/inc/dlgedmod.hxx b/basctl/source/inc/dlgedmod.hxx index 885b25f2a13a..24a97905b1d3 100644 --- a/basctl/source/inc/dlgedmod.hxx +++ b/basctl/source/inc/dlgedmod.hxx @@ -25,7 +25,7 @@ namespace basctl { // DlgEdModel -class DlgEdModel final : public SdrModel +class DlgEdModel : public SdrModel { friend class DlgEdPage; diff --git a/basctl/source/inc/dlgedobj.hxx b/basctl/source/inc/dlgedobj.hxx index 86fa02c696af..d5e29cf48caf 100644 --- a/basctl/source/inc/dlgedobj.hxx +++ b/basctl/source/inc/dlgedobj.hxx @@ -144,19 +144,23 @@ public: // DlgEdForm -class DlgEdForm final : public DlgEdObj +class DlgEdForm: public DlgEdObj { friend class DlgEditor; friend class DlgEdFactory; +private: DlgEditor& rDlgEditor; std::vector<DlgEdObj*> pChildren; + mutable ::std::optional< css::awt::DeviceInfo > mpDeviceInfo; +private: explicit DlgEdForm( SdrModel& rSdrModel, DlgEditor&); +protected: virtual void NbcMove( const Size& rSize ) override; virtual void NbcResize(const Point& rRef, const Fraction& xFact, const Fraction& yFact) override; virtual bool EndCreate(SdrDragStat& rStat, SdrCreateCmd eCmd) override; diff --git a/basctl/source/inc/dlgedview.hxx b/basctl/source/inc/dlgedview.hxx index b8c7ce88ca2c..195dee840344 100644 --- a/basctl/source/inc/dlgedview.hxx +++ b/basctl/source/inc/dlgedview.hxx @@ -31,7 +31,7 @@ class DlgEditor; // DlgEdView -class DlgEdView final : public SdrView +class DlgEdView : public SdrView { private: DlgEditor& rDlgEditor; @@ -48,7 +48,7 @@ public: virtual void MarkListHasChanged() override; virtual void MakeVisible( const tools::Rectangle& rRect, vcl::Window& rWin ) override; -private: +protected: /// override to handle HitTest for some objects specially using SdrView::CheckSingleSdrObjectHit; virtual SdrObject* CheckSingleSdrObjectHit(const Point& rPnt, sal_uInt16 nTol, SdrObject* pObj, SdrPageView* pPV, SdrSearchOptions nOptions, const SdrLayerIDSet* pMVisLay) const override; diff --git a/basctl/source/inc/managelang.hxx b/basctl/source/inc/managelang.hxx index 642bdf81daf7..722ec60c46ac 100644 --- a/basctl/source/inc/managelang.hxx +++ b/basctl/source/inc/managelang.hxx @@ -42,7 +42,7 @@ struct LanguageEntry extern bool localesAreEqual( const css::lang::Locale& rLocaleLeft, const css::lang::Locale& rLocaleRight ); -class ManageLanguageDialog final : public weld::GenericDialogController +class ManageLanguageDialog : public weld::GenericDialogController { private: std::shared_ptr<LocalizationMgr> m_xLocalizationMgr; @@ -69,7 +69,7 @@ public: virtual ~ManageLanguageDialog() override; }; -class SetDefaultLanguageDialog final : public weld::GenericDialogController +class SetDefaultLanguageDialog : public weld::GenericDialogController { private: std::shared_ptr<LocalizationMgr> m_xLocalizationMgr; diff --git a/basctl/source/inc/sbxitem.hxx b/basctl/source/inc/sbxitem.hxx index a443404e0cd6..e5f8d65d900f 100644 --- a/basctl/source/inc/sbxitem.hxx +++ b/basctl/source/inc/sbxitem.hxx @@ -34,7 +34,7 @@ enum ItemType TYPE_METHOD }; -class SbxItem final : public SfxPoolItem +class SbxItem : public SfxPoolItem { const ScriptDocument m_aDocument; const OUString m_aLibName; |