summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
Diffstat (limited to 'svtools')
-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)