summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2008-07-17 14:24:28 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2008-07-17 14:24:28 +0000
commitec52fdd549a777691c7a8c6748f6229efdf813ee (patch)
tree290f2858ebeba23a624ba5f220e4ea0023922a6d /framework
parent21e56750bf23f9f8f2edcc5234e3f7492efd4c91 (diff)
INTEGRATION: CWS logger2 (1.51.28); FILE MERGED
2008/07/08 13:26:21 b_michaelsen 1.51.28.4: #i88653# implemeted logging hooks solution without dispatch interception 2008/07/04 11:57:40 b_michaelsen 1.51.28.3: #i88653# removing appending of DispatchOrigin 2008/05/19 11:26:47 b_michaelsen 1.51.28.2: #i88653# added origin of dispatch to args for uilogging 2008/05/13 14:43:40 b_michaelsen 1.51.28.1: merged logger cws
Diffstat (limited to 'framework')
-rw-r--r--framework/source/uielement/menubarmanager.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/framework/source/uielement/menubarmanager.cxx b/framework/source/uielement/menubarmanager.cxx
index cdd1ef8835..538ad61caf 100644
--- a/framework/source/uielement/menubarmanager.cxx
+++ b/framework/source/uielement/menubarmanager.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: menubarmanager.cxx,v $
- * $Revision: 1.51 $
+ * $Revision: 1.52 $
*
* This file is part of OpenOffice.org.
*
@@ -99,6 +99,7 @@
#include "svtools/miscopt.hxx"
#include <classes/addonmenu.hxx>
#include <uielement/menubarmerger.hxx>
+#include <comphelper/uieventslogger.hxx>
//_________________________________________________________________________________________________________________
// namespace
@@ -1397,6 +1398,12 @@ IMPL_LINK( MenuBarManager, Select, Menu *, pMenu )
if ( xDispatch.is() )
{
const sal_uInt32 nRef = Application::ReleaseSolarMutex();
+ if(::comphelper::UiEventsLogger::isEnabled()) //#i88653#
+ {
+ Sequence<PropertyValue> source;
+ ::comphelper::UiEventsLogger::appendDispatchOrigin(source, rtl::OUString::createFromAscii("MenuBarManager"));
+ ::comphelper::UiEventsLogger::logDispatch(aTargetURL, source);
+ }
xDispatch->dispatch( aTargetURL, aArgs );
Application::AcquireSolarMutex( nRef );
}