Debian Codegraph @

plugins/epub/exp/xp/ie_exp_EPUB_EPUB3Writer.h

raw symbols SCIP
1 /* AbiSource
2 *
3 * Copyright (C) 2011 Volodymyr Rudyj <[email protected]>
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 * 02110-1301 USA.
19 */
20 #ifndef IE_EXP_EPUB_EPUB3WRITER_H
21 #define IE_EXP_EPUB_EPUB3WRITER_H
22
23 // Abiword includes
24 #include <ie_exp_HTML_DocumentWriter.h>
25 #define EPUB3_CONTENT_PROFILE "http://www.idpf.org/epub/30/profile/content/"
26
27 class IE_Exp_EPUB_EPUB3Writer : public IE_Exp_HTML_DocumentWriter {
28 public:
29 IE_Exp_EPUB_EPUB3Writer(IE_Exp_HTML_OutputWriter* pOutputWriter);
30 void openAnnotation();
31 void closeAnnotation();
32
33 void openDocument();
34 void insertDTD();
35 void insertTOC(const gchar *title, const std::vector<UT_UTF8String> &items,
36 const std::vector<UT_UTF8String> &itemUriList);
37 void insertEndnotes(const std::vector<UT_UTF8String> &endnotes);
38 void insertFootnotes(const std::vector<UT_UTF8String> &footnotes);
39 void insertAnnotations(const std::vector<UT_UTF8String> &titles,
40 const std::vector<UT_UTF8String> &authors,
41 const std::vector<UT_UTF8String> &annotations);
42 };
43
44 class IE_Exp_EPUB_EPUB3WriterFactory : public IE_Exp_HTML_WriterFactory
45 {
46 public:
47 IE_Exp_HTML_DocumentWriter *constructDocumentWriter(
48 IE_Exp_HTML_OutputWriter* pOutputWriter);
49 };
50
51 #endif /* IE_EXP_EPUB_EPUB3WRITER_H */
52