InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IDynamicUpdate.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: robin briggs
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 // Supplies interface for dynamic actions.
24 //
25 //========================================================================================
26 
27 #ifndef __IDynamicUpdate__
28 #define __IDynamicUpdate__
29 
30 #include "IPMUnknown.h"
31 #include "CommandID.h"
32 
33 //----------------------------------------------------------------------------------------
34 // IDynamicUpdate: Aggregated with page item modifying commands to broadcast that the page
35 // item(s) are being modified dynamically. Usually used within the context of a tracker
36 //----------------------------------------------------------------------------------------
37 
38 class IDynamicUpdate : public IPMUnknown
39 {
40  public:
41  enum { kDefaultIID = IID_IDYNAMICUPDATE };
42 
43  virtual void BeginDynamicUpdate() = 0;
44  // Dynamic updating has begun.
45 
46  virtual void EndDynamicUpdate(bool16 inval = kTrue) = 0;
47  // Dynamic updating is completed.
48 
49  virtual void AbortDynamicUpdate() = 0;
50  // Abort dynamic updating.
51 
52  enum DynamicState { kNotStarted, kBeginDynamic, kEndDynamic, kAbortDynamic, kEndDynamicWithoutInval };
53  virtual DynamicState GetDynamicState() const = 0;
54 };
55 
56 #endif // __IDynamicUpdate__