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

#include <IImageReadFormatInfo.h>

Inheritance diagram for IImageReadFormatInfo:
IPMUnknown

Public Member Functions

virtual void GetFileTypes (OSTypeList *fileTypeList)=0
 
virtual void GetExtensions (ExtensionList *extensionList)=0
 
virtual void GetFormatName (PMString *formatName)=0
 
virtual void GetExternalFlavors (ExternalPMFlavorList *flavorList)=0
 
virtual bool16 CanReadFileType (OSType fileType)=0
 
virtual bool16 CanReadExtension (const PMString &extension)=0
 
virtual bool16 CanReadFlavor (ExternalPMFlavor flavor)=0
 
virtual void CopyPreferencesToTarget (IDataBase *targetDB, UID targetUID)=0
 
virtual WidgetID GetPreferencesPanel ()=0
 
virtual void PassPreferences (IDataBase *sourceDB, UID sourceUID)=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 that provides additional data about the capabilities of an IImageReadFormat implementation and that defines a mechanism for passing preference information to an IImageReadFormat.

See Also
IImageReadFormat

Member Function Documentation

virtual bool16 IImageReadFormatInfo::CanReadExtension (const PMStringextension)
pure virtual

Returns kTrue if the filter can read files with the specified extension. Allows a user to call in with a specific extension instead of caching the results of GetExtenions.

Parameters
extensionIN The extension
Returns
kTrue if the filter can read files with the specified extension, else kFalse
virtual bool16 IImageReadFormatInfo::CanReadFileType (OSType fileType)
pure virtual

Returns kTrue if the filter can read files with the specified type. Allows a user to call in with a specific filetype instead of caching the results of GetFileTypes.

Parameters
fileTypeIN The file type
Returns
kTrue if the filter can read files of the specified type, else kFalse
virtual bool16 IImageReadFormatInfo::CanReadFlavor (ExternalPMFlavor flavor)
pure virtual

Returns kTrue if the filter can read the specified external clipboard flavor. Allows a user to call in with a specific clipboard format instead of caching the results of GetExternalFlavors.

Parameters
flavorIN The external clipboard flavor
Returns
kTrue if the filter can read the specified clipboard flavor, else kFalse
virtual void IImageReadFormatInfo::CopyPreferencesToTarget (IDataBasetargetDB,
UID targetUID 
)
pure virtual

Copies the current preferences for the filter to the specified target. This is called by the place provider after the UI for the filter has been displayed (if any) and before reading any data. This allows the filter to store the current settings with the page item. If the filter wishes, it can store the settings with the Session at this time as well to make the current settings global.

Note: This method is called after GetPreferencesPanel() or PassPreferences().

Parameters
targetDBIN The database for the target pageitem
targetUIDIN The UID for the target pageitem
virtual void IImageReadFormatInfo::GetExtensions (ExtensionListextensionList)
pure virtual

Returns list of file extensions supported by this filter.

Parameters
fileTypeListOUT Pointer to ExtensionList to be filled with supported file extensions
virtual void IImageReadFormatInfo::GetExternalFlavors (ExternalPMFlavorListflavorList)
pure virtual

Gets the list of external clipboard flavors supported by this filter.

On the Mac, a clipboard flavor/type is equivalent to an OSType.

On Windows, to get the clipboard flavor/type you must register the format name with Windows and it will return the format.

Parameters
flavorListOUT Pointer to ExternalPMFlavorList to be filled with supported clipboard flavors
virtual void IImageReadFormatInfo::GetFileTypes (OSTypeListfileTypeList)
pure virtual

Returns list of file types supported by this filter.

Parameters
fileTypeListOUT Pointer to OSTypeList to be filled with supported file types
virtual void IImageReadFormatInfo::GetFormatName (PMStringformatName)
pure virtual

Gets the format name for this filter

Parameters
formatNameOUT Pointer to PMString to be filled with this filter's format name
virtual WidgetID IImageReadFormatInfo::GetPreferencesPanel ()
pure virtual

Returns the WidgetID of the panel to add to the Import Preferences dialog, if any.

The filter is responsible for setting the panel's parent to 'ImageImportUI' via the IDListPair resource definition of the panel and for setting the 'Visible' field of the panel's resource definition to kFalse.

At import time, the image place provider will ask the filter for its preference panel's WidgetID. If not kInvalidWidgetID, the provider will use the WidgetID to query for the panel's IID_IUIDDATA and use it to set the source UID to be used to initialize the panel. Afterwards, the provider will show the panel, allowing the IntializeFields() method of the panel's IDialogController to be called.

Returns
The WidgetID of the filter's preferences panel, or kInvalidWidgetID if it does not have one
virtual void IImageReadFormatInfo::PassPreferences (IDataBasesourceDB,
UID sourceUID 
)
pure virtual

Passes the preferences stored on the specified page item to the filter prior to a call to the IImageReadFormat's Open method. This allows a user to pass a set of preferences into the filter without any UI.

The sourceDB and the sourceUID represent the image item (or Session Workspace) whose preferences we would like to use.

Parameters
sourceDBIN The database for the source pageitem or workspace
sourceUIDIN The UID for the source pageitem or workspace