InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
HierarchyVisitorHelperImpl Class Reference

#include <HierarchyVisitorHelper.h>

Inheritance diagram for HierarchyVisitorHelperImpl:
IVisitorHelperIPMUnknown

Public Member Functions

 HierarchyVisitorHelperImpl (IPMUnknown *boss)
 
virtual bool16 Accept (IBaseVisitor *theVisitor)
 
virtual int32 CollectChildren (IBaseHandler *theHandler)
 
virtual IVisitorHelperQueryChild (int32 index)
 

Additional Inherited Members

- Public Types inherited from IVisitorHelper
enum  { kDefaultIID = IID_IVISITORHELPER }
 

Detailed Description

Base implementation for IVisitorHelper classes that use IHierarchy for finding children.

Member Function Documentation

virtual bool16 HierarchyVisitorHelperImpl::Accept (IBaseVisitortheVisitor)
virtual

Override this to call the proper routine in theVisitor for the node.

Parameters
theVisitorIN a pointer to the IBaseVisitor that knows how to pass control off to specific visitor routines, depending on the type of node found
Returns
bool16 whether to stop traversal yet or not; kTrue means stop immediately, kFalse means continue

Implements IVisitorHelper.

virtual int32 HierarchyVisitorHelperImpl::CollectChildren (IBaseHandlertheHandler)
virtual

Determine how many children this node has, and if necessary, do any allocation or caching needed when individual children are accessed via QueryChild.

Parameters
theHandlerIN pointer to the IBaseHandler in use for this visitation.
Returns
bool16 the number of children found for this item.

Implements IVisitorHelper.

virtual IVisitorHelper* HierarchyVisitorHelperImpl::QueryChild (int32 index)
virtual

Query for a specific child of this node.

Parameters
indexIN the index of the node desired (zero-based)
Returns
an IVisitorHelper pointer to the child node

Implements IVisitorHelper.