diff options
Diffstat (limited to 'svtools/inc/uitest/uiobject.hxx')
-rw-r--r-- | svtools/inc/uitest/uiobject.hxx | 36 |
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: */ |