IMPCollector.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * This file is part of the libe-book project.
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
10 #ifndef IMPCOLLECTOR_H_INCLUDED
11 #define IMPCOLLECTOR_H_INCLUDED
12
13 #include <string>
14
15 #include <librevenge/librevenge.h>
16
17 #include "IMPTypes.h"
18
19 namespace libebook
20 {
21
22 class IMPCollector
23 {
24 public:
25 explicit IMPCollector(librevenge::RVNGTextInterface *document);
26
27 void openParagraph();
28 void closeParagraph();
29 void collectText(const std::string &text);
30 void collectLineBreak();
31
32 void collectImage();
33
34 void openTable();
35 void closeTable();
36 void collectTableCell();
37
38 void openPageHeader();
39 void closePageHeader();
40 void openPageFooter();
41 void closePageFooter();
42
43 private:
44 librevenge::RVNGTextInterface *const m_document;
45 };
46
47 }
48
49 #endif // IMPCOLLECTOR_H_INCLUDED
50
51 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libebook::IMPCollector::IMPCollector
IMPCollector(librevenge::RVNGTextInterface *document)
Definition: IMPCollector.cpp:15
libebook::IMPCollector::m_document
librevenge::RVNGTextInterface *const m_document
Definition: IMPCollector.h:44
libebook::IMPCollector::openPageHeader
void openPageHeader()
Definition: IMPCollector.cpp:80
libebook::IMPCollector::collectImage
void collectImage()
Definition: IMPCollector.cpp:50
libebook::IMPCollector::collectText
void collectText(const std::string &text)
Definition: IMPCollector.cpp:34
libebook::EBOOKHTMLToken::text
Definition: EBOOKHTMLToken.h:259
libebook::IMPCollector::closeTable
void closeTable()
Definition: IMPCollector.cpp:65
IMPTypes.h
libebook::IMPCollector::closeParagraph
void closeParagraph()
Definition: IMPCollector.cpp:27
libebook::IMPCollector::openPageFooter
void openPageFooter()
Definition: IMPCollector.cpp:94
libebook::IMPCollector::openParagraph
void openParagraph()
Definition: IMPCollector.cpp:20
libebook::IMPCollector::collectTableCell
void collectTableCell()
Definition: IMPCollector.cpp:72
libebook::IMPCollector::openTable
void openTable()
Definition: IMPCollector.cpp:58
libebook::IMPCollector
Definition: IMPCollector.h:22
document
XMLTreeNodePtr_t document
Definition: EBOOKHTMLParser.cpp:169
libebook::IMPCollector::closePageHeader
void closePageHeader()
Definition: IMPCollector.cpp:87
libebook
Definition: CHMParser.cpp:20
libebook::IMPCollector::closePageFooter
void closePageFooter()
Definition: IMPCollector.cpp:101
libebook::IMPCollector::collectLineBreak
void collectLineBreak()
Definition: IMPCollector.cpp:42