|
|
| virtual void | ExportToFile (const IDFile &sysFile, IDocument *doc, IPMUnknown *targetboss, const PMString &formatName, UIFlags uiFlags=kFullUI)=0 |
| |
| virtual void | ExportToStream (IPMStream *stream, IDocument *doc, IPMUnknown *targetboss, const PMString &formatName, UIFlags uiFlags=kFullUI)=0 |
| |
| virtual bool16 | CanExportToFile () const =0 |
| |
| virtual bool16 | CanExportThisFormat (IDocument *doc, IPMUnknown *targetboss, const PMString &formatName)=0 |
| |
| virtual TaskInfo | AsynchronousExportToFile (const IDFile &sysFile, IDocument *doc, IPMUnknown *targetboss, const PMString &formatName, UIFlags uiFlags=kFullUI)=0 |
| |
| virtual bool16 | CanExportToFileAsynchronously () const =0 |
| |
|
| virtual bool16 | CanExportForExternalize () const =0 |
| |
| virtual PMFlavor | GetInternalFlavor () const =0 |
| |
| virtual int32 | CountExternalFlavors () const =0 |
| |
| virtual ExternalPMFlavor | GetExternalFlavor (int32 n) const =0 |
| |
| virtual bool16 | CanExportThisFlavor (const ExternalPMFlavor &flavor, PMString &outFormatName) const =0 |
| |
| virtual ErrorCode | ExportForExternalize (IDataExchangeHandler *handler, const ExternalPMFlavor toWhichFlavor, IPMStream *stream)=0 |
| |
|
| virtual int32 | CountFormats ()=0 |
| |
| virtual PMString | GetNthFormatName (int32 n)=0 |
| |
| virtual PMString | GetExtensionForFormatName (const PMString &formatName)=0 |
| |
| virtual ScriptID | GetScriptIDForFormatName (const PMString &formatName, const ScriptInfo::RequestContext &context)=0 |
| |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| |
| virtual void | AddRef () const =0 |
| |
| virtual void | Release () const =0 |
| |
IExportProvider is the main interface an export filter has to implement. Export filters provide export functionality from InDesign native formats to some other format(s).
- See Also
- IExportManager
Exports the current selection asynchronously to the given file, which must have a valid path. The provider will generate the specified file format. \ The calling code must verify that the given file does not exist and that no running exports \ are targeting the same file.
The asynchronous nature of this call means that operations that rely on the outcome of the export can no longer happen right after the call. Instead these operations should be moved into a signal responder that responds to two signals:
kAfterExportSignalResponderService (signaled on kSuccess)
kFailedExportSignalResponderService (signaled on any other error code)
Note: Some export providers may use the task monitor for UI and may export more than just the \ current selection (i.e. PDF export, EPS export, etc.)
- Parameters
| sysFile | IN File to export to. |
| doc | IN Document we're exporting from. |
| targetboss | IN Target boss. |
| formatName | IN Name of the format we're exporting. |
| uiFlags | IN UI flags denoting how to handle UI events. (see BaseType.h) \ FullUI means that progress and alert UI events will be handled \ by the task monitor. |
- Returns
- TaskInfo representing the export task. The caller must not use the destination file\ until TI.GetCurrentState() == TaskInfo::kCompleted. (where TI is the TaskInfo)
Implemented in CExportProvider.
| virtual void IExportProvider::ExportToFile | ( | const IDFile & | sysFile, | | | IDocument * | doc, | | | IPMUnknown * | targetboss, | | | const PMString & | formatName, | | | UIFlags | uiFlags = kFullUI | | ) | | |
| pure virtual |
Exports the current selection to the given file, which must have a valid path. The provider will generate the specified file format. \ The calling code must verify that the given file does not exist. \ Note: Some export providers may display UI and may export more than just the current selection (i.e. PDF export, EPS export, etc.)
- Parameters
| sysFile | IN File to export to. |
| doc | IN Document we're exporting from. |
| targetboss | IN Target boss. |
| formatName | IN Name of the format we're exporting. |
| uiFlags | IN UI flags denoting how to handle UI events. (see BaseType.h) |
Implemented in CInCopyStoryExportSuite, TxtExpFilter, XDocBkExportProvider, CHMLFiltExportProvider, and CExportProvider.