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

Public Types | |
| enum | { kDefaultIID = IID_IDOCUMENT } |
| enum | saveType { kNativeType =0, kCloudType } |
| enum | UndoSupport { kFullUndoSupport, kPartialUndoSupport } |
Public Member Functions | |
| virtual void | Save ()=0 |
| virtual void | SaveAs (const IDFile &destFile)=0 |
| virtual void | SaveACopy (const IDFile &destFile)=0 |
| virtual void | Close ()=0 |
| virtual bool16 | IsSaved ()=0 |
| virtual bool16 | IsRecovered ()=0 |
| virtual bool16 | IsConverted ()=0 |
| virtual void | SetConverted ()=0 |
| virtual bool16 | IsReadOnly ()=0 |
| virtual bool16 | IsMissingPlugins ()=0 |
| virtual void | SetMissingPlugins ()=0 |
| virtual bool16 | IsModified ()=0 |
| virtual void | GetName (PMString &name) const =0 |
| virtual void | SetName (const PMString &name)=0 |
| virtual UIDRef | GetDocWorkSpace () const =0 |
| virtual UndoSupport | GetUndoSupport () const =0 |
| virtual int32 | GetUntitledCount () const =0 |
| virtual void | SetUntitledCount (int32 untitledCount)=0 |
| virtual bool16 | IsCloudDoc () const =0 |
| virtual void | NotifyDocBasedAsyncJobQueued (AsyncWorkPacketID packetId)=0 |
| virtual void | SetAsCloudDoc ()=0 |
| virtual void | SetAssetRefForThisDoc (const std::string &assetRef)=0 |
| virtual std::string | GetAssetRefForThisDoc () const =0 |
| virtual bool | IsDocumentConflicted () const =0 |
| virtual void | SetIsDocumentConflicted (const bool conflicted)=0 |
| virtual void | SaveAsCloudDoc (const IDFile &path, const std::string &docPathValue)=0 |
| virtual void | SaveCloudDoc ()=0 |
| virtual bool | IsDocumentSyncedOnce () const =0 |
| virtual void | SetIsDocumentSynced (const bool syncedonce)=0 |
| virtual void | SaveCloudDocAsNative (const IDFile &destFile)=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_IDOCUMENT interface, Represents an InDesign publication. Provides the basic file operations.
Level of undo support for the open document.
Full undo support means that we have both undo support for error handling as well as the capacity to have changes go on the undo menu, and hence be undoable. Partial undo support means that we have just enough support to do error handling. Document changes will not go on the undo menu and hence are not undoable.
| pure virtual |
This doesn't close the document. Do not use this method! (only set open flag to kFalse)
| pure virtual |
Get document level work space
| pure virtual |
Return the name associated with the document. The name is used for the default window title, and for the default "save-to" file the first time it is saved. Do not use the document's name to make assumptions about the name of the actual pub file in the file system.
| name | [OUT] Document name to path out |
| pure virtual |
Get number used for next untitled-? document
| pure virtual |
Check the type of document this is, cloud or native
| pure virtual |
Return if a converted document (from previous version or other type)
| pure virtual |
Clouds docs can be conflicted since they can be edited from multiple machines\ These are setter and getter for cloud doc status Internal use only. ******************* Tells whether particular document has a conflict or not
| pure virtual |
Internal use only. *******************
Checks whether the document is synced atleast once
| pure virtual |
Return if the doc was opened in a missing plug-in state
| pure virtual |
Return if the document has been modified since the last save or open
| pure virtual |
Return if a ready only dccument
| pure virtual |
Return if a recovered document
| pure virtual |
Test if the document has ever been saved (not UNTITLEDxx.indd)
| pure virtual |
Internal use only. *******************
Notify the document that an asynchronous job is queued that accesses this document
| packetId | packet id for the enqueued job |
| pure virtual |
Save the document to the user file. May want to make sure that IsSaved() below returns kTrue before you call this method
| pure virtual |
Save the document to the specified file. If there is already a file with the same name, it is first deleted. After the call: Leaves the document open and targeted to the current file. Further editing will not affect destFile.
| destFile | file to save a copy to. |
| pure virtual |
Save the document to the specified file. If there is already a file with the same name, it is first deleted. After the call: Leaves the document open and targeted to the saved-to file.
| destFile | saved to file |
| pure virtual |
Internal use only. *******************
Save As for cloud documents.
| path | IN For IDS only - path of document where to save |
| docPathValue | IN path of file on cloud. |
| pure virtual |
Internal use only. *******************
Incremental save for cloud document.
| pure virtual |
Internal use only. *******************
Saves Cloud Document (.inddc) as a native document (.indd)
| destFile | IN path to save the native file. |
| pure virtual |
Internal use only. *******************
This is used to make system aware that there is backing file for this doc
| pure virtual |
Clouds docs have unique UIRs from which we can uniquely identify them\ These are setter and getter for cloud assetRef associated with a doc
| pure virtual |
Set converted flag
| pure virtual |
Internal use only. *******************
Sets status as conflicted for document.
| conflicted | IN bool value for the conflict status of the document |
| pure virtual |
Internal use only. *******************
Sets the status of the document synced
| syncedonce | IN sets the whether document is synced once or not. |
| pure virtual |
Set missing plugins flag
| pure virtual |
Set the document name. See GetName() above for more info.
| name | document's new name |
| pure virtual |
Set number used for next untitled-? document
| int32 | number for next untitled document |