summaryrefslogtreecommitdiff
path: root/include/vcl/uitest/uiobject.hxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-05-11 01:42:39 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-18 17:02:16 +0200
commit0c5abdea5fe40350df6234e71b70cab1f11764ac (patch)
tree0e1fcdb3d1b0b9a1f9c70c5ad8de81e6c21f35ea /include/vcl/uitest/uiobject.hxx
parent4ec1c63b91ac1f0c77f7ead33b4cbbd9d80a613b (diff)
uitest: add method to get all children of a ui object
This makes writing ui tests so much easier. Change-Id: Ice7d98c354fc9b68ee4532bc854561b5b9446e3f
Diffstat (limited to 'include/vcl/uitest/uiobject.hxx')
-rw-r--r--include/vcl/uitest/uiobject.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/vcl/uitest/uiobject.hxx b/include/vcl/uitest/uiobject.hxx
index b9a3f484b58f..f00d80fc4d0a 100644
--- a/include/vcl/uitest/uiobject.hxx
+++ b/include/vcl/uitest/uiobject.hxx
@@ -22,6 +22,8 @@
#include <vcl/dllapi.h>
+#include <set>
+
typedef std::map<const OUString, OUString> StringMap;
/**
@@ -63,6 +65,11 @@ public:
virtual std::unique_ptr<UIObject> get_child(const OUString& rID);
/**
+ * Returns a set containing all decendants of the object.
+ */
+ virtual std::set<OUString> get_children() const;
+
+ /**
* Currently an internal method to dump the state of the current UIObject as represented by get_state().
*
* This method should not be exposed to the outside world.
@@ -96,6 +103,8 @@ public:
virtual std::unique_ptr<UIObject> get_child(const OUString& rID) override;
+ virtual std::set<OUString> get_children() const override;
+
virtual void dumpState() const override;
virtual void dumpHierarchy() const override;