diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-10-15 11:07:10 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-10-16 12:55:07 +0200 |
commit | d3fff9073f70bdd9caf619a9cfe7afd7c04cffe1 (patch) | |
tree | f48b9b4f8478613fcade0cef9f6f12fdde5b41b4 /include/vcl/uitest/uiobject.hxx | |
parent | 2e412c5354134fe3cd66ea0266011c5b87dc9eb3 (diff) |
add a DrawingAreaUIObject to avoid need to include layout.hxx for uitest
Change-Id: I2d7f9d38f9eac5af7b8b4d738335507beb6627df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104357
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/uitest/uiobject.hxx')
-rw-r--r-- | include/vcl/uitest/uiobject.hxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/vcl/uitest/uiobject.hxx b/include/vcl/uitest/uiobject.hxx index 750226d20be0..8f8be274b3a9 100644 --- a/include/vcl/uitest/uiobject.hxx +++ b/include/vcl/uitest/uiobject.hxx @@ -33,9 +33,11 @@ class SvTreeListEntry; class SpinButton; class SpinField; class VerticalTabControl; +class VclDrawingArea; class VclMultiLineEdit; class MenuButton; class ToolBox; +namespace weld { class CustomWidgetController; } typedef std::map<const OUString, OUString> StringMap; @@ -529,6 +531,16 @@ private: virtual OUString get_name() const override; }; +class UITEST_DLLPUBLIC DrawingAreaUIObject : public WindowUIObject +{ +private: + VclPtr<VclDrawingArea> mxDrawingArea; +protected: + weld::CustomWidgetController* mpController; +public: + DrawingAreaUIObject(const VclPtr<vcl::Window>& rDrawingArea); + virtual ~DrawingAreaUIObject() override; +}; #endif |