IMPCollector.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* libe-book
3  * Version: MPL 2.0 / LGPLv2.1+
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * Alternatively, the contents of this file may be used under the terms
10  * of the GNU Lesser General Public License Version 2.1 or later
11  * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
12  * applicable instead of those above.
13  *
14  * For further information visit http://libebook.sourceforge.net
15  */
16 
17 #ifndef IMPCOLLECTOR_H_INCLUDED
18 #define IMPCOLLECTOR_H_INCLUDED
19 
20 #include <string>
21 
22 #include "IMPTypes.h"
23 
24 class WPXDocumentInterface;
25 
26 namespace libebook
27 {
28 
30 {
31 public:
32  explicit IMPCollector(WPXDocumentInterface *document);
33 
34  void openParagraph();
35  void closeParagraph();
36  void collectText(const std::string &text);
37  void collectLineBreak();
38 
39  void collectImage();
40 
41  void openTable();
42  void closeTable();
43  void collectTableCell();
44 
45  void openPageHeader();
46  void closePageHeader();
47  void openPageFooter();
48  void closePageFooter();
49 
50 private:
51  WPXDocumentInterface *const m_document;
52 };
53 
54 }
55 
56 #endif // IMPCOLLECTOR_H_INCLUDED
57 
58 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
void openPageHeader()
Definition: IMPCollector.cpp:71
void collectImage()
Definition: IMPCollector.cpp:49
void collectText(const std::string &text)
Definition: IMPCollector.cpp:37
void closeTable()
Definition: IMPCollector.cpp:60
void closeParagraph()
Definition: IMPCollector.cpp:32
void openPageFooter()
Definition: IMPCollector.cpp:81
void openParagraph()
Definition: IMPCollector.cpp:27
void collectTableCell()
Definition: IMPCollector.cpp:65
void openTable()
Definition: IMPCollector.cpp:55
Definition: IMPCollector.h:29
void closePageHeader()
Definition: IMPCollector.cpp:76
void closePageFooter()
Definition: IMPCollector.cpp:86
IMPCollector(WPXDocumentInterface *document)
Definition: IMPCollector.cpp:22
WPXDocumentInterface *const m_document
Definition: IMPCollector.h:51
void collectLineBreak()
Definition: IMPCollector.cpp:43

Generated for libe-book by doxygen 1.8.5