RVNGSVGDrawingGenerator.h Source File documentation

RVNGSVGDrawingGenerator.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 *
13 * For minor contributions see the git repository.
14 *
15 * Alternatively, the contents of this file may be used under the terms
16 * of the GNU Lesser General Public License Version 2.1 or later
17 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
18 * applicable instead of those above.
19 */
20
21#ifndef RVNGSVGDRAWINGGENERATOR_H
22#define RVNGSVGDRAWINGGENERATOR_H
23
24#include "librevenge-api.h"
25
26#include "RVNGDrawingInterface.h"
27#include "RVNGStringVector.h"
28
29namespace librevenge
30{
31
32struct RVNGSVGDrawingGeneratorPrivate;
33
34 class REVENGE_API RVNGSVGDrawingGenerator : public RVNGDrawingInterface
35{
36public:
37 RVNGSVGDrawingGenerator(RVNGStringVector &vec, const RVNGString &nmspace);
38 ~RVNGSVGDrawingGenerator();
39
40 void startDocument(const RVNGPropertyList &propList);
41 void endDocument();
42 void setDocumentMetaData(const RVNGPropertyList &propList);
43 void defineEmbeddedFont(const RVNGPropertyList &propList);
44 void startPage(const RVNGPropertyList &propList);
45 void endPage();
46 void startMasterPage(const RVNGPropertyList &propList);
47 void endMasterPage();
48 void startLayer(const RVNGPropertyList &propList);
49 void endLayer();
50 void startEmbeddedGraphics(const RVNGPropertyList &propList);
51 void endEmbeddedGraphics();
52
53 void openGroup(const RVNGPropertyList &propList);
54 void closeGroup();
55
56 void setStyle(const RVNGPropertyList &propList);
57
58 void drawRectangle(const RVNGPropertyList &propList);
59 void drawEllipse(const RVNGPropertyList &propList);
60 void drawPolyline(const RVNGPropertyList &propList);
61 void drawPolygon(const RVNGPropertyList &propList);
62 void drawPath(const RVNGPropertyList &propList);
63 void drawGraphicObject(const RVNGPropertyList &propList);
64 void drawConnector(const RVNGPropertyList &propList);
65 void startTextObject(const RVNGPropertyList &propList);
66 void endTextObject();
67
68 void startTableObject(const RVNGPropertyList &propList);
69 void openTableRow(const RVNGPropertyList &propList);
70 void closeTableRow();
71 void openTableCell(const RVNGPropertyList &propList);
72 void closeTableCell();
73 void insertCoveredTableCell(const RVNGPropertyList &propList);
74 void endTableObject();
75
76 void openOrderedListLevel(const RVNGPropertyList &propList);
77 void closeOrderedListLevel();
78
79 void openUnorderedListLevel(const RVNGPropertyList &propList);
80 void closeUnorderedListLevel();
81 void openListElement(const RVNGPropertyList &propList);
82 void closeListElement();
83
84 void defineParagraphStyle(const RVNGPropertyList &propList);
85 void openParagraph(const RVNGPropertyList &propList);
86 void closeParagraph();
87
88 void defineCharacterStyle(const RVNGPropertyList &propList);
89 void openSpan(const RVNGPropertyList &propList);
90 void closeSpan();
91
92 void openLink(const RVNGPropertyList &propList);
93 void closeLink();
94
95 void insertTab();
96 void insertSpace();
97 void insertText(const RVNGString &text);
98 void insertLineBreak();
99 void insertField(const RVNGPropertyList &propList);
100
101private:
102 RVNGSVGDrawingGenerator(const RVNGSVGDrawingGenerator &);
103 RVNGSVGDrawingGenerator &operator=(const RVNGSVGDrawingGenerator &);
104 RVNGSVGDrawingGeneratorPrivate *m_pImpl;
105};
106
107}
108
109#endif // RVNGSVGDRAWINGGENERATOR_H
110
111/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
RVNGDrawingInterface.h
RVNGStringVector.h
librevenge::RVNGDrawingInterface
Definition RVNGDrawingInterface.h:32
librevenge::RVNGPropertyList
Definition RVNGPropertyList.h:39
librevenge::RVNGSVGDrawingGenerator::endLayer
void endLayer()
Definition RVNGSVGDrawingGenerator.cpp:784
librevenge::RVNGSVGDrawingGenerator::closeListElement
void closeListElement()
Called when a list element should be closed.
Definition RVNGSVGDrawingGenerator.cpp:1035
librevenge::RVNGSVGDrawingGenerator::setStyle
void setStyle(const RVNGPropertyList &propList)
Definition RVNGSVGDrawingGenerator.cpp:806
librevenge::RVNGSVGDrawingGenerator::drawPolygon
void drawPolygon(const RVNGPropertyList &propList)
Definition RVNGSVGDrawingGenerator.cpp:847
librevenge::RVNGSVGDrawingGenerator::closeOrderedListLevel
void closeOrderedListLevel()
Called when an unordered list level should be closed.
Definition RVNGSVGDrawingGenerator.cpp:1029
librevenge::RVNGSVGDrawingGenerator::openTableCell
void openTableCell(const RVNGPropertyList &propList)
Called when a new table cell is opened.
Definition RVNGSVGDrawingGenerator.cpp:1132
librevenge::RVNGSVGDrawingGenerator::endDocument
void endDocument()
Definition RVNGSVGDrawingGenerator.cpp:687
librevenge::RVNGSVGDrawingGenerator::drawConnector
void drawConnector(const RVNGPropertyList &propList)
Draw a connector.
Definition RVNGSVGDrawingGenerator.cpp:958
librevenge::RVNGSVGDrawingGenerator::drawPolyline
void drawPolyline(const RVNGPropertyList &propList)
Definition RVNGSVGDrawingGenerator.cpp:840
librevenge::RVNGSVGDrawingGenerator::startPage
void startPage(const RVNGPropertyList &propList)
Definition RVNGSVGDrawingGenerator.cpp:691
librevenge::RVNGSVGDrawingGenerator::drawRectangle
void drawRectangle(const RVNGPropertyList &propList)
Definition RVNGSVGDrawingGenerator.cpp:811
librevenge::RVNGSVGDrawingGenerator::startTableObject
void startTableObject(const RVNGPropertyList &propList)
Called when a table should be opened.
Definition RVNGSVGDrawingGenerator.cpp:1110
librevenge::RVNGSVGDrawingGenerator::drawEllipse
void drawEllipse(const RVNGPropertyList &propList)
Definition RVNGSVGDrawingGenerator.cpp:824
librevenge::RVNGSVGDrawingGenerator::insertText
void insertText(const RVNGString &text)
Called when a string of text should be inserted.
Definition RVNGSVGDrawingGenerator.cpp:1088
librevenge::RVNGSVGDrawingGenerator::endPage
void endPage()
Definition RVNGSVGDrawingGenerator.cpp:719
librevenge::RVNGSVGDrawingGenerator::startDocument
void startDocument(const RVNGPropertyList &propList)
Definition RVNGSVGDrawingGenerator.cpp:686
librevenge::RVNGSVGDrawingGenerator::closeGroup
void closeGroup()
Definition RVNGSVGDrawingGenerator.cpp:801
librevenge::RVNGSVGDrawingGenerator::insertField
void insertField(const RVNGPropertyList &propList)
Called when a field should be inserted.
Definition RVNGSVGDrawingGenerator.cpp:1108
librevenge::RVNGSVGDrawingGenerator::closeParagraph
void closeParagraph()
Called when a paragraph is closed.
Definition RVNGSVGDrawingGenerator.cpp:1039
librevenge::RVNGSVGDrawingGenerator::closeSpan
void closeSpan()
Called when a text span is closed.
Definition RVNGSVGDrawingGenerator.cpp:1080
librevenge::RVNGSVGDrawingGenerator::drawGraphicObject
void drawGraphicObject(const RVNGPropertyList &propList)
Called when a binary/raster object should be inserted.
Definition RVNGSVGDrawingGenerator.cpp:914
librevenge::RVNGSVGDrawingGenerator::closeLink
void closeLink()
Called when the current link is closed.
Definition RVNGSVGDrawingGenerator.cpp:1086
librevenge::RVNGSVGDrawingGenerator::endEmbeddedGraphics
void endEmbeddedGraphics()
Definition RVNGSVGDrawingGenerator.cpp:790
librevenge::RVNGSVGDrawingGenerator::setDocumentMetaData
void setDocumentMetaData(const RVNGPropertyList &propList)
Called when all document metadata should be set.
Definition RVNGSVGDrawingGenerator.cpp:688
librevenge::RVNGSVGDrawingGenerator::startMasterPage
void startMasterPage(const RVNGPropertyList &propList)
Definition RVNGSVGDrawingGenerator.cpp:726
librevenge::RVNGSVGDrawingGenerator::openOrderedListLevel
void openOrderedListLevel(const RVNGPropertyList &propList)
Called when a new ordered list level should be opened.
Definition RVNGSVGDrawingGenerator.cpp:1028
librevenge::RVNGSVGDrawingGenerator::openParagraph
void openParagraph(const RVNGPropertyList &propList)
Called when a new paragraph is opened.
Definition RVNGSVGDrawingGenerator.cpp:1038
librevenge::RVNGSVGDrawingGenerator::closeUnorderedListLevel
void closeUnorderedListLevel()
Called when an ununordered list level should be closed.
Definition RVNGSVGDrawingGenerator.cpp:1032
librevenge::RVNGSVGDrawingGenerator::startEmbeddedGraphics
void startEmbeddedGraphics(const RVNGPropertyList &propList)
Definition RVNGSVGDrawingGenerator.cpp:789
librevenge::RVNGSVGDrawingGenerator::endTableObject
void endTableObject()
Called when the current table is closed.
Definition RVNGSVGDrawingGenerator.cpp:1166
librevenge::RVNGSVGDrawingGenerator::openListElement
void openListElement(const RVNGPropertyList &propList)
Called when a list element should be opened.
Definition RVNGSVGDrawingGenerator.cpp:1034
librevenge::RVNGSVGDrawingGenerator::closeTableCell
void closeTableCell()
Called when the current table cell is closed.
Definition RVNGSVGDrawingGenerator.cpp:1154
librevenge::RVNGSVGDrawingGenerator::openTableRow
void openTableRow(const RVNGPropertyList &propList)
Called when a new table row is opened.
Definition RVNGSVGDrawingGenerator.cpp:1120
librevenge::RVNGSVGDrawingGenerator::defineEmbeddedFont
void defineEmbeddedFont(const RVNGPropertyList &propList)
Called when an embedded font should be defined.
Definition RVNGSVGDrawingGenerator.cpp:689
librevenge::RVNGSVGDrawingGenerator::openLink
void openLink(const RVNGPropertyList &propList)
Called when a link should be opened.
Definition RVNGSVGDrawingGenerator.cpp:1085
librevenge::RVNGSVGDrawingGenerator::endMasterPage
void endMasterPage()
Definition RVNGSVGDrawingGenerator.cpp:745
librevenge::RVNGSVGDrawingGenerator::operator=
RVNGSVGDrawingGenerator & operator=(const RVNGSVGDrawingGenerator &)
librevenge::RVNGSVGDrawingGenerator::insertTab
void insertTab()
Called when a TAB character should be inserted.
Definition RVNGSVGDrawingGenerator.cpp:1093
librevenge::RVNGSVGDrawingGenerator::insertCoveredTableCell
void insertCoveredTableCell(const RVNGPropertyList &propList)
Called when a covered (spanned by another cell in the table) table cell is opened.
Definition RVNGSVGDrawingGenerator.cpp:1160
librevenge::RVNGSVGDrawingGenerator::startLayer
void startLayer(const RVNGPropertyList &propList)
Definition RVNGSVGDrawingGenerator.cpp:766
librevenge::RVNGSVGDrawingGenerator::defineCharacterStyle
void defineCharacterStyle(const RVNGPropertyList &propList)
Definition RVNGSVGDrawingGenerator.cpp:1041
librevenge::RVNGSVGDrawingGenerator::startTextObject
void startTextObject(const RVNGPropertyList &propList)
Definition RVNGSVGDrawingGenerator.cpp:963
librevenge::RVNGSVGDrawingGenerator::RVNGSVGDrawingGenerator
RVNGSVGDrawingGenerator(const RVNGSVGDrawingGenerator &)
librevenge::RVNGSVGDrawingGenerator::RVNGSVGDrawingGenerator
RVNGSVGDrawingGenerator(RVNGStringVector &vec, const RVNGString &nmspace)
Definition RVNGSVGDrawingGenerator.cpp:676
librevenge::RVNGSVGDrawingGenerator::endTextObject
void endTextObject()
Definition RVNGSVGDrawingGenerator.cpp:1023
librevenge::RVNGSVGDrawingGenerator::m_pImpl
RVNGSVGDrawingGeneratorPrivate * m_pImpl
Definition RVNGSVGDrawingGenerator.h:104
librevenge::RVNGSVGDrawingGenerator::openUnorderedListLevel
void openUnorderedListLevel(const RVNGPropertyList &propList)
Called when a new unordered list level should be opened.
Definition RVNGSVGDrawingGenerator.cpp:1031
librevenge::RVNGSVGDrawingGenerator::closeTableRow
void closeTableRow()
Called when the current table row is closed.
Definition RVNGSVGDrawingGenerator.cpp:1126
librevenge::RVNGSVGDrawingGenerator::openGroup
void openGroup(const RVNGPropertyList &propList)
Definition RVNGSVGDrawingGenerator.cpp:792
librevenge::RVNGSVGDrawingGenerator::insertSpace
void insertSpace()
Called when an explicit space should be inserted.
Definition RVNGSVGDrawingGenerator.cpp:1098
librevenge::RVNGSVGDrawingGenerator::insertLineBreak
void insertLineBreak()
Called when a line break should be inserted.
Definition RVNGSVGDrawingGenerator.cpp:1103
librevenge::RVNGSVGDrawingGenerator::openSpan
void openSpan(const RVNGPropertyList &propList)
Called when a text span is opened.
Definition RVNGSVGDrawingGenerator.cpp:1051
librevenge::RVNGSVGDrawingGenerator::defineParagraphStyle
void defineParagraphStyle(const RVNGPropertyList &propList)
Definition RVNGSVGDrawingGenerator.cpp:1037
librevenge::RVNGSVGDrawingGenerator::drawPath
void drawPath(const RVNGPropertyList &propList)
Definition RVNGSVGDrawingGenerator.cpp:854
librevenge::RVNGStringVector
Definition RVNGStringVector.h:33
librevenge::RVNGString
UTF-8 string.
Definition RVNGString.h:34
librevenge-api.h
REVENGE_API
#define REVENGE_API
Definition librevenge-api.h:34
librevenge
Definition RVNGBinaryData.cpp:40
librevenge::RVNGSVGDrawingGeneratorPrivate
Definition RVNGSVGDrawingGenerator.cpp:186