10#ifndef INCLUDED_VCL_UITEST_UIOBJECT_HXX
11#define INCLUDED_VCL_UITEST_UIOBJECT_HXX
13#include <rtl/ustring.hxx>
45namespace weld {
class CustomWidgetController; }
75 virtual void execute(
const OUString& rAction,
82 virtual OUString get_type()
const;
89 virtual std::unique_ptr<UIObject> get_child(
const OUString& rID);
94 virtual std::set<OUString> get_children()
const;
110 virtual OUString dumpHierarchy()
const;
115 virtual OUString get_action(
VclEventId nEvent)
const;
128 virtual void execute(
const OUString& rAction,
131 virtual OUString get_type()
const override;
133 virtual std::unique_ptr<UIObject> get_child(
const OUString& rID)
override;
135 std::unique_ptr<UIObject> get_visible_child(
const OUString& rID);
137 virtual std::set<OUString> get_children()
const override;
139 virtual OUString
dumpState()
const override;
141 virtual OUString dumpHierarchy()
const override;
143 virtual OUString get_action(
VclEventId nEvent)
const override;
149 virtual OUString get_name()
const;
164 virtual void execute(
const OUString& rAction,
173 virtual OUString
get_name()
const override;
191 virtual OUString
get_name()
const override;
203 virtual void execute(
const OUString& rAction,
214 virtual OUString
get_name()
const override;
226 virtual void execute(
const OUString& rAction,
235 virtual OUString
get_name()
const override;
247 virtual void execute(
const OUString& rAction,
255 virtual OUString
get_name()
const override;
269 virtual void execute(
const OUString& rAction,
280 virtual OUString
get_name()
const override;
292 virtual void execute(
const OUString& rAction,
303 virtual OUString
get_name()
const override;
314 virtual void execute(
const OUString& rAction,
323 virtual OUString
get_name()
const override;
336 virtual void execute(
const OUString& rAction,
347 virtual OUString
get_name()
const override;
361 virtual void execute(
const OUString& rAction,
372 virtual OUString
get_name()
const override;
385 virtual void execute(
const OUString& rAction,
396 virtual OUString
get_name()
const override;
408 virtual void execute(
const OUString& rAction,
419 virtual OUString
get_name()
const override;
432 virtual void execute(
const OUString& rAction,
443 virtual OUString
get_name()
const override;
456 virtual void execute(
const OUString& rAction,
465 virtual OUString
get_name()
const override;
477 virtual void execute(
const OUString& rAction,
480 virtual std::unique_ptr<UIObject>
get_child(
const OUString& rID)
override;
482 virtual std::set<OUString>
get_children()
const override;
486 virtual OUString
get_name()
const override;
499 virtual void execute(
const OUString& rAction,
502 virtual std::unique_ptr<UIObject>
get_child(
const OUString& rID)
override;
504 virtual std::set<OUString>
get_children()
const override;
506 virtual OUString
get_type()
const override;
526 virtual OUString
get_name()
const override;
539 virtual void execute(
const OUString& rAction,
550 virtual OUString
get_name()
const override;
564 virtual void execute(
const OUString& rAction,
571 virtual OUString
get_name()
const override;
583 virtual void execute(
const OUString& rAction,
const StringMap& rParameters)
override;
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual OUString get_action(VclEventId nEvent) const override
Gets the corresponding Action string for the event.
virtual ~CheckBoxUIObject() override
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
CheckBoxUIObject(const VclPtr< CheckBox > &xCheckbox)
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
VclPtr< CheckBox > mxCheckBox
virtual OUString get_name() const override
virtual OUString get_action(VclEventId nEvent) const override
Gets the corresponding Action string for the event.
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual OUString get_name() const override
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual ~ComboBoxUIObject() override
VclPtr< ComboBox > mxComboBox
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
ComboBoxUIObject(const VclPtr< ComboBox > &xListBox)
A widget used to choose from a list of items and which has an entry.
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
VclPtr< Dialog > mxDialog
virtual OUString get_name() const override
virtual ~DialogUIObject() override
DialogUIObject(const VclPtr< Dialog > &xDialog)
VclPtr< VclDrawingArea > mxDrawingArea
weld::CustomWidgetController * mpController
EditUIObject(const VclPtr< Edit > &xEdit)
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual ~EditUIObject() override
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
virtual OUString get_action(VclEventId nEvent) const override
Gets the corresponding Action string for the event.
virtual OUString get_name() const override
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual ~ExpanderUIObject() override
VclPtr< VclExpander > mxExpander
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
virtual OUString get_name() const override
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
ExpanderUIObject(const VclPtr< VclExpander > &xExpander)
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
IconViewUIObject(const VclPtr< SvTreeListBox > &xIconView)
virtual OUString get_name() const override
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual ~ListBoxUIObject() override
virtual OUString get_name() const override
VclPtr< ListBox > mxListBox
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual OUString get_action(VclEventId nEvent) const override
Gets the corresponding Action string for the event.
ListBoxUIObject(const VclPtr< ListBox > &xListBox)
A widget used to choose from a list of items and which has no entry.
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual OUString get_name() const override
MultiLineEditUIObject(const VclPtr< VclMultiLineEdit > &xEdit)
virtual ~MultiLineEditUIObject() override
VclPtr< VclMultiLineEdit > mxEdit
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
SpinFieldUIObject(const VclPtr< SpinField > &xEdit)
VclPtr< SpinField > mxSpinField
virtual OUString get_action(VclEventId nEvent) const override
Gets the corresponding Action string for the event.
virtual OUString get_name() const override
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
virtual ~SpinFieldUIObject() override
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual OUString get_name() const override
virtual OUString get_action(VclEventId nEvent) const override
Gets the corresponding Action string for the event.
SpinUIObject(const VclPtr< SpinButton > &xSpinButton)
VclPtr< SpinButton > mxSpinButton
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
virtual ~SpinUIObject() override
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
TabControlUIObject(const VclPtr< TabControl > &mxTabControl)
virtual ~TabControlUIObject() override
virtual OUString get_action(VclEventId nEvent) const override
Gets the corresponding Action string for the event.
VclPtr< TabControl > mxTabControl
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
virtual OUString get_name() const override
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual OUString get_name() const override
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
TabPageUIObject(const VclPtr< TabPage > &xTabPage)
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
VclPtr< TabPage > mxTabPage
virtual ~TabPageUIObject() override
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual std::set< OUString > get_children() const override
Returns a set containing all descendants of the object.
VclPtr< SvTreeListBox > mxTreeList
SvTreeListEntry *const mpEntry
virtual std::unique_ptr< UIObject > get_child(const OUString &rID) override
Returns the child of the current UIObject with the corresponding id.
virtual OUString get_type() const override
Returns the type of the UIObject.
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
TreeListEntryUIObject(const VclPtr< SvTreeListBox > &xTreeList, SvTreeListEntry *pEntry)
VclPtr< SvTreeListBox > mxTreeList
TreeListUIObject(const VclPtr< SvTreeListBox > &xTreeList)
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
virtual std::set< OUString > get_children() const override
Returns a set containing all descendants of the object.
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual std::unique_ptr< UIObject > get_child(const OUString &rID) override
Returns the child of the current UIObject with the corresponding id.
virtual OUString get_name() const override
This class wraps a UI object like vcl::Window and provides an interface for the UI testing.
UIObject(UIObject const &)=delete
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual OUString get_name() const override
VerticalTabControlUIObject(const VclPtr< VerticalTabControl > &mxTabControl)
virtual ~VerticalTabControlUIObject() override
VclPtr< VerticalTabControl > mxTabControl
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
VclPtr< vcl::Window > mxWindow
css::uno::Reference< css::deployment::XPackageRegistry > create(css::uno::Reference< css::deployment::XPackageRegistry > const &xRootRegistry, OUString const &context, OUString const &cachePath, css::uno::Reference< css::uno::XComponentContext > const &xComponentContext)
void dumpState(rtl::OStringBuffer &rState)
std::map< OUString, OUString > StringMap
std::map< OUString, OUString > StringMap