diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2009-03-18 10:45:43 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2009-03-18 10:45:43 +0000 |
commit | dd4cb8ff68eee6657c12cd0f4d2f832290ba21ec (patch) | |
tree | 4e2985355230d6baf1c06a5d46e2013d46fbcfae /svtools/source/misc | |
parent | 44e008b01f72c3f02ab3328cdc44f987617f272b (diff) |
CWS-TOOLING: integrate CWS oooimprovement3_DEV300
2009-02-26 16:28:11 +0100 jsk r268533 : #i99197#
2009-02-26 15:03:06 +0100 jsk r268524 : #i99197#
2009-02-26 15:00:34 +0100 jsk r268522 : i99187#
2009-02-23 13:37:17 +0100 b_michaelsen r268353 : #i99491# fixing OStringBuffer construction. thanks, tono
2009-02-18 17:31:06 +0100 b_michaelsen r268247 : cleaned mixup between base and brand layer
2009-02-17 15:00:48 +0100 b_michaelsen r268172 : fixed treeopt.cxx
2009-02-17 14:59:04 +0100 b_michaelsen r268171 : catching all exceptions
2009-02-16 14:06:33 +0100 jsk r267805 : #i99197#
2009-02-16 14:05:30 +0100 jsk r267804 : #i99197#
2009-02-16 14:04:35 +0100 jsk r267803 : #i99197#
2009-02-13 17:45:43 +0100 b_michaelsen r267735 : #i98981# ensure logging of accelerators
2009-02-13 16:53:59 +0100 b_michaelsen r267732 : #i98741# deploying usage tracking enabling xcu with BUILD SPECIAL
2009-02-13 16:52:40 +0100 b_michaelsen r267731 : #i98741# delivering usage tracking enabling xcu
2009-02-13 16:43:55 +0100 b_michaelsen r267730 : #i98981# adding abbrevation for accerators
2009-02-12 16:53:59 +0100 b_michaelsen r267678 : #i98981# diasble logging of key events
2009-02-12 16:11:23 +0100 b_michaelsen r267673 : #i98981# reliable way to toggle usage tracking
2009-02-12 16:10:13 +0100 b_michaelsen r267672 : #i98981# reliable way to toggle usage tracking
Diffstat (limited to 'svtools/source/misc')
-rw-r--r-- | svtools/source/misc/acceleratorexecute.cxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/svtools/source/misc/acceleratorexecute.cxx b/svtools/source/misc/acceleratorexecute.cxx index c4bc9c3f2d7f..e6e78656eedd 100644 --- a/svtools/source/misc/acceleratorexecute.cxx +++ b/svtools/source/misc/acceleratorexecute.cxx @@ -79,6 +79,7 @@ #include <vcl/window.hxx> #include <vcl/svapp.hxx> #include <vos/mutex.hxx> +#include <comphelper/uieventslogger.hxx> //=============================================== // namespace @@ -256,6 +257,22 @@ sal_Bool AcceleratorExecute::execute(const css::awt::KeyEvent& aAWTKey) sal_Bool bRet = xDispatch.is(); if ( bRet ) { + if(::comphelper::UiEventsLogger::isEnabled() && m_xSMGR.is() && m_xDispatcher.is()) //#i88653# + { + try + { + css::uno::Reference< css::frame::XModuleManager > xModuleDetection( + m_xSMGR->createInstance(::rtl::OUString::createFromAscii("com.sun.star.frame.ModuleManager")), + css::uno::UNO_QUERY_THROW); + + const ::rtl::OUString sModule = xModuleDetection->identify(m_xDispatcher); + css::uno::Sequence<css::beans::PropertyValue> source; + ::comphelper::UiEventsLogger::appendDispatchOrigin(source, sModule, ::rtl::OUString::createFromAscii("AcceleratorExecute")); + ::comphelper::UiEventsLogger::logDispatch(aURL, source); + } + catch(const css::uno::Exception&) + { } + } // Note: Such instance can be used one times only and destroy itself afterwards .-) AsyncAccelExec* pExec = AsyncAccelExec::createOnShotInstance(xDispatch, aURL); pExec->execAsync(); |