diff options
author | Ahmed ElShreif <aelshreif7@gmail.com> | 2019-08-02 22:16:31 -0500 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2019-08-19 22:56:38 +0800 |
commit | be85e2d1d78aba2a0554645acbbacacf200f1bb4 (patch) | |
tree | 62224530e51bc88c299d85f0747defa51c622475 /sd/source | |
parent | 3c5fe9ae9f15fccecdd91b32c225c3cbd854eff0 (diff) |
uitest: add more events to ui logger
for Impress:
add new Slide
for Draw:
add new Page
Modify the UILogger System to save information about the name of the app
Change-Id: I87fd98b2a11783e3410f1c0eba633631addf389b
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlsSlotManager.cxx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx index 8c40b7647807..adcc0da4ad82 100644 --- a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx +++ b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx @@ -67,6 +67,9 @@ #include <sdabstdlg.hxx> #include <sdmod.hxx> +#include <vcl/uitest/logger.hxx> +#include <vcl/uitest/eventdescription.hxx> + #include <sfx2/request.hxx> #include <sfx2/viewfrm.hxx> #include <sfx2/bindings.hxx> @@ -84,6 +87,7 @@ #include <com/sun/star/drawing/XDrawPages.hpp> #include <vcl/svapp.hxx> + #include <memory> using namespace ::com::sun::star; @@ -106,6 +110,23 @@ SlideExclusionState GetSlideExclusionState (model::PageEnumeration& rPageSet); } // end of anonymous namespace + +namespace { + +void collectUIInformation(const OUString& num,const OUString& action) +{ + EventDescription aDescription; + aDescription.aID = "impress_win_or_draw_win"; + aDescription.aParameters = {{"POS", num}}; + aDescription.aAction = action; + aDescription.aKeyWord = "ImpressWindowUIObject"; + aDescription.aParent = "MainWindow"; + + UITestLogger::getInstance().logEvent(aDescription); +} + +} + SlotManager::SlotManager (SlideSorter& rSlideSorter) : mrSlideSorter(rSlideSorter) { @@ -1079,6 +1100,7 @@ void SlotManager::InsertSlide (SfxRequest& rRequest) PageSelector::UpdateLock aUpdateLock (mrSlideSorter); mrSlideSorter.GetController().GetPageSelector().DeselectAllPages(); mrSlideSorter.GetController().GetPageSelector().SelectPage(pNewPage); + collectUIInformation(OUString::number(nInsertionIndex+2),"Insert_New_Page_or_Slide"); } void SlotManager::DuplicateSelectedSlides (SfxRequest& rRequest) |