summaryrefslogtreecommitdiff
path: root/framework/source/uielement
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2008-07-17 14:21:53 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2008-07-17 14:21:53 +0000
commit4dffcb5ddad3a422b422a0b52961557356dd442d (patch)
treea164eca9e707ad5bf97978866c2dd1c5115a01f6 /framework/source/uielement
parent116bdccd1c71cb3823db83e7bf8c724678573395 (diff)
INTEGRATION: CWS logger2 (1.10.30); FILE MERGED
2008/07/08 13:26:20 b_michaelsen 1.10.30.3: #i88653# implemeted logging hooks solution without dispatch interception 2008/07/04 11:57:39 b_michaelsen 1.10.30.2: #i88653# removing appending of DispatchOrigin 2008/05/19 11:26:47 b_michaelsen 1.10.30.1: #i88653# added origin of dispatch to args for uilogging
Diffstat (limited to 'framework/source/uielement')
-rw-r--r--framework/source/uielement/controlmenucontroller.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/framework/source/uielement/controlmenucontroller.cxx b/framework/source/uielement/controlmenucontroller.cxx
index ff324fd42f7b..65246e175ea7 100644
--- a/framework/source/uielement/controlmenucontroller.cxx
+++ b/framework/source/uielement/controlmenucontroller.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: controlmenucontroller.cxx,v $
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
* This file is part of OpenOffice.org.
*
@@ -68,6 +68,7 @@
#include <tools/rcid.h>
#include <vcl/image.hxx>
#include <svtools/menuoptions.hxx>
+#include <comphelper/uieventslogger.hxx>
// Copied from svx
// Function-Id's
@@ -383,6 +384,12 @@ void SAL_CALL ControlMenuController::select( const css::awt::MenuEvent& rEvent )
if ( pIter != m_aURLToDispatchMap.end() )
{
Reference< XDispatch > xDispatch = pIter->second;
+ if(::comphelper::UiEventsLogger::isEnabled()) //#i88653#
+ {
+ Sequence<css::beans::PropertyValue> source;
+ ::comphelper::UiEventsLogger::appendDispatchOrigin(source, rtl::OUString::createFromAscii("ControlMenuController"));
+ ::comphelper::UiEventsLogger::logDispatch(aTargetURL, source);
+ }
if ( xDispatch.is() )
xDispatch->dispatch( aTargetURL, aArgs );
}