1 /* This file is (c) 2008-2012 Konstantin Isakov <ikm@goldendict.org>
2  * Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
3 
4 #ifndef __XDXF2HTML_HH_INCLUDED__
5 #define __XDXF2HTML_HH_INCLUDED__
6 
7 #include <string>
8 #include <map>
9 #include "dictionary.hh"
10 #include "indexedzip.hh"
11 
12 /// Xdxf is an xml file format. Since we display html, we'd like to be able
13 /// to convert articles with such a markup to an html.
14 namespace Xdxf2Html {
15 
16 enum DICT_TYPE { STARDICT, XDXF };
17 
18 using std::string;
19 using std::map;
20 
21 /// Converts the given xdxf markup to an html one. This is currently used
22 /// for Stardict's 'x' records.
23 string convert( string const &, DICT_TYPE type, map < string, string > const * pAbrv,
24                 Dictionary::Class *dictPtr, IndexedZip * resourceZip, bool isLogicalFormat = false,
25                 unsigned revisionNumber = 0, QString * headword = 0 );
26 
27 }
28 
29 #endif
30