From c9211c7a6284c0086102c76c684a520b84fb31e7 Mon Sep 17 00:00:00 2001 From: Ivo Hinkelmann Date: Thu, 17 Jul 2008 14:25:06 +0000 Subject: INTEGRATION: CWS logger2 (1.8.30); FILE MERGED 2008/07/08 13:26:21 b_michaelsen 1.8.30.3: #i88653# implemeted logging hooks solution without dispatch interception 2008/07/04 11:57:40 b_michaelsen 1.8.30.2: #i88653# removing appending of DispatchOrigin 2008/05/19 11:26:48 b_michaelsen 1.8.30.1: #i88653# added origin of dispatch to args for uilogging --- framework/source/uielement/recentfilesmenucontroller.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/framework/source/uielement/recentfilesmenucontroller.cxx b/framework/source/uielement/recentfilesmenucontroller.cxx index 58d8dde5288a..374b318c205d 100644 --- a/framework/source/uielement/recentfilesmenucontroller.cxx +++ b/framework/source/uielement/recentfilesmenucontroller.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: recentfilesmenucontroller.cxx,v $ - * $Revision: 1.8 $ + * $Revision: 1.9 $ * * This file is part of OpenOffice.org. * @@ -67,6 +67,7 @@ #include #include //#include +#include //_________________________________________________________________________________________________________________ // Defines @@ -530,6 +531,12 @@ IMPL_STATIC_LINK_NOINSTANCE( RecentFilesMenuController, ExecuteHdl_Impl, LoadRec // Asynchronous execution as this can lead to our own destruction! // Framework can recycle our current frame and the layout manager disposes all user interface // elements if a component gets detached from its frame! + if(::comphelper::UiEventsLogger::isEnabled()) //#i88653# + { + Sequence source; + ::comphelper::UiEventsLogger::appendDispatchOrigin(source, rtl::OUString::createFromAscii("RecentFilesMenuController")); + ::comphelper::UiEventsLogger::logDispatch(pLoadRecentFile->aTargetURL, source); + } pLoadRecentFile->xDispatch->dispatch( pLoadRecentFile->aTargetURL, pLoadRecentFile->aArgSeq ); } catch ( Exception& ) -- cgit