CWS-TOOLING: integrate CWS oooimprovement6
This commit is contained in:
25
svx/source/dialog/svxruler.cxx
Normal file → Executable file
25
svx/source/dialog/svxruler.cxx
Normal file → Executable file
@@ -59,6 +59,28 @@
|
|||||||
#define RULER_TAB_RTL ((USHORT)0x0010)
|
#define RULER_TAB_RTL ((USHORT)0x0010)
|
||||||
#endif
|
#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 -----------------------------------------------------------
|
// STATIC DATA -----------------------------------------------------------
|
||||||
|
|
||||||
#define CTRL_ITEM_COUNT 14
|
#define CTRL_ITEM_COUNT 14
|
||||||
@@ -2806,6 +2828,7 @@ void __EXPORT SvxRuler::Click()
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
{
|
{
|
||||||
|
lcl_logRulerUse(::rtl::OUString::createFromAscii(".special://SfxRuler/Click"));
|
||||||
Ruler::Click();
|
Ruler::Click();
|
||||||
if( bActive )
|
if( bActive )
|
||||||
{
|
{
|
||||||
@@ -3440,6 +3463,7 @@ long __EXPORT SvxRuler::StartDrag()
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
{
|
{
|
||||||
|
lcl_logRulerUse(::rtl::OUString::createFromAscii(".special://SfxRuler/StartDrag"));
|
||||||
BOOL bContentProtected = pRuler_Imp->aProtectItem.IsCntntProtected();
|
BOOL bContentProtected = pRuler_Imp->aProtectItem.IsCntntProtected();
|
||||||
if(!bValid)
|
if(!bValid)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@@ -3559,6 +3583,7 @@ void __EXPORT SvxRuler::EndDrag()
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
|
lcl_logRulerUse(::rtl::OUString::createFromAscii(".special://SfxRuler/EndDrag"));
|
||||||
const BOOL bUndo = IsDragCanceled();
|
const BOOL bUndo = IsDragCanceled();
|
||||||
const long lPos = GetDragPos();
|
const long lPos = GetDragPos();
|
||||||
DrawLine_Impl(lTabPos, 6, bHorz);
|
DrawLine_Impl(lTabPos, 6, bHorz);
|
||||||
|
Reference in New Issue
Block a user