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

#include <IImportManager.h>

Inheritance diagram for IImportManager:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IIMPORTMANAGER }
 

Public Member Functions

virtual bool16 DoImportDialog (URIList *importMe, bool16 multipleItemsOK, IPMUnknown *dialog)=0
 
virtual void ImportUIDFromLinkAssetUID (IDataBase *intoDB, UID linkAssetUID, UIFlags flags, UIDRef *pImportedItem, UID uidPreview=kInvalidUID)=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 select and import files.

See Also
IImportProvider
IPrintContentPrefs

Member Function Documentation

virtual bool16 IImportManager::DoImportDialog (URIListimportMe,
bool16 multipleItemsOK,
IPMUnknowndialog 
)
pure virtual

Displays the place file dialog to the user.

Parameters
importMeOUT Files selected to import by the user from the place dialog.
multipleItemsOKIN whether user should be able to select multiple items to import.
dialogIN the dialog to use for the import.
Returns
kFalse if the user cancelled out of the dialog or there was an error, else kTrue.
virtual void IImportManager::ImportUIDFromLinkAssetUID (IDataBaseintoDB,
UID linkAssetUID,
UIFlags flags,
UIDRefpImportedItem,
UID uidPreview = kInvalidUID 
)
pure virtual

Creates a UIDRef from the file referenced by the given URI.

Parameters
intoDBbIN Database to import into.
linkAssetUIDIN the link asset to import from.
flagsIN UI flags denoting how to handle UI events. (see BaseType.h)
pImportedItemOUT UIDRef of the newly created imported item. This may be a page item or a text story UID.
uidPreviewIN UID of the pre-existing preview image.