diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-04 09:33:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-05 07:51:48 +0100 |
commit | 0adbc69c81cc287386b31b25b2dc89780933e2b1 (patch) | |
tree | 13517563f4ebb0524071a5403cf4d961e05c15da /vcl | |
parent | 6ba25b96e6187931c0651f099413dbf1e2a7ab97 (diff) |
remove unused VclEventId enum values
Change-Id: I7887a7de37a024f2e97dbd20a27a1aa3fdfcfbfa
Reviewed-on: https://gerrit.libreoffice.org/64559
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/listbox.cxx | 5 | ||||
-rw-r--r-- | vcl/source/window/status.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/window.cxx | 3 |
3 files changed, 1 insertions, 9 deletions
diff --git a/vcl/source/control/listbox.cxx b/vcl/source/control/listbox.cxx index e109e135d0d4..3a048a3fedb8 100644 --- a/vcl/source/control/listbox.cxx +++ b/vcl/source/control/listbox.cxx @@ -946,7 +946,6 @@ void ListBox::SetNoSelection() mpImplWin->SetImage( aImage ); mpImplWin->Invalidate(); } - CallEventListeners(VclEventId::ListboxStateUpdate); } sal_Int32 ListBox::InsertEntry( const OUString& rStr, sal_Int32 nPos ) @@ -1066,11 +1065,9 @@ void ListBox::SelectEntryPos( sal_Int32 nPos, bool bSelect ) if ( 0 <= nPos && nPos < mpImplLB->GetEntryList()->GetEntryCount() ) { - sal_Int32 oldSelectCount = GetSelectedEntryCount(), newSelectCount = 0, nCurrentPos = mpImplLB->GetCurrentPos(); + sal_Int32 newSelectCount = 0, nCurrentPos = mpImplLB->GetCurrentPos(); mpImplLB->SelectEntry( nPos + mpImplLB->GetEntryList()->GetMRUCount(), bSelect ); newSelectCount = GetSelectedEntryCount(); - if (oldSelectCount == 0 && newSelectCount > 0) - CallEventListeners(VclEventId::ListboxStateUpdate); //Only when bSelect == true, send both Selection & Focus events if (nCurrentPos != nPos && bSelect) { diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx index be83ef42282c..723ab9d07b4f 100644 --- a/vcl/source/window/status.cxx +++ b/vcl/source/window/status.cxx @@ -874,13 +874,11 @@ void StatusBar::DataChanged( const DataChangedEvent& rDCEvt ) void StatusBar::Click() { - CallEventListeners( VclEventId::StatusbarClick ); maClickHdl.Call( this ); } void StatusBar::DoubleClick() { - CallEventListeners( VclEventId::StatusbarDoubleClick ); maDoubleClickHdl.Call( this ); } diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 11fd8d5f482e..e57d446709d1 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -1159,9 +1159,6 @@ void Window::ImplInit( vcl::Window* pParent, WinBits nStyle, SystemParentData* p // calculate app font res (except for the Intro Window or the default window) if ( mpWindowImpl->mbFrame && !pSVData->maGDIData.mnAppFontX && ! (nStyle & (WB_INTROWIN|WB_DEFAULTWIN)) ) ImplInitAppFontData( this ); - - if ( GetAccessibleParentWindow() && GetParent() != Application::GetDefDialogParent() ) - GetAccessibleParentWindow()->CallEventListeners( VclEventId::WindowChildCreated, this ); } void Window::ImplInitAppFontData( vcl::Window const * pWindow ) |