![]() | InDesign SDK 20.5 |

Public Types | |
| enum | { kDefaultIID = IID_IHIERARCHYUTILS } |
Public Member Functions | |
| virtual ErrorCode | AddToHierarchy (IDataBase *db, UID itemToAdd, UID parent, int32 pos=IHierarchy::kAtTheEnd)=0 |
| virtual ErrorCode | AddToHierarchy (const UIDRef &itemToAdd, UID parent, int32 pos=IHierarchy::kAtTheEnd)=0 |
| virtual ErrorCode | RemoveFromHierarchy (const UIDRef &itemToRemove)=0 |
| virtual void | FilterItemsFromOtherSpreads (UID keepSpreadUID, UIDList *itemList)=0 |
| virtual void | CollapsePageUIDsToSpreadUIDs (const UIDList &pageUIDList, UIDList *spreadUIDList, const bool16 bCompleteSpreadsOnly)=0 |
| virtual void | ExpandSpreadUIDsToPageUIDs (const UIDList &spreadUIDList, UIDList *pageUIDList)=0 |
| virtual void | ExpandPageUIDToSection (const UIDRef &pageRef, UIDList *pageUIDList, const bool16 bRequireNamedLayout)=0 |
| virtual void | CollapsePageUIDsToSections (const UIDList &pageUIDList, K2Vector< UIDList > &pagesBySection, const bool16 bRequireNamedLayout)=0 |
| virtual IHierarchy * | QueryEffectiveHierarchyParent (IHierarchy *pi) const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
| pure virtual |
Add an item to the hierarchy. Processes a kAddToHierarchyCmdBoss command.
db The database the page item is in (what document)
| itemToAdd | The page item we want to add to the hierarchy |
| parent | itemToAdd's new parent |
| pos | itemToAdd will appear as the n'th child of parent, or the last if pos is not specified. |
| pure virtual |
Add an item to the hierarchy. Processes a kAddToHierarchyCmdBoss command.
| itemToAdd | The page item we want to add to the hierarchy |
| parent | itemToAdd's new parent |
| pos | itemToAdd will appear as the n'th child of parent, or the last if pos is not specified. |
| pure virtual |
Given a list of pages, divide them into a vector by sections.
| pageUIDList | IN, a UIDList reference containing one or more page UIDs. |
| pagesBySection | IN/OUT, a vector filled out with pages in each entry by section. |
| bRequireNamedLayout | - if kTrue, the pages returned in each vector will all be in a named layout. May span several non-named sections. |
| pure virtual |
Collapse a list of one or more page UIDs into their parent spread UIDs. May return empty list.
| pageUIDList | IN, a UIDList reference containing one or more page UIDs. |
| spreadUIDList | IN/OUT, a filled out UIDList of spread UIDs. May be empty depending on bCompleteSpreadsOnly parameter. |
| bCompleteSpreadsOnly | IN, pass kTrue if you only want spreads with all their pages in pageUIDList, kFalse to get partially represented spreads as well. |
| pure virtual |
Expand a single page, find it's section, then gather all the pages that fall in this section
| pageRef | IN, a UIDRef to a page |
| bRequireNamedLayout | - if kTrue, the pages returned will all be in a named layout. May span several non-named sections. |
| pageUIDList | IN/OUT, the filled out list of all the pages that are in the same section as pageRef. |
| pure virtual |
Expand a list of one or more spread UIDs into their constituent page UIDs. The input spreadUIDList may also contain page UIDs, in which case they are simply copied into the pageUIDList.
| spreadUIDList | IN, a UIDList reference containing one or more spread UIDs |
| pageUIDList | IN/OUT, the filled out list of page UIDs belonging to the passed in spreads. |
| pure virtual |
Filter out items from a list that don't have the same spread UID as the given UID. Typically used to remove all items not on a given spread, passing iHierarchy->GetSpreadUID() for keepSpreadUID.
| keepSpreadUID | IN, The spread UID to keep items from. |
| itemList | IN/OUT, The page item list to process. |
| pure virtual |
Get the parent of an object taking into account inlines and other cases that don't follow the usual hierarchy.
| pi | IN, The page item who's parent we would like. |
| pure virtual |
Remove an item from the hierarchy. Processes a kRemoveFromHierarchyCmdBoss command.
| itemToRemove | The page item we want to add to the hierarchy |