summaryrefslogtreecommitdiff
path: root/sfx2/source/control/bindings.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-16 10:11:04 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-18 10:03:44 +0000
commit2c8fe2e737b84ecd3dbac36a4fe6bd061bbd3bae (patch)
tree66ba7ff0b95cf5ceeda5e53294a71c6786460eb3 /sfx2/source/control/bindings.cxx
parent4e59eecc077d27dd9762e7c890b2aaf92a212959 (diff)
update unusedmethods plugin to deal with constructors
and fix the operator< implementations in some of the other plugins too. Change-Id: Ie5631e0cdc8d2a994ad2af2533cdb558a6cfc035 Reviewed-on: https://gerrit.libreoffice.org/25057 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sfx2/source/control/bindings.cxx')
-rw-r--r--sfx2/source/control/bindings.cxx47
1 files changed, 0 insertions, 47 deletions
diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx
index 63266b6a1d0a..1aa909567294 100644
--- a/sfx2/source/control/bindings.cxx
+++ b/sfx2/source/control/bindings.cxx
@@ -157,37 +157,6 @@ public:
}
};
-class SfxAsyncExec_Impl
-{
- css::util::URL aCommand;
- css::uno::Reference< css::frame::XDispatch > xDisp;
- Timer aTimer;
-
-public:
-
- SfxAsyncExec_Impl( const css::util::URL& rCmd, const css::uno::Reference< css::frame::XDispatch >& rDisp )
- : aCommand( rCmd )
- , xDisp( rDisp )
- {
- aTimer.SetTimeoutHdl( LINK(this, SfxAsyncExec_Impl, TimerHdl) );
- aTimer.SetTimeout( 0 );
- aTimer.Start();
- }
-
- DECL_LINK_TYPED( TimerHdl, Timer*, void);
-};
-
-IMPL_LINK_TYPED(SfxAsyncExec_Impl, TimerHdl, Timer*, pTimer, void)
-{
- (void)pTimer; // unused
- aTimer.Stop();
-
- Sequence<beans::PropertyValue> aSeq;
- xDisp->dispatch( aCommand, aSeq );
-
- delete this;
-}
-
enum class SfxPopupAction
{
DELETE,
@@ -2067,22 +2036,6 @@ void SfxBindings::SetDispatchProvider_Impl( const css::uno::Reference< css::fram
pImp->pSubBindings->SetDispatchProvider_Impl( pImp->xProv );
}
-bool SfxBindings::ExecuteCommand_Impl( const OUString& rCommand )
-{
- css::util::URL aURL;
- aURL.Complete = rCommand;
- Reference< util::XURLTransformer > xTrans( util::URLTransformer::create( ::comphelper::getProcessComponentContext() ) );
- xTrans->parseStrict( aURL );
- css::uno::Reference< css::frame::XDispatch > xDisp = pImp->xProv->queryDispatch( aURL, OUString(), 0 );
- if ( xDisp.is() )
- {
- new SfxAsyncExec_Impl( aURL, xDisp );
- return true;
- }
-
- return false;
-}
-
const css::uno::Reference< css::frame::XDispatchRecorder >& SfxBindings::GetRecorder() const
{
return pImp->xRecorder;