[Libreoffice-commits] core.git: svtools/source

Markus Mohrhard markus.mohrhard at googlemail.com
Sun Mar 26 02:58:03 UTC 2017


 svtools/source/uitest/uiobject.cxx |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit f71208f49599cd13529447a0b3e2e27baeae2128
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Sun Mar 26 00:21:32 2017 +0100

    uitest: allow to change state of checkbox in treelist
    
    Change-Id: If76ab528dfd835ea7718e153a943d182ecc4ce0a
    Reviewed-on: https://gerrit.libreoffice.org/35698
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

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)


More information about the Libreoffice-commits mailing list