| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
#ifndef IE_EXP_EPUB_EPUB3WRITER_H |
| 21 |
#define IE_EXP_EPUB_EPUB3WRITER_H |
| 22 |
|
| 23 |
|
| 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 |
| 52 |
|