gui
[lbook_fbreader.git] / fbreader / src / formats / docbook / DocBookReader.h
blob505b98a8dd670021ca996bc0e1eb0eb340949837
1 /*
2 * Copyright (C) 2004-2008 Geometer Plus <contact@geometerplus.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 * 02110-1301, USA.
20 #ifndef __DOCBOOKREADER_H__
21 #define __DOCBOOKREADER_H__
23 #include <ZLXMLReader.h>
25 class DocBookReader : public ZLXMLReader {
27 public:
28 static std::string DTDDirectory;
30 public:
31 //protected:
32 enum TagCode {
33 _ARTICLE,
34 _TITLE,
35 _ARTICLEINFO,
36 _AUTHOR,
37 _FIRSTNAME,
38 _OTHERNAME,
39 _SURNAME,
40 _AFFILIATION,
41 _ORGNAME,
42 _ULINK,
43 _ADDRESS,
44 _EMAIL,
45 _PUBDATE,
46 _RELEASEINFO,
47 _COPYRIGHT,
48 _YEAR,
49 _HOLDER,
50 _LEGALNOTICE,
51 _PARA,
52 _REVHISTORY,
53 _REVISION,
54 _REVNUMBER,
55 _DATE,
56 _AUTHORINITIALS,
57 _REVREMARK,
58 _ABSTRACT,
59 _SECT1,
60 _EMPHASIS,
61 _BLOCKQUOTE,
62 _CITETITLE,
63 _LINK,
64 _FOREIGNPHRASE,
65 _FIRSTTERM,
66 _FILENAME,
67 _ITEMIZEDLIST,
68 _LISTITEM,
69 _PART,
70 _PREFACE,
71 _CHAPTER,
72 _UNKNOWN
75 protected:
76 DocBookReader();
78 public:
79 ~DocBookReader();
80 const Tag *tags() const;
82 protected:
83 const std::vector<std::string> &externalDTDs() const;
86 inline DocBookReader::DocBookReader() {}
87 inline DocBookReader::~DocBookReader() {}
89 #endif /* __DOCBOOKREADER_H__ */