WPGTextDataHandler.h
Go to the documentation of this file.
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* libwpg
* Version: MPL 2.0 / LGPLv2.1+
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Major Contributor(s):
* Copyright (C) 2006 Ariya Hidayat (ariya@kde.org)
* Copyright (C) 2004 Marc Oude Kotte (marc@solcon.nl)
* Copyright (C) 2005 Fridrich Strba (fridrich.strba@bluewin.ch)
*
* For minor contributions see the git repository.
*
* Alternatively, the contents of this file may be used under the terms
* of the GNU Lesser General Public License Version 2.1 or later
* (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
* applicable instead of those above.
*
* For further information visit http://libwpg.sourceforge.net
*/
/* "This product is not manufactured, approved, or supported by
* Corel Corporation or Corel Corporation Limited."
*/
#ifndef __WPGXTEXTDATAHANDLER_H__
#define __WPGXTEXTDATAHANDLER_H__
#include <librevenge/librevenge.h>
class WPGTextDataHandler : public librevenge::RVNGTextInterface
{
public:
WPGTextDataHandler(librevenge::RVNGDrawingInterface *painter) :
m_painter(painter),
m_fontName("Times New Roman"),
m_paragraphStyle(),
m_textStyle() {}
~WPGTextDataHandler() override {}
void setDocumentMetaData(const librevenge::RVNGPropertyList & /* propList */) override {}
void startDocument(const librevenge::RVNGPropertyList & /* propList */) override {}
void endDocument() override {}
void defineEmbeddedFont(const librevenge::RVNGPropertyList & /* propList */) override {}
void definePageStyle(const librevenge::RVNGPropertyList & /* propList */) override {}
void openPageSpan(const librevenge::RVNGPropertyList & /* propList */) override {}
void closePageSpan() override {}
void openHeader(const librevenge::RVNGPropertyList & /* propList */) override {}
void closeHeader() override {}
void openFooter(const librevenge::RVNGPropertyList & /* propList */) override {}
void closeFooter() override {}
void defineParagraphStyle(const librevenge::RVNGPropertyList & /* propList */) override {}
void openParagraph(const librevenge::RVNGPropertyList &propList) override;
void closeParagraph() override;
void defineCharacterStyle(const librevenge::RVNGPropertyList & /* propList */) override {}
void openSpan(const librevenge::RVNGPropertyList &propList) override;
void closeSpan() override;
void openLink(const librevenge::RVNGPropertyList & /* propList */) override {}
void closeLink() override {}
void defineSectionStyle(const librevenge::RVNGPropertyList & /* propList */) override {}
void openSection(const librevenge::RVNGPropertyList & /* propList */) override {}
void closeSection() override {}
void insertTab() override;
void insertSpace() override;
void insertText(const librevenge::RVNGString &text) override;
void insertLineBreak() override;
void insertField(const librevenge::RVNGPropertyList & /* propList */) override {}
void openOrderedListLevel(const librevenge::RVNGPropertyList & /* propList */) override {}
void openUnorderedListLevel(const librevenge::RVNGPropertyList & /* propList */) override {}
void closeOrderedListLevel() override {}
void closeUnorderedListLevel() override {}
void openListElement(const librevenge::RVNGPropertyList &propList) override;
void closeListElement() override;
void openFootnote(const librevenge::RVNGPropertyList & /* propList */) override {}
void closeFootnote() override {}
void openEndnote(const librevenge::RVNGPropertyList & /* propList */) override {}
void closeEndnote() override {}
void openComment(const librevenge::RVNGPropertyList & /* propList */) override {}
void closeComment() override {}
void openTextBox(const librevenge::RVNGPropertyList & /* propList */) override {}
void closeTextBox() override {}
void openTable(const librevenge::RVNGPropertyList & /* propList */) override {}
void openTableRow(const librevenge::RVNGPropertyList & /* propList */) override {}
void closeTableRow() override {}
void openTableCell(const librevenge::RVNGPropertyList & /* propList */) override {}
void closeTableCell() override {}
void insertCoveredTableCell(const librevenge::RVNGPropertyList & /* propList */) override {}
void closeTable() override {}
void openFrame(const librevenge::RVNGPropertyList & /* propList */) override {}
void closeFrame() override {}
void openGroup(const librevenge::RVNGPropertyList & /* propList */) override {}
void closeGroup() override {}
void defineGraphicStyle(const librevenge::RVNGPropertyList & /* propList */) override {}
void drawRectangle(const librevenge::RVNGPropertyList & /* propList */) override {}
void drawEllipse(const librevenge::RVNGPropertyList & /* propList */) override {}
void drawPolygon(const librevenge::RVNGPropertyList & /* propList */) override {}
void drawPolyline(const librevenge::RVNGPropertyList & /* propList */) override {}
void drawPath(const librevenge::RVNGPropertyList & /* propList */) override {}
void drawConnector(const librevenge::RVNGPropertyList & /* propList */) override {}
void insertBinaryObject(const librevenge::RVNGPropertyList & /* propList */) override {}
void insertEquation(const librevenge::RVNGPropertyList & /* propList */) override {}
private:
librevenge::RVNGDrawingInterface *m_painter;
librevenge::RVNGString m_fontName;
librevenge::RVNGPropertyList m_paragraphStyle, m_textStyle;
// Unimplemented to prevent compiler from creating crasher ones
WPGTextDataHandler(const WPGTextDataHandler &);
WPGTextDataHandler &operator=(const WPGTextDataHandler &);
};
#endif // __WPGXTEXTDATAHANDLER_H__
/* 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