LibreOffice Module vcl (master)
1
|
This class wraps a UI object like vcl::Window and provides an interface for the UI testing. More...
#include <uiobject.hxx>
Public Member Functions | |
UIObject ()=default | |
virtual | ~UIObject () |
virtual StringMap | get_state () |
Returns the state of the wrapped UI object as a string key value map. More... | |
virtual void | execute (const OUString &rAction, const StringMap &rParameters) |
Executes an action on the wrapped UI object, possibly with some additional parameters. More... | |
virtual OUString | get_type () const |
Returns the type of the UIObject. More... | |
virtual std::unique_ptr< UIObject > | get_child (const OUString &rID) |
Returns the child of the current UIObject with the corresponding id. More... | |
virtual std::set< OUString > | get_children () const |
Returns a set containing all descendants of the object. More... | |
virtual OUString | dumpState () const |
Currently an internal method to dump the state of the current UIObject as represented by get_state(). More... | |
virtual OUString | dumpHierarchy () const |
Currently an internal method to dump the parent-child relationship starting from the current top focus window. More... | |
virtual OUString | get_action (VclEventId nEvent) const |
Gets the corresponding Action string for the event. More... | |
Private Member Functions | |
UIObject (UIObject const &)=delete | |
UIObject & | operator= (UIObject const &)=delete |
This class wraps a UI object like vcl::Window and provides an interface for the UI testing.
This class should only have virtual methods.
Definition at line 50 of file uiobject.hxx.
|
privatedelete |
|
default |
|
virtual |
Definition at line 46 of file uitest/uiobject.cxx.
|
virtual |
Currently an internal method to dump the parent-child relationship starting from the current top focus window.
This method should not be exposed to the outside world.
Reimplemented in WindowUIObject.
Definition at line 84 of file uitest/uiobject.cxx.
|
virtual |
Currently an internal method to dump the state of the current UIObject as represented by get_state().
This method should not be exposed to the outside world.
Reimplemented in WindowUIObject.
Definition at line 79 of file uitest/uiobject.cxx.
Executes an action on the wrapped UI object, possibly with some additional parameters.
Reimplemented in MenuButtonUIObject, ToolBoxUIObject, TreeListEntryUIObject, TreeListUIObject, VerticalTabControlUIObject, TabControlUIObject, SpinFieldUIObject, SpinUIObject, ComboBoxUIObject, ListBoxUIObject, TabPageUIObject, RadioButtonUIObject, CheckBoxUIObject, MultiLineEditUIObject, EditUIObject, ButtonUIObject, WindowUIObject, RoadmapWizardUIObject, FormattedFieldUIObject, and MetricFieldUIObject.
Definition at line 57 of file uitest/uiobject.cxx.
|
virtual |
Gets the corresponding Action string for the event.
Reimplemented in ToolBoxUIObject, TabControlUIObject, SpinFieldUIObject, SpinUIObject, ComboBoxUIObject, ListBoxUIObject, RadioButtonUIObject, CheckBoxUIObject, EditUIObject, ButtonUIObject, and WindowUIObject.
Definition at line 89 of file uitest/uiobject.cxx.
|
virtual |
Returns the child of the current UIObject with the corresponding id.
If no object with that id is being found returns a nullptr.
Reimplemented in TreeListEntryUIObject, TreeListUIObject, and WindowUIObject.
Definition at line 69 of file uitest/uiobject.cxx.
|
virtual |
Returns a set containing all descendants of the object.
Reimplemented in TreeListEntryUIObject, TreeListUIObject, and WindowUIObject.
Definition at line 74 of file uitest/uiobject.cxx.
|
virtual |
Returns the state of the wrapped UI object as a string key value map.
Reimplemented in MenuButtonUIObject, ToolBoxUIObject, TreeListEntryUIObject, TreeListUIObject, VerticalTabControlUIObject, TabControlUIObject, SpinFieldUIObject, SpinUIObject, ComboBoxUIObject, ListBoxUIObject, TabPageUIObject, RadioButtonUIObject, CheckBoxUIObject, MultiLineEditUIObject, EditUIObject, DialogUIObject, ButtonUIObject, WindowUIObject, FormattedFieldUIObject, MetricFieldUIObject, and RoadmapWizardUIObject.
Definition at line 50 of file uitest/uiobject.cxx.
References aMap.
|
virtual |
Returns the type of the UIObject.
Additional information might be available through UIObject::get_state().
Reimplemented in TreeListEntryUIObject, and WindowUIObject.
Definition at line 64 of file uitest/uiobject.cxx.