oooimprovement6: #i99729# collecting ruler interaction

This commit is contained in:
Bjoern Michaelsen 2010-08-11 11:50:49 +02:00
parent 7bf7e8dcaf
commit b9e6133705

25
svx/source/dialog/svxruler.cxx Normal file → Executable file
View file

@ -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);