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 --- dbaccess/source/ui/app/AppDetailPageHelper.cxx | 6 +++--- dbaccess/source/ui/inc/sqledit.hxx | 1 - dbaccess/source/ui/querydesign/limitboxcontroller.cxx | 8 ++++---- 3 files changed, 7 insertions(+), 8 deletions(-) (limited to 'dbaccess') diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.cxx b/dbaccess/source/ui/app/AppDetailPageHelper.cxx index 74706f5a3889..7a2db42f966f 100644 --- a/dbaccess/source/ui/app/AppDetailPageHelper.cxx +++ b/dbaccess/source/ui/app/AppDetailPageHelper.cxx @@ -134,15 +134,15 @@ namespace virtual void DataChanged(const DataChangedEvent& rDCEvt) override; public: OTablePreviewWindow( vcl::Window* pParent, WinBits nStyle = 0 ); - virtual bool Notify( NotifyEvent& rNEvt ) override; + virtual bool EventNotify( NotifyEvent& rNEvt ) override; }; OTablePreviewWindow::OTablePreviewWindow(vcl::Window* pParent, WinBits nStyle) : Window( pParent, nStyle) { ImplInitSettings(); } - bool OTablePreviewWindow::Notify( NotifyEvent& rNEvt ) + bool OTablePreviewWindow::EventNotify( NotifyEvent& rNEvt ) { - bool bRet = Window::Notify( rNEvt ); + bool bRet = Window::EventNotify(rNEvt); if ( rNEvt.GetType() == MouseNotifyEvent::INPUTENABLE && IsInputEnabled() ) PostUserEvent( LINK( this, OTablePreviewWindow, OnDisableInput), nullptr, true ); return bRet; diff --git a/dbaccess/source/ui/inc/sqledit.hxx b/dbaccess/source/ui/inc/sqledit.hxx index 038fa361f168..c144cdea252f 100644 --- a/dbaccess/source/ui/inc/sqledit.hxx +++ b/dbaccess/source/ui/inc/sqledit.hxx @@ -82,7 +82,6 @@ namespace dbaui void startTimer(); virtual void ConfigurationChanged( utl::ConfigurationBroadcaster*, ConfigurationHints ) override; - using MultiLineEditSyntaxHighlight::Notify; }; } diff --git a/dbaccess/source/ui/querydesign/limitboxcontroller.cxx b/dbaccess/source/ui/querydesign/limitboxcontroller.cxx index cf17ee449068..890c63f35f4b 100644 --- a/dbaccess/source/ui/querydesign/limitboxcontroller.cxx +++ b/dbaccess/source/ui/querydesign/limitboxcontroller.cxx @@ -35,7 +35,7 @@ class LimitBoxImpl: public LimitBox public: LimitBoxImpl( vcl::Window* pParent, LimitBoxController* pCtrl ); - virtual bool Notify( NotifyEvent& rNEvt ) override; + virtual bool EventNotify( NotifyEvent& rNEvt ) override; private: LimitBoxController* m_pControl; @@ -47,14 +47,14 @@ LimitBoxImpl::LimitBoxImpl( vcl::Window* pParent, LimitBoxController* pCtrl ) { } -bool LimitBoxImpl::Notify( NotifyEvent& rNEvt ) +bool LimitBoxImpl::EventNotify( NotifyEvent& rNEvt ) { bool bHandled = false; switch ( rNEvt.GetType() ) { case MouseNotifyEvent::LOSEFOCUS: { - bHandled = LimitBox::Notify( rNEvt ); + bHandled = LimitBox::EventNotify(rNEvt); uno::Sequence< beans::PropertyValue > aArgs( 1 ); aArgs[0].Name = "DBLimit.Value"; aArgs[0].Value = uno::makeAny( GetValue() ); @@ -82,7 +82,7 @@ bool LimitBoxImpl::Notify( NotifyEvent& rNEvt ) default: break; } - return bHandled || LimitBox::Notify( rNEvt ); + return bHandled || LimitBox::EventNotify(rNEvt); } -- cgit