IMPText.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 IMPTEXT_H_INCLUDED
11 #define IMPTEXT_H_INCLUDED
12
13 #include <string>
14
15
16 namespace libebook
17 {
18
19 class IMPCollector;
20
21 class IMPText
22 {
23 // -Weffc++
24 IMPText(const IMPText &);
25 IMPText &operator=(const IMPText &);
26
27 public:
28 IMPText(librevenge::RVNGInputStream *input, IMPCollector *collector);
29
30 bool parse();
31
32 private:
33 void flushText();
34
35 private:
36 librevenge::RVNGInputStream *const m_input;
37 IMPCollector *const m_collector;
38
39 std::string m_text;
40 bool m_openHeader;
41 bool m_openFooter;
42 };
43
44 }
45
46 #endif // IMPTEXT_H_INCLUDED
47
48 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libebook::IMPText::IMPText
IMPText(const IMPText &)
libebook::IMPText::parse
bool parse()
Definition: IMPText.cpp:53
libebook::IMPText
Definition: IMPText.h:21
libebook::IMPText::operator=
IMPText & operator=(const IMPText &)
libebook::IMPText::m_openHeader
bool m_openHeader
Definition: IMPText.h:40
libebook::IMPText::m_collector
IMPCollector *const m_collector
Definition: IMPText.h:37
libebook::IMPText::flushText
void flushText()
Definition: IMPText.cpp:130
libebook::IMPCollector
Definition: IMPCollector.h:22
libebook::IMPText::m_openFooter
bool m_openFooter
Definition: IMPText.h:41
libebook::EBOOKHTMLToken::input
Definition: EBOOKHTMLToken.h:91
libebook::IMPText::m_text
std::string m_text
Definition: IMPText.h:39
libebook
Definition: CHMParser.cpp:20
libebook::IMPText::m_input
librevenge::RVNGInputStream *const m_input
Definition: IMPText.h:36