#include <CExportProvider.h>
|
| | CExportProvider (IPMUnknown *boss) |
| |
|
| virtual void | ExportToFile (const IDFile &sysFile, IDocument *doc, IPMUnknown *targetboss, const PMString &formatName, UIFlags uiFlags) |
| |
| virtual bool16 | CanExportToFile () const |
| |
| virtual TaskInfo | AsynchronousExportToFile (const IDFile &sysFile, IDocument *doc, IPMUnknown *targetboss, const PMString &formatName, UIFlags uiFlags=kFullUI) |
| |
| virtual bool16 | CanExportToFileAsynchronously () const |
| |
|
| virtual bool16 | CanExportForExternalize () const |
| |
| virtual PMFlavor | GetInternalFlavor () const |
| |
| virtual int32 | CountExternalFlavors () const |
| |
| virtual ExternalPMFlavor | GetExternalFlavor (int32 n) const |
| |
| virtual bool16 | CanExportThisFlavor (const ExternalPMFlavor &flavor, PMString &outFormatName) const |
| |
| virtual ErrorCode | ExportForExternalize (IDataExchangeHandler *handler, const ExternalPMFlavor toWhichFlavor, IPMStream *stream) |
| |
| IPMUnknown * | QueryInterface (PMIID interfaceID) const |
| |
| void | AddRef () const |
| |
| void | Release () const |
| |
| void | PreDirty (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue) |
| |
| void | PreDirtyNoMessage (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue) |
| |
| | CPMUnknown (const CPMUnknown &)=delete |
| |
| CPMUnknown & | operator= (const CPMUnknown &)=delete |
| |
| virtual void | ExportToStream (IPMStream *stream, IDocument *doc, IPMUnknown *targetboss, const PMString &formatName, UIFlags uiFlags=kFullUI)=0 |
| |
| virtual bool16 | CanExportThisFormat (IDocument *doc, IPMUnknown *targetboss, const PMString &formatName)=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 ErrorCode | SendSignal (const ServiceID &service, IDocument *document, const IDFile &sysFile, const PMString &formatName, UIFlags uiFlags, bool8 bIsStandAlone=kTrue) |
| |
| virtual bool16 | IsTargetFileInUseByBGTasks (const IDFile &sysFile) const |
| |
| virtual UserTaskJobSpec | CreateExportJobSpec (const IDFile &sysFile, IDocument *document, const PMString &formatName) const |
| |
| virtual void | GetUniqueSysFile (IDocument *document, const IDFile *sysFileName, IDFile *uniqueSysFileName, uint32 pageNum, IOutputPages *outputPages, bool16 exportSpreads, PMString &suffix, PMString &exportFileExtension) |
| |
| | CPMUnknown (IPMUnknown *boss) |
| |
|
| ExportSessionToken | fSessionToken |
| |
| std::map< std::string, int32 > | fFileNameMap |
| |
| HelperInterface | fHelperInterface |
| |
|
| enum | { kDefaultIID = IID_IEXPORTPROVIDER } |
| |
Core base class implementation for IExportProvider
Export to a file asynchronously and return. Default implementation is Unimplemented.
Implements IExportProvider.
| virtual bool16 CExportProvider::CanExportForExternalize | ( | | ) | const |
| virtual |
| virtual bool16 CExportProvider::CanExportThisFlavor | ( | const ExternalPMFlavor & | flavor, | | | PMString & | outFormatName | | ) | | const |
| virtual |
| virtual bool16 CExportProvider::CanExportToFile | ( | | ) | const |
| virtual |
| virtual bool16 CExportProvider::CanExportToFileAsynchronously | ( | | ) | const |
| virtual |
The provider indicates whether it can do asynchronous file based exports
Implements IExportProvider.
| virtual int32 CExportProvider::CountExternalFlavors | ( | | ) | const |
| virtual |
| virtual UserTaskJobSpec CExportProvider::CreateExportJobSpec | ( | const IDFile & | sysFile, | | | IDocument * | document, | | | const PMString & | formatName | | ) | | const |
| protectedvirtual |
Construct an AsyncWorkPacketJobSpec for a particular export
- Parameters
| sysFile | IN is the file being exported |
| document | IN is the document being exported |
| formatName | IN is the format being exported |
- Returns
- an object that represents the export for the sake of the TaskMonitor
| virtual ErrorCode CExportProvider::ExportForExternalize | ( | IDataExchangeHandler * | handler, | | | const ExternalPMFlavor | toWhichFlavor, | | | IPMStream * | stream | | ) | | |
| virtual |
| virtual ExternalPMFlavor CExportProvider::GetExternalFlavor | ( | int32 | n | ) | const |
| virtual |
| virtual PMFlavor CExportProvider::GetInternalFlavor | ( | | ) | const |
| virtual |
Get unique file name for export operation
- Parameters
| document | IN the document you want to export |
| sysFileName | IN is the reference of file being exported |
| uniqueSysFileName | IN is the reference of unique export file name which will be created after adding the suffix value |
| pageNum | IN. the page number of page in the exporting document |
| outputPages | IN List of output pages being exported |
| exportSpreads | IN whether export spreads |
| suffix | IN is the suffix string |
| exportFileExtension | IN is the extention of the export file |
| virtual bool16 CExportProvider::IsTargetFileInUseByBGTasks | ( | const IDFile & | sysFile | ) | const |
| protectedvirtual |
Check for export file conflicts
- Parameters
| sysFile | IN is the file being exported |
- Returns
- kTrue if an AsynchronousExport is exporting to the same file
| virtual ErrorCode CExportProvider::SendSignal | ( | const ServiceID & | service, | | | IDocument * | document, | | | const IDFile & | sysFile, | | | const PMString & | formatName, | | | UIFlags | uiFlags, | | | bool8 | bIsStandAlone = kTrue | | ) | | |
| protectedvirtual |
Send an 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 exported |
| formatName | IN is the format being exported |
| uiFlags | IN are the ui flags |
| bIsStandAlone | IN is this a single-file export (kTrue), or part of a multi-file export(kFalse) |