InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IXMLReferenceListData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Will Lin
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 __IXMLREFERENCELISTDATA__
25 #define __IXMLREFERENCELISTDATA__
26 
27 #include "IPMUnknown.h"
28 #include "XMLID.h"
29 #include "XMLReference.h"
30 
35 {
36  public:
37  enum { kDefaultIID = IID_IXMLREFERENCELISTDATA };
38 
40  enum _Placement {
42  kBeginningIndex = 0,
44  kEndIndex = -2,
46  kInvalidIndex = -1
47  };
48 
49  public:
50 
55  virtual void Insert(const XMLReference &xmlRef, int32 pos = kEndIndex) = 0;
56 
60  virtual void Remove(const XMLReference &xmlRef) = 0;
61 
64  virtual void Clear(void) = 0;
65 
70  virtual XMLReference Get(int32 index) const = 0;
71 
76  virtual void Set(int32 index, const XMLReference& newXMLRef) = 0;
77 
82  virtual int32 GetIndex(const XMLReference& xmlRef) const = 0;
83 
87  virtual int32 Size(void) const = 0;
88 };
89 
90 #endif // __IXMLREFERENCELISTDATA__
91