Commits

Anonymous committed 9ead5e0

oooimprovement6: #i99729# collecting ruler interaction

Comments (0)

Files changed (1)

svx/source/dialog/svxruler.cxx

 #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
 */
 
 {
+    lcl_logRulerUse(::rtl::OUString::createFromAscii(".special://SfxRuler/Click"));
 	Ruler::Click();
 	if( bActive )
 	{
 */
 
 {
+    lcl_logRulerUse(::rtl::OUString::createFromAscii(".special://SfxRuler/StartDrag"));
 	BOOL bContentProtected = pRuler_Imp->aProtectItem.IsCntntProtected();
 	if(!bValid)
 		return FALSE;
 
 */
 {
+    lcl_logRulerUse(::rtl::OUString::createFromAscii(".special://SfxRuler/EndDrag"));
 	const BOOL bUndo = IsDragCanceled();
 	const long lPos = GetDragPos();
 	DrawLine_Impl(lTabPos, 6, bHorz);