SoftBookCollector.h Source File documentation

SoftBookCollector.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 SOFTBOOKCOLLECTOR_H_INCLUDED
11#define SOFTBOOKCOLLECTOR_H_INCLUDED
12
13#include <string>
14
15#include <librevenge/librevenge.h>
16
17#include "SoftBookTypes.h"
18
19namespace libebook
20{
21
22 class SoftBookCollector
23{
24public:
25 explicit SoftBookCollector(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
43private:
44 librevenge::RVNGTextInterface *const m_document;
45};
46
47}
48
49#endif // SOFTBOOKCOLLECTOR_H_INCLUDED
50
51/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
SoftBookTypes.h
libebook::SoftBookCollector::openPageFooter
void openPageFooter()
Definition SoftBookCollector.cpp:94
libebook::SoftBookCollector::closePageHeader
void closePageHeader()
Definition SoftBookCollector.cpp:87
libebook::SoftBookCollector::closeTable
void closeTable()
Definition SoftBookCollector.cpp:65
libebook::SoftBookCollector::m_document
librevenge::RVNGTextInterface *const m_document
Definition SoftBookCollector.h:44
libebook::SoftBookCollector::SoftBookCollector
SoftBookCollector(librevenge::RVNGTextInterface *document)
Definition SoftBookCollector.cpp:15
libebook::SoftBookCollector::collectTableCell
void collectTableCell()
Definition SoftBookCollector.cpp:72
libebook::SoftBookCollector::openTable
void openTable()
Definition SoftBookCollector.cpp:58
libebook::SoftBookCollector::closeParagraph
void closeParagraph()
Definition SoftBookCollector.cpp:27
libebook::SoftBookCollector::collectImage
void collectImage()
Definition SoftBookCollector.cpp:50
libebook::SoftBookCollector::closePageFooter
void closePageFooter()
Definition SoftBookCollector.cpp:101
libebook::SoftBookCollector::collectText
void collectText(const std::string &text)
Definition SoftBookCollector.cpp:34
libebook::SoftBookCollector::openParagraph
void openParagraph()
Definition SoftBookCollector.cpp:20
libebook::SoftBookCollector::openPageHeader
void openPageHeader()
Definition SoftBookCollector.cpp:80
libebook::SoftBookCollector::collectLineBreak
void collectLineBreak()
Definition SoftBookCollector.cpp:42
libebook::EBOOKHTMLToken::text
@ text
Definition EBOOKHTMLToken.h:257
libebook
Definition BBeBCollector.cpp:20