- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

PAGCollector.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 libetonyek 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 PAGCOLLECTOR_H_INCLUDED
11 #define PAGCOLLECTOR_H_INCLUDED
12
13 #include <librevenge/librevenge.h>
14
15 namespace libetonyek
16 {
17
18 class PAGCollector
19 {
20 public:
21 explicit PAGCollector(librevenge::RVNGTextInterface *document);
22
23 // collector functions
24 void collectText(const char *text);
25 void collectLineBreak();
26 void collectTab();
27
28 // helper functions
29 void startDocument();
30 void endDocument();
31
32 void startParagraph();
33 void endParagraph();
34 void startSpan();
35 void endSpan();
36
37 private:
38 void ensureSpan();
39
40 private:
41 librevenge::RVNGTextInterface *m_document;
42
43 bool m_spanOpened;
44 };
45
46 } // namespace libetonyek
47
48 #endif // PAGCOLLECTOR_H_INCLUDED
49
50 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek::PAGCollector::m_document
librevenge::RVNGTextInterface * m_document
Definition: PAGCollector.h:41
libetonyek::PAGCollector
Definition: PAGCollector.h:18
libetonyek::PAGCollector::PAGCollector
PAGCollector(librevenge::RVNGTextInterface *document)
Definition: PAGCollector.cpp:17
libetonyek::PAGCollector::collectText
void collectText(const char *text)
Definition: PAGCollector.cpp:23
libetonyek::KEY2Token::text
Definition: KEY2Token.h:854
libetonyek::PAGCollector::startParagraph
void startParagraph()
Definition: PAGCollector.cpp:51
libetonyek::PAGCollector::collectTab
void collectTab()
Definition: PAGCollector.cpp:35
libetonyek::PAGCollector::startSpan
void startSpan()
Definition: PAGCollector.cpp:64
libetonyek::PAGCollector::startDocument
void startDocument()
Definition: PAGCollector.cpp:41
libetonyek::PAGCollector::ensureSpan
void ensureSpan()
Definition: PAGCollector.cpp:79
libetonyek::PAGCollector::endDocument
void endDocument()
Definition: PAGCollector.cpp:46
libetonyek::PAGCollector::m_spanOpened
bool m_spanOpened
Definition: PAGCollector.h:43
libetonyek::PAGCollector::collectLineBreak
void collectLineBreak()
Definition: PAGCollector.cpp:29
libetonyek::PAGCollector::endSpan
void endSpan()
Definition: PAGCollector.cpp:73
libetonyek::PAGToken::document
Definition: PAGToken.h:111
libetonyek::PAGCollector::endParagraph
void endParagraph()
Definition: PAGCollector.cpp:56