From 5055134598ea29e687ce86c3252bedded24f8c3a Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sun, 7 Jan 2018 13:46:43 +0100 Subject: uitest: support selecting and deselecting of tree list entries Change-Id: I686b913c31a7851607966347cccdf718628a8568 Reviewed-on: https://gerrit.libreoffice.org/47528 Reviewed-by: Markus Mohrhard Tested-by: Markus Mohrhard --- svtools/source/uitest/uiobject.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/svtools/source/uitest/uiobject.cxx b/svtools/source/uitest/uiobject.cxx index b8fb2fc5fdc7..327f107f5f66 100644 --- a/svtools/source/uitest/uiobject.cxx +++ b/svtools/source/uitest/uiobject.cxx @@ -117,6 +117,14 @@ void TreeListEntryUIObject::execute(const OUString& rAction, const StringMap& /* { mxTreeList->Expand(mpEntry); } + else if (rAction == "SELECT") + { + mxTreeList->Select(mpEntry); + } + else if (rAction == "DESELECT") + { + mxTreeList->Select(mpEntry, false); + } else if (rAction == "CLICK") { if (!isCheckBoxList(mxTreeList)) -- cgit