InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IItemStrand.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: emenning
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __IItemStrand__
25 #define __IItemStrand__
26 #include "IPMUnknown.h"
27 #include "PMTypes.h"
28 #include "TextID.h"
29 #include "K2Vector.h"
30 #include "OwnedItemDataList.h"
31 
32 class UIDList;
33 class IOwnedItem;
35 
36 
41 class IItemStrand : public IPMUnknown
42 {
43  public:
44  enum { kDefaultIID = IID_IITEMSTRAND };
45 
53  virtual void SetOwnedUID(TextIndex position, ClassID objectType, UID object) = 0;
54 
65  virtual UID GetOwnedUID(TextIndex position, ClassID objectType, int32 *count = nil, TextIndex *runBegin = nil) = 0;
66 
74  virtual void GetAllItems(TextIndex position, int32 length, UIDList *uidListToFill, ClassList* classListToFill = nil) = 0;
75 
83  virtual int32 CountOwnedItems(TextIndex position, int32 *count = nil, TextIndex *runBegin = nil) = 0;
84 
94  virtual UID GetNthOwnedUID(TextIndex position, int32 n, ClassID *objectType, int32 *count = nil, TextIndex *runBegin = nil) = 0;
95 
102  virtual TextIndex GetOwnedItemIndex(ClassID objectType, UID object, TextIndex hint = 0) = 0;
103 
108  virtual TextIndex GetOwnedItemIndex(const IOwnedItem* ownedItem) const = 0;
109 
117  virtual void CollectOwnedItems(TextIndex start, int32 len, OwnedItemDataList* resultList) const = 0;
118 };
119 
120 #endif //__IItemStrand__