InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ListTreeViewAdapter Class Reference
Inheritance diagram for ListTreeViewAdapter:
ITreeViewHierarchyAdapterIPMUnknownBscSlDlgTreeViewAdapterCusCondTxtTreeViewAdapterDCLSizTreeViewAdapterLnkWtchTreeViewAdapterTKITreeViewHierarchyAdapterWLBCmpTreeViewAdapter

Public Member Functions

 ListTreeViewAdapter (IPMUnknown *boss)
 
virtual NodeID_rv GetRootNode () const
 
virtual NodeID_rv GetParentNode (const NodeID &node) const
 
virtual int32 GetNumChildren (const NodeID &node) const
 
virtual NodeID_rv GetNthChild (const NodeID &node, const int32 &nth) const
 
virtual int32 GetChildIndex (const NodeID &parent, const NodeID &child) const
 
virtual NodeID_rv GetGenericNodeID () const
 
virtual bool16 ShouldAddNthChild (const NodeID &node, const int32 &nth) const
 

Protected Member Functions

virtual int32 GetNumListItems () const
 
virtual NodeID_rv GetNthListItem (const int32 &nth) const
 

Additional Inherited Members

- Public Types inherited from ITreeViewHierarchyAdapter
enum  { kDefaultIID = IID_ITREEVIEWHIERARCHYADAPTER }
 

Member Function Documentation

virtual int32 ListTreeViewAdapter::GetChildIndex (const NodeIDparent,
const NodeIDchild 
) const
virtual

Accessor to determine the index of a given child node in its parent's collection of children.

Parameters
parentspecifies the parent node whose child we are querying about
childspecifies child of interest
Returns
index of given child in parent's collection, (-1) if not in collection

Implements ITreeViewHierarchyAdapter.

Reimplemented in CusCondTxtTreeViewAdapter.

virtual NodeID_rv ListTreeViewAdapter::GetGenericNodeID () const
virtual

Return a dummy node that can be used as a generic node anywhere in the tree.

Returns
reference to a generic node

Implements ITreeViewHierarchyAdapter.

Reimplemented in CusCondTxtTreeViewAdapter.

virtual NodeID_rv ListTreeViewAdapter::GetNthChild (const NodeIDnode,
const int32 & nth 
) const
virtual

Accessor for a child of a given node by index.

Parameters
nodespecifies the parent node
nthspecifies index of child to choose
Returns
reference to the child at the given index

Implements ITreeViewHierarchyAdapter.

Reimplemented in CusCondTxtTreeViewAdapter.

virtual int32 ListTreeViewAdapter::GetNumChildren (const NodeIDnode) const
virtual

Accessor for the number of children given a node that is in the tree-model. specifies the node of interest

Returns
number of children of given node

Implements ITreeViewHierarchyAdapter.

Reimplemented in CusCondTxtTreeViewAdapter.

virtual NodeID_rv ListTreeViewAdapter::GetParentNode (const NodeIDnode) const
virtual

Accessor for the parent node of a given node. If the given node is the root node, this should return nil.

Implements ITreeViewHierarchyAdapter.

Reimplemented in CusCondTxtTreeViewAdapter.

virtual NodeID_rv ListTreeViewAdapter::GetRootNode () const
virtual

Accessor for the root node of the tree model. Should return an instance of a node that represents the root node, with data allowing it to be uniquely identified as such.

Returns
reference to root node

Implements ITreeViewHierarchyAdapter.

Reimplemented in CusCondTxtTreeViewAdapter, DCLSizTreeViewAdapter, WLBCmpTreeViewAdapter, and TKITreeViewHierarchyAdapter.

virtual bool16 ListTreeViewAdapter::ShouldAddNthChild (const NodeIDnode,
const int32 & nth 
) const
inlinevirtual

When building subtrees, this is called so the client can choose to add this particular node or not. In most cases, returning true here is what you want.

Parameters
nodespecifies the parent node
nthspecifies index of child to choose
Returns
if the node should be added to the tree or not

Implements ITreeViewHierarchyAdapter.