- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

RVNGTextSpreadsheetGenerator.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) 2002 William Lachance (wrlach@gmail.com)
11 * Copyright (C) 2002-2003 Marc Maurer (uwog@uwog.net)
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 RVNGTEXTSPREADSHEETGENERATOR_H
22 #define RVNGTEXTSPREADSHEETGENERATOR_H
23
24 #include <librevenge/librevenge.h>
25 #include <librevenge-stream/librevenge-stream.h>
26
27 namespace librevenge
28 {
29
30 struct RVNGTextSpreadsheetGeneratorImpl;
35 class RVNGTextSpreadsheetGenerator : public RVNGSpreadsheetInterface
36 {
38 RVNGTextSpreadsheetGenerator(const RVNGTextSpreadsheetGenerator &other);
40 RVNGTextSpreadsheetGenerator &operator=(const RVNGTextSpreadsheetGenerator &other);
41
42 public:
43 explicit RVNGTextSpreadsheetGenerator(RVNGStringVector &sheets, const bool isInfo=false);
44 ~RVNGTextSpreadsheetGenerator();
45
46 void setDocumentMetaData(const RVNGPropertyList &propList);
47
48 void startDocument(const RVNGPropertyList &propList);
49 void endDocument();
50
51 void defineEmbeddedFont(const RVNGPropertyList &propList);
52
53 // sheet
54 void defineSheetNumberingStyle(const RVNGPropertyList &propList);
55 void openSheet(const RVNGPropertyList &propList);
56 void closeSheet();
57 void openSheetRow(const RVNGPropertyList &propList);
58 void closeSheetRow();
59 void openSheetCell(const RVNGPropertyList &propList);
60 void closeSheetCell();
61
62 // chart
63 void defineChartStyle(const RVNGPropertyList &propList);
64 void openChart(const RVNGPropertyList &propList);
65 void closeChart();
66 void openChartTextObject(const RVNGPropertyList &propList);
67 void closeChartTextObject();
68 void openChartPlotArea(const RVNGPropertyList &propList);
69 void closeChartPlotArea();
70 void insertChartAxis(const RVNGPropertyList &axis);
71 void openChartSerie(const librevenge::RVNGPropertyList &series);
72 void closeChartSerie();
73
74 void definePageStyle(const RVNGPropertyList &propList);
75 void openPageSpan(const RVNGPropertyList &propList);
76 void closePageSpan();
77 void openHeader(const RVNGPropertyList &propList);
78 void closeHeader();
79 void openFooter(const RVNGPropertyList &propList);
80 void closeFooter();
81
82 void defineSectionStyle(const RVNGPropertyList &propList);
83 void openSection(const RVNGPropertyList &propList);
84 void closeSection();
85
86 void defineParagraphStyle(const RVNGPropertyList &propList);
87 void openParagraph(const RVNGPropertyList &propList);
88 void closeParagraph();
89
90 void defineCharacterStyle(const RVNGPropertyList &propList);
91 void openSpan(const RVNGPropertyList &propList);
92 void closeSpan();
93
94 void openLink(const RVNGPropertyList &propList);
95 void closeLink();
96
97 void insertTab();
98 void insertSpace();
99 void insertText(const RVNGString &text);
100 void insertLineBreak();
101 void insertField(const RVNGPropertyList &propList);
102
103 void openOrderedListLevel(const RVNGPropertyList &propList);
104 void openUnorderedListLevel(const RVNGPropertyList &propList);
105 void closeOrderedListLevel();
106 void closeUnorderedListLevel();
107 void openListElement(const RVNGPropertyList &propList);
108 void closeListElement();
109
110 void openFootnote(const RVNGPropertyList &propList);
111 void closeFootnote();
112 void openEndnote(const RVNGPropertyList &propList);
113 void closeEndnote();
114 void openComment(const RVNGPropertyList &propList);
115 void closeComment();
116
117 void openTextBox(const RVNGPropertyList &propList);
118 void closeTextBox();
119
120 void openTable(const RVNGPropertyList &propList);
121 void openTableRow(const RVNGPropertyList &propList);
122 void closeTableRow();
123 void openTableCell(const RVNGPropertyList &propList);
124 void closeTableCell();
125 void insertCoveredTableCell(const RVNGPropertyList &propList);
126 void closeTable();
127
128 void openFrame(const RVNGPropertyList &propList);
129 void closeFrame();
130
131 void insertBinaryObject(const RVNGPropertyList &propList);
132
133 // drawing function
134 void openGroup(const RVNGPropertyList &propList);
135 void closeGroup();
136
137 void defineGraphicStyle(const RVNGPropertyList &propList);
138 void drawRectangle(const RVNGPropertyList &propList);
139 void drawEllipse(const RVNGPropertyList &propList);
140 void drawPolygon(const RVNGPropertyList &propList);
141 void drawPolyline(const RVNGPropertyList &propList);
142 void drawPath(const RVNGPropertyList &propList);
143 void drawConnector(const RVNGPropertyList &propList);
144
145 void insertEquation(const RVNGPropertyList &propList);
146 private:
147 RVNGTextSpreadsheetGeneratorImpl *m_impl;
148 };
149
150 }
151
152 #endif /* RVNGTEXTSPREADSHEETGENERATOR_H */
153
154 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
librevenge::RVNGTextSpreadsheetGenerator::openFrame
void openFrame(const RVNGPropertyList &propList)
Called when a positioned box should be opened.
Definition: RVNGTextSpreadsheetGenerator.cpp:264
librevenge::RVNGTextSpreadsheetGenerator::insertLineBreak
void insertLineBreak()
Called when a line break should be inserted.
Definition: RVNGTextSpreadsheetGenerator.cpp:210
librevenge::RVNGTextSpreadsheetGenerator::closeTableCell
void closeTableCell()
Called when the current table cell is closed.
Definition: RVNGTextSpreadsheetGenerator.cpp:258
librevenge::RVNGTextSpreadsheetGenerator::closeFootnote
void closeFootnote()
Called when a footnote should be closed.
Definition: RVNGTextSpreadsheetGenerator.cpp:227
librevenge::RVNGTextSpreadsheetGenerator::definePageStyle
void definePageStyle(const RVNGPropertyList &propList)
Definition: RVNGTextSpreadsheetGenerator.cpp:157
librevenge::RVNGTextSpreadsheetGenerator::insertCoveredTableCell
void insertCoveredTableCell(const RVNGPropertyList &propList)
Called when a covered (spanned by another cell in the table) table cell is opened.
Definition: RVNGTextSpreadsheetGenerator.cpp:262
librevenge::RVNGTextSpreadsheetGenerator::insertBinaryObject
void insertBinaryObject(const RVNGPropertyList &propList)
Called when a binary object should be inserted.
Definition: RVNGTextSpreadsheetGenerator.cpp:278
librevenge::RVNGTextSpreadsheetGenerator::closeChartTextObject
void closeChartTextObject()
Called when a chart text zone:legend/title/subtitle/footer should be closed.
Definition: RVNGTextSpreadsheetGenerator.cpp:150
librevenge::RVNGTextSpreadsheetGenerator::insertChartAxis
void insertChartAxis(const RVNGPropertyList &axis)
Called when a axis should be add in a plot area.
Definition: RVNGTextSpreadsheetGenerator.cpp:153
librevenge::RVNGTextSpreadsheetGenerator::closeSheetRow
void closeSheetRow()
Called when a sheet row should be closed.
Definition: RVNGTextSpreadsheetGenerator.cpp:93
librevenge::RVNGTextSpreadsheetGenerator::operator=
RVNGTextSpreadsheetGenerator & operator=(const RVNGTextSpreadsheetGenerator &other)
unimplemented copy operator to prevent copy
librevenge::RVNGTextSpreadsheetGenerator::openParagraph
void openParagraph(const RVNGPropertyList &propList)
Called when a new paragraph is opened.
Definition: RVNGTextSpreadsheetGenerator.cpp:170
librevenge::RVNGTextSpreadsheetGenerator::openSpan
void openSpan(const RVNGPropertyList &propList)
Called when a text span is opened.
Definition: RVNGTextSpreadsheetGenerator.cpp:183
librevenge::RVNGTextSpreadsheetGenerator::openChartSerie
void openChartSerie(const librevenge::RVNGPropertyList &series)
Called when a serie should be opened (in a plot area)
Definition: RVNGTextSpreadsheetGenerator.cpp:154
librevenge::RVNGSpreadsheetInterface
Pure virtual class containing all the callback functions that can be made by a spreadsheet parser...
Definition: RVNGSpreadsheetInterface.h:49
librevenge::RVNGTextSpreadsheetGenerator::defineGraphicStyle
void defineGraphicStyle(const RVNGPropertyList &propList)
Definition: RVNGTextSpreadsheetGenerator.cpp:270
librevenge::RVNGTextSpreadsheetGenerator::defineParagraphStyle
void defineParagraphStyle(const RVNGPropertyList &propList)
Definition: RVNGTextSpreadsheetGenerator.cpp:169
librevenge::RVNGTextSpreadsheetGenerator::drawConnector
void drawConnector(const RVNGPropertyList &propList)
Draw a connector.
Definition: RVNGTextSpreadsheetGenerator.cpp:276
librevenge::RVNGTextSpreadsheetGenerator::drawRectangle
void drawRectangle(const RVNGPropertyList &propList)
Definition: RVNGTextSpreadsheetGenerator.cpp:271
librevenge::RVNGTextSpreadsheetGenerator::closeChartSerie
void closeChartSerie()
Called when a serie should be closed (in a plot area)
Definition: RVNGTextSpreadsheetGenerator.cpp:155
librevenge::RVNGTextSpreadsheetGenerator::openPageSpan
void openPageSpan(const RVNGPropertyList &propList)
Called when a new page span is opened.
Definition: RVNGTextSpreadsheetGenerator.cpp:158
librevenge::RVNGTextSpreadsheetGenerator::openChartTextObject
void openChartTextObject(const RVNGPropertyList &propList)
Called when a chart text zone:label/legend/title/subtitle/footer should be opened.
Definition: RVNGTextSpreadsheetGenerator.cpp:149
librevenge::RVNGTextSpreadsheetGenerator::~RVNGTextSpreadsheetGenerator
~RVNGTextSpreadsheetGenerator()
Definition: RVNGTextSpreadsheetGenerator.cpp:58
librevenge::RVNGTextSpreadsheetGenerator::closeSheetCell
void closeSheetCell()
Called when a sheet should be closed.
Definition: RVNGTextSpreadsheetGenerator.cpp:144
librevenge::RVNGTextSpreadsheetGenerator::openChartPlotArea
void openChartPlotArea(const RVNGPropertyList &propList)
Called when a chart plot area should be opened.
Definition: RVNGTextSpreadsheetGenerator.cpp:151
librevenge::RVNGTextSpreadsheetGenerator::closeUnorderedListLevel
void closeUnorderedListLevel()
Called when an ununordered list level should be closed.
Definition: RVNGTextSpreadsheetGenerator.cpp:222
librevenge::RVNGTextSpreadsheetGenerator::closeListElement
void closeListElement()
Called when a list element should be closed.
Definition: RVNGTextSpreadsheetGenerator.cpp:224
librevenge::RVNGTextSpreadsheetGenerator::RVNGTextSpreadsheetGenerator
RVNGTextSpreadsheetGenerator(const RVNGTextSpreadsheetGenerator &other)
unimplemented copy constructor to prevent copy
librevenge::RVNGTextSpreadsheetGenerator::closeLink
void closeLink()
Called when the current link is closed.
Definition: RVNGTextSpreadsheetGenerator.cpp:187
librevenge::RVNGTextSpreadsheetGenerator::closeTextBox
void closeTextBox()
Called when a text box should be closed.
Definition: RVNGTextSpreadsheetGenerator.cpp:233
librevenge::RVNGTextSpreadsheetGenerator::drawEllipse
void drawEllipse(const RVNGPropertyList &propList)
Definition: RVNGTextSpreadsheetGenerator.cpp:272
librevenge::RVNGTextSpreadsheetGenerator::insertText
void insertText(const RVNGString &text)
Called when a string of text should be inserted.
Definition: RVNGTextSpreadsheetGenerator.cpp:196
librevenge::RVNGTextSpreadsheetGenerator::closeTable
void closeTable()
Called when the current table is closed.
Definition: RVNGTextSpreadsheetGenerator.cpp:239
librevenge::RVNGTextSpreadsheetGenerator::closeGroup
void closeGroup()
Definition: RVNGTextSpreadsheetGenerator.cpp:268
librevenge::RVNGTextSpreadsheetGenerator::closeOrderedListLevel
void closeOrderedListLevel()
Called when an unordered list level should be closed.
Definition: RVNGTextSpreadsheetGenerator.cpp:221
librevenge::RVNGTextSpreadsheetGenerator::startDocument
void startDocument(const RVNGPropertyList &propList)
Called at the start of the parsing process.
Definition: RVNGTextSpreadsheetGenerator.cpp:74
librevenge.h
librevenge::RVNGTextSpreadsheetGenerator::closeSection
void closeSection()
Called when a section is closed.
Definition: RVNGTextSpreadsheetGenerator.cpp:167
librevenge::RVNGTextSpreadsheetGenerator::endDocument
void endDocument()
Called at the end of the parsing process.
Definition: RVNGTextSpreadsheetGenerator.cpp:75
librevenge::RVNGTextSpreadsheetGenerator::defineEmbeddedFont
void defineEmbeddedFont(const RVNGPropertyList &propList)
Called when an embedded font should be defined.
Definition: RVNGTextSpreadsheetGenerator.cpp:77
librevenge::RVNGTextSpreadsheetGenerator::defineCharacterStyle
void defineCharacterStyle(const RVNGPropertyList &propList)
Definition: RVNGTextSpreadsheetGenerator.cpp:182
librevenge::RVNGTextSpreadsheetGenerator::insertSpace
void insertSpace()
Called when an explicit space should be inserted.
Definition: RVNGTextSpreadsheetGenerator.cpp:203
librevenge::RVNGTextSpreadsheetGenerator::closeSpan
void closeSpan()
Called when a text span is closed.
Definition: RVNGTextSpreadsheetGenerator.cpp:184
librevenge::RVNGTextSpreadsheetGenerator::openChart
void openChart(const RVNGPropertyList &propList)
Called when a chart should be opened.
Definition: RVNGTextSpreadsheetGenerator.cpp:147
librevenge::RVNGTextSpreadsheetGenerator::defineChartStyle
void defineChartStyle(const RVNGPropertyList &propList)
Definition: RVNGTextSpreadsheetGenerator.cpp:146
librevenge::RVNGTextSpreadsheetGenerator::openComment
void openComment(const RVNGPropertyList &propList)
Called when a comment or annotation should be opened (a sub-document will be placed inside of it) ...
Definition: RVNGTextSpreadsheetGenerator.cpp:230
librevenge::RVNGTextSpreadsheetGenerator::openTableCell
void openTableCell(const RVNGPropertyList &propList)
Called when a new table cell is opened.
Definition: RVNGTextSpreadsheetGenerator.cpp:251
librevenge::RVNGTextSpreadsheetGenerator::openSheetCell
void openSheetCell(const RVNGPropertyList &propList)
Called when a cell should be opened.
Definition: RVNGTextSpreadsheetGenerator.cpp:97
librevenge::RVNGTextSpreadsheetGenerator::insertTab
void insertTab()
Called when a TAB character should be inserted.
Definition: RVNGTextSpreadsheetGenerator.cpp:189
librevenge::RVNGTextSpreadsheetGenerator::drawPolygon
void drawPolygon(const RVNGPropertyList &propList)
Definition: RVNGTextSpreadsheetGenerator.cpp:273
librevenge::RVNGTextSpreadsheetGenerator
A text generator for spreadsheet documents.
Definition: RVNGTextSpreadsheetGenerator.h:35
librevenge::RVNGTextSpreadsheetGenerator::openTable
void openTable(const RVNGPropertyList &propList)
Called when a table should be opened.
Definition: RVNGTextSpreadsheetGenerator.cpp:235
librevenge::RVNGTextSpreadsheetGenerator::openSheet
void openSheet(const RVNGPropertyList &propList)
Called when a sheet should be opened.
Definition: RVNGTextSpreadsheetGenerator.cpp:79
librevenge::RVNGTextSpreadsheetGenerator::openSection
void openSection(const RVNGPropertyList &propList)
Called when a new section is opened.
Definition: RVNGTextSpreadsheetGenerator.cpp:166
librevenge::RVNGTextSpreadsheetGenerator::drawPath
void drawPath(const RVNGPropertyList &propList)
Definition: RVNGTextSpreadsheetGenerator.cpp:275
librevenge::RVNGTextSpreadsheetGenerator::openEndnote
void openEndnote(const RVNGPropertyList &propList)
Definition: RVNGTextSpreadsheetGenerator.cpp:228
librevenge::RVNGTextSpreadsheetGenerator::closeTableRow
void closeTableRow()
Called when the current table row is closed.
Definition: RVNGTextSpreadsheetGenerator.cpp:247
librevenge::RVNGTextSpreadsheetGenerator::openFootnote
void openFootnote(const RVNGPropertyList &propList)
Called when a footnote should be opened (a sub-document will be placed inside of it) ...
Definition: RVNGTextSpreadsheetGenerator.cpp:226
librevenge::RVNGTextSpreadsheetGenerator::openSheetRow
void openSheetRow(const RVNGPropertyList &propList)
Called when a new sheet row is opened.
Definition: RVNGTextSpreadsheetGenerator.cpp:89
librevenge::RVNGTextSpreadsheetGenerator::closePageSpan
void closePageSpan()
Called when a page span is closed.
Definition: RVNGTextSpreadsheetGenerator.cpp:159
librevenge::RVNGTextSpreadsheetGenerator::openListElement
void openListElement(const RVNGPropertyList &propList)
Called when a list element should be opened.
Definition: RVNGTextSpreadsheetGenerator.cpp:223
librevenge::RVNGTextSpreadsheetGenerator::openHeader
void openHeader(const RVNGPropertyList &propList)
Called when a header should be opened (a sub-document will be placed inside of it).
Definition: RVNGTextSpreadsheetGenerator.cpp:160
librevenge::RVNGTextSpreadsheetGenerator::closeParagraph
void closeParagraph()
Called when a paragraph is closed.
Definition: RVNGTextSpreadsheetGenerator.cpp:172
librevenge::RVNGTextSpreadsheetGenerator::openTableRow
void openTableRow(const RVNGPropertyList &propList)
Called when a new table row is opened.
Definition: RVNGTextSpreadsheetGenerator.cpp:243
librevenge::RVNGTextSpreadsheetGenerator::closeChartPlotArea
void closeChartPlotArea()
Called when a chart plot arre should be closed.
Definition: RVNGTextSpreadsheetGenerator.cpp:152
librevenge::RVNGTextSpreadsheetGenerator::defineSectionStyle
void defineSectionStyle(const RVNGPropertyList &propList)
Definition: RVNGTextSpreadsheetGenerator.cpp:165
librevenge::RVNGTextSpreadsheetGenerator::openOrderedListLevel
void openOrderedListLevel(const RVNGPropertyList &propList)
Called when a new ordered list level should be opened.
Definition: RVNGTextSpreadsheetGenerator.cpp:219
librevenge::RVNGTextSpreadsheetGeneratorImpl
Definition: RVNGTextSpreadsheetGenerator.cpp:34
librevenge::RVNGTextSpreadsheetGenerator::closeFrame
void closeFrame()
Called when the current positioned box is closed.
Definition: RVNGTextSpreadsheetGenerator.cpp:265
librevenge::RVNGTextSpreadsheetGenerator::openFooter
void openFooter(const RVNGPropertyList &propList)
Called when a footer should be opened (a sub-document will be placed inside of it).
Definition: RVNGTextSpreadsheetGenerator.cpp:162
librevenge::RVNGTextSpreadsheetGenerator::openTextBox
void openTextBox(const RVNGPropertyList &propList)
Called when a text box should be opened (a sub-document will be placed inside of it) ...
Definition: RVNGTextSpreadsheetGenerator.cpp:232
librevenge::RVNGTextSpreadsheetGenerator::insertEquation
void insertEquation(const RVNGPropertyList &propList)
Called when a mathml object should be inserted.
Definition: RVNGTextSpreadsheetGenerator.cpp:279
librevenge::RVNGTextSpreadsheetGenerator::closeSheet
void closeSheet()
Called when a sheet should be closed.
Definition: RVNGTextSpreadsheetGenerator.cpp:83
librevenge::RVNGTextSpreadsheetGenerator::setDocumentMetaData
void setDocumentMetaData(const RVNGPropertyList &propList)
Called when all document metadata should be set.
Definition: RVNGTextSpreadsheetGenerator.cpp:63
librevenge::RVNGTextSpreadsheetGenerator::closeComment
void closeComment()
Called when a comment or annotation should be closed.
Definition: RVNGTextSpreadsheetGenerator.cpp:231
librevenge::RVNGTextSpreadsheetGenerator::closeChart
void closeChart()
Called when a chart should be closed.
Definition: RVNGTextSpreadsheetGenerator.cpp:148
librevenge::RVNGTextSpreadsheetGenerator::openGroup
void openGroup(const RVNGPropertyList &propList)
Definition: RVNGTextSpreadsheetGenerator.cpp:267
librevenge::RVNGTextSpreadsheetGenerator::closeEndnote
void closeEndnote()
Definition: RVNGTextSpreadsheetGenerator.cpp:229
librevenge::RVNGTextSpreadsheetGenerator::closeHeader
void closeHeader()
Called when a header should be closed.
Definition: RVNGTextSpreadsheetGenerator.cpp:161
librevenge::RVNGTextSpreadsheetGenerator::openLink
void openLink(const RVNGPropertyList &propList)
Called when a link should be opened.
Definition: RVNGTextSpreadsheetGenerator.cpp:186
librevenge::RVNGPropertyList
Definition: RVNGPropertyList.h:35
librevenge::RVNGTextSpreadsheetGenerator::defineSheetNumberingStyle
void defineSheetNumberingStyle(const RVNGPropertyList &propList)
Called when a numbering style must be defined.
Definition: RVNGTextSpreadsheetGenerator.cpp:78
librevenge::RVNGString
Definition: RVNGString.h:29
librevenge-stream.h
librevenge::RVNGTextSpreadsheetGenerator::m_impl
RVNGTextSpreadsheetGeneratorImpl * m_impl
Definition: RVNGTextSpreadsheetGenerator.h:147
librevenge::RVNGTextSpreadsheetGenerator::openUnorderedListLevel
void openUnorderedListLevel(const RVNGPropertyList &propList)
Called when a new unordered list level should be opened.
Definition: RVNGTextSpreadsheetGenerator.cpp:220
librevenge::RVNGTextSpreadsheetGenerator::closeFooter
void closeFooter()
Called when a footer should be closed.
Definition: RVNGTextSpreadsheetGenerator.cpp:163
librevenge::RVNGTextSpreadsheetGenerator::insertField
void insertField(const RVNGPropertyList &propList)
Called when a field should be inserted.
Definition: RVNGTextSpreadsheetGenerator.cpp:217
librevenge::RVNGTextSpreadsheetGenerator::drawPolyline
void drawPolyline(const RVNGPropertyList &propList)
Definition: RVNGTextSpreadsheetGenerator.cpp:274
librevenge::RVNGStringVector
Definition: RVNGStringVector.h:30