InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ICatalogList.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Hardeep S Parmar
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 // ADOBE CONFIDENTIAL
24 //
25 //========================================================================================
26 
27 #ifndef __ICatalogList__
28 #define __ICatalogList__
29 
30 #include "IPMUnknown.h"
31 #include "LibraryProviderID.h"
32 #include "ICatalog.h"
33 
36 class ICatalogList : public IPMUnknown
37 {
38  public:
39  enum { kDefaultIID = IID_ICATALOGLIST };
40 
43  enum { kQuery=0, kInProgress, kDone };
44 
49  virtual ICatalog* NewCatalog(const IDFile& catalogFile) = 0;
50 
55  virtual ICatalog* OpenCatalog(const IDFile& catalogFile) = 0;
56 
72  virtual ICatalog* RecoverCatalog(const IDFile* pubFile, const IDFile* miniSaveFile, IDataBase::ProtectionLevel protection, void* fileInfo) = 0;
73 
77  virtual void CloseCatalog( ICatalog* catalog ) = 0;
78 
82  virtual int32 GetCatalogCount( ) = 0;
83 
88  virtual ICatalog* GetNthCatalog( int32 n ) = 0;
89 
94  virtual ICatalog* FindDoc(const IDFile& catalog) = 0;
95 
98  virtual void Recovery(int16& status) { };
99 };
100 
101 #endif