#include <IImportProviderUtils.h>
|
| enum | { kDefaultIID = IID_IIMPORTPROVIDERUTILS } |
| |
|
| virtual IImportProvider * | QueryImportProviderFor (const ExternalPMFlavor fromWhichFlavor, const PMFlavor toWhichInternalFlavor)=0 |
| |
| virtual bool16 | DoesProviderSupportExternalFlavor (IImportProvider *provider, const ExternalPMFlavor flavor)=0 |
| |
| virtual IImportProvider * | QueryImportProviderForFileType (const SysOSType fileType)=0 |
| |
| virtual bool16 | DoesProviderSupportFileType (IImportProvider *provider, const SysOSType fileType)=0 |
| |
| virtual IExportProvider * | QueryExportProviderFor (const PMFlavor fromWhichInternalFlavor, const ExternalPMFlavor toWhichFlavor)=0 |
| |
| virtual bool16 | DoesProviderSupportExternalFlavor (IExportProvider *provider, const ExternalPMFlavor flavor)=0 |
| |
| virtual uint32 | GetFlavorsForExport (const PMFlavor fromWhichInternalFlavor, ExternalPMFlavorList &toWhichFlavors)=0 |
| |
| virtual uint32 | GetFlavorsForImport (const PMFlavor toWhichInternalFlavor, ExternalPMFlavorList &fromWhichFlavors)=0 |
| |
| virtual ErrorCode | SendImportExportSignal (const ServiceID &service, IDocument *document, const URI &uri, const PMString &formatName, UIFlags &uiFlags, bool8 bIsStandAlone=kTrue, ExportSessionToken *sessionToken=nil)=0 |
| |
| virtual ErrorCode | SendImportExportSignal (const ServiceID &service, IDocument *document, const IDFile &sysFile, const PMString &formatName, UIFlags &uiFlags, bool8 bIsStandAlone=kTrue, ExportSessionToken *sessionToken=nil)=0 |
| |
| virtual ErrorCode | SendPlaceReplaceSignal (const ServiceID &service, IPlaceBehavior *source, IPlaceBehavior *target, const UIDList &result)=0 |
| |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| |
| virtual void | AddRef () const =0 |
| |
| virtual void | Release () const =0 |
| |
Utility interface for import and export providers. Providers are used to cnvert between internal and external data/file formats.
- See Also
- IImportProvider, IExportProvider
| virtual bool16 IImportProviderUtils::DoesProviderSupportExternalFlavor | ( | IImportProvider * | provider, | | | const ExternalPMFlavor | flavor | | ) | | |
| pure virtual |
Can a provider support conversion from a specific external flavor.
- Parameters
| provider | IN the provider |
| flavor | IN the external flavor |
- Returns
- true if the provider can perform a conversion
| virtual bool16 IImportProviderUtils::DoesProviderSupportExternalFlavor | ( | IExportProvider * | provider, | | | const ExternalPMFlavor | flavor | | ) | | |
| pure virtual |
Can a provider support conversion to a specific external flavor.
- Parameters
| provider | IN the provider |
| flavor | IN the external flavor |
- Returns
- true if the provider can perform a conversion
| virtual bool16 IImportProviderUtils::DoesProviderSupportFileType | ( | IImportProvider * | provider, | | | const SysOSType | fileType | | ) | | |
| pure virtual |
Can a provider support conversion from a specific file type.
- Parameters
| provider | IN the provider |
| fileType | IN a file type |
- Returns
- true if the provider can perform a conversion
| virtual uint32 IImportProviderUtils::GetFlavorsForExport | ( | const PMFlavor | fromWhichInternalFlavor, | | | ExternalPMFlavorList & | toWhichFlavors | | ) | | |
| pure virtual |
Compute the list of external flavors that a given internal flavor can be converted to via exporters
- Parameters
| fromWhichInternalFlavor | IN the internal data format |
| toWhichFlavors | OUT the list of flavors the data could be converted to |
- Returns
- the number of possible conversions
| virtual uint32 IImportProviderUtils::GetFlavorsForImport | ( | const PMFlavor | toWhichInternalFlavor, | | | ExternalPMFlavorList & | fromWhichFlavors | | ) | | |
| pure virtual |
Compute the list of external flavors that a given internal flavor can be produced from via importers
- Parameters
| toWhichInternalFlavor | IN the internal data format |
| fromWhichFlavors | IN the list of flavors the data could be produced from |
- Returns
- the number of possible conversions
| virtual IExportProvider* IImportProviderUtils::QueryExportProviderFor | ( | const PMFlavor | fromWhichInternalFlavor, | | | const ExternalPMFlavor | toWhichFlavor | | ) | | |
| pure virtual |
Query for export provider to handle a data conversion.
- Parameters
| fromWhichInternalFlavor | IN internal data format the data is to be converted from |
| toWhichFlavor | IN external data format the data is to be converted to |
- Returns
- an export provider capable of performing the conversion, or nil.
| virtual IImportProvider* IImportProviderUtils::QueryImportProviderFor | ( | const ExternalPMFlavor | fromWhichFlavor, | | | const PMFlavor | toWhichInternalFlavor | | ) | | |
| pure virtual |
Query for import provider to handle a data conversion.
- Parameters
| fromWhichFlavor | IN external data format the data is to be converted from |
| toWhichInternalFlavor | IN internal data format the data is to be converted to |
- Returns
- an import provider capable of performing the conversion, or nil.
| virtual IImportProvider* IImportProviderUtils::QueryImportProviderForFileType | ( | const SysOSType | fileType | ) | |
| pure virtual |
Query for import provider to handle a file conversion.
- Parameters
| fileType | IN the type of the file |
- Returns
- an import provider capable of performing the conversion, or nil.
| virtual ErrorCode IImportProviderUtils::SendImportExportSignal | ( | const ServiceID & | service, | | | IDocument * | document, | | | const URI & | uri, | | | const PMString & | formatName, | | | UIFlags & | uiFlags, | | | bool8 | bIsStandAlone = kTrue, | | | ExportSessionToken * | sessionToken = nil | | ) | | |
| pure virtual |
Send an import or export signal to responders
- Parameters
| service | IN is the signal's service ID |
| document | IN is the target document |
| uri | IN is the resource/file being im/exported. |
| formatName | IN is the format being im/exported |
| uiFlags | IN/OUT are the ui flags, which could be changed by a responder |
| bIsStandAlone | IN determines if this asset is a standalone asset or part of a group of assets |
| sessionToken | IN/OUT an ExportSessionToken passed by reference. Updated by each call. |
- Returns
- global error code if set by a responder
| virtual ErrorCode IImportProviderUtils::SendImportExportSignal | ( | const ServiceID & | service, | | | IDocument * | document, | | | const IDFile & | sysFile, | | | const PMString & | formatName, | | | UIFlags & | uiFlags, | | | bool8 | bIsStandAlone = kTrue, | | | ExportSessionToken * | sessionToken = nil | | ) | | |
| pure virtual |
DEPRECATED: Use the version that passes a URI instead of an IDFile. Send an import or export signal to responders
- Parameters
| service | IN is the signal's service ID |
| document | IN is the target document |
| sysFile | IN is the file being im/exported |
| formatName | IN is the format being im/exported |
| uiFlags | IN/OUT are the ui flags, which could be changed by a responder |
| bIsStandAlone | IN determines if this asset is a standalone asset or part of a group of assets |
| sessionToken | IN/OUT an ExportSessionToken passed by reference. Updated by each call. |
- Returns
- global error code if set by a responder
Send an place or replace signal to responders
- Parameters
| service | IN is the signal's service ID |
| source | IN is the source's IPlaceBehavior |
| target | IN is the target's IPlaceBehavior (may be nil, e.g., for a snippet) |
| result | IN is the placed items (may be empty, e.g., for before place) |
- Returns
- global error code if set by a responder