00001 /* AbiSource 00002 * 00003 * Copyright (C) 2011 Volodymyr Rudyj <vladimir.rudoy@gmail.com> 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License 00007 * as published by the Free Software Foundation; either version 2 00008 * of the License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00018 * 02110-1301 USA. 00019 */ 00020 #ifndef IE_EXP_EPUB_EPUB3WRITER_H 00021 #define IE_EXP_EPUB_EPUB3WRITER_H 00022 00023 // Abiword includes 00024 #include <ie_exp_HTML_DocumentWriter.h> 00025 #define EPUB3_CONTENT_PROFILE "http://www.idpf.org/epub/30/profile/content/" 00026 00027 class IE_Exp_EPUB_EPUB3Writer : public IE_Exp_HTML_DocumentWriter { 00028 public: 00029 IE_Exp_EPUB_EPUB3Writer(IE_Exp_HTML_OutputWriter* pOutputWriter); 00030 void openAnnotation(); 00031 void closeAnnotation(); 00032 00033 void openDocument(); 00034 void insertDTD(); 00035 void insertTOC(const gchar *title, const std::vector<UT_UTF8String> &items, 00036 const std::vector<UT_UTF8String> &itemUriList); 00037 void insertEndnotes(const std::vector<UT_UTF8String> &endnotes); 00038 void insertFootnotes(const std::vector<UT_UTF8String> &footnotes); 00039 void insertAnnotations(const std::vector<UT_UTF8String> &titles, 00040 const std::vector<UT_UTF8String> &authors, 00041 const std::vector<UT_UTF8String> &annotations); 00042 }; 00043 00044 class IE_Exp_EPUB_EPUB3WriterFactory : public IE_Exp_HTML_WriterFactory 00045 { 00046 public: 00047 IE_Exp_HTML_DocumentWriter *constructDocumentWriter( 00048 IE_Exp_HTML_OutputWriter* pOutputWriter); 00049 }; 00050 00051 #endif /* IE_EXP_EPUB_EPUB3WRITER_H */ 00052