InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IContentDropperDocData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: vaggarwa
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 __IContentDropperDocData__
25 #define __IContentDropperDocData__
26 
27 // ----- Includes -----
28 #include "CCollection.h"
29 #include "UIDList.h"
30 
31 // ----- ID.h files -----
32 #include "ContentDropperID.h"
33 
34 
35 //========================================================================================
36 // class IContentDropperDocData
37 //========================================================================================
38 
40 {
41 public:
42  enum { kDefaultIID = IID_ICONTENTDROPPERDOCDATA };
43 
44 
45  //Checks if the UID is already grabbed.
46  virtual bool16 Find(UID uid) const = 0;
47 
48  //Removes collection with capture order passed here.
49  virtual void Remove(int32 order) = 0;
50 
51  virtual void RemoveChildColl(int32 parentOrder, int32 childIndex) = 0;
52 
53  //Removes specific UID from the captures items.Just modifies the data structure at document level.
54  virtual bool16 Remove(UID uid) = 0;
55 
56  virtual void GrabItemCollection( CCollection* collection) = 0;
57 
58  virtual CCollection* GetCollectionForOrder(int32 order) const = 0;
59 
60  //Returns the Capture Order for Collection at the nth index. -1 if no collection at nth.
61  virtual int32 GetCaptureOrderForNth(int32 nth) const = 0;
62 
63  // returns number of top level collections in the document. Does not count collections that are nested
64  virtual int32 GetNumberOfCollections() const = 0;
65 
66  virtual void CleanUp() = 0;
67 
68  virtual const CCollection* CollectionAtIndex(int32 at) const = 0;
69 };
70 
71 
72 
73 
74 #endif