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

#include <IImportCore.h>

Inheritance diagram for IImportCore:
IPMUnknown

Public Member Functions

virtual IOpenFileDialogQueryPlaceFileDialog ()=0
 
virtual void MakeUIDFromLinkAssetUID (UID linkAssetUID, UIFlags flags, UIDRef *pImportedItem, IDataBase *db=nil, UID uidPreview=kInvalidUID)=0
 
virtual void AddTypesAndExtensions (void *data, AddTypeRoutine *addType, AddExtensionRoutine *addExtension)=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 import files.

Member Function Documentation

virtual void IImportCore::AddTypesAndExtensions (void * data,
AddTypeRoutine * addType,
AddExtensionRoutine * addExtension 
)
pure virtual

Calls the given AddTypeRoutine and AddExtensionRoutine functions with the supported file types and extensions.

Parameters
dataIN Pointer to user defined data passed to the AddTypeRoutine and AddExtensionRoutine functions.
addTypeIN Pointer to the AddTypeRoutine function which is called once for each supported file type.
addExtensionIN Pointer to the AddExtensionRoutine function which is called once for each supported extension.
virtual void IImportCore::MakeUIDFromLinkAssetUID (UID linkAssetUID,
UIFlags flags,
UIDRefpImportedItem,
IDataBasedb = nil,
UID uidPreview = kInvalidUID 
)
pure virtual

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

Parameters
linkAssetUIDIN link asset identifying the URI to import from.
flagsIN UI flags denoting how to handle UI events. (see BaseType.h)
pImportedItemOUT When opening a document, the UIDRef of the document boss of the newly created document (database). When importing a file, the UIDRef of the imported file.
dbIN Database to import into. Ignored when opening a document.
uidPreviewIN UID of the pre-existing preview image.
virtual IOpenFileDialog* IImportCore::QueryPlaceFileDialog ()
pure virtual

Returns the default (API supplied) dialog used to import files.

Returns
Pointer to the place dialog used to select files to import.