summaryrefslogtreecommitdiff
path: root/sd/source/ui
diff options
context:
space:
mode:
authorSaurav Chirania <saurav.chir@gmail.com>2018-07-13 01:13:11 +0530
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-07-31 00:35:42 +0200
commit7e65a0794b7c57210779bb9a6d1f2b2e49eb86e9 (patch)
treeb15fe5aa2c79b8c1f1cbba28b1be2acbde025ce0 /sd/source/ui
parent051399740e41c6495ed362e78c63e0868bcd180c (diff)
uitest logger: log more events
Logging for the following: 1) Object Selection 2) Sidebar / Deck opening 3) Parameters of UNO commands 4) Element Selection (Math) 5) Set Zoom (Impress) 6) Calc - a) Autofilter Launch b) Select Cell / Range of cells c) Switch table 7) Writer - a) Goto page b) Set Zoom Change-Id: Ifc7f603f62d10cfd1062923ded68203e574aebb6 Reviewed-on: https://gerrit.libreoffice.org/57368 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sd/source/ui')
-rw-r--r--sd/source/ui/view/drviews1.cxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx
index aee53381ebc9..98a39465d8e5 100644
--- a/sd/source/ui/view/drviews1.cxx
+++ b/sd/source/ui/view/drviews1.cxx
@@ -79,6 +79,8 @@
#include <sfx2/request.hxx>
#include <comphelper/lok.hxx>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
+#include <vcl/uitest/logger.hxx>
+#include <vcl/uitest/eventdescription.hxx>
using namespace com::sun::star;
@@ -262,6 +264,22 @@ void DrawViewShell::SelectionHasChanged()
GetViewShellBase().GetDrawController().FireSelectionChangeListener();
}
+namespace {
+
+void collectUIInformation(const OUString& aZoom)
+{
+ EventDescription aDescription;
+ aDescription.aID = "impress_win";
+ aDescription.aParameters = {{"ZOOM", aZoom}};
+ aDescription.aAction = "SET";
+ aDescription.aKeyWord = "ImpressWindowUIObject";
+ aDescription.aParent = "MainWindow";
+
+ UITestLogger::getInstance().logEvent(aDescription);
+}
+
+}
+
/**
* set zoom factor
*/
@@ -274,6 +292,7 @@ void DrawViewShell::SetZoom( long nZoom )
GetViewFrame()->GetBindings().Invalidate( SID_ATTR_ZOOM );
GetViewFrame()->GetBindings().Invalidate( SID_ATTR_ZOOMSLIDER );
mpViewOverlayManager->onZoomChanged();
+ collectUIInformation(OUString::number(nZoom));
}
/**