KVXMLCallbacks

This structure provides all callbacks that can result from a call to fpConvertStream() or KVXMLConvertFile(). See fpConvertStream() and KVXMLConvertFile(). Any and all of the function pointers can be NULL.

typedef BOOL (pascal *KVXMLCB_CONTINUE)(
    void                *pcallingContext,
    int                 nPercentDone);
typedef BOOL (pascal *KVXMLCB_GETANCHOR)(
    void                *pCallingContext,
    KVXMLAnchorType     eAnchorType,
    char                *pszAnchor,
    Int                 cbAnchorMax, 
    BYTE                *pcHTML,
    UINT                cbHTML);
typedef BOOL (pascal *KVXMLCB_GETAUXOUTPUT)(
    void                *pCallingContext,
    KVXMLAnchorType     eAnchorType, 
    char                *pszAnchor,
    KVOutputStream      *pNewOutput);
typedef BOOL (pascal *KVXMLCB_USERCB) (
    void                *pCallingContext,
    char                *psUserCBid,
    KVOutputStream      *pOutput,
    void                *pReserved);
typedef struct tag_KVXMLCallbacks
{
    KVXMLCB_CONTINUE        fpContinue;
    KVXMLCB_GETANCHOR       fpGetAnchor;
    KVXMLCB_GETAUXOUTPUT    fpGetAuxOutput;
    KVXMLCB_USERCB          fpUserCB;
}
KVXMLCallbacks;

Member Descriptions

  • The members of this structure are function pointers to the functions described in XML Export API Callback Functions.

  • If fpGetAuxOutput() is NULL, the pszDefaultOutputDirectory member of the instance of KVXMLOptions 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. See KVXMLOptions.