diff options
Diffstat (limited to 'svtools/source/uno/framestatuslistener.cxx')
-rw-r--r-- | svtools/source/uno/framestatuslistener.cxx | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/svtools/source/uno/framestatuslistener.cxx b/svtools/source/uno/framestatuslistener.cxx index a86fb21128f7..a0cefd6b8d02 100644 --- a/svtools/source/uno/framestatuslistener.cxx +++ b/svtools/source/uno/framestatuslistener.cxx @@ -380,49 +380,6 @@ void FrameStatusListener::unbindListener() } } -void FrameStatusListener::updateStatus( const rtl::OUString aCommandURL ) -{ - Reference< XDispatch > xDispatch; - Reference< XStatusListener > xStatusListener; - com::sun::star::util::URL aTargetURL; - - { - SolarMutexGuard aSolarMutexGuard; - - if ( !m_bInitialized ) - return; - - // Try to find a dispatch object for the requested command URL - Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY ); - xStatusListener = Reference< XStatusListener >( static_cast< OWeakObject* >( this ), UNO_QUERY ); - if ( m_xServiceManager.is() && xDispatchProvider.is() ) - { - Reference< XURLTransformer > xURLTransformer( m_xServiceManager->createInstance( - rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))), - UNO_QUERY ); - aTargetURL.Complete = aCommandURL; - xURLTransformer->parseStrict( aTargetURL ); - xDispatch = xDispatchProvider->queryDispatch( aTargetURL, rtl::OUString(), 0 ); - } - } - - if ( xDispatch.is() && xStatusListener.is() ) - { - // Catch exception as we release our mutex, it is possible that someone else - // has already disposed this instance! - // Add/remove status listener to get a update status information from the - // requested command. - try - { - xDispatch->addStatusListener( xStatusListener, aTargetURL ); - xDispatch->removeStatusListener( xStatusListener, aTargetURL ); - } - catch ( Exception& ) - { - } - } -} - } // svt /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |