WPGTextDataHandler.h Source File documentation

WPGTextDataHandler.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2/* libwpg
3 * Version: MPL 2.0 / LGPLv2.1+
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 * Major Contributor(s):
10 * Copyright (C) 2006 Ariya Hidayat (ariya@kde.org)
11 * Copyright (C) 2004 Marc Oude Kotte (marc@solcon.nl)
12 * Copyright (C) 2005 Fridrich Strba (fridrich.strba@bluewin.ch)
13 *
14 * For minor contributions see the git repository.
15 *
16 * Alternatively, the contents of this file may be used under the terms
17 * of the GNU Lesser General Public License Version 2.1 or later
18 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
19 * applicable instead of those above.
20 *
21 * For further information visit http://libwpg.sourceforge.net
22 */
23
24/* "This product is not manufactured, approved, or supported by
25 * Corel Corporation or Corel Corporation Limited."
26 */
27
28#ifndef __WPGXTEXTDATAHANDLER_H__
29#define __WPGXTEXTDATAHANDLER_H__
30
31#include <librevenge/librevenge.h>
32
33 class WPGTextDataHandler : public librevenge::RVNGTextInterface
34{
35public:
36 WPGTextDataHandler(librevenge::RVNGDrawingInterface *painter) :
37 m_painter(painter),
38 m_fontName("Times New Roman"),
39 m_paragraphStyle(),
40 m_textStyle() {}
41
42 ~WPGTextDataHandler() override {}
43 void setDocumentMetaData(const librevenge::RVNGPropertyList & /* propList */) override {}
44
45 void startDocument(const librevenge::RVNGPropertyList & /* propList */) override {}
46 void endDocument() override {}
47
48 void defineEmbeddedFont(const librevenge::RVNGPropertyList & /* propList */) override {}
49
50 void definePageStyle(const librevenge::RVNGPropertyList & /* propList */) override {}
51 void openPageSpan(const librevenge::RVNGPropertyList & /* propList */) override {}
52 void closePageSpan() override {}
53 void openHeader(const librevenge::RVNGPropertyList & /* propList */) override {}
54 void closeHeader() override {}
55 void openFooter(const librevenge::RVNGPropertyList & /* propList */) override {}
56 void closeFooter() override {}
57
58 void defineParagraphStyle(const librevenge::RVNGPropertyList & /* propList */) override {}
59 void openParagraph(const librevenge::RVNGPropertyList &propList) override;
60 void closeParagraph() override;
61
62 void defineCharacterStyle(const librevenge::RVNGPropertyList & /* propList */) override {}
63 void openSpan(const librevenge::RVNGPropertyList &propList) override;
64 void closeSpan() override;
65
66 void openLink(const librevenge::RVNGPropertyList & /* propList */) override {}
67 void closeLink() override {}
68
69 void defineSectionStyle(const librevenge::RVNGPropertyList & /* propList */) override {}
70 void openSection(const librevenge::RVNGPropertyList & /* propList */) override {}
71 void closeSection() override {}
72
73 void insertTab() override;
74 void insertSpace() override;
75 void insertText(const librevenge::RVNGString &text) override;
76 void insertLineBreak() override;
77 void insertField(const librevenge::RVNGPropertyList & /* propList */) override {}
78
79 void openOrderedListLevel(const librevenge::RVNGPropertyList & /* propList */) override {}
80 void openUnorderedListLevel(const librevenge::RVNGPropertyList & /* propList */) override {}
81 void closeOrderedListLevel() override {}
82 void closeUnorderedListLevel() override {}
83 void openListElement(const librevenge::RVNGPropertyList &propList) override;
84 void closeListElement() override;
85
86 void openFootnote(const librevenge::RVNGPropertyList & /* propList */) override {}
87 void closeFootnote() override {}
88 void openEndnote(const librevenge::RVNGPropertyList & /* propList */) override {}
89 void closeEndnote() override {}
90 void openComment(const librevenge::RVNGPropertyList & /* propList */) override {}
91 void closeComment() override {}
92 void openTextBox(const librevenge::RVNGPropertyList & /* propList */) override {}
93 void closeTextBox() override {}
94
95 void openTable(const librevenge::RVNGPropertyList & /* propList */) override {}
96 void openTableRow(const librevenge::RVNGPropertyList & /* propList */) override {}
97 void closeTableRow() override {}
98 void openTableCell(const librevenge::RVNGPropertyList & /* propList */) override {}
99 void closeTableCell() override {}
100 void insertCoveredTableCell(const librevenge::RVNGPropertyList & /* propList */) override {}
101 void closeTable() override {}
102
103 void openFrame(const librevenge::RVNGPropertyList & /* propList */) override {}
104 void closeFrame() override {}
105
106 void openGroup(const librevenge::RVNGPropertyList & /* propList */) override {}
107 void closeGroup() override {}
108
109 void defineGraphicStyle(const librevenge::RVNGPropertyList & /* propList */) override {}
110 void drawRectangle(const librevenge::RVNGPropertyList & /* propList */) override {}
111 void drawEllipse(const librevenge::RVNGPropertyList & /* propList */) override {}
112 void drawPolygon(const librevenge::RVNGPropertyList & /* propList */) override {}
113 void drawPolyline(const librevenge::RVNGPropertyList & /* propList */) override {}
114 void drawPath(const librevenge::RVNGPropertyList & /* propList */) override {}
115 void drawConnector(const librevenge::RVNGPropertyList & /* propList */) override {}
116
117 void insertBinaryObject(const librevenge::RVNGPropertyList & /* propList */) override {}
118 void insertEquation(const librevenge::RVNGPropertyList & /* propList */) override {}
119
120private:
121 librevenge::RVNGDrawingInterface *m_painter;
122 librevenge::RVNGString m_fontName;
123 librevenge::RVNGPropertyList m_paragraphStyle, m_textStyle;
124 // Unimplemented to prevent compiler from creating crasher ones
125 WPGTextDataHandler(const WPGTextDataHandler &);
126 WPGTextDataHandler &operator=(const WPGTextDataHandler &);
127};
128
129#endif // __WPGXTEXTDATAHANDLER_H__
130
131/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
WPGTextDataHandler::defineSectionStyle
void defineSectionStyle(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:69
WPGTextDataHandler::drawConnector
void drawConnector(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:115
WPGTextDataHandler::closeFrame
void closeFrame() override
Definition WPGTextDataHandler.h:104
WPGTextDataHandler::defineEmbeddedFont
void defineEmbeddedFont(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:48
WPGTextDataHandler::openFooter
void openFooter(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:55
WPGTextDataHandler::closeEndnote
void closeEndnote() override
Definition WPGTextDataHandler.h:89
WPGTextDataHandler::insertBinaryObject
void insertBinaryObject(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:117
WPGTextDataHandler::openTableRow
void openTableRow(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:96
WPGTextDataHandler::closeParagraph
void closeParagraph() override
Definition WPGTextDataHandler.cpp:119
WPGTextDataHandler::closeUnorderedListLevel
void closeUnorderedListLevel() override
Definition WPGTextDataHandler.h:82
WPGTextDataHandler::m_textStyle
librevenge::RVNGPropertyList m_textStyle
Definition WPGTextDataHandler.h:123
WPGTextDataHandler::openPageSpan
void openPageSpan(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:51
WPGTextDataHandler::m_painter
librevenge::RVNGDrawingInterface * m_painter
Definition WPGTextDataHandler.h:121
WPGTextDataHandler::closeTableCell
void closeTableCell() override
Definition WPGTextDataHandler.h:99
WPGTextDataHandler::closeSection
void closeSection() override
Definition WPGTextDataHandler.h:71
WPGTextDataHandler::insertSpace
void insertSpace() override
Definition WPGTextDataHandler.cpp:139
WPGTextDataHandler::openTextBox
void openTextBox(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:92
WPGTextDataHandler::closeGroup
void closeGroup() override
Definition WPGTextDataHandler.h:107
WPGTextDataHandler::openSpan
void openSpan(const librevenge::RVNGPropertyList &propList) override
Definition WPGTextDataHandler.cpp:124
WPGTextDataHandler::closeFooter
void closeFooter() override
Definition WPGTextDataHandler.h:56
WPGTextDataHandler::~WPGTextDataHandler
~WPGTextDataHandler() override
Definition WPGTextDataHandler.h:42
WPGTextDataHandler::drawPath
void drawPath(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:114
WPGTextDataHandler::openOrderedListLevel
void openOrderedListLevel(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:79
WPGTextDataHandler::openSection
void openSection(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:70
WPGTextDataHandler::setDocumentMetaData
void setDocumentMetaData(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:43
WPGTextDataHandler::operator=
WPGTextDataHandler & operator=(const WPGTextDataHandler &)
WPGTextDataHandler::defineParagraphStyle
void defineParagraphStyle(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:58
WPGTextDataHandler::closeHeader
void closeHeader() override
Definition WPGTextDataHandler.h:54
WPGTextDataHandler::openComment
void openComment(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:90
WPGTextDataHandler::openFrame
void openFrame(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:103
WPGTextDataHandler::openTable
void openTable(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:95
WPGTextDataHandler::drawPolyline
void drawPolyline(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:113
WPGTextDataHandler::openGroup
void openGroup(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:106
WPGTextDataHandler::defineGraphicStyle
void defineGraphicStyle(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:109
WPGTextDataHandler::closeTable
void closeTable() override
Definition WPGTextDataHandler.h:101
WPGTextDataHandler::closeTableRow
void closeTableRow() override
Definition WPGTextDataHandler.h:97
WPGTextDataHandler::openEndnote
void openEndnote(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:88
WPGTextDataHandler::startDocument
void startDocument(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:45
WPGTextDataHandler::WPGTextDataHandler
WPGTextDataHandler(const WPGTextDataHandler &)
WPGTextDataHandler::insertTab
void insertTab() override
Definition WPGTextDataHandler.cpp:134
WPGTextDataHandler::insertText
void insertText(const librevenge::RVNGString &text) override
Definition WPGTextDataHandler.cpp:144
WPGTextDataHandler::WPGTextDataHandler
WPGTextDataHandler(librevenge::RVNGDrawingInterface *painter)
Definition WPGTextDataHandler.h:36
WPGTextDataHandler::openLink
void openLink(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:66
WPGTextDataHandler::insertCoveredTableCell
void insertCoveredTableCell(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:100
WPGTextDataHandler::openListElement
void openListElement(const librevenge::RVNGPropertyList &propList) override
Definition WPGTextDataHandler.cpp:154
WPGTextDataHandler::closeListElement
void closeListElement() override
Definition WPGTextDataHandler.cpp:159
WPGTextDataHandler::openFootnote
void openFootnote(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:86
WPGTextDataHandler::drawPolygon
void drawPolygon(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:112
WPGTextDataHandler::definePageStyle
void definePageStyle(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:50
WPGTextDataHandler::insertEquation
void insertEquation(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:118
WPGTextDataHandler::m_fontName
librevenge::RVNGString m_fontName
Definition WPGTextDataHandler.h:122
WPGTextDataHandler::closeLink
void closeLink() override
Definition WPGTextDataHandler.h:67
WPGTextDataHandler::drawEllipse
void drawEllipse(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:111
WPGTextDataHandler::openHeader
void openHeader(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:53
WPGTextDataHandler::closeFootnote
void closeFootnote() override
Definition WPGTextDataHandler.h:87
WPGTextDataHandler::openTableCell
void openTableCell(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:98
WPGTextDataHandler::closePageSpan
void closePageSpan() override
Definition WPGTextDataHandler.h:52
WPGTextDataHandler::insertField
void insertField(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:77
WPGTextDataHandler::closeSpan
void closeSpan() override
Definition WPGTextDataHandler.cpp:129
WPGTextDataHandler::endDocument
void endDocument() override
Definition WPGTextDataHandler.h:46
WPGTextDataHandler::insertLineBreak
void insertLineBreak() override
Definition WPGTextDataHandler.cpp:149
WPGTextDataHandler::closeOrderedListLevel
void closeOrderedListLevel() override
Definition WPGTextDataHandler.h:81
WPGTextDataHandler::defineCharacterStyle
void defineCharacterStyle(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:62
WPGTextDataHandler::closeComment
void closeComment() override
Definition WPGTextDataHandler.h:91
WPGTextDataHandler::closeTextBox
void closeTextBox() override
Definition WPGTextDataHandler.h:93
WPGTextDataHandler::openParagraph
void openParagraph(const librevenge::RVNGPropertyList &propList) override
Definition WPGTextDataHandler.cpp:114
WPGTextDataHandler::openUnorderedListLevel
void openUnorderedListLevel(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:80
WPGTextDataHandler::m_paragraphStyle
librevenge::RVNGPropertyList m_paragraphStyle
Definition WPGTextDataHandler.h:123
WPGTextDataHandler::drawRectangle
void drawRectangle(const librevenge::RVNGPropertyList &) override
Definition WPGTextDataHandler.h:110