diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-03-26 00:21:04 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-03-26 02:56:57 +0000 |
commit | 3df98c595f1b9c4bd0705578a15252a4d194293c (patch) | |
tree | 13d06ce8db25c2dcbd034be9d87398bb9dbe9483 /svtools/source | |
parent | 3c979a362b59b87dee62c85403c3c1f28f59f951 (diff) |
uitest: add info whether a tree list box contains check boxes
Change-Id: Id214928de2e74ac7ec707eaf2276e4e808b630a4
Reviewed-on: https://gerrit.libreoffice.org/35697
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/uitest/uiobject.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/svtools/source/uitest/uiobject.cxx b/svtools/source/uitest/uiobject.cxx index 94da23aa6a54..aed862b0acbe 100644 --- a/svtools/source/uitest/uiobject.cxx +++ b/svtools/source/uitest/uiobject.cxx @@ -18,6 +18,15 @@ TreeListUIObject::TreeListUIObject(VclPtr<SvTreeListBox> xTreeList): { } +namespace { + +bool isCheckBoxList(VclPtr<SvTreeListBox> xTreeList) +{ + return (xTreeList->GetTreeFlags() & SvTreeFlags::CHKBTN) == SvTreeFlags::CHKBTN; +} + +} + StringMap TreeListUIObject::get_state() { StringMap aMap = WindowUIObject::get_state(); @@ -26,6 +35,7 @@ StringMap TreeListUIObject::get_state() aMap["VisibleCount"] = OUString::number(mxTreeList->GetVisibleCount()); aMap["Children"] = OUString::number(mxTreeList->GetChildCount(nullptr)); aMap["LevelChildren"] = OUString::number(mxTreeList->GetLevelChildCount(nullptr)); + aMap["CheckBoxList"] = OUString::boolean(isCheckBoxList(mxTreeList)); return aMap; } |