1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
/******************************************************************************
* program: wp2latex *
* function: module with XML support prototypes for HTML, AbiWord and Accent*
* modul: pass1xml.h *
* description: *
******************************************************************************/
#ifndef __PASS1_XML_H__
#define __PASS1_XML_H__
class TconvertedPass1_XML: public TconvertedPass1
{
public:
DWORD (*CharReader)(FILE *F);
CpTranslator *ConvertHTML;
string TAG;
doublelist TAG_Args;
BYTE TablePos;
void SelectTranslator(const char *CharSet);
//cq->by = 0 (normal char), 1 (extended char &xxx;), 2 (tag <>), 3 (end tag </>), 4 comment, 5 unfinished &xxx, 6 expanded unicode, 127 fail
void ReadXMLTag(bool MakeUpper=true);
/*This function converts comment inside HTML*/
void CommentXML(void);
};
typedef enum
{
XML_char = 0, ///< normal char
XML_extchar,
XML_tag,
XML_closetag,
XML_comment,
XML_badextchar,
//XML_badspecchar,
XML_unicode,
XML_CDATA,
XML_fail = 127,
} XML_STATUS;
#endif //#define __PASS1_XML_H__
|