LibreOffice Module vcl (master)  1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
SpinUIObject Class Reference

#include <uiobject.hxx>

Inheritance diagram for SpinUIObject:
[legend]
Collaboration diagram for SpinUIObject:
[legend]

Public Member Functions

 SpinUIObject (const VclPtr< SpinButton > &xSpinButton)
 
virtual ~SpinUIObject () 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 OUString get_type () const override
 Returns the type of the UIObject. More...
 
virtual std::unique_ptr< UIObjectget_child (const OUString &rID) override
 Returns the child of the current UIObject with the corresponding id. More...
 
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...
 
- Public Member Functions inherited from UIObject
 UIObject ()=default
 
virtual ~UIObject ()
 

Static Public Member Functions

static std::unique_ptr< UIObjectcreate (vcl::Window *pWindow)
 
- Static Public Member Functions inherited from WindowUIObject
static std::unique_ptr< UIObjectcreate (vcl::Window *pWindow)
 

Protected Member Functions

virtual OUString get_name () const override
 

Private Attributes

VclPtr< SpinButtonmxSpinButton
 

Detailed Description

Definition at line 338 of file uiobject.hxx.

Constructor & Destructor Documentation

SpinUIObject::SpinUIObject ( const VclPtr< SpinButton > &  xSpinButton)

Definition at line 1084 of file uitest/uiobject.cxx.

SpinUIObject::~SpinUIObject ( )
overridevirtual

Definition at line 1090 of file uitest/uiobject.cxx.

Member Function Documentation

static std::unique_ptr<UIObject> SpinUIObject::create ( vcl::Window pWindow)
static
void SpinUIObject::execute ( const OUString &  rAction,
const StringMap rParameters 
)
overridevirtual

Executes an action on the wrapped UI object, possibly with some additional parameters.

Reimplemented from WindowUIObject.

Definition at line 1094 of file uitest/uiobject.cxx.

References SpinButton::Down(), mxSpinButton, and SpinButton::Up().

OUString SpinUIObject::get_action ( VclEventId  nEvent) const
overridevirtual

Gets the corresponding Action string for the event.

Reimplemented from WindowUIObject.

Definition at line 1118 of file uitest/uiobject.cxx.

References WindowUIObject::get_action(), vcl::Window::get_id(), WindowUIObject::get_type(), mxSpinButton, SpinbuttonDown, and SpinbuttonUp.

OUString SpinUIObject::get_name ( ) const
overrideprotectedvirtual

Reimplemented from WindowUIObject.

Definition at line 1134 of file uitest/uiobject.cxx.

StringMap SpinUIObject::get_state ( )
overridevirtual

Returns the state of the wrapped UI object as a string key value map.

Reimplemented from WindowUIObject.

Definition at line 1107 of file uitest/uiobject.cxx.

References WindowUIObject::get_state(), SpinButton::GetRangeMax(), SpinButton::GetRangeMin(), SpinButton::GetValue(), SpinButton::GetValueStep(), and mxSpinButton.

Member Data Documentation

VclPtr<SpinButton> SpinUIObject::mxSpinButton
private

Definition at line 341 of file uiobject.hxx.

Referenced by execute(), get_action(), and get_state().


The documentation for this class was generated from the following files: