1 /* 2 * Copyright 2014 Zane U. Ji. 3 * 4 * This file is part of Xml Copy Editor. 5 * 6 * Xml Copy Editor is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version 2 9 * of the License, or (at your option) any later version. 10 * 11 * Xml Copy Editor is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with Xml Copy Editor; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 */ 20 21 #ifndef XMLASSOCIATEINFO_H_ 22 #define XMLASSOCIATEINFO_H_ 23 24 #include "wrapexpat.h" 25 26 class XmlTextInfo : public WrapExpat 27 { 28 public: 29 XmlTextInfo 30 ( const wxString &path 31 , const char *encoding = NULL 32 ); 33 virtual ~XmlTextInfo(); 34 35 private: 36 static void XMLCALL startdoctypehandler 37 ( void *userData 38 , const XML_Char *doctypeName 39 , const XML_Char *sysid 40 , const XML_Char *pubid 41 , int has_internal_subset 42 ); 43 static void XMLCALL processinghandler 44 ( void *data 45 , const XML_Char *target 46 , const XML_Char *datastring 47 ); 48 static void XMLCALL start 49 ( void *data 50 , const XML_Char *el 51 , const XML_Char **attr 52 ); 53 static void XMLCALL defaulthandler 54 ( void *data 55 , const XML_Char *s 56 , int len 57 ); 58 59 public: 60 wxString mDocTypeName; 61 wxString mDtdFile, mXsdFile, mXslFile; 62 wxString mEOL; 63 }; 64 65 #endif /* XMLASSOCIATEINFO_H_ */ 66