diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/menubtn.hxx | 5 | ||||
-rw-r--r-- | include/vcl/uitest/uiobject.hxx | 23 |
2 files changed, 28 insertions, 0 deletions
diff --git a/include/vcl/menubtn.hxx b/include/vcl/menubtn.hxx index 609d3d031aab..ea6916a48629 100644 --- a/include/vcl/menubtn.hxx +++ b/include/vcl/menubtn.hxx @@ -84,6 +84,11 @@ public: void SetActivateHdl( const Link<MenuButton *, void>& rLink ) { maActivateHdl = rLink; } void SetSelectHdl( const Link<MenuButton *, void>& rLink ) { maSelectHdl = rLink; } + + virtual FactoryFunction GetUITestFactory() const override; + + void SetCurItemId(); + }; diff --git a/include/vcl/uitest/uiobject.hxx b/include/vcl/uitest/uiobject.hxx index 1797c9156aba..c5b3f07dbe75 100644 --- a/include/vcl/uitest/uiobject.hxx +++ b/include/vcl/uitest/uiobject.hxx @@ -35,6 +35,7 @@ class SpinButton; class SpinField; class VerticalTabControl; class VclMultiLineEdit; +class MenuButton; class ToolBox; typedef std::map<const OUString, OUString> StringMap; @@ -504,6 +505,28 @@ private: virtual OUString get_name() const override; }; +class MenuButtonUIObject final : public WindowUIObject +{ + VclPtr<MenuButton> mxMenuButton; + +public: + + MenuButtonUIObject(const VclPtr<MenuButton>& xMenuButton); + virtual ~MenuButtonUIObject() override; + + virtual StringMap get_state() override; + + virtual void execute(const OUString& rAction, + const StringMap& rParameters) override; + + static std::unique_ptr<UIObject> create(vcl::Window* pWindow); + +private: + + virtual OUString get_name() const override; +}; + + #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |