[Libreoffice-commits] core.git: sc/source
Ahmed ElShreif (via logerrit)
logerrit at kemper.freedesktop.org
Sun Aug 23 23:04:43 UTC 2020
sc/source/ui/view/tabvwsh3.cxx | 14 ++++++++++++++
1 file changed, 14 insertions(+)
New commits:
commit a06a83b29a9da770787bffe416b138102aa12531
Author: Ahmed ElShreif <aelshreif7 at gmail.com>
AuthorDate: Fri Aug 21 04:04:03 2020 +0200
Commit: Ahmed ElShreif <aelshreif7 at gmail.com>
CommitDate: Mon Aug 24 01:04:07 2020 +0200
uilogger : Add support in the Logger and DSL for ZOOM in CALC
For example the DSL syntax will be:
>>"Set Zoom to 46"
Change-Id: Ie8a77441da10bd32efd7a95c3f1550671a62d16f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101125
Tested-by: Jenkins
Reviewed-by: Ahmed ElShreif <aelshreif7 at gmail.com>
diff --git a/sc/source/ui/view/tabvwsh3.cxx b/sc/source/ui/view/tabvwsh3.cxx
index 2a883642b2da..80748d849c3d 100644
--- a/sc/source/ui/view/tabvwsh3.cxx
+++ b/sc/source/ui/view/tabvwsh3.cxx
@@ -27,6 +27,8 @@
#include <tools/urlobj.hxx>
#include <sfx2/objface.hxx>
#include <vcl/vclenum.hxx>
+#include <vcl/uitest/logger.hxx>
+#include <vcl/uitest/eventdescription.hxx>
#include <globstr.hrc>
#include <strings.hrc>
@@ -57,6 +59,17 @@
namespace
{
+ void collectUIInformation(const OUString& aZoom)
+ {
+ EventDescription aDescription;
+ aDescription.aID = "grid_window";
+ aDescription.aParameters = {{"ZOOM", aZoom}};
+ aDescription.aAction = "SET";
+ aDescription.aKeyWord = "ScGridWinUIObject";
+ aDescription.aParent = "MainWindow";
+ UITestLogger::getInstance().logEvent(aDescription);
+ }
+
enum class DetectFlags
{
NONE,
@@ -793,6 +806,7 @@ void ScTabViewShell::Execute( SfxRequest& rReq )
{
ScAppOptions aNewOpt = pScMod->GetAppOptions();
aNewOpt.SetZoom( nCurrentZoom );
+ collectUIInformation(OUString::number(nCurrentZoom));
aNewOpt.SetZoomType( GetZoomType() );
pScMod->SetAppOptions( aNewOpt );
}
More information about the Libreoffice-commits
mailing list