diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2008-07-17 14:25:20 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2008-07-17 14:25:20 +0000 |
commit | 3672431aa9438ecc9b157f43bf5022759afcf6c9 (patch) | |
tree | c151165c5579fe5e5dda67e3d8ae03191d268658 /framework/source | |
parent | 0d9dee1a57ae9409fadc5877977b59e6ef6d256b (diff) |
INTEGRATION: CWS logger2 (1.20.30); FILE MERGED
2008/07/08 13:26:21 b_michaelsen 1.20.30.3: #i88653# implemeted logging hooks solution without dispatch interception
2008/07/04 11:57:40 b_michaelsen 1.20.30.2: #i88653# removing appending of DispatchOrigin
2008/05/19 11:26:48 b_michaelsen 1.20.30.1: #i88653# added origin of dispatch to args for uilogging
Diffstat (limited to 'framework/source')
-rw-r--r-- | framework/source/uielement/toolbarsmenucontroller.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/framework/source/uielement/toolbarsmenucontroller.cxx b/framework/source/uielement/toolbarsmenucontroller.cxx index 344b5eb64c..b43efd890a 100644 --- a/framework/source/uielement/toolbarsmenucontroller.cxx +++ b/framework/source/uielement/toolbarsmenucontroller.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: toolbarsmenucontroller.cxx,v $ - * $Revision: 1.20 $ + * $Revision: 1.21 $ * * This file is part of OpenOffice.org. * @@ -84,6 +84,7 @@ #include <vcl/window.hxx> #include <svtools/menuoptions.hxx> #include <svtools/cmdoptions.hxx> +#include <comphelper/uieventslogger.hxx> //_________________________________________________________________________________________________________________ // Defines @@ -946,7 +947,15 @@ IMPL_STATIC_LINK_NOINSTANCE( ToolbarsMenuController, ExecuteHdl_Impl, ExecuteInf // Framework can recycle our current frame and the layout manager disposes all user interface // elements if a component gets detached from its frame! if ( pExecuteInfo->xDispatch.is() ) + { + if(::comphelper::UiEventsLogger::isEnabled()) //#i88653# + { + Sequence<PropertyValue> source; + ::comphelper::UiEventsLogger::appendDispatchOrigin(source, rtl::OUString::createFromAscii("ToolbarsMenuController")); + ::comphelper::UiEventsLogger::logDispatch(pExecuteInfo->aTargetURL, source); + } pExecuteInfo->xDispatch->dispatch( pExecuteInfo->aTargetURL, pExecuteInfo->aArgs ); + } } catch ( Exception& ) { |