- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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 "RVNGDrawingInterface.h"
25 #include "RVNGStringVector.h"
26
27 namespace librevenge
28 {
29
30 struct RVNGSVGDrawingGeneratorPrivate;
31
32 class RVNGSVGDrawingGenerator : public RVNGDrawingInterface
33 {
34 public:
35 RVNGSVGDrawingGenerator(RVNGStringVector &vec, const RVNGString &nmspace);
36 ~RVNGSVGDrawingGenerator();
37
38 void startDocument(const RVNGPropertyList &propList);
39 void endDocument();
40 void setDocumentMetaData(const RVNGPropertyList &propList);
41 void defineEmbeddedFont(const RVNGPropertyList &propList);
42 void startPage(const RVNGPropertyList &propList);
43 void endPage();
44 void startMasterPage(const RVNGPropertyList &propList);
45 void endMasterPage();
46 void startLayer(const RVNGPropertyList &propList);
47 void endLayer();
48 void startEmbeddedGraphics(const RVNGPropertyList &propList);
49 void endEmbeddedGraphics();
50
51 void openGroup(const RVNGPropertyList &propList);
52 void closeGroup();
53
54 void setStyle(const RVNGPropertyList &propList);
55
56 void drawRectangle(const RVNGPropertyList &propList);
57 void drawEllipse(const RVNGPropertyList &propList);
58 void drawPolyline(const RVNGPropertyList &propList);
59 void drawPolygon(const RVNGPropertyList &propList);
60 void drawPath(const RVNGPropertyList &propList);
61 void drawGraphicObject(const RVNGPropertyList &propList);
62 void drawConnector(const RVNGPropertyList &propList);
63 void startTextObject(const RVNGPropertyList &propList);
64 void endTextObject();
65
66 void startTableObject(const RVNGPropertyList &propList);
67 void openTableRow(const RVNGPropertyList &propList);
68 void closeTableRow();
69 void openTableCell(const RVNGPropertyList &propList);
70 void closeTableCell();
71 void insertCoveredTableCell(const RVNGPropertyList &propList);
72 void endTableObject();
73
74 void openOrderedListLevel(const RVNGPropertyList &propList);
75 void closeOrderedListLevel();
76
77 void openUnorderedListLevel(const RVNGPropertyList &propList);
78 void closeUnorderedListLevel();
79 void openListElement(const RVNGPropertyList &propList);
80 void closeListElement();
81
82 void defineParagraphStyle(const RVNGPropertyList &propList);
83 void openParagraph(const RVNGPropertyList &propList);
84 void closeParagraph();
85
86 void defineCharacterStyle(const RVNGPropertyList &propList);
87 void openSpan(const RVNGPropertyList &propList);
88 void closeSpan();
89
90 void openLink(const RVNGPropertyList &propList);
91 void closeLink();
92
93 void insertTab();
94 void insertSpace();
95 void insertText(const RVNGString &text);
96 void insertLineBreak();
97 void insertField(const RVNGPropertyList &propList);
98
99 private:
100 RVNGSVGDrawingGenerator(const RVNGSVGDrawingGenerator &);
101 RVNGSVGDrawingGenerator &operator=(const RVNGSVGDrawingGenerator &);
102 RVNGSVGDrawingGeneratorPrivate *m_pImpl;
103 };
104
105 }
106
107 #endif // RVNGSVGDRAWINGGENERATOR_H
108
109 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
librevenge::RVNGSVGDrawingGenerator::insertText
void insertText(const RVNGString &text)
Called when a string of text should be inserted.
Definition: RVNGSVGDrawingGenerator.cpp:901
librevenge::RVNGSVGDrawingGenerator::startLayer
void startLayer(const RVNGPropertyList &propList)
Definition: RVNGSVGDrawingGenerator.cpp:596
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:948
librevenge::RVNGSVGDrawingGenerator::startTableObject
void startTableObject(const RVNGPropertyList &propList)
Called when a table should be opened.
Definition: RVNGSVGDrawingGenerator.cpp:923
librevenge::RVNGSVGDrawingGenerator::endEmbeddedGraphics
void endEmbeddedGraphics()
Definition: RVNGSVGDrawingGenerator.cpp:614
librevenge::RVNGSVGDrawingGenerator::drawPath
void drawPath(const RVNGPropertyList &propList)
Definition: RVNGSVGDrawingGenerator.cpp:667
librevenge::RVNGSVGDrawingGenerator::openUnorderedListLevel
void openUnorderedListLevel(const RVNGPropertyList &propList)
Called when a new unordered list level should be opened.
Definition: RVNGSVGDrawingGenerator.cpp:844
librevenge::RVNGSVGDrawingGenerator::closeTableRow
void closeTableRow()
Called when the current table row is closed.
Definition: RVNGSVGDrawingGenerator.cpp:933
librevenge::RVNGSVGDrawingGenerator::openLink
void openLink(const RVNGPropertyList &propList)
Called when a link should be opened.
Definition: RVNGSVGDrawingGenerator.cpp:898
librevenge::RVNGSVGDrawingGenerator::openTableCell
void openTableCell(const RVNGPropertyList &propList)
Called when a new table cell is opened.
Definition: RVNGSVGDrawingGenerator.cpp:938
librevenge::RVNGSVGDrawingGenerator::openParagraph
void openParagraph(const RVNGPropertyList &propList)
Called when a new paragraph is opened.
Definition: RVNGSVGDrawingGenerator.cpp:851
librevenge::RVNGSVGDrawingGenerator::insertTab
void insertTab()
Called when a TAB character should be inserted.
Definition: RVNGSVGDrawingGenerator.cpp:906
librevenge::RVNGSVGDrawingGenerator::drawGraphicObject
void drawGraphicObject(const RVNGPropertyList &propList)
Called when a binary/raster object should be inserted.
Definition: RVNGSVGDrawingGenerator.cpp:727
librevenge::RVNGDrawingInterface
Definition: RVNGDrawingInterface.h:31
librevenge::RVNGSVGDrawingGenerator::endDocument
void endDocument()
Definition: RVNGSVGDrawingGenerator.cpp:558
librevenge::RVNGSVGDrawingGenerator::endMasterPage
void endMasterPage()
Definition: RVNGSVGDrawingGenerator.cpp:590
librevenge::RVNGSVGDrawingGenerator::defineCharacterStyle
void defineCharacterStyle(const RVNGPropertyList &propList)
Definition: RVNGSVGDrawingGenerator.cpp:854
librevenge::RVNGSVGDrawingGenerator::drawRectangle
void drawRectangle(const RVNGPropertyList &propList)
Definition: RVNGSVGDrawingGenerator.cpp:624
librevenge::RVNGSVGDrawingGenerator::openTableRow
void openTableRow(const RVNGPropertyList &propList)
Called when a new table row is opened.
Definition: RVNGSVGDrawingGenerator.cpp:928
RVNGDrawingInterface.h
librevenge::RVNGSVGDrawingGenerator::m_pImpl
RVNGSVGDrawingGeneratorPrivate * m_pImpl
Definition: RVNGSVGDrawingGenerator.h:102
librevenge::RVNGSVGDrawingGenerator::endPage
void endPage()
Definition: RVNGSVGDrawingGenerator.cpp:579
librevenge::RVNGSVGDrawingGenerator::insertField
void insertField(const RVNGPropertyList &propList)
Called when a field should be inserted.
Definition: RVNGSVGDrawingGenerator.cpp:921
librevenge::RVNGSVGDrawingGenerator::RVNGSVGDrawingGenerator
RVNGSVGDrawingGenerator(RVNGStringVector &vec, const RVNGString &nmspace)
Definition: RVNGSVGDrawingGenerator.cpp:547
librevenge::RVNGSVGDrawingGenerator::closeTableCell
void closeTableCell()
Called when the current table cell is closed.
Definition: RVNGSVGDrawingGenerator.cpp:943
RVNGStringVector.h
librevenge::RVNGSVGDrawingGenerator::insertLineBreak
void insertLineBreak()
Called when a line break should be inserted.
Definition: RVNGSVGDrawingGenerator.cpp:916
librevenge::RVNGSVGDrawingGenerator::setDocumentMetaData
void setDocumentMetaData(const RVNGPropertyList &propList)
Called when all document metadata should be set.
Definition: RVNGSVGDrawingGenerator.cpp:559
librevenge::RVNGSVGDrawingGenerator::closeParagraph
void closeParagraph()
Called when a paragraph is closed.
Definition: RVNGSVGDrawingGenerator.cpp:852
librevenge::RVNGSVGDrawingGenerator::closeSpan
void closeSpan()
Called when a text span is closed.
Definition: RVNGSVGDrawingGenerator.cpp:893
librevenge::RVNGSVGDrawingGenerator
Definition: RVNGSVGDrawingGenerator.h:32
librevenge::RVNGSVGDrawingGenerator::startTextObject
void startTextObject(const RVNGPropertyList &propList)
Definition: RVNGSVGDrawingGenerator.cpp:776
librevenge::RVNGSVGDrawingGenerator::drawConnector
void drawConnector(const RVNGPropertyList &propList)
Draw a connector.
Definition: RVNGSVGDrawingGenerator.cpp:771
librevenge::RVNGSVGDrawingGenerator::defineParagraphStyle
void defineParagraphStyle(const RVNGPropertyList &propList)
Definition: RVNGSVGDrawingGenerator.cpp:850
librevenge::RVNGSVGDrawingGenerator::~RVNGSVGDrawingGenerator
~RVNGSVGDrawingGenerator()
Definition: RVNGSVGDrawingGenerator.cpp:552
librevenge::RVNGSVGDrawingGenerator::openGroup
void openGroup(const RVNGPropertyList &propList)
Definition: RVNGSVGDrawingGenerator.cpp:616
librevenge::RVNGSVGDrawingGeneratorPrivate
Definition: RVNGSVGDrawingGenerator.cpp:66
librevenge::RVNGSVGDrawingGenerator::closeOrderedListLevel
void closeOrderedListLevel()
Called when an unordered list level should be closed.
Definition: RVNGSVGDrawingGenerator.cpp:842
librevenge::RVNGSVGDrawingGenerator::closeUnorderedListLevel
void closeUnorderedListLevel()
Called when an ununordered list level should be closed.
Definition: RVNGSVGDrawingGenerator.cpp:845
librevenge::RVNGSVGDrawingGenerator::drawPolygon
void drawPolygon(const RVNGPropertyList &propList)
Definition: RVNGSVGDrawingGenerator.cpp:660
librevenge::RVNGSVGDrawingGenerator::startPage
void startPage(const RVNGPropertyList &propList)
Definition: RVNGSVGDrawingGenerator.cpp:562
librevenge::RVNGSVGDrawingGenerator::closeListElement
void closeListElement()
Called when a list element should be closed.
Definition: RVNGSVGDrawingGenerator.cpp:848
librevenge::RVNGSVGDrawingGenerator::closeGroup
void closeGroup()
Definition: RVNGSVGDrawingGenerator.cpp:617
librevenge::RVNGSVGDrawingGenerator::openListElement
void openListElement(const RVNGPropertyList &propList)
Called when a list element should be opened.
Definition: RVNGSVGDrawingGenerator.cpp:847
librevenge::RVNGSVGDrawingGenerator::startMasterPage
void startMasterPage(const RVNGPropertyList &propList)
Definition: RVNGSVGDrawingGenerator.cpp:586
librevenge::RVNGSVGDrawingGenerator::openOrderedListLevel
void openOrderedListLevel(const RVNGPropertyList &propList)
Called when a new ordered list level should be opened.
Definition: RVNGSVGDrawingGenerator.cpp:841
librevenge::RVNGSVGDrawingGenerator::defineEmbeddedFont
void defineEmbeddedFont(const RVNGPropertyList &propList)
Called when an embedded font should be defined.
Definition: RVNGSVGDrawingGenerator.cpp:560
librevenge::RVNGSVGDrawingGenerator::setStyle
void setStyle(const RVNGPropertyList &propList)
Definition: RVNGSVGDrawingGenerator.cpp:619
librevenge::RVNGSVGDrawingGenerator::startDocument
void startDocument(const RVNGPropertyList &propList)
Definition: RVNGSVGDrawingGenerator.cpp:557
librevenge::RVNGSVGDrawingGenerator::closeLink
void closeLink()
Called when the current link is closed.
Definition: RVNGSVGDrawingGenerator.cpp:899
librevenge::RVNGSVGDrawingGenerator::operator=
RVNGSVGDrawingGenerator & operator=(const RVNGSVGDrawingGenerator &)
librevenge::RVNGSVGDrawingGenerator::endLayer
void endLayer()
Definition: RVNGSVGDrawingGenerator.cpp:608
librevenge::RVNGSVGDrawingGenerator::endTextObject
void endTextObject()
Definition: RVNGSVGDrawingGenerator.cpp:836
librevenge::RVNGSVGDrawingGenerator::insertSpace
void insertSpace()
Called when an explicit space should be inserted.
Definition: RVNGSVGDrawingGenerator.cpp:911
librevenge::RVNGSVGDrawingGenerator::openSpan
void openSpan(const RVNGPropertyList &propList)
Called when a text span is opened.
Definition: RVNGSVGDrawingGenerator.cpp:864
librevenge::RVNGSVGDrawingGenerator::drawPolyline
void drawPolyline(const RVNGPropertyList &propList)
Definition: RVNGSVGDrawingGenerator.cpp:653
librevenge::RVNGPropertyList
Definition: RVNGPropertyList.h:35
librevenge::RVNGSVGDrawingGenerator::startEmbeddedGraphics
void startEmbeddedGraphics(const RVNGPropertyList &propList)
Definition: RVNGSVGDrawingGenerator.cpp:613
librevenge::RVNGString
Definition: RVNGString.h:29
librevenge::RVNGSVGDrawingGenerator::endTableObject
void endTableObject()
Called when the current table is closed.
Definition: RVNGSVGDrawingGenerator.cpp:953
librevenge::RVNGStringVector
Definition: RVNGStringVector.h:30
librevenge::RVNGSVGDrawingGenerator::drawEllipse
void drawEllipse(const RVNGPropertyList &propList)
Definition: RVNGSVGDrawingGenerator.cpp:637