InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISpreadHistoryData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: tommyd
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 __ISPREADHISTORYDATA__
25 #define __ISPREADHISTORYDATA__
26 
27 #include "IPMUnknown.h"
28 #include "SpreadHistoryID.h"
29 
39 {
40 public:
41  enum { kDefaultIID = IID_ISPREADHISTORYDATA };
42 
43  enum { kAtTheEnd = -1 };
44 
45  virtual void AddSpread(UID spreadUID, UID pageUID = kInvalidUID) = 0;
46  // Put the given spread in the stack. If the pageUID is specified,
47  // save the page within the spread too. (SetPageCmd case).
48 
49  virtual void ClearAllSpreads() = 0;
50  // Removes all the spreads from the stack
51 
52  virtual void ClearThisSpread(UID theUID) = 0;
53  // This method walks from the current stack position
54  // to the top of the stack, and if it finds this spread (or page),
55  // it removes that spread and every spread above it.
56  // It then walks from the current stack position to the bottom
57  // of the stack, repeating the process.
58 
59  virtual void GoBack(UID* spreadUID, UID* pageUID) = 0;
60  // Returns the UID of the 'Go Back' spread and page & updates
61  // internal stack pointer
62 
63  virtual void GoForward(UID* spreadUID, UID* pageUID) = 0;
64  // Returns the UID of the 'Go Forward' spread and page & updates
65  // internal stack pointer
66 
67  virtual bool16 EnableGoBack() = 0;
68  // Returns TRUE if the 'Go Back' command should be enabled
69 
70  virtual bool16 EnableGoForward() = 0;
71  // Returns TRUE if the 'Go Forward' command should be enabled
72 
73  virtual void SetStackSizeLimit(int32 stackSizeLimit) = 0;
74  // Sets the maximum allowed number of items stored in the
75  // stack. If the stack hits this limit, the oldest items
76  // will be dropped off the bottom. We default to 100.
77 
78 };
79 
80 
81 #endif // __ISPREADHISTORYDATA__
82