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

#include <uiobject.hxx>

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

Public Member Functions

 TreeListEntryUIObject (const VclPtr< SvTreeListBox > &xTreeList, SvTreeListEntry *pEntry)
 
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 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 get_type () const override
 Returns the type of the UIObject. More...
 
- Public Member Functions inherited from UIObject
 UIObject ()=default
 
virtual ~UIObject ()
 
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 Attributes

VclPtr< SvTreeListBoxmxTreeList
 
SvTreeListEntry *const mpEntry
 

Detailed Description

Definition at line 434 of file uiobject.hxx.

Constructor & Destructor Documentation

TreeListEntryUIObject::TreeListEntryUIObject ( const VclPtr< SvTreeListBox > &  xTreeList,
SvTreeListEntry pEntry 
)

Definition at line 96 of file treelist/uiobject.cxx.

Referenced by get_child().

Member Function Documentation

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

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

Reimplemented from UIObject.

Definition at line 113 of file treelist/uiobject.cxx.

References Button, SvLBoxButton::ClickHdl(), SvTreeListBox::Collapse(), SvTreeListBox::Expand(), SvTreeListEntry::GetFirstItem(), mpEntry, mxTreeList, and SvTreeListBox::Select().

std::unique_ptr< UIObject > TreeListEntryUIObject::get_child ( const OUString &  rID)
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.

Definition at line 140 of file treelist/uiobject.cxx.

References SvTreeListBox::GetEntry(), mpEntry, mxTreeList, and TreeListEntryUIObject().

std::set< OUString > TreeListEntryUIObject::get_children ( ) const
overridevirtual

Returns a set containing all descendants of the object.

Reimplemented from UIObject.

Definition at line 155 of file treelist/uiobject.cxx.

References SvTreeListBox::GetLevelChildCount(), i, mpEntry, and mxTreeList.

StringMap TreeListEntryUIObject::get_state ( )
overridevirtual

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

Reimplemented from UIObject.

Definition at line 102 of file treelist/uiobject.cxx.

References SvTreeListBox::GetEntryText(), SvTreeListBox::GetLevelChildCount(), SvListView::GetVisibleChildCount(), mpEntry, and mxTreeList.

OUString TreeListEntryUIObject::get_type ( ) const
overridevirtual

Returns the type of the UIObject.

Additional information might be available through UIObject::get_state().

Reimplemented from UIObject.

Definition at line 168 of file treelist/uiobject.cxx.

Member Data Documentation

SvTreeListEntry* const TreeListEntryUIObject::mpEntry
private

Definition at line 455 of file uiobject.hxx.

Referenced by execute(), get_child(), get_children(), and get_state().

VclPtr<SvTreeListBox> TreeListEntryUIObject::mxTreeList
private

Definition at line 453 of file uiobject.hxx.

Referenced by execute(), get_child(), get_children(), and get_state().


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