summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2008-07-17 14:25:20 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2008-07-17 14:25:20 +0000
commitd661e36e2d1040b3a1d3ae2b3f6966f846b64874 (patch)
treeb1e78e6ad6dc1fe7073365a40fa096283a0a71d3 /framework
parentc9211c7a6284c0086102c76c684a520b84fb31e7 (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')
-rw-r--r--framework/source/uielement/toolbarsmenucontroller.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/framework/source/uielement/toolbarsmenucontroller.cxx b/framework/source/uielement/toolbarsmenucontroller.cxx
index c07b825789a4..1d07e9a67e88 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& )
{