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: */
49