InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IRecoveryList.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Roey Horns
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 __IRecoveryList__
25 #define __IRecoveryList__
26 
27 #include "IPMUnknown.h"
28 #include "PMString.h"
29 #include "DocumentID.h"
30 
31 class IRecoveryList : public IPMUnknown
32 {
33 public:
34  // Methods for Default Pub Recovery (accessed by CSession)
35  virtual bool16 DefaultFileWasOpen() const = 0;
36  virtual const IDFile *GetDefaultMiniSaveFile() const = 0;
37  virtual void SetDefaultMiniSaveFile(const IDFile *file) = 0;
38  virtual void StartDefaultFileRecovery() = 0;
39  virtual void EndDefaultFileRecovery() = 0;
40  virtual bool16 InDefaultFileRecovery() = 0;
41 
42  // Recovery Control
43  virtual void DoRecovery() = 0;
44  virtual bool16 InRecovery() const = 0;
45 
46  // Recovery List Maintainance
47  // The doc interface could be a regular InDesign document or
48  // book file or some other special files we may support later.
49  //virtual void AddDocument(IPMUnknown *doc, ClassID commandID = kRecoverDocumentCmdBoss) = 0;
50  virtual void AddDocument(IPMUnknown *doc, ClassID commandID = kInvalidClass) = 0;
51  virtual void UpdateDocument(IPMUnknown *doc) = 0;
52  virtual void RemoveDocument(IPMUnknown *doc) = 0;
53 };
54 
55 #endif // __IRecoveryList__