diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-27 13:08:02 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-28 09:49:56 +0200 |
commit | bd8b93fdff93ff7b2b7e493a7bcef6a59f299dae (patch) | |
tree | f05be9665737f0667faf95702d96fbf3f0a103c5 /svx/source/form/fmvwimp.cxx | |
parent | 1b9c3a17e8496aedfb80528c5275e6658154789d (diff) |
make PostUserEvent Link<> typed
Change-Id: I13f10bda985d55d419a5bff481130a456ae2db8a
Diffstat (limited to 'svx/source/form/fmvwimp.cxx')
-rw-r--r-- | svx/source/form/fmvwimp.cxx | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/svx/source/form/fmvwimp.cxx b/svx/source/form/fmvwimp.cxx index 7b90f621db4e..eba86b2b0eaf 100644 --- a/svx/source/form/fmvwimp.cxx +++ b/svx/source/form/fmvwimp.cxx @@ -606,11 +606,10 @@ void FmXFormView::displayAsyncErrorMessage( const SQLErrorEvent& _rEvent ) } -IMPL_LINK_NOARG(FmXFormView, OnDelayedErrorMessage) +IMPL_LINK_NOARG_TYPED(FmXFormView, OnDelayedErrorMessage, void*, void) { m_nErrorMessageEvent = 0; displayException( m_aAsyncError ); - return 0L; } @@ -715,14 +714,14 @@ namespace } -IMPL_LINK_NOARG(FmXFormView, OnActivate) +IMPL_LINK_NOARG_TYPED(FmXFormView, OnActivate, void*, void) { m_nActivationEvent = 0; if ( !m_pView ) { OSL_FAIL( "FmXFormView::OnActivate: well .... seems we have a timing problem (the view already died)!" ); - return 0; + return; } // setting the controller to activate @@ -731,7 +730,7 @@ IMPL_LINK_NOARG(FmXFormView, OnActivate) FmXFormShell* const pShImpl = m_pView->GetFormShell()->GetImpl(); if(!pShImpl) - return 0; + return; find_active_databaseform fad(pShImpl->getActiveController()); @@ -775,7 +774,6 @@ IMPL_LINK_NOARG(FmXFormView, OnActivate) pShImpl->setActiveController( xControllerToActivate ); } } - return 0; } @@ -955,16 +953,13 @@ Reference< XFormController > FmXFormView::getFormController( const Reference< XF } -IMPL_LINK_NOARG(FmXFormView, OnAutoFocus) +IMPL_LINK_NOARG_TYPED(FmXFormView, OnAutoFocus, void*, void) { m_nAutoFocusEvent = 0; // go to the first form of our page, examine it's TabController, go to it's first (in terms of the tab order) // control, give it the focus - do - { - SdrPageView *pPageView = m_pView ? m_pView->GetSdrPageView() : NULL; SdrPage *pSdrPage = pPageView ? pPageView->GetPage() : NULL; // get the forms collection of the page we belong to @@ -974,13 +969,13 @@ IMPL_LINK_NOARG(FmXFormView, OnAutoFocus) const PFormViewPageWindowAdapter pAdapter = m_aPageWindowAdapters.empty() ? NULL : m_aPageWindowAdapters[0]; const vcl::Window* pWindow = pAdapter.get() ? pAdapter->getWindow() : NULL; - ENSURE_OR_RETURN( xForms.is() && pWindow, "FmXFormView::OnAutoFocus: could not collect all essentials!", 0L ); + ENSURE_OR_RETURN_VOID( xForms.is() && pWindow, "FmXFormView::OnAutoFocus: could not collect all essentials!" ); try { // go for the tab controller of the first form if ( !xForms->getCount() ) - break; + return; Reference< XForm > xForm( xForms->getByIndex( 0 ), UNO_QUERY_THROW ); Reference< XTabController > xTabController( pAdapter->getController( xForm ), UNO_QUERY_THROW ); @@ -1005,7 +1000,7 @@ IMPL_LINK_NOARG(FmXFormView, OnAutoFocus) // set the focus to this first control Reference< XWindow > xControlWindow( lcl_firstFocussableControl( aControls ), UNO_QUERY ); if ( !xControlWindow.is() ) - break; + return; xControlWindow->setFocus(); @@ -1023,11 +1018,6 @@ IMPL_LINK_NOARG(FmXFormView, OnAutoFocus) { DBG_UNHANDLED_EXCEPTION(); } - - } // do - while ( false ); - - return 1L; } @@ -1077,12 +1067,12 @@ void FmXFormView::breakCreateFormObject() m_xLastCreatedControlModel.clear(); } -IMPL_LINK_NOARG( FmXFormView, OnStartControlWizard ) +IMPL_LINK_NOARG_TYPED( FmXFormView, OnStartControlWizard, void*, void ) { m_nControlWizardEvent = 0; OSL_PRECOND( m_xLastCreatedControlModel.is(), "FmXFormView::OnStartControlWizard: illegal call!" ); if ( !m_xLastCreatedControlModel.is() ) - return 0L; + return; sal_Int16 nClassId = FormComponentType::CONTROL; try @@ -1146,7 +1136,6 @@ IMPL_LINK_NOARG( FmXFormView, OnStartControlWizard ) } m_xLastCreatedControlModel.clear(); - return 1L; } |