sc/source/ui/view/tabvwsh3.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
New commits: commit a06a83b29a9da770787bffe416b138102aa12531 Author: Ahmed ElShreif <aelshre...@gmail.com> AuthorDate: Fri Aug 21 04:04:03 2020 +0200 Commit: Ahmed ElShreif <aelshre...@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 <aelshre...@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 ); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits