InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IVOSCache.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: EricM
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 __IVOSCACHE__
25 #define __IVOSCACHE__
26 
27 #include "IPMUnknown.h"
28 #include "VOSCursor.h"
29 #include "TextID.h"
30 #include "K2Vector.h"
31 
32 class IVOSDiskPage;
33 class UIDList;
34 class ITextModel;
35 
36 
45 class IVOSCache : public IPMUnknown
46 {
47  public:
48  enum { kDefaultIID = IID_IVOSCACHE };
49 
54  virtual VOS_Cursor Locate(int32 virtualKey) = 0;
55 
60  virtual int32 LocatePageStart(IVOSDiskPage * page) = 0;
61 
65  virtual void PageSplit(IVOSDiskPage *formerFirst, IVOSDiskPage *newSecond) = 0;
66 
69  virtual void LengthAdjusted(IVOSDiskPage *which) = 0;
70 
73  virtual void PageRemoved(IVOSDiskPage *which) = 0;
74 
78  virtual void PageInserted(IVOSDiskPage *newOne, IVOSDiskPage *beforeThis) = 0;
79 
82  virtual void Reset() = 0;
83 
87  virtual void GetAllPageUIDs(ITextModel *story, UIDList *list) = 0;
88 
99  virtual UID GetPageUIDs( UID startPage,
100  int32 *length,
101  int32 *pageCount,
102  K2Vector<UID> *pageIDList,
103  K2Vector<int32> *pageLenList) = 0;
104 
105 
109  virtual void PagesRemoved(UID startPage,int32 pageCount) = 0;
110 
111 #ifdef DEBUG
112 
113  virtual void Validate() const = 0;
114 #endif
115 };
116 
117 #endif // __IVOSCACHE__
118