InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPnlTrvDataModel Class Referenceabstract
Inheritance diagram for IPnlTrvDataModel:
IPMUnknownCPMUnknown< IPnlTrvDataModel >PnlTrvDataModel

Public Types

enum  { kDefaultIID = IID_IPNLTRVDATAMODEL }
 

Public Member Functions

virtual PMString GetRootPath () const =0
 
virtual PnlTrvDataNodeGetNode (const PMString &path) const =0
 
virtual PMString GetParentPath (const PMString &path) const =0
 
virtual int32 GetChildCount (const PMString &path)=0
 
virtual PMString GetNthChildPath (const PMString &path, int32 nth)=0
 
virtual int32 GetChildIndexFor (const PMString &par, const PMString &kid)=0
 
virtual void Rebuild (const PMString &rootPath)=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Member Function Documentation

virtual int32 IPnlTrvDataModel::GetChildCount (const PMStringpath)
pure virtual

Determine the number of children given a path

Parameters
path[IN] specifies given path
Returns
Returns number of children

Implemented in PnlTrvDataModel.

virtual int32 IPnlTrvDataModel::GetChildIndexFor (const PMStringpar,
const PMStringkid 
)
pure virtual

Determine the index in the parent's list of kids for a particular child

Parameters
par[IN] specifies parent
kid[IN] specifies kid
Returns
Returns index

Implemented in PnlTrvDataModel.

virtual PMString IPnlTrvDataModel::GetNthChildPath (const PMStringpath,
int32 nth 
)
pure virtual

Get the path associated with the specified child

Parameters
path[IN] specifies given path
nth[IN] specifies which child
Returns
Returns path as string

Implemented in PnlTrvDataModel.

virtual PMString IPnlTrvDataModel::GetParentPath (const PMStringpath) const
pure virtual

Given a path, discover the path of its parent

Parameters
path[IN] specifies given path
Returns
Returns path as string

Implemented in PnlTrvDataModel.

virtual PMString IPnlTrvDataModel::GetRootPath () const
pure virtual

Accessor for the root path

Returns
PMString giving the path associated with the root node

Implemented in PnlTrvDataModel.

virtual void IPnlTrvDataModel::Rebuild (const PMStringrootPath)
pure virtual

Call when you want to force a recalculation

Implemented in PnlTrvDataModel.