// This document demonstrates all events supported by the parser:

void OnRecalculate(bool Begin, bool SourceChanged);
void OnSetDefaults();
void OnSourceChanged(bool IsEmpty);
void OnDocumentGetSize(LPCTSTR DocumentPath, LPCTSTR Param, short & Width, short & Height);
void OnDocumentDraw(LPCTSTR DocumentPath, LPCTSTR Param, HDC DC, short x, short y, short Width, short Height);
void OnControlGetSize(long ID, BSTR Name, short & Width, short & Height, BSTR Param);
BSTR OnGetText(LPCTSTR FilePath, LPCTSTR Res, long Size, long ID);