summaryrefslogtreecommitdiffstats
path: root/include/vcl/uitest/uiobject.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-10-08 09:02:25 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-11-07 22:01:02 +0100
commit6311f7ffce8f64b0773d2ad3ea7be3be683924c0 (patch)
tree67a59c93ca968838e86b63da214c75e98f8d0626 /include/vcl/uitest/uiobject.hxx
parentuitest Table to text dialog (diff)
downloadcore-6311f7ffce8f64b0773d2ad3ea7be3be683924c0.tar.gz
core-6311f7ffce8f64b0773d2ad3ea7be3be683924c0.zip
move SvTreeListBox to vcl
Change-Id: I04a146d3d8a428ac1678827dc883525c40240a44 Reviewed-on: https://gerrit.libreoffice.org/62787 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/uitest/uiobject.hxx')
-rw-r--r--include/vcl/uitest/uiobject.hxx50
1 files changed, 50 insertions, 0 deletions
diff --git a/include/vcl/uitest/uiobject.hxx b/include/vcl/uitest/uiobject.hxx
index 0b673774dc75..e56801af17f4 100644
--- a/include/vcl/uitest/uiobject.hxx
+++ b/include/vcl/uitest/uiobject.hxx
@@ -23,6 +23,7 @@
#include <vcl/combobox.hxx>
#include <vcl/spinfld.hxx>
#include <vcl/tabctrl.hxx>
+#include <vcl/treelistbox.hxx>
#include <vcl/dllapi.h>
@@ -404,6 +405,55 @@ protected:
virtual OUString get_name() const override;
};
+class UITEST_DLLPUBLIC TreeListUIObject : public WindowUIObject
+{
+public:
+ TreeListUIObject(const VclPtr<SvTreeListBox>& xTreeList);
+
+ virtual StringMap get_state() override;
+
+ 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 UITEST_DLLPUBLIC TreeListEntryUIObject : public UIObject
+{
+public:
+
+ TreeListEntryUIObject(const 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* const mpEntry;
+};
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */