LibreOffice Module vcl (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
FormattedFieldUIObject Class Referencefinal

#include <formattedfielduiobject.hxx>

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

Public Member Functions

 FormattedFieldUIObject (const VclPtr< FormattedField > &xEdit)
 
virtual ~FormattedFieldUIObject () 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...
 
- Public Member Functions inherited from SpinFieldUIObject
 SpinFieldUIObject (const VclPtr< SpinField > &xEdit)
 
virtual ~SpinFieldUIObject () 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 EditUIObject
 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< UIObjectget_child (const OUString &rID) override
 Returns the child of the current UIObject with the corresponding id. More...
 
std::unique_ptr< UIObjectget_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< UIObjectget_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< UIObjectcreate (vcl::Window *pWindow)
 
- Static Public Member Functions inherited from SpinFieldUIObject
static std::unique_ptr< UIObjectcreate (vcl::Window *pWindow)
 
- Static Public Member Functions inherited from EditUIObject
static std::unique_ptr< UIObjectcreate (vcl::Window *pWindow)
 
- Static Public Member Functions inherited from WindowUIObject
static std::unique_ptr< UIObjectcreate (vcl::Window *pWindow)
 

Private Member Functions

virtual OUString get_name () const override
 

Private Attributes

VclPtr< FormattedFieldmxFormattedField
 

Additional Inherited Members

virtual OUString get_name () const override
 
virtual OUString get_name () const
 

Detailed Description

Definition at line 17 of file formattedfielduiobject.hxx.

Constructor & Destructor Documentation

◆ FormattedFieldUIObject()

FormattedFieldUIObject::FormattedFieldUIObject ( const VclPtr< FormattedField > &  xEdit)

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

Referenced by create().

◆ ~FormattedFieldUIObject()

FormattedFieldUIObject::~FormattedFieldUIObject ( )
overridevirtual

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

Member Function Documentation

◆ create()

std::unique_ptr< UIObject > FormattedFieldUIObject::create ( vcl::Window pWindow)
static

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

References FormattedFieldUIObject().

Referenced by FormattedField::GetUITestFactory().

◆ execute()

void FormattedFieldUIObject::execute ( const OUString &  rAction,
const StringMap rParameters 
)
overridevirtual

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

Reimplemented from SpinFieldUIObject.

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

References SpinFieldUIObject::execute(), mxFormattedField, and FormattedField::SetValueFromString().

◆ get_name()

OUString FormattedFieldUIObject::get_name ( ) const
overrideprivatevirtual

Reimplemented from SpinFieldUIObject.

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

◆ get_state()

StringMap FormattedFieldUIObject::get_state ( )
overridevirtual

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

Reimplemented from SpinFieldUIObject.

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

References aMap, EditUIObject::get_state(), FormattedField::GetFormatter(), Formatter::GetValue(), and mxFormattedField.

Member Data Documentation

◆ mxFormattedField

VclPtr<FormattedField> FormattedFieldUIObject::mxFormattedField
private

Definition at line 19 of file formattedfielduiobject.hxx.

Referenced by execute(), and get_state().


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