summaryrefslogtreecommitdiff
path: root/svtools/inc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-21 16:49:16 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-22 18:19:33 +0200
commit71f562f8f77f14b76fde4329f7238fe2e7d6a054 (patch)
tree6352af0654eba2af204bb897baf9586c32be7214 /svtools/inc
parent33d873b61f2b966c11019fc5e435b04aa0a1476d (diff)
uitest: support tree lists
Change-Id: Iaa1a49d7e38c8d87bb3cfd749af94a0b92feee0d
Diffstat (limited to 'svtools/inc')
-rw-r--r--svtools/inc/uitest/uiobject.hxx36
1 files changed, 36 insertions, 0 deletions
diff --git a/svtools/inc/uitest/uiobject.hxx b/svtools/inc/uitest/uiobject.hxx
index 294942176a64..93cfc156a47b 100644
--- a/svtools/inc/uitest/uiobject.hxx
+++ b/svtools/inc/uitest/uiobject.hxx
@@ -10,6 +10,7 @@
#include <vcl/uitest/uiobject.hxx>
class SvTreeListBox;
+class SvTreeListEntry;
class TreeListUIObject : public WindowUIObject
{
@@ -20,9 +21,44 @@ public:
static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
+ virtual void execute(const OUString& rAction,
+ const StringMap& rParameters) override;
+
+ virtual std::unique_ptr<UIObject> get_child(const OUString& rID) override;
+
+ virtual std::set<OUString> get_children() const override;
+
protected:
virtual OUString get_name() const override;
+
+private:
+
+ VclPtr<SvTreeListBox> mxTreeList;
+};
+
+class TreeListEntryUIObject : public UIObject
+{
+public:
+
+ TreeListEntryUIObject(VclPtr<SvTreeListBox> xTreeList, SvTreeListEntry* pEntry);
+
+ virtual StringMap get_state() override;
+
+ virtual void execute(const OUString& rAction,
+ const StringMap& rParameters) override;
+
+ virtual std::unique_ptr<UIObject> get_child(const OUString& rID) override;
+
+ virtual std::set<OUString> get_children() const override;
+
+ virtual OUString get_type() const override;
+
+private:
+
+ VclPtr<SvTreeListBox> mxTreeList;
+
+ SvTreeListEntry* mpEntry;
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */