LibreOffice Module vcl (master) 1
|
#include <uiobject.hxx>
Public Member Functions | |
EditUIObject (const VclPtr< Edit > &xEdit) | |
virtual | ~EditUIObject () override |
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 StringMap | get_state () override |
Returns the state of the wrapped UI object as a string key value map. More... | |
virtual OUString | get_action (VclEventId nEvent) const override |
Gets the corresponding Action string for the event. More... | |
Public Member Functions inherited from WindowUIObject | |
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... | |
Public Member Functions inherited from UIObject | |
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) |
Static Public Member Functions inherited from WindowUIObject | |
static std::unique_ptr< UIObject > | create (vcl::Window *pWindow) |
Protected Member Functions | |
virtual OUString | get_name () const override |
virtual OUString | get_name () const |
Private Attributes | |
VclPtr< Edit > | mxEdit |
Definition at line 194 of file uiobject.hxx.
Definition at line 722 of file uitest/uiobject.cxx.
Referenced by create().
|
overridevirtual |
Definition at line 728 of file uitest/uiobject.cxx.
|
static |
Definition at line 832 of file uitest/uiobject.cxx.
References EditUIObject().
Referenced by ComboBoxUIObject::execute(), and Edit::GetUITestFactory().
|
overridevirtual |
Executes an action on the wrapped UI object, possibly with some additional parameters.
Reimplemented from WindowUIObject.
Reimplemented in FormattedFieldUIObject, MetricFieldUIObject, and SpinFieldUIObject.
Definition at line 732 of file uitest/uiobject.cxx.
References WindowUIObject::execute(), Edit::KeyInput(), Edit::Modify(), mxEdit, Edit::SetSelection(), and Edit::SetText().
Referenced by SpinFieldUIObject::execute().
|
overridevirtual |
Gets the corresponding Action string for the event.
Reimplemented from WindowUIObject.
Reimplemented in SpinFieldUIObject.
Definition at line 801 of file uitest/uiobject.cxx.
References EditSelectionChanged, WindowUIObject::get_action(), vcl::Window::get_id(), Edit::GetSelection(), Selection::Max(), Selection::Min(), and mxEdit.
|
overrideprotectedvirtual |
Reimplemented from WindowUIObject.
Reimplemented in FormattedFieldUIObject, MetricFieldUIObject, and SpinFieldUIObject.
Definition at line 827 of file uitest/uiobject.cxx.
|
overridevirtual |
Returns the state of the wrapped UI object as a string key value map.
Reimplemented from WindowUIObject.
Reimplemented in FormattedFieldUIObject, MetricFieldUIObject, and SpinFieldUIObject.
Definition at line 790 of file uitest/uiobject.cxx.
References aMap, WindowUIObject::get_state(), Edit::GetMaxTextLen(), vcl::Window::GetQuickHelpText(), Edit::GetSelected(), Edit::GetText(), and mxEdit.
Referenced by FormattedFieldUIObject::get_state(), MetricFieldUIObject::get_state(), and SpinFieldUIObject::get_state().
Definition at line 196 of file uiobject.hxx.
Referenced by execute(), get_action(), and get_state().