diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-05-06 14:25:46 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-05-06 14:25:46 +0200 |
commit | f4d3558334c5b403c2f1298f2ef831607778dae5 (patch) | |
tree | 666b7283f3eaf3ec5d8da91496b32ab5eb5b0272 | |
parent | aa3a25ca74d3abd204051c2747907031f7557510 (diff) |
Application::UserEvent and Window::UserEvent are empty
...and never overridden, so can be removed along with the dead
SVX_EVENT_COLUM_WINDOW_EXECUTE code that calls them.
Change-Id: Ie500066c083f8fbf649c64f2d61fb85901473b5c
-rw-r--r-- | include/sfx2/sfx.hrc | 4 | ||||
-rw-r--r-- | include/svx/svxids.hrc | 7 | ||||
-rw-r--r-- | include/vcl/svapp.hxx | 8 | ||||
-rw-r--r-- | include/vcl/window.hxx | 1 | ||||
-rw-r--r-- | svx/source/tbxctrls/layctrl.cxx | 8 | ||||
-rw-r--r-- | vcl/source/app/svapp.cxx | 4 | ||||
-rw-r--r-- | vcl/source/window/window.cxx | 4 |
7 files changed, 0 insertions, 36 deletions
diff --git a/include/sfx2/sfx.hrc b/include/sfx2/sfx.hrc index b8ccfa44f362..ad533aa26641 100644 --- a/include/sfx2/sfx.hrc +++ b/include/sfx2/sfx.hrc @@ -38,10 +38,6 @@ #define EVENT_APP_START 20000 // EVENT_APP_END 29999 -#define EVENT_OBJ_START 30000 - -#define EVENT_SVX_START (EVENT_OBJ_START+0x0400) - // Warning: the following are simultaneously SID_ON_ ... #define SFX_EVENT_CLOSEAPP (EVENT_SFX_START + 1) #define SFX_EVENT_CREATEDOC (EVENT_SFX_START + 2) diff --git a/include/svx/svxids.hrc b/include/svx/svxids.hrc index 0bd819f4fb9b..ec38491ea821 100644 --- a/include/svx/svxids.hrc +++ b/include/svx/svxids.hrc @@ -88,13 +88,6 @@ #define MID_ZOOMSLIDER_MINZOOM 0x7b #define MID_ZOOMSLIDER_MAXZOOM 0x7c - -// Event-Id's Block 1 - - -#define SVX_EVENT_COLUM_WINDOW_EXECUTE (EVENT_SVX_START) - - // Event-Id's Block 2 diff --git a/include/vcl/svapp.hxx b/include/vcl/svapp.hxx index 1b8f6e1deab0..7f330f5c178a 100644 --- a/include/vcl/svapp.hxx +++ b/include/vcl/svapp.hxx @@ -350,14 +350,6 @@ public: */ virtual bool QueryExit(); - /** Send user event. - - @param nEvent The numeric ID of the event - @param pEventData Pointer to a data associated with the event. Use - a reinterpret_cast<void*> to pass in the parameter. - */ - virtual void UserEvent( sal_uLong nEvent, void* pEventData ); - /** @name Change Notification Functions Functions that notify when changes occur in the application. diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index 001dfd5c1d7c..5dc734037f27 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -695,7 +695,6 @@ public: virtual void RequestHelp( const HelpEvent& rHEvt ); virtual void Command( const CommandEvent& rCEvt ); virtual void Tracking( const TrackingEvent& rTEvt ); - virtual void UserEvent( sal_uLong nEvent, void* pEventData ); virtual void StateChanged( StateChangedType nStateChange ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); virtual bool PreNotify( NotifyEvent& rNEvt ); diff --git a/svx/source/tbxctrls/layctrl.cxx b/svx/source/tbxctrls/layctrl.cxx index e0fcd32feab8..051adbbeda33 100644 --- a/svx/source/tbxctrls/layctrl.cxx +++ b/svx/source/tbxctrls/layctrl.cxx @@ -373,10 +373,6 @@ void TableWindow::Update( long nNewCol, long nNewLine ) void TableWindow::TableDialog( const Sequence< PropertyValue >& rArgs ) { - Window* pParent = rTbx.GetParent(); - sal_uInt16 nId = GetId(); - pParent->UserEvent(SVX_EVENT_COLUM_WINDOW_EXECUTE, reinterpret_cast<void*>(nId)); - Reference< XDispatchProvider > xDispatchProvider( mxFrame, UNO_QUERY ); if ( xDispatchProvider.is() ) { @@ -693,10 +689,6 @@ void ColumnsWindow::PopupModeEnd() { if ( !IsPopupModeCanceled() && nCol ) { - sal_uInt16 nId = GetId(); - Window* pParent = rTbx.GetParent(); - pParent->UserEvent(SVX_EVENT_COLUM_WINDOW_EXECUTE, reinterpret_cast<void*>(nId)); - Sequence< PropertyValue > aArgs( 2 ); aArgs[0].Name = "Columns"; aArgs[0].Value = makeAny( sal_Int16( nCol )); diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx index ba2c51f3484e..4c8a25465b38 100644 --- a/vcl/source/app/svapp.cxx +++ b/vcl/source/app/svapp.cxx @@ -219,10 +219,6 @@ bool Application::QueryExit() return true; } -void Application::UserEvent( sal_uLong, void* ) -{ -} - void Application::FocusChanged() { } diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 2b155e997e0b..d329a920742e 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -4945,10 +4945,6 @@ void Window::Tracking( const TrackingEvent& rTEvt ) pWrapper->Tracking( rTEvt ); } -void Window::UserEvent( sal_uLong, void* ) -{ -} - void Window::StateChanged( StateChangedType eType ) { switch (eType) |