![]() | InDesign SDK 20.5 |
#include <IINXManager.h>

Public Types | |
| enum | { kDefaultIID = IID_IINXMANAGER } |
| typedef IINXErrorHandler *(* | CreateINXErrorHandler )() |
Public Member Functions | |
| virtual ErrorCode | ExportINX (const IDOMElement::ElementList &roots, IINXExportPolicy *policy, IPMStream *stream, UIFlags uiFlags=kFullUI)=0 |
| virtual void | BeginExportSession ()=0 |
| virtual void | EndExportSession ()=0 |
| virtual ErrorCode | ValidateINX (IPMStream *stream, IINXImportValidation *validation=nil)=0 |
| virtual ErrorCode | ImportINX (IDOMElement *root, IINXImportPolicy *policy, IPMStream *stream, const PMString *progressBarTitle=nil, UIFlags uiFlags=kFullUI, IDOMElement **object=nil)=0 |
| virtual void | BeginImportSession ()=0 |
| virtual void | EndImportSession ()=0 |
| virtual void | SetINXErrorHandler (CreateINXErrorHandler handlerOwner)=0 |
| virtual IINXErrorHandler * | GetINXErrorHandler (CreateINXErrorHandler *fnPointer=nil) const =0 |
| virtual void | ImportHelperAddCacheEntry (const PMString &inKey, const PMString &inValue)=0 |
| virtual PMString | ImportHelperGetCacheEntry (const PMString &inKey)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Provides service for INX import and export.
This interface is the only access point for core INX functionality (both import and export).
| typedef IINXErrorHandler*(* IINXManager::CreateINXErrorHandler)() |
Callback function used for INXError Handling. See and below.
| pure virtual |
Begin multiple INX export session. Using multiple export session can improve performance if you need to export multiple snippet based files (snippet, incopy story et al). Code assumes that document is not changed during inx export operation. All export session should use the same INXOptions.
| pure virtual |
Begin multiple INX import session. Using multiple import session can improve performance if you need to import multiple snippet files. Code assumes that document is not changed except inx operation. All inx file should have the same scripting context and inx options. Otherwise, you won't get any performance improvement.
| pure virtual |
End multiple INX export session. Must be paired with BeginExportSession
| pure virtual |
End multiple INX import session. Must be paired with BeginImportSession.
| pure virtual |
Writes the INX representation of a set of rooted object trees to a stream. Callback allows the client to guide the export operation.
| roots | IN A list of root objects to be exported |
| policy | IN Pointer to an Export Policy object, or nil. |
| stream | IN The stream to write info |
| encoding | IN Output stream encoding type (UTF8, UTF16, etc.) |
| uiFlags | IN UI Flags. Determines whether dialog boxes are displayed, etc. |
| pure virtual |
Get installed INX error handler.
| fnPointer | OUT Contains the CreateINXErrorHandler callback reference if one is installed, nil otherwise. |
| pure virtual |
Construct a DOM tree from information found in an INX file.
| parent | IN An object that will serve as the parent of the imported DOM tree. |
| policy | IN A pointer to an import policy object, or nil. |
| stream | IN The input stream containing INX data. |
| progressBarTitle | IN A pointer to a PMString object to be used as the title of the progress bar, or nil. |
| uiFlags | IN How to handle UI events during the import operation. |
| object | IN A pointer to an interface pointer that will contain the root object of the imported DOM tree. |
| pure virtual |
Installs a callback handler function that will be called to create the INX Error Handler. The callback function will be called for every IDML export/import that happens in a different thread. Note that the ownership of releasing the INXErrorHandler object created by the CreateINXErrorHandler lies with the INXManager and not with the client.
| handlerOwner | IN The callback handler to be installed. nil to remove existing callback handler. |
| pure virtual |
Construct a DOM tree from information found in an INX file.
| stream | IN The input stream containing INX data. |
| validation | IN A pointer to an import validation object, or nil |