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

Public Types | |
| enum | { kDefaultIID = IID_IITEMSTRAND } |
Public Member Functions | |
| virtual void | SetOwnedUID (TextIndex position, ClassID objectType, UID object)=0 |
| virtual UID | GetOwnedUID (TextIndex position, ClassID objectType, int32 *count=nil, TextIndex *runBegin=nil)=0 |
| virtual void | GetAllItems (TextIndex position, int32 length, UIDList *uidListToFill, ClassList *classListToFill=nil)=0 |
| virtual int32 | CountOwnedItems (TextIndex position, int32 *count=nil, TextIndex *runBegin=nil)=0 |
| virtual UID | GetNthOwnedUID (TextIndex position, int32 n, ClassID *objectType, int32 *count=nil, TextIndex *runBegin=nil)=0 |
| virtual TextIndex | GetOwnedItemIndex (ClassID objectType, UID object, TextIndex hint=0)=0 |
| virtual TextIndex | GetOwnedItemIndex (const IOwnedItem *ownedItem) const =0 |
| virtual void | CollectOwnedItems (TextIndex start, int32 len, OwnedItemDataList *resultList) 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 |
Interface to the owned item strand.
| pure virtual |
Collect all owned items in a range.
| start | IN range start, |
| len | IN range length. |
| resultList | OUT list of the offset in the story, class id, and uid of each owned item found. |
| pure virtual |
| position | IN text index where we should look. |
| count | OUT length from position to the end of the range where the owned items are referenced. |
| runBegin | OUT text index of the beginning of the range where the owned items are referenced. |
| pure virtual |
| position | IN start of range. |
| length | IN length of the range. |
| uidListToFill | OUT list of found owned item uids |
| classListToFill | OUT list of found owned item classes. |
| pure virtual |
| position | IN text index where to look. |
| n | IN rank of the owned item to look for. |
| objectType | OUT class of owned item. |
| count | OUT length from position to the end of the range where the owned item is referenced. runBegin OUT text index of the beginning of the range where the owned item is referenced. |
| pure virtual |
| objectType | IN class of owned item. |
| object | IN uid of owned item. |
| hint | IN helps speed up the search if caller has an idea where the owned item may be located. |
| pure virtual |
| ownedItem | IN an interface pointer to the owned item. |
| pure virtual |
| position | IN text index of owned item. |
| objectType | IN class of owned item. |
| count | OUT length from position to the end of the range where the owned item is referenced. runBegin OUT text index of the beginning of the range where the owned item is referenced. |
| pure virtual |
Insert an owned item at a certain position. If an owned item with the same class already exists at this location, replace it.
| position | IN text index where to reference owned item. |
| objectType | IN class of owned item. |
| object | IN uid of owned item. |