39 aMap[
"CheckBoxList"] = OUString::boolean(isCheckBoxList(
mxTreeList));
51 if (rAction.isEmpty())
60 sal_Int32 nID = rID.toInt32();
75 std::set<OUString> aChildren;
78 for (
size_t i = 0;
i < nChildren; ++
i)
80 aChildren.insert(OUString::number(
i));
88 return "TreeListUIObject";
99 mxTreeList(xTreeList),
124 if (rAction ==
"COLLAPSE")
128 else if (rAction ==
"EXPAND")
132 else if (rAction ==
"SELECT")
136 else if (rAction ==
"DESELECT")
140 else if (rAction ==
"CLICK")
147 else if (rAction ==
"DOUBLECLICK")
156 sal_Int32 nID = rID.toInt32();
171 std::set<OUString> aChildren;
174 for (
size_t i = 0;
i < nChildren; ++
i)
176 aChildren.insert(OUString::number(
i));
184 return "TreeListEntry";
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
virtual std::set< OUString > get_children() const override
Returns a set containing all descendants of the object.
TreeListUIObject(const VclPtr< SvTreeListBox > &xTreeList)
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
SvTLEntryFlags GetFlags() const
sal_uInt32 GetChildCount(SvTreeListEntry const *pParent) const
virtual OUString get_type() const override
Returns the type of the UIObject.
virtual OUString get_name() const override
HashMap_OWString_Interface aMap
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
SvTreeListEntry * FirstSelected() const
virtual std::unique_ptr< UIObject > get_child(const OUString &rID) override
Returns the child of the current UIObject with the corresponding id.
TreeListEntryUIObject(const VclPtr< SvTreeListBox > &xTreeList, SvTreeListEntry *pEntry)
sal_uInt32 GetVisibleChildCount(SvTreeListEntry *pParent) const
sal_uInt32 GetVisibleCount() const
sal_uInt32 GetSelectionCount() const
bool IsSelected(const SvTreeListEntry *pEntry) const
bool Collapse(SvTreeListEntry *pParent)
virtual OUString GetEntryText(SvTreeListEntry *pEntry) const
bool Expand(SvTreeListEntry *pParent)
VclPtr< SvTreeListBox > mxTreeList
VclPtr< SvTreeListBox > mxTreeList
SvTreeListEntry *const mpEntry
sal_uInt32 GetLevelChildCount(SvTreeListEntry *pParent) const
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
SvTreeListEntry * GetEntry(SvTreeListEntry *pParent, sal_uInt32 nPos) const
std::map< OUString, OUString > StringMap
static bool HasEntryText(const SvTreeListEntry *pEntry)
virtual std::unique_ptr< UIObject > get_child(const OUString &rID) override
Returns the child of the current UIObject with the corresponding id.
const SvLBoxItem * GetFirstItem(SvLBoxItemType eType) const
bool Select(SvTreeListEntry *pEntry, bool bSelect=true)
SvTreeFlags GetTreeFlags() const
virtual std::set< OUString > get_children() const override
Returns a set containing all descendants of the object.
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.