![]() | InDesign SDK 20.5 |
#include <IDocumentList.h>

Public Types | |
| enum | UIFlags { kAskMissing, kIgnoreMissing, kCancelMissing, kForceIgnoreMissing, kDontCheck } |
Public Member Functions | |
| virtual int32 | GetDocCount (bool16 bClosePlacedINDDFiles=kFalse) const =0 |
| virtual IDocument * | GetNthDoc (int32 n)=0 |
| virtual IDocument * | FindDoc (const IDFile &whatFile) const =0 |
| virtual IDocument * | FindDocByDataBase (IDataBase *db) const =0 |
| virtual IDocument * | FindDocFromPreviousVersion (const IDFile &whatFile)=0 |
| virtual IDocument * | NewDoc (const ClassID &docClassID, IDataBase::ProtectionLevel protection, void *fileInfo=nil, IDocument::UndoSupport undoSupport=IDocument::kFullUndoSupport)=0 |
| virtual IDocument * | OpenDoc (const IDFile &whatFile, IDataBase::ProtectionLevel protection, bool16 bOpenOriginal=true, UIFlags alertMissingPlugIns=kAskMissing, bool16 bUseLockFile=kTrue, IDocument::UndoSupport undoSupport=IDocument::kFullUndoSupport)=0 |
| virtual IDocument * | OpenDocClone (IDataBase *db, const PMString &docName)=0 |
| virtual IDocument * | RecoverDoc (const IDFile *pubFile, const IDFile *miniSaveFile, IDataBase::ProtectionLevel protection, void *fileInfo=nil, bool16 bIsFauxUserFile=kFalse, IDocument::UndoSupport undoSupport=IDocument::kFullUndoSupport)=0 |
| virtual void | CloseDoc (IDocument *doc)=0 |
| virtual void | CloseDocClone (IDocument *doc)=0 |
| virtual void | CloseAll ()=0 |
| virtual void | PurgeMemory (int32 level)=0 |
| virtual IDocument * | FindDoc (const std::string &assetRef) const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
IID_IDOCUMENTLIST interface store a list of open documents.
UI flag, used for handling missing plug-in conditions
| pure virtual |
Close all open documents
| none |
| pure virtual |
Close the document
| doc | Document to close |
| pure virtual |
Close document clone
| doc | Document to close |
| pure virtual |
Find the document with the asset Ref
Search to see if one (whatFile) is already open. If so, return it
| assetRef | Cloud asset URI |
| pure virtual |
Get number of open documents. Headless documents are counted.
| bClosePlacedINDDFiles,: | If kTrue, closes any placed INDD files that may be opened, before counting the number of opened documents |
| pure virtual |
| pure virtual |
Create a new document. The new document is added to the document list. This method starts a transaction on the newly created database that has to be ended by the caller.
| docClassID | Document boss's class id |
| protection | DataBase's protection level, See IDataBase.h |
| fileInfo | (default=nil) for MAC, store file creator type and and pub type |
| undoSupport | (default=IDocument::kFullUndoSupport), indicates whether commands that change the document will appear on the undo menu |
| pure virtual |
Open a document; The new document is added to the document list; This method starts a transaction on the newly created database that has to be ended by the caller.
| whatFile | IDFile to open |
| protection | DataBase's protection level, See IDataBase.h |
| bOpenOriginal | if kTrue(default), open original file otherwise, open a copy |
| alertMissingPlugIns | UIFlag, default = kAskMissing, alert if missing plugin is detected. kIgnoreMissing, Ignore missing plugin kCancelMissing, Cancel open when missing plugin kIgnoreMissing, Don't alert on missing plugin data from file kDontCheck, don't check missing plugins |
| bUseLockFile | default = kTrue, if use lock file |
| undoSupport | (default=IDocument::kFullUndoSupport), indicates whether commands that change the document will appear on the undo menu |
| pure virtual |
Purges unused memory in each of the documents
| level | levels from MemUtils.h |
| pure virtual |
Recover and open a document identified by recoveryID This method starts a transaction on the newly created database that has to be ended by the caller.
| pubFile | IDFile to recover |
| miniSaveFile | IDFile stores mini save |
| protection | DataBase's protection level |
| fileInfo | (default=nil) for MAC, store file creator type and and pub type |
| bIsFauxUserFile(default= | kFlase), if is faux user file, (currently, incopy user file) |
| undoSupport | (default=IDocument::kFullUndoSupport), indicates whether commands that change the document will appear on the undo menu |