10 #ifndef INCLUDED_VCL_UITEST_UIOBJECT_HXX
11 #define INCLUDED_VCL_UITEST_UIOBJECT_HXX
13 #include <rtl/ustring.hxx>
41 namespace weld {
class CustomWidgetController; }
43 typedef std::map<const OUString, OUString>
StringMap;
71 virtual void execute(
const OUString& rAction,
78 virtual OUString get_type()
const;
85 virtual std::unique_ptr<UIObject> get_child(
const OUString& rID);
90 virtual std::set<OUString> get_children()
const;
98 virtual OUString dumpState()
const;
106 virtual OUString dumpHierarchy()
const;
111 virtual OUString get_action(
VclEventId nEvent)
const;
124 virtual void execute(
const OUString& rAction,
127 virtual OUString
get_type()
const override;
129 virtual std::unique_ptr<UIObject>
get_child(
const OUString& rID)
override;
131 std::unique_ptr<UIObject> get_visible_child(
const OUString& rID);
133 virtual std::set<OUString>
get_children()
const override;
135 virtual OUString
dumpState()
const override;
145 virtual OUString get_name()
const;
160 virtual void execute(
const OUString& rAction,
169 virtual OUString
get_name()
const override;
187 virtual OUString
get_name()
const override;
199 virtual void execute(
const OUString& rAction,
210 virtual OUString
get_name()
const override;
222 virtual void execute(
const OUString& rAction,
231 virtual OUString
get_name()
const override;
244 virtual void execute(
const OUString& rAction,
255 virtual OUString
get_name()
const override;
267 virtual void execute(
const OUString& rAction,
278 virtual OUString
get_name()
const override;
289 virtual void execute(
const OUString& rAction,
298 virtual OUString
get_name()
const override;
311 virtual void execute(
const OUString& rAction,
322 virtual OUString
get_name()
const override;
336 virtual void execute(
const OUString& rAction,
347 virtual OUString
get_name()
const override;
360 virtual void execute(
const OUString& rAction,
371 virtual OUString
get_name()
const override;
383 virtual void execute(
const OUString& rAction,
394 virtual OUString
get_name()
const override;
407 virtual void execute(
const OUString& rAction,
418 virtual OUString
get_name()
const override;
431 virtual void execute(
const OUString& rAction,
440 virtual OUString
get_name()
const override;
452 virtual void execute(
const OUString& rAction,
455 virtual std::unique_ptr<UIObject>
get_child(
const OUString& rID)
override;
457 virtual std::set<OUString>
get_children()
const override;
461 virtual OUString
get_name()
const override;
474 virtual void execute(
const OUString& rAction,
477 virtual std::unique_ptr<UIObject>
get_child(
const OUString& rID)
override;
479 virtual std::set<OUString>
get_children()
const override;
481 virtual OUString
get_type()
const override;
501 virtual OUString
get_name()
const override;
514 virtual void execute(
const OUString& rAction,
525 virtual OUString
get_name()
const override;
539 virtual void execute(
const OUString& rAction,
546 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.
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual ~MultiLineEditUIObject() override
VclPtr< VclMultiLineEdit > mxEdit
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 OUString get_action(VclEventId nEvent) const override
Gets the corresponding Action string for the event.
virtual std::set< OUString > get_children() const override
Returns a set containing all descendants of the object.
TreeListUIObject(const VclPtr< SvTreeListBox > &xTreeList)
virtual std::unique_ptr< UIObject > get_child(const OUString &rID)
Returns the child of the current UIObject with the corresponding id.
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
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
VclPtr< SpinButton > mxSpinButton
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
weld::CustomWidgetController * mpController
A widget used to choose from a list of items and which has no entry.
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
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
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.
This class wraps a UI object like vcl::Window and provides an interface for the UI testing...
VclPtr< VclDrawingArea > mxDrawingArea
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual OUString get_type() const override
Returns the type of the UIObject.
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 OUString get_action(VclEventId nEvent) const override
Gets the corresponding Action string for the event.
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
VclPtr< TabPage > mxTabPage
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual ~DialogUIObject() override
virtual OUString get_name() const override
virtual OUString get_name() const 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 void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
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)
virtual OUString get_action(VclEventId nEvent) const override
Gets the corresponding Action string for the event.
virtual ~TabControlUIObject() override
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 StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual OUString get_name() const override
virtual OUString get_name() const override
virtual std::set< OUString > get_children() const
Returns a set containing all descendants of the object.
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 OUString get_name() const override
Reference< deployment::XPackageRegistry > create(Reference< deployment::XPackageRegistry > const &xRootRegistry, OUString const &context, OUString const &cachePath, Reference< XComponentContext > const &xComponentContext)
SpinFieldUIObject(const VclPtr< SpinField > &xEdit)
virtual std::unique_ptr< UIObject > get_child(const OUString &rID) override
Returns the child of the current UIObject with the corresponding id.
TreeListEntryUIObject(const VclPtr< SvTreeListBox > &xTreeList, SvTreeListEntry *pEntry)
MultiLineEditUIObject(const VclPtr< VclMultiLineEdit > &xEdit)
DialogUIObject(const VclPtr< Dialog > &xDialog)
virtual OUString dumpHierarchy() const
Currently an internal method to dump the parent-child relationship starting from the current top focu...
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 StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual OUString get_type() const
Returns the type of the UIObject.
ListBoxUIObject(const VclPtr< ListBox > &xListBox)
TabPageUIObject(const VclPtr< TabPage > &xTabPage)
CheckBoxUIObject(const VclPtr< CheckBox > &xCheckbox)
std::map< const OUString, OUString > StringMap
virtual OUString get_name() const override
virtual void execute(const OUString &rAction, const StringMap &rParameters)
Executes an action on the wrapped UI object, possibly with some additional parameters.
virtual ~ComboBoxUIObject() override
virtual OUString get_name() const override
VclPtr< SvTreeListBox > mxTreeList
IconViewUIObject(const VclPtr< SvTreeListBox > &xIconView)
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
VclPtr< SvTreeListBox > mxTreeList
virtual ~SpinUIObject() override
virtual OUString dumpState() const
Currently an internal method to dump the state of the current UIObject as represented by get_state()...
virtual ~SpinFieldUIObject() override
virtual OUString get_action(VclEventId nEvent) const override
Gets the corresponding Action string for the event.
VerticalTabControlUIObject(const VclPtr< VerticalTabControl > &mxTabControl)
SvTreeListEntry *const mpEntry
VclPtr< ComboBox > mxComboBox
virtual OUString get_name() const override
VclPtr< VerticalTabControl > mxTabControl
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)
VclPtr< Dialog > mxDialog
VclPtr< CheckBox > mxCheckBox
VclPtr< TabControl > mxTabControl
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
ComboBoxUIObject(const VclPtr< ComboBox > &xListBox)
std::map< OUString, OUString > StringMap
virtual ~VerticalTabControlUIObject() override
VclPtr< ListBox > mxListBox
virtual ~CheckBoxUIObject() override
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual std::unique_ptr< UIObject > get_child(const OUString &rID) override
Returns the child of the current UIObject with the corresponding id.
SpinUIObject(const VclPtr< SpinButton > &xSpinButton)
VclPtr< vcl::Window > mxWindow
TabControlUIObject(const VclPtr< TabControl > &mxTabControl)
VclPtr< SpinField > mxSpinField
A widget used to choose from a list of items and which has an entry.
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.
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual ~TabPageUIObject() override
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
EditUIObject(const VclPtr< Edit > &xEdit)
virtual OUString get_name() const override
virtual StringMap get_state()
Returns the state of the wrapped UI object as a string key value map.
virtual ~EditUIObject() override
virtual OUString get_action(VclEventId nEvent) const override
Gets the corresponding Action string for the event.
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.
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 ~ListBoxUIObject() override