![]() | InDesign SDK 20.5 |
Public Member Functions | |
| ErrorCode | ExportViaServiceProvider (const UIDRef &documentUIDRef, const IDFile &targetFile) |
| ErrorCode | ExportElement (const XMLReference &xmlRef, const IDFile &targetFile, const PMString &formatName="XML", UIFlags uiFlags=kSuppressUI) |
| ErrorCode | ExportTable (const UIDRef &tableModelUIDRef, const IDFile &targetFile) |
| ErrorCode | ExportElementsAsSnippet (const IDFile &targetFile, const K2Vector< XMLReference > &elements) |
| ErrorCode | Import (const UIDRef &documentUIDRef, const IDFile &targetFile, const XMLReference &xmlReferenceWhere) |
| ErrorCode | ImportXMLSnippetIntoRoot (const UIDRef &documentUIDRef, const IDFile &targetFile) |
| ErrorCode SnpImportExportXML::ExportElement | ( | const XMLReference & | xmlRef, |
| const IDFile & | targetFile, | ||
| const PMString & | formatName = "XML", | ||
| UIFlags | uiFlags = kSuppressUI | ||
| ) |
Export only the supplied element to specified file as XML.
| xmlRef | reference to element (IIDXMLElement) to export |
| targetFile | file to which output should be written |
| ErrorCode SnpImportExportXML::ExportElementsAsSnippet | ( | const IDFile & | targetFile, |
| const K2Vector< XMLReference > & | elements | ||
| ) |
Export the XML elements supplied as Snippet
| targetFile | specifies the file to write to |
| elements | list of elements (IIDXMLElement) to export as Snippet |
| ErrorCode SnpImportExportXML::ExportTable | ( | const UIDRef & | tableModelUIDRef, |
| const IDFile & | targetFile | ||
| ) |
Export a tagged table to specified file
| tableModelUIDRef | identifies table to export to specified file |
| targetFile | file to which output should be written |
| ErrorCode SnpImportExportXML::ExportViaServiceProvider | ( | const UIDRef & | documentUIDRef, |
| const IDFile & | targetFile | ||
| ) |
Export the logical structure of the given document to specified file as XML.
| documentUIDRef | document of interest |
| targetFile | file to which output should be written |
| ErrorCode SnpImportExportXML::Import | ( | const UIDRef & | documentUIDRef, |
| const IDFile & | targetFile, | ||
| const XMLReference & | xmlReferenceWhere | ||
| ) |
Import an XML file into the document
| documentUIDRef | specifies document into which to import |
| targetFile | XML data file to import |
| xmlReferenceWhere | kInvalidXMLReference to import into the root, since this can legitimately be kInvalidXMLReference, we require documentUIDRef |
| ErrorCode SnpImportExportXML::ImportXMLSnippetIntoRoot | ( | const UIDRef & | documentUIDRef, |
| const IDFile & | targetFile | ||
| ) |
Import a set of XML elements from a Snippet file, which should be set up by ExportElementsAsSnippet.
| documentUIDRef | document into which |
| targetFile | specifies the Snippet file to import |