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

#include <IOpenManager.h>

Inheritance diagram for IOpenManager:
IPMUnknown

Public Member Functions

virtual bool16 DoOpenDialog (SysFileList &openFiles, bool16 allowMultipleFiles)=0
 
virtual UIDRef OpenDocFromFile (IDFile *openMe, UIFlags flags)=0
 
virtual UIDRef OpenDocFromCloudAsset (std::string assetRef, UIFlags flags)=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

Interface used to open document files.

Member Function Documentation

virtual bool16 IOpenManager::DoOpenDialog (SysFileListopenFiles,
bool16 allowMultipleFiles 
)
pure virtual

Displays the open file dialog to the user.

Parameters
openFilesOUT List of files selected by the user from the dialog.
allowMultipleFilesIN Denotes whether to allow the user to select multiple files.
Returns
kFalse if the user cancelled out of the dialog or there was an error, else kTrue.
virtual UIDRef IOpenManager::OpenDocFromCloudAsset (std::string assetRef,
UIFlags flags 
)
pure virtual

Creates a UIDRef from the given cloud document .

Parameters
assetRefIN asset reference to open the cloud doc.
flagsIN UI flags denoting how to handle UI events. (see BaseType.h)
Returns
UIDRef of the document boss of the newly created document (database).
virtual UIDRef IOpenManager::OpenDocFromFile (IDFileopenMe,
UIFlags flags 
)
pure virtual

Creates a UIDRef from the given document file.

Parameters
openMeIN File to open.
flagsIN UI flags denoting how to handle UI events. (see BaseType.h)
Returns
UIDRef of the document boss of the newly created document (database).