![]() | InDesign SDK 20.5 |
#include <IPageItemUtils.h>

Public Types | |
| enum | { kDefaultIID = IID_IPAGEITEMUTILS } |
| enum | InvalidateCacheType { kInvalidateAll, kInvalidateGuides, kInvalidateNonGuides } |
Public Member Functions | |
| virtual void | InvalidatePageItemCache (IDocument *doc, InvalidateCacheType type=kInvalidateAll) const =0 |
| virtual void | InvalidatePageItemCacheForSpread (ISpread *spread, InvalidateCacheType type=kInvalidateAll) const =0 |
| virtual void | NotifyDocumentObservers (IDataBase *iDataBase, ClassID theChange, const PMIID &interestedIn, void *changedBy, LazyNotificationData *data=nil) const =0 |
| virtual void | NotifyDocumentObservers (ISubject *originalSubject, IDataBase *iDataBase, ClassID theChange, const PMIID &interestedIn, void *changedBy, LazyNotificationData *data=nil) const =0 |
| virtual void | GetTextFrameHandlePositions (IHandleShape *shape, PMPoint *point1, PMPoint *point2) const =0 |
| virtual void | SortDisplayList (UIDList *items)=0 |
| virtual IHierarchy * | QueryInlineParentPageItem (IHierarchy *itemHierarchy) const =0 |
| virtual UID | GetFirstPageItemUID (IDataBase *db, UID pageItemUID) const =0 |
| virtual UIDList * | StripIfParentIsLocked (UIDList *items)=0 |
| virtual IHierarchy * | QueryPlacedItemParentPageItem (IHierarchy *itemHierarchy) const =0 |
| virtual IHierarchy * | QueryInlineImmediateParentPageItem (IHierarchy *itemHierarchy) 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 |
Utilities for page items. Please use the IPageItemUtils directly via the Utils boss if possible:
Utils<IPageItemUtils>()->GetPathInfo( ... ) ;
| pure virtual |
Get the first page item UID associated with the passed in item. For non-text items it just returns the given UID. For text items it returns the UID of the first frame that contains the text.
| IDataBase | *db: The document containing the page item and data link. |
| UID | pageitem: The page item of the associated data link. |
| pure virtual |
Calculate the in-port and out-port positions for the textframe
| shape | [IN] an IHandleShape pointer for the textframe page item |
| point1 | [IN/OUT] pointer to the location of the in-port for the textframe |
| point2 | [IN/OUT] pointer to the location of the out-port for the textframe |
| pure virtual |
Invalidates the entire page item bounds cache for a document.
| doc | [IN]The document whose cache to invalidate. |
| type | [IN] What to invalidate. |
| pure virtual |
Invalidates the page item bounds cache for one spread.
| spread | [IN] The spread whose cache to invalidate. |
| type | [IN] What to invalidate. |
| pure virtual |
Notify observers attached to the document's ISubject that the document has been changed.
| theChange | is the actual change, often times the classID of a command. |
| interestedIn | specifies the interface of the object that was modified. |
| changedBy | is a generic pointer to the object that caused the change. |
| data | is a cookie passed to observers, data could be nil. This is usually a pointer to a command object |
| pure virtual |
Notify observers attached to the document's ISubject that the document has been changed. The difference between this method and the other NotifyDocumentObservers method is that the original Subject is passed along to the observers as the object that was changed, not the object this subject is part of.
| originalSubject | is the original subject of the object that was changed |
| theChange | is the actual change, often times the classID of a command. |
| interestedIn | specifies the interface of the object that was modified. |
| changedBy | is a generic pointer to the object that caused the change. |
| data | is a cookie passed to observers, data could be nil. This is usually a pointer to a command object |
| pure virtual |
Finds the immediate text frame pageitem parent of an inline (handles nested inlines).
| itemHierarchy | [IN] the IHierarchy interface for an inline item. |
| pure virtual |
Finds the top-level pageitem parent of an inline (handles nested inlines).
| itemHierarchy | [IN] the IHierarchy interface for an inline item. |
| pure virtual |
Finds the top-level pageitem parent of an placed item (which either is inline or image inside table cell).
| itemHierarchy | [IN] the IHierarchy interface for an placed item. |
| pure virtual |
Sort a list of page items in drawing order. Assumes that all items in the list share the same ultimate root, but may have different parents.
| items | [IN/OUT] A pointer to a UIDList of the items. |