41 aMap[
"CheckBoxList"] = OUString::boolean(isCheckBoxList(
mxTreeList));
51 if (rAction.isEmpty())
56 std::unique_ptr<UIObject>(
new EditUIObject(pEdit))->execute(rAction, rParameters);
64 sal_Int32 nID = rID.toInt32();
80 return std::unique_ptr<UIObject>(
new EditUIObject(pEdit));
89 std::set<OUString> aChildren;
92 for (
size_t i = 0;
i < nChildren; ++
i)
94 aChildren.insert(OUString::number(
i));
102 return "TreeListUIObject";
113 mxTreeList(xTreeList),
138 if (rAction ==
"COLLAPSE")
142 else if (rAction ==
"EXPAND")
146 else if (rAction ==
"SELECT")
150 else if (rAction ==
"DESELECT")
154 else if (rAction ==
"CLICK")
161 else if (rAction ==
"DOUBLECLICK")
170 sal_Int32 nID = rID.toInt32();
188 std::set<OUString> aChildren;
191 for (
size_t i = 0;
i < nChildren; ++
i)
193 aChildren.insert(OUString::number(
i));
201 return "TreeListEntry";
bool IsSelected(const SvTreeListEntry *pEntry) const
sal_uInt32 GetVisibleCount() const
sal_uInt32 GetSelectionCount() const
sal_uInt32 GetVisibleChildCount(SvTreeListEntry *pParent) const
SvTreeListEntry * FirstSelected() const
SvTreeFlags GetTreeFlags() const
SvTreeListEntry * GetEntry(SvTreeListEntry *pParent, sal_uInt32 nPos) const
virtual OUString GetEntryText(SvTreeListEntry *pEntry) const
bool Collapse(SvTreeListEntry *pParent)
bool Select(SvTreeListEntry *pEntry, bool bSelect=true)
sal_uInt32 GetChildCount(SvTreeListEntry const *pParent) const
void SetCurEntry(SvTreeListEntry *_pEntry)
VclPtr< Edit > GetEditWidget() const
sal_uInt32 GetLevelChildCount(SvTreeListEntry *pParent) const
bool Expand(SvTreeListEntry *pParent)
const SvLBoxItem * GetFirstItem(SvLBoxItemType eType) const
SvTLEntryFlags GetFlags() const
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual std::set< OUString > get_children() const override
Returns a set containing all descendants of the object.
VclPtr< SvTreeListBox > mxTreeList
SvTreeListEntry *const mpEntry
virtual std::unique_ptr< UIObject > get_child(const OUString &rID) override
Returns the child of the current UIObject with the corresponding id.
virtual OUString get_type() const override
Returns the type of the UIObject.
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
TreeListEntryUIObject(const VclPtr< SvTreeListBox > &xTreeList, SvTreeListEntry *pEntry)
VclPtr< SvTreeListBox > mxTreeList
TreeListUIObject(const VclPtr< SvTreeListBox > &xTreeList)
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
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.
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual std::unique_ptr< UIObject > get_child(const OUString &rID) override
Returns the child of the current UIObject with the corresponding id.
virtual OUString get_name() const override
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
HashMap_OWString_Interface aMap
std::map< OUString, OUString > StringMap