diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2008-07-17 14:24:28 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2008-07-17 14:24:28 +0000 |
commit | c2141ae5fdd6b04e419ea6c35897d8d8ae0c8403 (patch) | |
tree | 26872c1b8f1b329a04b7aa54a42a7ffd4ca5066b /framework | |
parent | 3afda7f56876a32b231ce7562912b614406a0d1c (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.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/framework/source/uielement/menubarmanager.cxx b/framework/source/uielement/menubarmanager.cxx index 1249d269bd63..10988fc97c71 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 ); } |