From 6bb20609a2fd1d591cedc7fa2b9cabb589c346c7 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Thu, 24 Nov 2016 22:40:33 +0100 Subject: vcl: rename Window::Notify to EventNotify There is annoying overloading between Window::Notify and SfxListener::Notify, and the Window one has apparently fewer implementations, so rename that and remove lots of disambiguating "using Notify" in multiply inheriting classes. Change-Id: I8b597fd9e70cf2e7103b9dfa7cc666e79e7aff49 --- include/svx/colrctrl.hxx | 2 +- include/svx/itemwin.hxx | 8 ++++---- include/svx/ruler.hxx | 1 - include/svx/sidebar/PanelLayout.hxx | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) (limited to 'include/svx') diff --git a/include/svx/colrctrl.hxx b/include/svx/colrctrl.hxx index 03ba6c97133c..c3b8eaf18b86 100644 --- a/include/svx/colrctrl.hxx +++ b/include/svx/colrctrl.hxx @@ -107,7 +107,7 @@ public: virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override; - virtual bool Notify( NotifyEvent& rNEvt ) override; + virtual bool EventNotify( NotifyEvent& rNEvt ) override; }; #endif diff --git a/include/svx/itemwin.hxx b/include/svx/itemwin.hxx index f992be48ec1b..0dbba2e42aee 100644 --- a/include/svx/itemwin.hxx +++ b/include/svx/itemwin.hxx @@ -54,7 +54,7 @@ public: protected: virtual void Select() override; virtual bool PreNotify( NotifyEvent& rNEvt ) override; - virtual bool Notify( NotifyEvent& rNEvt ) override; + virtual bool EventNotify( NotifyEvent& rNEvt ) override; virtual void DataChanged( const DataChangedEvent& rDCEvt ) override; }; @@ -76,7 +76,7 @@ protected: virtual void Modify() override; virtual bool PreNotify( NotifyEvent& rNEvt ) override; - virtual bool Notify( NotifyEvent& rNEvt ) override; + virtual bool EventNotify( NotifyEvent& rNEvt ) override; virtual void DataChanged( const DataChangedEvent& rDCEvt ) override; public: @@ -100,7 +100,7 @@ public: protected: virtual bool PreNotify( NotifyEvent& rNEvt ) override; - virtual bool Notify( NotifyEvent& rNEvt ) override; + virtual bool EventNotify( NotifyEvent& rNEvt ) override; private: sal_uInt16 nCurPos; @@ -119,7 +119,7 @@ public: protected: virtual bool PreNotify( NotifyEvent& rNEvt ) override; - virtual bool Notify( NotifyEvent& rNEvt ) override; + virtual bool EventNotify( NotifyEvent& rNEvt ) override; private: sal_uInt16 nCurPos; diff --git a/include/svx/ruler.hxx b/include/svx/ruler.hxx index d8a78516b156..71d5e78691bc 100644 --- a/include/svx/ruler.hxx +++ b/include/svx/ruler.hxx @@ -77,7 +77,6 @@ namespace o3tl class SVX_DLLPUBLIC SvxRuler: public Ruler, public SfxListener { friend class SvxRulerItem; - using Window::Notify; std::vector > pCtrlItems; diff --git a/include/svx/sidebar/PanelLayout.hxx b/include/svx/sidebar/PanelLayout.hxx index ca4086f6bfd1..7492b887d41f 100644 --- a/include/svx/sidebar/PanelLayout.hxx +++ b/include/svx/sidebar/PanelLayout.hxx @@ -39,7 +39,7 @@ public: virtual Size GetOptimalSize() const override; virtual void setPosSizePixel(long nX, long nY, long nWidth, long nHeight, PosSizeFlags nFlags = PosSizeFlags::All) override; virtual void queue_resize(StateChangedType eReason = StateChangedType::Layout) override; - virtual bool Notify(NotifyEvent& rNEvt) override; + virtual bool EventNotify(NotifyEvent& rNEvt) override; }; #endif -- cgit