diff options
author | Hans-Joachim Lankenau <hjs@openoffice.org> | 2010-09-17 15:39:00 +0200 |
---|---|---|
committer | Hans-Joachim Lankenau <hjs@openoffice.org> | 2010-09-17 15:39:00 +0200 |
commit | f7de0958e98bd5a2925a40c1a138c084c1fd01a1 (patch) | |
tree | 09019b10c7ccf7d9f0a06aa15e933f44a17d8db7 | |
parent | 40e7b36781ec91705089ffbd0454d76268344d31 (diff) | |
parent | b9e6133705ac49d3299aae2d5d62ea04a015cd76 (diff) |
CWS-TOOLING: integrate CWS oooimprovement6
-rwxr-xr-x[-rw-r--r--] | svx/source/dialog/svxruler.cxx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx index 7705a2dd08df..8000de0d2103 100644..100755 --- a/svx/source/dialog/svxruler.cxx +++ b/svx/source/dialog/svxruler.cxx @@ -59,6 +59,28 @@ #define RULER_TAB_RTL ((USHORT)0x0010) #endif +#include <comphelper/uieventslogger.hxx> + +namespace +{ + void lcl_logRulerUse(const ::rtl::OUString& sURL) //#i99729# + { + using namespace ::com::sun::star; + util::URL aTargetURL; + aTargetURL.Complete = sURL; + aTargetURL.Main = sURL; + if(::comphelper::UiEventsLogger::isEnabled()) //#i88653# + { + ::rtl::OUString sAppName; + uno::Sequence<beans::PropertyValue> source; + ::comphelper::UiEventsLogger::appendDispatchOrigin(source, sAppName, ::rtl::OUString::createFromAscii("SfxRuler")); + ::comphelper::UiEventsLogger::logDispatch(aTargetURL, source); + } + } +} + + + // STATIC DATA ----------------------------------------------------------- #define CTRL_ITEM_COUNT 14 @@ -2806,6 +2828,7 @@ void __EXPORT SvxRuler::Click() */ { + lcl_logRulerUse(::rtl::OUString::createFromAscii(".special://SfxRuler/Click")); Ruler::Click(); if( bActive ) { @@ -3440,6 +3463,7 @@ long __EXPORT SvxRuler::StartDrag() */ { + lcl_logRulerUse(::rtl::OUString::createFromAscii(".special://SfxRuler/StartDrag")); BOOL bContentProtected = pRuler_Imp->aProtectItem.IsCntntProtected(); if(!bValid) return FALSE; @@ -3559,6 +3583,7 @@ void __EXPORT SvxRuler::EndDrag() */ { + lcl_logRulerUse(::rtl::OUString::createFromAscii(".special://SfxRuler/EndDrag")); const BOOL bUndo = IsDragCanceled(); const long lPos = GetDragPos(); DrawLine_Impl(lTabPos, 6, bHorz); |