LibreOffice Module vcl (master) 1
|
#include <uiobject.hxx>
Public Member Functions | |
WindowUIObject (const VclPtr< vcl::Window > &xWindow) | |
virtual StringMap | get_state () override |
Returns the state of the wrapped UI object as a string key value map. More... | |
virtual void | execute (const OUString &rAction, const StringMap &rParameters) override |
Executes an action on the wrapped UI object, possibly with some additional parameters. More... | |
virtual OUString | get_type () const override |
Returns the type of the UIObject. More... | |
virtual std::unique_ptr< UIObject > | get_child (const OUString &rID) override |
Returns the child of the current UIObject with the corresponding id. More... | |
std::unique_ptr< UIObject > | get_visible_child (const OUString &rID) |
virtual std::set< OUString > | get_children () const override |
Returns a set containing all descendants of the object. More... | |
virtual OUString | dumpState () const override |
Currently an internal method to dump the state of the current UIObject as represented by get_state(). More... | |
virtual OUString | dumpHierarchy () const override |
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 override |
Gets the corresponding Action string for the event. More... | |
![]() | |
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... | |
Static Public Member Functions | |
static std::unique_ptr< UIObject > | create (vcl::Window *pWindow) |
Protected Member Functions | |
virtual OUString | get_name () const |
Private Attributes | |
VclPtr< vcl::Window > | mxWindow |
Definition at line 118 of file uiobject.hxx.
WindowUIObject::WindowUIObject | ( | const VclPtr< vcl::Window > & | xWindow | ) |
Definition at line 286 of file uitest/uiobject.cxx.
Referenced by create().
|
static |
Definition at line 587 of file uitest/uiobject.cxx.
References WindowUIObject().
Referenced by vcl::Window::GetUITestFactory().
|
overridevirtual |
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 from UIObject.
Definition at line 555 of file uitest/uiobject.cxx.
References VclPtr< reference_type >::get(), vcl::Window::GetUITestFactory(), and mxWindow.
|
overridevirtual |
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 from UIObject.
Definition at line 517 of file uitest/uiobject.cxx.
References vcl::Window::get_id(), get_state(), vcl::Window::GetChild(), vcl::Window::GetChildCount(), vcl::Window::GetUITestFactory(), i, mxWindow, and nCount.
|
overridevirtual |
Executes an action on the wrapped UI object, possibly with some additional parameters.
Reimplemented from UIObject.
Reimplemented in FormattedFieldUIObject, MetricFieldUIObject, ButtonUIObject, EditUIObject, MultiLineEditUIObject, ExpanderUIObject, CheckBoxUIObject, RadioButtonUIObject, TabPageUIObject, ListBoxUIObject, ComboBoxUIObject, SpinUIObject, SpinFieldUIObject, TabControlUIObject, VerticalTabControlUIObject, TreeListUIObject, ToolBoxUIObject, MenuButtonUIObject, DrawingAreaUIObject, and RoadmapWizardUIObject.
Definition at line 337 of file uitest/uiobject.cxx.
References get_name(), vcl::Window::GrabFocus(), vcl::Window::KeyInput(), mxWindow, and SAL_WARN.
Referenced by ButtonUIObject::execute(), EditUIObject::execute(), MultiLineEditUIObject::execute(), ExpanderUIObject::execute(), CheckBoxUIObject::execute(), RadioButtonUIObject::execute(), TabPageUIObject::execute(), ListBoxUIObject::execute(), ComboBoxUIObject::execute(), SpinUIObject::execute(), TabControlUIObject::execute(), VerticalTabControlUIObject::execute(), TreeListUIObject::execute(), ToolBoxUIObject::execute(), MenuButtonUIObject::execute(), DrawingAreaUIObject::execute(), and RoadmapWizardUIObject::execute().
|
overridevirtual |
Gets the corresponding Action string for the event.
Reimplemented from UIObject.
Reimplemented in ButtonUIObject, EditUIObject, CheckBoxUIObject, RadioButtonUIObject, ListBoxUIObject, ComboBoxUIObject, SpinUIObject, SpinFieldUIObject, TabControlUIObject, and ToolBoxUIObject.
Definition at line 563 of file uitest/uiobject.cxx.
References ButtonClick, CheckboxToggle, ControlGetFocus, ControlLoseFocus, EditModify, vcl::Window::get_id(), and mxWindow.
Referenced by ButtonUIObject::get_action(), EditUIObject::get_action(), CheckBoxUIObject::get_action(), RadioButtonUIObject::get_action(), ListBoxUIObject::get_action(), ComboBoxUIObject::get_action(), SpinUIObject::get_action(), SpinFieldUIObject::get_action(), TabControlUIObject::get_action(), and ToolBoxUIObject::get_action().
|
overridevirtual |
Returns the child of the current UIObject with the corresponding id.
If no object with that id is being found returns a nullptr.
Reimplemented from UIObject.
Reimplemented in TreeListUIObject.
Definition at line 453 of file uitest/uiobject.cxx.
References VclPtr< reference_type >::get(), vcl::Window::GetUITestFactory(), and mxWindow.
|
overridevirtual |
Returns a set containing all descendants of the object.
Reimplemented from UIObject.
Reimplemented in TreeListUIObject.
Definition at line 491 of file uitest/uiobject.cxx.
References VclPtr< reference_type >::get(), vcl::Window::get_id(), VclReferenceBase::isDisposed(), and mxWindow.
|
protectedvirtual |
Reimplemented in FormattedFieldUIObject, MetricFieldUIObject, ButtonUIObject, DialogUIObject, EditUIObject, MultiLineEditUIObject, ExpanderUIObject, CheckBoxUIObject, RadioButtonUIObject, TabPageUIObject, ListBoxUIObject, ComboBoxUIObject, SpinUIObject, SpinFieldUIObject, TabControlUIObject, VerticalTabControlUIObject, TreeListUIObject, IconViewUIObject, ToolBoxUIObject, MenuButtonUIObject, and RoadmapWizardUIObject.
Definition at line 503 of file uitest/uiobject.cxx.
Referenced by execute(), and get_type().
|
overridevirtual |
Returns the state of the wrapped UI object as a string key value map.
Reimplemented from UIObject.
Reimplemented in FormattedFieldUIObject, MetricFieldUIObject, ButtonUIObject, DialogUIObject, EditUIObject, MultiLineEditUIObject, ExpanderUIObject, CheckBoxUIObject, RadioButtonUIObject, TabPageUIObject, ListBoxUIObject, ComboBoxUIObject, SpinUIObject, SpinFieldUIObject, TabControlUIObject, VerticalTabControlUIObject, TreeListUIObject, IconViewUIObject, ToolBoxUIObject, MenuButtonUIObject, and RoadmapWizardUIObject.
Definition at line 291 of file uitest/uiobject.cxx.
References aMap, VclPtr< reference_type >::get(), vcl::Window::get_id(), vcl::Window::GetDisplayText(), vcl::Window::GetParent(), vcl::Window::GetPosPixel(), vcl::Window::GetSizePixel(), vcl::Window::GetText(), vcl::Window::GetType(), vcl::Window::HasChildPathFocus(), vcl::Window::IsEnabled(), vcl::Window::IsReallyVisible(), vcl::Window::IsVisible(), mxWindow, Point, vcl::Window::RequestDoubleBuffering(), and vcl::Window::SupportsDoubleBuffering().
Referenced by dumpState(), ButtonUIObject::get_state(), DialogUIObject::get_state(), EditUIObject::get_state(), MultiLineEditUIObject::get_state(), ExpanderUIObject::get_state(), CheckBoxUIObject::get_state(), RadioButtonUIObject::get_state(), TabPageUIObject::get_state(), ListBoxUIObject::get_state(), ComboBoxUIObject::get_state(), SpinUIObject::get_state(), TabControlUIObject::get_state(), VerticalTabControlUIObject::get_state(), TreeListUIObject::get_state(), ToolBoxUIObject::get_state(), MenuButtonUIObject::get_state(), and RoadmapWizardUIObject::get_state().
|
overridevirtual |
Returns the type of the UIObject.
Additional information might be available through UIObject::get_state().
Reimplemented from UIObject.
Definition at line 394 of file uitest/uiobject.cxx.
References get_name().
Referenced by ListBoxUIObject::get_action(), and SpinUIObject::get_action().
std::unique_ptr< UIObject > WindowUIObject::get_visible_child | ( | const OUString & | rID | ) |
Definition at line 472 of file uitest/uiobject.cxx.
References VclPtr< reference_type >::get(), vcl::Window::GetUITestFactory(), and mxWindow.
|
private |
Definition at line 120 of file uiobject.hxx.
Referenced by dumpHierarchy(), dumpState(), execute(), get_action(), get_child(), get_children(), get_state(), and get_visible_child().