RVNGRawDrawingGenerator.h Source File documentation

RVNGRawDrawingGenerator.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2/* librevenge
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) 2005 Fridrich Strba (fridrich.strba@bluewin.ch)
12 * Copyright (C) 2004 Marc Oude Kotte (marc@solcon.nl)
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
22#ifndef RVNGRAWDRAWINGGENERATOR_H
23#define RVNGRAWDRAWINGGENERATOR_H
24
25#include "librevenge-generators-api.h"
26
27#include <librevenge-stream/librevenge-stream.h>
28#include <librevenge/librevenge.h>
29
30namespace librevenge
31{
32
33struct RVNGRawDrawingGeneratorImpl;
34
35 class REVENGE_GENERATORS_API RVNGRawDrawingGenerator : public RVNGDrawingInterface
36{
37 // disable copying
38 RVNGRawDrawingGenerator(const RVNGRawDrawingGenerator &other);
39 RVNGRawDrawingGenerator &operator=(const RVNGRawDrawingGenerator &other);
40
41public:
42 RVNGRawDrawingGenerator(bool printCallgraphScore);
43
44 ~RVNGRawDrawingGenerator();
45
46 void startDocument(const RVNGPropertyList &propList);
47 void endDocument();
48 void setDocumentMetaData(const RVNGPropertyList &propList);
49 void defineEmbeddedFont(const RVNGPropertyList &propList);
50 void startPage(const RVNGPropertyList &propList);
51 void endPage();
52 void startMasterPage(const RVNGPropertyList &propList);
53 void endMasterPage();
54 void startLayer(const RVNGPropertyList &propList);
55 void endLayer();
56 void startEmbeddedGraphics(const RVNGPropertyList &propList);
57 void endEmbeddedGraphics();
58
59 void openGroup(const RVNGPropertyList &propList);
60 void closeGroup();
61
62 void setStyle(const RVNGPropertyList &propList);
63
64 void drawRectangle(const RVNGPropertyList &propList);
65 void drawEllipse(const RVNGPropertyList &propList);
66 void drawPolyline(const RVNGPropertyList &propList);
67 void drawPolygon(const RVNGPropertyList &propList);
68 void drawPath(const RVNGPropertyList &propList);
69 void drawGraphicObject(const RVNGPropertyList &propList);
70 void drawConnector(const RVNGPropertyList &propList);
71 void startTextObject(const RVNGPropertyList &propList);
72 void endTextObject();
73
74 void startTableObject(const RVNGPropertyList &propList);
75 void openTableRow(const RVNGPropertyList &propList);
76 void closeTableRow();
77 void openTableCell(const RVNGPropertyList &propList);
78 void closeTableCell();
79 void insertCoveredTableCell(const RVNGPropertyList &propList);
80 void endTableObject();
81
82 void openOrderedListLevel(const RVNGPropertyList &propList);
83 void closeOrderedListLevel();
84 void openUnorderedListLevel(const RVNGPropertyList &propList);
85 void closeUnorderedListLevel();
86 void openListElement(const RVNGPropertyList &propList);
87 void closeListElement();
88
89 void defineParagraphStyle(const RVNGPropertyList &propList);
90 void openParagraph(const RVNGPropertyList &propList);
91 void closeParagraph();
92
93 void defineCharacterStyle(const RVNGPropertyList &propList);
94 void openSpan(const RVNGPropertyList &propList);
95 void closeSpan();
96
97 void openLink(const RVNGPropertyList &propList);
98 void closeLink();
99
100 void insertTab();
101 void insertSpace();
102 void insertText(const RVNGString &text);
103 void insertLineBreak();
104 void insertField(const RVNGPropertyList &propList);
105
106private:
107 RVNGRawDrawingGeneratorImpl *m_impl;
108};
109
110} // namespace librevenge
111
112#endif // RVNGRAWDRAWINGGENERATOR_H
113
114/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
librevenge::RVNGDrawingInterface
Definition RVNGDrawingInterface.h:32
librevenge::RVNGPropertyList
Definition RVNGPropertyList.h:39
librevenge::RVNGRawDrawingGenerator::defineEmbeddedFont
void defineEmbeddedFont(const RVNGPropertyList &propList)
Called when an embedded font should be defined.
Definition RVNGRawDrawingGenerator.cpp:73
librevenge::RVNGRawDrawingGenerator::drawPath
void drawPath(const RVNGPropertyList &propList)
Definition RVNGRawDrawingGenerator.cpp:171
librevenge::RVNGRawDrawingGenerator::closeUnorderedListLevel
void closeUnorderedListLevel()
Called when an ununordered list level should be closed.
Definition RVNGRawDrawingGenerator.cpp:220
librevenge::RVNGRawDrawingGenerator::closeOrderedListLevel
void closeOrderedListLevel()
Called when an unordered list level should be closed.
Definition RVNGRawDrawingGenerator.cpp:210
librevenge::RVNGRawDrawingGenerator::openTableRow
void openTableRow(const RVNGPropertyList &propList)
Called when a new table row is opened.
Definition RVNGRawDrawingGenerator.cpp:320
librevenge::RVNGRawDrawingGenerator::openTableCell
void openTableCell(const RVNGPropertyList &propList)
Called when a new table cell is opened.
Definition RVNGRawDrawingGenerator.cpp:331
librevenge::RVNGRawDrawingGenerator::defineParagraphStyle
void defineParagraphStyle(const RVNGPropertyList &propList)
Definition RVNGRawDrawingGenerator.cpp:235
librevenge::RVNGRawDrawingGenerator::endMasterPage
void endMasterPage()
Definition RVNGRawDrawingGenerator.cpp:96
librevenge::RVNGRawDrawingGenerator::drawConnector
void drawConnector(const RVNGPropertyList &propList)
Draw a connector.
Definition RVNGRawDrawingGenerator.cpp:187
librevenge::RVNGRawDrawingGenerator::RVNGRawDrawingGenerator
RVNGRawDrawingGenerator(const RVNGRawDrawingGenerator &other)
librevenge::RVNGRawDrawingGenerator::openLink
void openLink(const RVNGPropertyList &propList)
Called when a link should be opened.
Definition RVNGRawDrawingGenerator.cpp:265
librevenge::RVNGRawDrawingGenerator::openListElement
void openListElement(const RVNGPropertyList &propList)
Called when a list element should be opened.
Definition RVNGRawDrawingGenerator.cpp:225
librevenge::RVNGRawDrawingGenerator::openOrderedListLevel
void openOrderedListLevel(const RVNGPropertyList &propList)
Called when a new ordered list level should be opened.
Definition RVNGRawDrawingGenerator.cpp:205
librevenge::RVNGRawDrawingGenerator::setStyle
void setStyle(const RVNGPropertyList &propList)
Definition RVNGRawDrawingGenerator.cpp:131
librevenge::RVNGRawDrawingGenerator::m_impl
RVNGRawDrawingGeneratorImpl * m_impl
Definition RVNGRawDrawingGenerator.h:107
librevenge::RVNGRawDrawingGenerator::closeTableRow
void closeTableRow()
Called when the current table row is closed.
Definition RVNGRawDrawingGenerator.cpp:326
librevenge::RVNGRawDrawingGenerator::openSpan
void openSpan(const RVNGPropertyList &propList)
Called when a text span is opened.
Definition RVNGRawDrawingGenerator.cpp:255
librevenge::RVNGRawDrawingGenerator::startMasterPage
void startMasterPage(const RVNGPropertyList &propList)
Definition RVNGRawDrawingGenerator.cpp:91
librevenge::RVNGRawDrawingGenerator::startEmbeddedGraphics
void startEmbeddedGraphics(const RVNGPropertyList &propList)
Definition RVNGRawDrawingGenerator.cpp:111
librevenge::RVNGRawDrawingGenerator::closeLink
void closeLink()
Called when the current link is closed.
Definition RVNGRawDrawingGenerator.cpp:270
librevenge::RVNGRawDrawingGenerator::drawPolygon
void drawPolygon(const RVNGPropertyList &propList)
Definition RVNGRawDrawingGenerator.cpp:163
librevenge::RVNGRawDrawingGenerator::closeParagraph
void closeParagraph()
Called when a paragraph is closed.
Definition RVNGRawDrawingGenerator.cpp:245
librevenge::RVNGRawDrawingGenerator::startTableObject
void startTableObject(const RVNGPropertyList &propList)
Called when a table should be opened.
Definition RVNGRawDrawingGenerator.cpp:315
librevenge::RVNGRawDrawingGenerator::closeListElement
void closeListElement()
Called when a list element should be closed.
Definition RVNGRawDrawingGenerator.cpp:230
librevenge::RVNGRawDrawingGenerator::drawGraphicObject
void drawGraphicObject(const RVNGPropertyList &propList)
Called when a binary/raster object should be inserted.
Definition RVNGRawDrawingGenerator.cpp:179
librevenge::RVNGRawDrawingGenerator::setDocumentMetaData
void setDocumentMetaData(const RVNGPropertyList &propList)
Called when all document metadata should be set.
Definition RVNGRawDrawingGenerator.cpp:65
librevenge::RVNGRawDrawingGenerator::closeTableCell
void closeTableCell()
Called when the current table cell is closed.
Definition RVNGRawDrawingGenerator.cpp:337
librevenge::RVNGRawDrawingGenerator::drawPolyline
void drawPolyline(const RVNGPropertyList &propList)
Definition RVNGRawDrawingGenerator.cpp:155
librevenge::RVNGRawDrawingGenerator::endTableObject
void endTableObject()
Called when the current table is closed.
Definition RVNGRawDrawingGenerator.cpp:350
librevenge::RVNGRawDrawingGenerator::insertLineBreak
void insertLineBreak()
Called when a line break should be inserted.
Definition RVNGRawDrawingGenerator.cpp:299
librevenge::RVNGRawDrawingGenerator::openParagraph
void openParagraph(const RVNGPropertyList &propList)
Called when a new paragraph is opened.
Definition RVNGRawDrawingGenerator.cpp:240
librevenge::RVNGRawDrawingGenerator::drawRectangle
void drawRectangle(const RVNGPropertyList &propList)
Definition RVNGRawDrawingGenerator.cpp:139
librevenge::RVNGRawDrawingGenerator::closeGroup
void closeGroup()
Definition RVNGRawDrawingGenerator.cpp:126
librevenge::RVNGRawDrawingGenerator::closeSpan
void closeSpan()
Called when a text span is closed.
Definition RVNGRawDrawingGenerator.cpp:260
librevenge::RVNGRawDrawingGenerator::insertText
void insertText(const RVNGString &text)
Called when a string of text should be inserted.
Definition RVNGRawDrawingGenerator.cpp:291
librevenge::RVNGRawDrawingGenerator::endLayer
void endLayer()
Definition RVNGRawDrawingGenerator.cpp:106
librevenge::RVNGRawDrawingGenerator::openUnorderedListLevel
void openUnorderedListLevel(const RVNGPropertyList &propList)
Called when a new unordered list level should be opened.
Definition RVNGRawDrawingGenerator.cpp:215
librevenge::RVNGRawDrawingGenerator::drawEllipse
void drawEllipse(const RVNGPropertyList &propList)
Definition RVNGRawDrawingGenerator.cpp:147
librevenge::RVNGRawDrawingGenerator::insertSpace
void insertSpace()
Called when an explicit space should be inserted.
Definition RVNGRawDrawingGenerator.cpp:283
librevenge::RVNGRawDrawingGenerator::endEmbeddedGraphics
void endEmbeddedGraphics()
Definition RVNGRawDrawingGenerator.cpp:116
librevenge::RVNGRawDrawingGenerator::insertTab
void insertTab()
Called when a TAB character should be inserted.
Definition RVNGRawDrawingGenerator.cpp:275
librevenge::RVNGRawDrawingGenerator::insertCoveredTableCell
void insertCoveredTableCell(const RVNGPropertyList &propList)
Called when a covered (spanned by another cell in the table) table cell is opened.
Definition RVNGRawDrawingGenerator.cpp:342
librevenge::RVNGRawDrawingGenerator::endTextObject
void endTextObject()
Definition RVNGRawDrawingGenerator.cpp:200
librevenge::RVNGRawDrawingGenerator::startLayer
void startLayer(const RVNGPropertyList &propList)
Definition RVNGRawDrawingGenerator.cpp:101
librevenge::RVNGRawDrawingGenerator::startTextObject
void startTextObject(const RVNGPropertyList &propList)
Definition RVNGRawDrawingGenerator.cpp:195
librevenge::RVNGRawDrawingGenerator::startDocument
void startDocument(const RVNGPropertyList &propList)
Definition RVNGRawDrawingGenerator.cpp:55
librevenge::RVNGRawDrawingGenerator::insertField
void insertField(const RVNGPropertyList &propList)
Called when a field should be inserted.
Definition RVNGRawDrawingGenerator.cpp:307
librevenge::RVNGRawDrawingGenerator::defineCharacterStyle
void defineCharacterStyle(const RVNGPropertyList &propList)
Definition RVNGRawDrawingGenerator.cpp:250
librevenge::RVNGRawDrawingGenerator::endPage
void endPage()
Definition RVNGRawDrawingGenerator.cpp:86
librevenge::RVNGRawDrawingGenerator::operator=
RVNGRawDrawingGenerator & operator=(const RVNGRawDrawingGenerator &other)
librevenge::RVNGRawDrawingGenerator::startPage
void startPage(const RVNGPropertyList &propList)
Definition RVNGRawDrawingGenerator.cpp:81
librevenge::RVNGRawDrawingGenerator::openGroup
void openGroup(const RVNGPropertyList &propList)
Definition RVNGRawDrawingGenerator.cpp:121
librevenge::RVNGRawDrawingGenerator::endDocument
void endDocument()
Definition RVNGRawDrawingGenerator.cpp:60
librevenge::RVNGString
UTF-8 string.
Definition RVNGString.h:34
librevenge-generators-api.h
REVENGE_GENERATORS_API
#define REVENGE_GENERATORS_API
Definition librevenge-generators-api.h:34
librevenge-stream.h
librevenge.h
librevenge
Definition RVNGBinaryData.cpp:40
librevenge::RVNGRawDrawingGeneratorImpl
Definition RVNGRawDrawingGenerator.cpp:32