![]() | InDesign SDK 20.5 |

Public Member Functions | |
| CHMLFiltImportProvider (IPMUnknown *boss) | |
| virtual int32 | CountFileTypes (void) |
| virtual SysOSType | GetFileType (int32 n) |
| virtual int32 | CountFormats (void) |
| virtual PMString | GetFormatName (int32 formatIndex) |
| virtual int32 | CountExtensionsForFormat (int32 formatIndex) |
| virtual PMString | GetExtensionForFormat (int32 formatIndex, int32 extensionIndex) |
| virtual ImportAbility | CanImportThisType (IFormatType *formatType) |
| virtual ImportAbility | CanImportThisStream (IPMStream *stream) |
| virtual void | ImportThis (IDataBase *db, IPMStream *stream, UIFlags uiFlags, UIDRef *importedItem, UIDRef *pDataLinkUIDRef=nil, PMString *asFormat=nil) |
| virtual PMFlavor | GetInternalFlavor (void) |
| virtual int32 | CountExternalFlavors (void) |
| virtual ExternalPMFlavor | GetExternalFlavor (int32 n) |
Public Member Functions inherited from CPMUnknown< IImportProvider > | |
| 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 |
Additional Inherited Members | |
Public Types inherited from IImportProvider | |
| enum | ImportAbility { kCannotImport, kPartialImport, kFullImport } |
Protected Member Functions inherited from CPMUnknown< IImportProvider > | |
| CPMUnknown (IPMUnknown *boss) | |
Protected Attributes inherited from CPMUnknown< IImportProvider > | |
| HelperInterface | fHelperInterface |
Implements IImportProvider, contains the actual import filter (open provider) code. ImportThis creates the document.
The private method HandleDocLevelTags() handles the creation of page items (text boxes and images), and the private method HandleParaLevelTags() manages the application of styles and attributes to text. Also, this import provider is made to tie into the File >> Open dialog by using the kOpenServiceImpl implementation in the kCHMLFiltImportProviderBoss.
| Binds the C implementation class onto its ImplementationID making the C code callable by the application * CHMLFiltImportProvider::CHMLFiltImportProvider | ( | IPMUnknown * | boss | ) |
Constructor.
| boss | IN interface ptr from boss object on which this interface is aggregated. |
| virtual |
Indicates whether the import provider can import the given stream. In this method, we also check for the file extension, and on the Macintosh, we check for the file type as well. There are three possible results:
| stream | IN The stream to test. |
Implements IImportProvider.
| virtual |
Indicates whether the import provider can import the given file type (Mac only). There are three possible results -
| formatType | IN The format type to test. |
Implements IImportProvider.
| virtual |
Get the number of extensions that correspond to each file format supported by the import provider. An example extension would be "DOC" or "TXT". On the Mac, file extensions are only used for import provider selection for file of type 'TEXT', ' ', 'BINA', or null. Note the file extensions do not include a preceeding period '.'
| formatIndex | IN |
Implements IImportProvider.
| virtual |
Gets the number of external flavors supported by import provider. (Flavors are used by clipboard/drag and drop)
Implements IImportProvider.
| virtual |
Get the number of filetypes supported by the import provider. (File types are Mac-specific.)
Implements IImportProvider.
| virtual |
Get the number of file formats supported by the import provider. An example file format name would be "TIFF" or "MS Word 97".
Implements IImportProvider.
| virtual |
Get the Nth extension that corresponds to the provided format (index).
| formatIndex | Must be between 0 and CountFormats(). |
| extensionIndex | Must be between 0 and CountExtensionsForFormat(). |
Implements IImportProvider.
| virtual |
Gets the Nth external flavor supported by import provider. (Flavors are used by clipboard/drag and drop)
Implements IImportProvider.
| virtual |
Get the Nth filetype supported by the import provider.
| n | IN the index of interest. |
Implements IImportProvider.
| virtual |
Get the Nth file format supported by the import provider.
| formatIndex | IN The index. |
Implements IImportProvider.
| virtual |
Gets internal flavor supported by import provider. (Flavors are used by clipboard/drag and drop)
Implements IImportProvider.
| virtual |
This method is the main entry point of the import provider and does most of the work. This is where the CHML file is imported. It is responsible for creating the document, setting up the new document's command processor and calling the method to import the tagged text. If the import fails, the global error code must be set, giving the reason why the import failed. To cancel an import, set the global error code to kCancel. Please note that the typographer's quotation marks will NOT be modified in this plug-in.
| db | The database where the objects are created. |
| stream | The data to be imported. |
| uiFlags | Flags to indicate whether the import provider to display or suppress it's user interface |
| pDataLinkUIDRef | Optional. When updating this will contain the original page item UID. Providers should get their import preferences from this page item. If the preferences are not available on this page item, use the default preferences. |
| asFormat | Optional. Return parameter of the format just imported. This string is displayed in the link information dialog. If the string is not filled in, the method GetFormatName(0) is used to get the format name. |
| importedItem | Returns a UIDRef of the newly created imported item. This may be a page item or a text story UID. |
xxxpSpreadOverlapMgr->ReInitialize();
Implements IImportProvider.