summaryrefslogtreecommitdiff
path: root/svtools/source/uitest
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-03-26 00:21:32 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-03-26 02:57:34 +0000
commitf71208f49599cd13529447a0b3e2e27baeae2128 (patch)
tree8adfcdd4478bc75de9f193f661ab739a776bcbd0 /svtools/source/uitest
parentbc054e18712eb1a560ef27d0f2b0a62fc47bf962 (diff)
uitest: allow to change state of checkbox in treelist
Change-Id: If76ab528dfd835ea7718e153a943d182ecc4ce0a Reviewed-on: https://gerrit.libreoffice.org/35698 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'svtools/source/uitest')
-rw-r--r--svtools/source/uitest/uiobject.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/svtools/source/uitest/uiobject.cxx b/svtools/source/uitest/uiobject.cxx
index aed862b0acbe..9dfc37c15f0a 100644
--- a/svtools/source/uitest/uiobject.cxx
+++ b/svtools/source/uitest/uiobject.cxx
@@ -116,6 +116,15 @@ void TreeListEntryUIObject::execute(const OUString& rAction, const StringMap& /*
{
mxTreeList->Expand(mpEntry);
}
+ else if (rAction == "CLICK")
+ {
+ if (!isCheckBoxList(mxTreeList))
+ return;
+ SvButtonState eState = mxTreeList->GetCheckButtonState(mpEntry);
+ eState = eState == SvButtonState::Checked ? SvButtonState::Unchecked : SvButtonState::Checked;
+ mxTreeList->SetCheckButtonState(mpEntry, eState);
+ mxTreeList->CheckButtonHdl();
+ }
}
std::unique_ptr<UIObject> TreeListEntryUIObject::get_child(const OUString& rID)