- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

EPUBTextSink.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 libepubgen 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 INCLUDED_EPUBTEXTSINK_H
11 #define INCLUDED_EPUBTEXTSINK_H
12
13 #include <vector>
14
15 #include <librevenge/librevenge.h>
16
17 #include <libepubgen/libepubgen.h>
18
19 namespace libepubgen
20 {
21
22 class EPUBTextSink
23 {
24 public:
25 EPUBTextSink();
26
27 void insertText(const librevenge::RVNGString &text);
28
29 void insertLineBreak();
30
31 void writeTo(EPUBPackage &package, const char *name);
32
33 private:
34 std::vector<librevenge::RVNGString> m_lines;
35 };
36
37 }
38
39 #endif // INCLUDED_EPUBTEXTSINK_H
40
41 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libepubgen
Definition: EPUBBinarySink.cpp:12
libepubgen::EPUBTextSink::EPUBTextSink
EPUBTextSink()
Definition: EPUBTextSink.cpp:15
libepubgen::EPUBTextSink::insertLineBreak
void insertLineBreak()
Definition: EPUBTextSink.cpp:25
libepubgen::EPUBTextSink::m_lines
std::vector< librevenge::RVNGString > m_lines
Definition: EPUBTextSink.h:34
libepubgen::EPUBTextSink::insertText
void insertText(const librevenge::RVNGString &text)
Definition: EPUBTextSink.cpp:20
libepubgen::EPUBTextSink
Definition: EPUBTextSink.h:22
libepubgen::EPUBTextSink::writeTo
void writeTo(EPUBPackage &package, const char *name)
Definition: EPUBTextSink.cpp:30