Open topic with navigation
This callback function enables the calling application to specify an auxiliary output stream for a block or graphic.
BOOL (pascal *GetAuxOutput) ( void *pCallingContext, KVHTMLXMLAnchorTypeEx eAnchorTypeEx, char *pszAnchor, KVOutputStream *pNewOutput);
A pointer passed back to the caller-provided callback functions. This pointer, which can be
A graphic or block anchor as defined by the enumerated types in
A pointer to a
If the call is successful, the return value is
If the call is unsuccessful, the return value is
FALSE. Processing is halted.
pszDefaultOutputDirectory member of the instance of
KV is used as the base storage location for auxiliary output files. If
pszDefaultOutputDirectory is also
NULL, auxiliary files are placed in the current working directory.
pszAnchor provided, create (
malloc) an appropriate I/O structure. Assign
pNewOutput->pOutputStreamPrivateData to point to that structure. Each remaining member of the
KVOutputStream should then be initialized by assigning a function pointer to the additional application-defined functions, cast to the appropriate function prototype for
Close(). Memory allocated to the I/O structure must be tracked and can be freed up within the call to
Close(). See the
callback.c sample program.