/* AbiSource
 * 
 * Copyright (C) 2011 Volodymyr Rudyj <vladimir.rudoy@gmail.com>
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
 * 02111-1307, USA.
 */
#ifndef IE_EXP_EPUB_EPUB3WRITER_H
#define	IE_EXP_EPUB_EPUB3WRITER_H

// Abiword includes
#include <ie_exp_HTML_DocumentWriter.h>
#define EPUB3_CONTENT_PROFILE "http://www.idpf.org/epub/30/profile/content/"

class IE_Exp_EPUB_EPUB3Writer : public IE_Exp_HTML_DocumentWriter {
public:
    IE_Exp_EPUB_EPUB3Writer(IE_Exp_HTML_OutputWriter* pOutputWriter);
    void openAnnotation();
    void closeAnnotation();

    void openDocument();
    void insertDTD();
    void insertTOC(const gchar *title, const std::vector<UT_UTF8String> &items,
            const std::vector<UT_UTF8String> &itemUriList);
    void insertEndnotes(const std::vector<UT_UTF8String> &endnotes);
    void insertFootnotes(const std::vector<UT_UTF8String> &footnotes);
    void insertAnnotations(const std::vector<UT_UTF8String> &titles,
            const std::vector<UT_UTF8String> &authors,
            const std::vector<UT_UTF8String> &annotations);
};

class IE_Exp_EPUB_EPUB3WriterFactory : public IE_Exp_HTML_WriterFactory
{
public:
    IE_Exp_HTML_DocumentWriter *constructDocumentWriter(
        IE_Exp_HTML_OutputWriter* pOutputWriter);
};

#endif	/* IE_EXP_EPUB_EPUB3WRITER_H */

