/*************************************************************************** * Copyright (C) 2008 by Ely Levy * * * * 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. * ***************************************************************************/ #ifndef EPUB_CONVERTER_H #define EPUB_CONVERTER_H #include #include #include "epubdocument.h" #include namespace Epub { class Converter : public Okular::TextDocumentConverter { public: Converter(); ~Converter(); virtual QTextDocument *convert( const QString &fileName ); private: void _emitData(Okular::DocumentInfo::Key key, enum epub_metadata type); void _handle_anchors(const QTextBlock &start, const QString &name); void _insert_local_links(const QString &key, const QPair &value); EpubDocument *mTextDocument; QHash mSectionMap; QHash > > mLocalLinks; }; } #endif