InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPreflightBookUtils.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Matt Phillips
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 
25 #include "IPMUnknown.h"
26 #include "PackageAndPreflightID.h"
27 #include "Utils.h"
28 
29 class IPreflightOptions;
30 class IDocument;
31 class IDataBase;
33 class IPreflightProcess;
34 class IPreflightBookData;
35 class IBook;
36 class RangeProgressBar;
37 
41 {
42 public:
43  enum { kDefaultIID = IID_IPREFLIGHTBOOKUTILS };
44 
45 public:
50  virtual IPreflightBookData* QueryActivePreflight(IBook* iBook) const = 0;
51 
56  virtual IPreflightBookData* QueryActivePreflight(IDataBase* iBookDB) const = 0;
57 
62  virtual IPreflightBookOptions* QueryActivePreflightOptions(IBook* iBook) const = 0;
63 
68  virtual IPreflightBookOptions* QueryActivePreflightOptions(IDataBase* iBookDB) const = 0;
69 
84  (
85  const IPreflightBookOptions* iBookOpts,
86  const IPreflightOptions* iDocOpts,
87  IDataBase* iDocDB
88  ) const = 0;
89 
99  (
100  const IPreflightBookOptions* iBookOpts,
101  IDataBase* iDocDB
102  ) const = 0;
103 
109  virtual void UpdateBookAssociations(IBook* iBook) const = 0;
110 
115  virtual void UpdateBookAssociations(IDataBase* iDocDB) const = 0;
116 
123  virtual UID FindDocumentInBook(IBook* iBook, IDataBase* iDocDB) const = 0;
124 
130  virtual void VerifyBookContentFileStates(IBook* iBook) const = 0;
131 
135  virtual void VerifyBookContentFileStates() const = 0;
136 
144  virtual void DisassociateContentProcess(const UIDRef& contentRef) const = 0;
145 
152  virtual void GetBooksUsingProcess(uint32 processID, K2Vector<IBook*>& books) const = 0;
153 
156  virtual ErrorCode ApplyOptionsToBook(IDataBase* iBookDB, const IPreflightBookOptions* iNewOpts) const = 0;
157 
167  virtual IPreflightBookData* DoBookPreflight(IBook* iBook, const UIDList& bookContentList, const IPreflightBookOptions* iOptsToUse, RangeProgressBar* pProgressBar = nil) const = 0;
168 };
169 
170 
171