![]() | InDesign SDK 20.5 |

Public Member Functions | |
| CHierarchyNode (IPMUnknown *boss) | |
| virtual IHierarchy * | QueryChild (int32 n) const |
| virtual UID | GetChildUID (int32 n) const |
| virtual int32 | GetChildIndex (const IHierarchy *p) const |
| virtual int32 | GetChildCount () const |
| virtual IHierarchy * | QueryParent () const |
| virtual void | SetParent (IHierarchy *newParent) |
| virtual UID | GetParentUID () const |
| virtual IHierarchy * | QueryRoot () const |
| virtual UID | GetRootUID () const |
| virtual void | SetRootUID (UID newRoot) |
| virtual void | Add (IHierarchy *newChild, int32 pos) |
| virtual void | Move (IHierarchy *childToMove, int32 to) |
| virtual void | Remove (IHierarchy *childToRemove) |
| virtual void | Remove (UID childToRemove) |
| virtual bool16 | IsLessThan (IHierarchy *item) |
| virtual void | GetDescendents (UIDList *resultList, const PMIID &interfaceID, int32 flags=0) const |
| virtual void | GetAncestors (UIDList *resultList, const PMIID &interfaceID) const |
| virtual UID | GetLayerUID () const |
| virtual UID | GetSpreadUID () const |
| void | ReadWrite (IPMStream *s, ImplementationID prop) |
Protected Member Functions | |
| void | AttachToRoot () |
| void | DetachFromRoot () |
| virtual void | PreDirtySetParent (IHierarchy *) |
| virtual void | PreDirtySetRootUID (UID) |
| virtual void | PreDirtyAddingChild (IHierarchy *child, int32 pos) |
| virtual void | PreDirtyMovingChild (IHierarchy *child, int32 from, int32 to) |
| virtual void | PreDirtyRemovingChild (IHierarchy *child, int32 pos) |
Protected Attributes | |
| UID | fRootUID |
| UID | fParentUID |
| PersistUIDList * | fChildrenUIDs |
Additional Inherited Members | |
Public Types inherited from IHierarchy | |
| enum | { kDefaultIID = IID_IHIERARCHY } |
| enum | { kAtTheEnd = -1 } |
| enum | { kIncludeHidden = 0x00000001 } |
| virtual |
Add a new child before the index position. Or, if kAtTheEnd, add it to the end of the list.
| *newChild | the item to add to the hierarchy. |
| kAtTheEnd | position to add, defaults to kAtTheEnd. Use 0 for initial position of hierarchy. |
Implements IHierarchy.
| virtual |
Return ancestors that support interfaceID. Collection of ancestors ends when an ancestor is reached that doesn't support the interface.
| *resultList | [OUT] the filled in list of ancestors meeting the requirements. |
| interfaceID | [IN] the interfaceID to check each parent (and grandparent, etc) for. |
Implements IHierarchy.
| virtual |
| virtual |
Return the index of this child
| p | the child hierarchy to find the position for. |
Implements IHierarchy.
| virtual |
Return the n'th child UID in the hierarchy.
| n | the index of the child to return. |
Implements IHierarchy.
| virtual |
Return all the descendents that support interfaceID.
| *resultList | [OUT] the filled in list of descendents meeting the requirements. |
| interfaceID | [IN] the interfaceID to check each child (and grandchild, etc) for. |
| flags | Generally 0, but may include hidden items (kIncludeHidden) |
Implements IHierarchy.
| virtual |
Return the spread layer's UID for this hierarchy node.
| none |
Implements IHierarchy.
| virtual |
Returns the immediate parent UID of this item. May be kInvalidUID.
| none |
Implements IHierarchy.
| virtual |
Returns the UID of the ultimate parent of the hierarchy.
| none |
Implements IHierarchy.
| virtual |
| virtual |
Answers, "Is this in before 'item' in the Z-order?" NOTE: Both items must be in the same hierarchy and be the same distance from the root.
| item | the item to compare to this item |
Implements IHierarchy.
| virtual |
Move the child to a new location in the z-order.
| *childToMove | the item to move |
| to | the index location to move the item |
Implements IHierarchy.
| virtual |
Return the n'th child in the hierarchy. Called holds reference.
| n | the index of the child to return. |
Implements IHierarchy.
| virtual |
Returns the immediate parent of this item. Caller holds reference. May be nil.
| none |
Implements IHierarchy.
| virtual |
Returns the ultimate parent of the hierarchy. Caller holds reference.
| none |
Implements IHierarchy.
| virtual |
Remove the child. It is disowned, and is no longer a child.
| *childToRemove | the item to remove. |
Implements IHierarchy.
| virtual |
Same as above except it allows us to remove the child even if we can't access the IHierarchy interface.
| childToRemove | the UID of the child to remove. |
Implements IHierarchy.
| virtual |
SetParent is not for external use. It's in the external interface so that subclasses can call it on IHierarchy parameters. (protected doesn't work on parameters). See kRemoveFromHierarchyCmdBoss and kAddToHierarchyCmdBoss and IHierarchyUtils::AddToHierarchy and IHierarchyUtils::RemoveFromHierarchy
| *newParent |
Implements IHierarchy.
| virtual |
SetRootUID is not for external use. It's in the external interface so that subclasses can call it on IHierarchy parameters. (protected doesn't work on parameters)
| newRoot |
Implements IHierarchy.