summaryrefslogtreecommitdiff
path: root/sfx2/source/toolbox/tbxitem.cxx
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2008-07-17 14:32:53 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2008-07-17 14:32:53 +0000
commit0479f98a2edcd29d967c2b4b3b5798919d2e0fbb (patch)
treebbee3839e8aa8c1635110d017806a214a75524c8 /sfx2/source/toolbox/tbxitem.cxx
parent05ca3ad8263e9740b4fa972f07d22a822dcc32ac (diff)
INTEGRATION: CWS logger2 (1.69.62); FILE MERGED
2008/07/08 13:26:42 b_michaelsen 1.69.62.1: #i88653# implemeted logging hooks solution without dispatch interception
Diffstat (limited to 'sfx2/source/toolbox/tbxitem.cxx')
-rw-r--r--sfx2/source/toolbox/tbxitem.cxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/sfx2/source/toolbox/tbxitem.cxx b/sfx2/source/toolbox/tbxitem.cxx
index d848a0b9de32..4d5f39e15620 100644
--- a/sfx2/source/toolbox/tbxitem.cxx
+++ b/sfx2/source/toolbox/tbxitem.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tbxitem.cxx,v $
- * $Revision: 1.69 $
+ * $Revision: 1.70 $
*
* This file is part of OpenOffice.org.
*
@@ -112,6 +112,8 @@
#include <sfx2/module.hxx>
#include "imagemgr.hxx"
+#include <comphelper/uieventslogger.hxx>
+
//using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::frame;
@@ -460,7 +462,15 @@ void SfxToolBoxControl::Dispatch(
Reference < XDispatch > xDispatch = rProvider->queryDispatch( aTargetURL, ::rtl::OUString(), 0 );
if ( xDispatch.is() )
+ {
+ if(::comphelper::UiEventsLogger::isEnabled()) //#i88653#
+ {
+ Sequence<PropertyValue> source;
+ ::comphelper::UiEventsLogger::appendDispatchOrigin(source, rtl::OUString::createFromAscii("SfxToolBoxControl"));
+ ::comphelper::UiEventsLogger::logDispatch(aTargetURL, source);
+ }
xDispatch->dispatch( aTargetURL, aArgs );
+ }
}
}