InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPreflightBookUtils Class Referenceabstract

#include <IPreflightBookUtils.h>

Inheritance diagram for IPreflightBookUtils:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IPREFLIGHTBOOKUTILS }
 

Public Member Functions

virtual IPreflightBookDataQueryActivePreflight (IBook *iBook) const =0
 
virtual IPreflightBookDataQueryActivePreflight (IDataBase *iBookDB) const =0
 
virtual IPreflightBookOptionsQueryActivePreflightOptions (IBook *iBook) const =0
 
virtual IPreflightBookOptionsQueryActivePreflightOptions (IDataBase *iBookDB) const =0
 
virtual bool AreBookAndDocOptionsCompatible (const IPreflightBookOptions *iBookOpts, const IPreflightOptions *iDocOpts, IDataBase *iDocDB) const =0
 
virtual IPreflightOptionsCreateDocOptionsFromBookOptions (const IPreflightBookOptions *iBookOpts, IDataBase *iDocDB) const =0
 
virtual void UpdateBookAssociations (IBook *iBook) const =0
 
virtual void UpdateBookAssociations (IDataBase *iDocDB) const =0
 
virtual UID FindDocumentInBook (IBook *iBook, IDataBase *iDocDB) const =0
 
virtual void VerifyBookContentFileStates (IBook *iBook) const =0
 
virtual void VerifyBookContentFileStates () const =0
 
virtual void DisassociateContentProcess (const UIDRef &contentRef) const =0
 
virtual void GetBooksUsingProcess (uint32 processID, K2Vector< IBook * > &books) const =0
 
virtual ErrorCode ApplyOptionsToBook (IDataBase *iBookDB, const IPreflightBookOptions *iNewOpts) const =0
 
virtual IPreflightBookDataDoBookPreflight (IBook *iBook, const UIDList &bookContentList, const IPreflightBookOptions *iOptsToUse, RangeProgressBar *pProgressBar=nil) const =0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

Utilities related to book preflight.

Member Function Documentation

virtual ErrorCode IPreflightBookUtils::ApplyOptionsToBook (IDataBaseiBookDB,
const IPreflightBookOptionsiNewOpts 
) const
pure virtual

Analogous to ApplyOptionsToDocument; handles all internal status changes as a result.

virtual bool IPreflightBookUtils::AreBookAndDocOptionsCompatible (const IPreflightBookOptionsiBookOpts,
const IPreflightOptionsiDocOpts,
IDataBaseiDocDB 
) const
pure virtual

Determines whether a given set of document preflight options are set up compatibly with the specified book options. Compatible means the layer, pasteboard, and nonprinting options are identical, and the options call for using the document's embedded profile if it has one.

Parameters
iBookOptsIN The book options to use as the baseline.
iDocOptsIN The document options to compare. Can come from a document or process.
iDocDBIN The document, if it is available. Slightly different rules apply if it is not, because we can't determine whether a document has an embedded profile if it's not available.
Returns
kTrue if the options are compatible; kFalse if not.
virtual IPreflightOptions* IPreflightBookUtils::CreateDocOptionsFromBookOptions (const IPreflightBookOptionsiBookOpts,
IDataBaseiDocDB 
) const
pure virtual

Given a document and some book options, create a new set of preflight options that should be used to configure the document for preflight for that book.

Parameters
iBookOptsIN The book options to use.
iDocDBIN The document you're creating the options for. (Needed to get profile names and embedded profile information.)
Returns
A refcounted in-memory preflight options set.
virtual void IPreflightBookUtils::DisassociateContentProcess (const UIDRefcontentRef) const
pure virtual

Given a book content identifier, break the connection between the preflight book content data and the process supplying it. This will also delete the process if it's no longer needed (ie the document itself isn't open and this is the only book that was using the process).

Parameters
contentRefIN The book content.
virtual IPreflightBookData* IPreflightBookUtils::DoBookPreflight (IBookiBook,
const UIDListbookContentList,
const IPreflightBookOptionsiOptsToUse,
RangeProgressBarpProgressBar = nil 
) const
pure virtual

Preflight a book

Parameters
iBookis the book to preflight.
bookContentListis the list of book documents to preflight. This could be one or more document in the book or the entire book content.
iOptsToUseis the book preflight options to use.
pProgressBarif not nil, a progress bar is shown and updated.
Returns
the interface pointer to IPreflightBookData.
See Also
IPreflightBookData.h
virtual UID IPreflightBookUtils::FindDocumentInBook (IBookiBook,
IDataBaseiDocDB 
) const
pure virtual

Determines whether the given document is in the given book, and if so, returns its content UID.

Parameters
iBookIN The book.
iDocDBIN The document.
Returns
The content UID in the book, or kInvalidUID if the document is not in the book.
virtual void IPreflightBookUtils::GetBooksUsingProcess (uint32 processID,
K2Vector< IBook * > & books 
) const
pure virtual

Returns a list of the books that are using a given process, ie have content for which the process is providing results.

Parameters
processIDIN The ID of the process you're interested in.
booksOUT Receives the list of books. (These are not refcounted.)
virtual IPreflightBookData* IPreflightBookUtils::QueryActivePreflight (IBookiBook) const
pure virtual

Given a book, get its active preflight data if there is an active preflight.

Parameters
iBookIN The book.
Returns
A refcounted book data interface, or nil if there is no active preflight.
virtual IPreflightBookData* IPreflightBookUtils::QueryActivePreflight (IDataBaseiBookDB) const
pure virtual

Given a book database, get its active preflight data if there is an active preflight.

Parameters
iBookDBIN The database of the book.
Returns
A refcounted book data interface, or nil if there is no active preflight.
virtual IPreflightBookOptions* IPreflightBookUtils::QueryActivePreflightOptions (IBookiBook) const
pure virtual

Given a book, get its active preflight options if there is an active preflight.

Parameters
iBookIN The book.
Returns
A refcounted book options interface, or nil if there is no active preflight.
virtual IPreflightBookOptions* IPreflightBookUtils::QueryActivePreflightOptions (IDataBaseiBookDB) const
pure virtual

Given a book database, get its active preflight options if there is an active preflight.

Parameters
iBookDBIN The database of the book.
Returns
A refcounted book options interface, or nil if there is no active preflight.
virtual void IPreflightBookUtils::UpdateBookAssociations (IBookiBook) const
pure virtual

Updates associations between a book's contents and the processes related to that book. This is called if you've made changes to the process or book state and want to re-sync.

Parameters
iBookIN The book that changed (or its processes).
virtual void IPreflightBookUtils::UpdateBookAssociations (IDataBaseiDocDB) const
pure virtual

Updates associations between a document and any books it relates to. This is called when you've modified something about the database that the book should update in response to.

Parameters
iDocDBIN The affected document.
virtual void IPreflightBookUtils::VerifyBookContentFileStates (IBookiBook) const
pure virtual

Examines the contents of the book, and if any have gone out of date or have come back into existence, updates the book preflight status accordingly.

Parameters
iBookIN The affected book.
virtual void IPreflightBookUtils::VerifyBookContentFileStates () const
pure virtual

Examines the contents of all open books, and if any have gone out of date or have come back into existence, updates the book preflight status accordingly.