InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ILnkWtchCache.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Adobe Developer Technologies
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 __ILnkWtchCache_h__
25 #define __ILnkWtchCache_h__
26 
27 #include "IPMUnknown.h"
28 #include "K2Vector.h"
29 #include "UIDList.h"
30 #include "LnkWtchID.h"
31 
32 
54 class ILnkWtchCache : public IPMUnknown
55 {
56 public:
58  enum { kDefaultIID = IID_ILNKWTCHCACHE };
59 
62  typedef struct Entry {
63  typedef base_type data_type;
64  UID fUID;
65  bool16 fRemoved;
66  bool16 operator==(const Entry& other) const { return fUID == other.fUID; }
67  Entry(UID uid, bool16 removed) : fUID(uid), fRemoved(removed) {}
68  } Entry;
72 
76  virtual const Entries& Get() const = 0;
77 
83  virtual const PMString GetName(const Entry& entry, bool16 fullName = 0) const = 0;
84 
88  virtual void push_back(const Entry& entry) = 0;
89 
94  virtual int32 Location(const Entry& entry) = 0;
95 
100  virtual void MarkRemoved(const int32 pos, bool16 removed) = 0;
101 
105  virtual void Delete(const int32 pos) = 0;
106 
109  virtual void clear() = 0;
110 
113  virtual void Dump() const = 0;
114 
117  virtual void NotifyCacheChanged() = 0;
118 };
119 
120 #endif // __ILnkWtchCache_h__