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