SoftBookText.h Source File documentation

SoftBookText.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 SOFTBOOKTEXT_H_INCLUDED
11 #define SOFTBOOKTEXT_H_INCLUDED
12
13 #include <string>
14
15
16 namespace libebook
17 {
18
19 class SoftBookCollector;
20
21 class SoftBookText
22 {
23 // -Weffc++
24 SoftBookText(const SoftBookText &);
25 SoftBookText &operator=(const SoftBookText &);
26
27 public:
28 SoftBookText(librevenge::RVNGInputStream *input, SoftBookCollector *collector);
29
30 bool parse();
31
32 private:
33 void flushText();
34
35 private:
36 librevenge::RVNGInputStream *const m_input;
37 SoftBookCollector *const m_collector;
38
39 std::string m_text;
40 bool m_openHeader;
41 bool m_openFooter;
42 };
43
44 }
45
46 #endif // SOFTBOOKTEXT_H_INCLUDED
47
48 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libebook::SoftBookText
Definition: SoftBookText.h:21
m_collector
FictionBook2ExtrasCollector m_collector
Definition: FictionBook2Parser.cpp:101
libebook::SoftBookCollector::collectImage
void collectImage()
Definition: SoftBookCollector.cpp:50
libebook::SoftBookText::m_text
std::string m_text
Definition: SoftBookText.h:39
libebook::SoftBookCollector::openParagraph
void openParagraph()
Definition: SoftBookCollector.cpp:20
libebook::SoftBookText::flushText
void flushText()
Definition: SoftBookText.cpp:132
libebook::SoftBookCollector::openTable
void openTable()
Definition: SoftBookCollector.cpp:58
libebook::SoftBookText::m_openFooter
bool m_openFooter
Definition: SoftBookText.h:41
libebook::SoftBookCollector::openPageFooter
void openPageFooter()
Definition: SoftBookCollector.cpp:94
libebook
Definition: BBeBCollector.cpp:18
SoftBookCollector.h
libebook_utils.h
m_input
librevenge::RVNGInputStream * m_input
Definition: PeanutPressParser.cpp:262
libebook::SoftBookCollector::collectText
void collectText(const std::string &text)
Definition: SoftBookCollector.cpp:34
libebook::SoftBookCollector::collectTableCell
void collectTableCell()
Definition: SoftBookCollector.cpp:72
libebook::SoftBookCollector::collectLineBreak
void collectLineBreak()
Definition: SoftBookCollector.cpp:42
libebook::SoftBookCollector
Definition: SoftBookCollector.h:22
libebook::SoftBookCollector::closePageHeader
void closePageHeader()
Definition: SoftBookCollector.cpp:87
SoftBookText.h
m_text
librevenge::RVNGString m_text
Definition: EBOOKOutputElements.cpp:322
libebook::SoftBookCollector::closePageFooter
void closePageFooter()
Definition: SoftBookCollector.cpp:101
libebook::EBOOKHTMLToken::input
Definition: EBOOKHTMLToken.h:89
libebook::SoftBookText::operator=
SoftBookText & operator=(const SoftBookText &)
libebook::SoftBookCollector::openPageHeader
void openPageHeader()
Definition: SoftBookCollector.cpp:80
libebook::readU8
uint8_t readU8(librevenge::RVNGInputStream *input, bool)
Definition: libebook_utils.cpp:45
libebook::SoftBookText::SoftBookText
SoftBookText(const SoftBookText &)
libebook::SoftBookText::m_openHeader
bool m_openHeader
Definition: SoftBookText.h:40
libebook::SoftBookText::m_input
librevenge::RVNGInputStream *const m_input
Definition: SoftBookText.h:36
libebook::SoftBookText::m_collector
SoftBookCollector *const m_collector
Definition: SoftBookText.h:37
libebook::SoftBookText::parse
bool parse()
Definition: SoftBookText.cpp:55
libebook::SoftBookCollector::closeParagraph
void closeParagraph()
Definition: SoftBookCollector.cpp:27