IMPCollector.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /* libe-book
00003  * Version: MPL 2.0 / LGPLv2.1+
00004  *
00005  * This Source Code Form is subject to the terms of the Mozilla Public
00006  * License, v. 2.0. If a copy of the MPL was not distributed with this
00007  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
00008  *
00009  * Alternatively, the contents of this file may be used under the terms
00010  * of the GNU Lesser General Public License Version 2.1 or later
00011  * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
00012  * applicable instead of those above.
00013  *
00014  * For further information visit http://libebook.sourceforge.net
00015  */
00016 
00017 #ifndef IMPCOLLECTOR_H_INCLUDED
00018 #define IMPCOLLECTOR_H_INCLUDED
00019 
00020 #include <string>
00021 
00022 #include "IMPTypes.h"
00023 
00024 class WPXDocumentInterface;
00025 
00026 namespace libebook
00027 {
00028 
00029 class IMPCollector
00030 {
00031 public:
00032   explicit IMPCollector(WPXDocumentInterface *document);
00033 
00034   void openParagraph();
00035   void closeParagraph();
00036   void collectText(const std::string &text);
00037   void collectLineBreak();
00038 
00039   void collectImage();
00040 
00041   void openTable();
00042   void closeTable();
00043   void collectTableCell();
00044 
00045   void openPageHeader();
00046   void closePageHeader();
00047   void openPageFooter();
00048   void closePageFooter();
00049 
00050 private:
00051   WPXDocumentInterface *const m_document;
00052 };
00053 
00054 }
00055 
00056 #endif // IMPCOLLECTOR_H_INCLUDED
00057 
00058 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */