rtfdecl.h
上传用户:zhang_dd
上传日期:2007-01-02
资源大小:7k
文件大小:1k
- // RTF parser declarations
- #include "afxwin.h"
- int ecRtfParse(FILE*);
- int ecPushRtfState(void);
- int ecPopRtfState(void);
- int ecParseRtfKeyword(FILE*);
- int ecParseChar(int c);
- int ecTranslateKeyword(char *szKeyword, int param, bool fParam);
- int ecPrintChar(int ch);
- int ecEndGroupAction(RDS rds);
- int ecApplyPropChange(IPROP iprop, int val);
- int ecChangeDest(IDEST idest);
- int ecParseSpecialKeyword(IPFN ipfn);
- int ecParseSpecialProperty(IPROP iprop, int val);
- int ecParseHexByte(void);
- int convertRTF (CString csInput, CString & csout);
- // RTF variable declarations
- extern int cGroup;
- extern RDS rds;
- extern RIS ris;
- extern CHP chp;
- extern PAP pap;
- extern SEP sep;
- extern DOP dop;
- extern SAVE *psave;
- extern long cbBin;
- extern long lParam;
- extern bool fSkipDestIfUnk;
- extern FILE *fpIn;
- // RTF parser error codes
- #define ecOK 0 // Everything's fine!
- #define ecStackUnderflow 1 // Unmatched '}'
- #define ecStackOverflow 2 // Too many '{' -- memory exhausted
- #define ecUnmatchedBrace 3 // RTF ended during an open group.
- #define ecInvalidHex 4 // invalid hex character found in data
- #define ecBadTable 5 // RTF table (sym or prop) invalid
- #define ecAssertion 6 // Assertion failure
- #define ecEndOfFile 7 // End of file reached while reading RTF