RVNGTextSpreadsheetGenerator.h Source File documentation

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-generators-api.h"
25
26#include <librevenge/librevenge.h>
27#include <librevenge-stream/librevenge-stream.h>
28
29namespace librevenge
30{
31
32struct RVNGTextSpreadsheetGeneratorImpl;
37 class REVENGE_GENERATORS_API RVNGTextSpreadsheetGenerator : public RVNGSpreadsheetInterface
38{
40 RVNGTextSpreadsheetGenerator(const RVNGTextSpreadsheetGenerator &other);
42 RVNGTextSpreadsheetGenerator &operator=(const RVNGTextSpreadsheetGenerator &other);
43
44public:
45 explicit RVNGTextSpreadsheetGenerator(RVNGStringVector &sheets, const bool isInfo=false);
46 ~RVNGTextSpreadsheetGenerator();
47
48 void setDocumentMetaData(const RVNGPropertyList &propList);
49
50 void startDocument(const RVNGPropertyList &propList);
51 void endDocument();
52
53 void defineEmbeddedFont(const RVNGPropertyList &propList);
54
55 // sheet
56 void defineSheetNumberingStyle(const RVNGPropertyList &propList);
57 void openSheet(const RVNGPropertyList &propList);
58 void closeSheet();
59 void openSheetRow(const RVNGPropertyList &propList);
60 void closeSheetRow();
61 void openSheetCell(const RVNGPropertyList &propList);
62 void closeSheetCell();
63
64 // chart
65 void defineChartStyle(const RVNGPropertyList &propList);
66 void openChart(const RVNGPropertyList &propList);
67 void closeChart();
68 void openChartTextObject(const RVNGPropertyList &propList);
69 void closeChartTextObject();
70 void openChartPlotArea(const RVNGPropertyList &propList);
71 void closeChartPlotArea();
72 void insertChartAxis(const RVNGPropertyList &axis);
73 void openChartSerie(const librevenge::RVNGPropertyList &series);
74 void closeChartSerie();
75
76 void definePageStyle(const RVNGPropertyList &propList);
77 void openPageSpan(const RVNGPropertyList &propList);
78 void closePageSpan();
79 void openHeader(const RVNGPropertyList &propList);
80 void closeHeader();
81 void openFooter(const RVNGPropertyList &propList);
82 void closeFooter();
83
84 void defineSectionStyle(const RVNGPropertyList &propList);
85 void openSection(const RVNGPropertyList &propList);
86 void closeSection();
87
88 void defineParagraphStyle(const RVNGPropertyList &propList);
89 void openParagraph(const RVNGPropertyList &propList);
90 void closeParagraph();
91
92 void defineCharacterStyle(const RVNGPropertyList &propList);
93 void openSpan(const RVNGPropertyList &propList);
94 void closeSpan();
95
96 void openLink(const RVNGPropertyList &propList);
97 void closeLink();
98
99 void insertTab();
100 void insertSpace();
101 void insertText(const RVNGString &text);
102 void insertLineBreak();
103 void insertField(const RVNGPropertyList &propList);
104
105 void openOrderedListLevel(const RVNGPropertyList &propList);
106 void openUnorderedListLevel(const RVNGPropertyList &propList);
107 void closeOrderedListLevel();
108 void closeUnorderedListLevel();
109 void openListElement(const RVNGPropertyList &propList);
110 void closeListElement();
111
112 void openFootnote(const RVNGPropertyList &propList);
113 void closeFootnote();
114 void openEndnote(const RVNGPropertyList &propList);
115 void closeEndnote();
116 void openComment(const RVNGPropertyList &propList);
117 void closeComment();
118
119 void openTextBox(const RVNGPropertyList &propList);
120 void closeTextBox();
121
122 void openTable(const RVNGPropertyList &propList);
123 void openTableRow(const RVNGPropertyList &propList);
124 void closeTableRow();
125 void openTableCell(const RVNGPropertyList &propList);
126 void closeTableCell();
127 void insertCoveredTableCell(const RVNGPropertyList &propList);
128 void closeTable();
129
130 void openFrame(const RVNGPropertyList &propList);
131 void closeFrame();
132
133 void insertBinaryObject(const RVNGPropertyList &propList);
134
135 // drawing function
136 void openGroup(const RVNGPropertyList &propList);
137 void closeGroup();
138
139 void defineGraphicStyle(const RVNGPropertyList &propList);
140 void drawRectangle(const RVNGPropertyList &propList);
141 void drawEllipse(const RVNGPropertyList &propList);
142 void drawPolygon(const RVNGPropertyList &propList);
143 void drawPolyline(const RVNGPropertyList &propList);
144 void drawPath(const RVNGPropertyList &propList);
145 void drawConnector(const RVNGPropertyList &propList);
146
147 void insertEquation(const RVNGPropertyList &propList);
148private:
149 RVNGTextSpreadsheetGeneratorImpl *m_impl;
150};
151
152}
153
154#endif /* RVNGTEXTSPREADSHEETGENERATOR_H */
155
156/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
librevenge::RVNGPropertyList
Definition RVNGPropertyList.h:39
librevenge::RVNGSpreadsheetInterface
Pure virtual class containing all the callback functions that can be made by a spreadsheet parser.
Definition RVNGSpreadsheetInterface.h:50
librevenge::RVNGStringVector
Definition RVNGStringVector.h:33
librevenge::RVNGString
UTF-8 string.
Definition RVNGString.h:34
librevenge::RVNGTextSpreadsheetGenerator::drawPolyline
void drawPolyline(const RVNGPropertyList &propList)
Definition RVNGTextSpreadsheetGenerator.cpp:349
librevenge::RVNGTextSpreadsheetGenerator::openUnorderedListLevel
void openUnorderedListLevel(const RVNGPropertyList &propList)
Called when a new unordered list level should be opened.
Definition RVNGTextSpreadsheetGenerator.cpp:290
librevenge::RVNGTextSpreadsheetGenerator::closeFooter
void closeFooter()
Called when a footer should be closed.
Definition RVNGTextSpreadsheetGenerator.cpp:236
librevenge::RVNGTextSpreadsheetGenerator::openFrame
void openFrame(const RVNGPropertyList &propList)
Called when a positioned box should be opened.
Definition RVNGTextSpreadsheetGenerator.cpp:339
librevenge::RVNGTextSpreadsheetGenerator::openSection
void openSection(const RVNGPropertyList &propList)
Called when a new section is opened.
Definition RVNGTextSpreadsheetGenerator.cpp:239
librevenge::RVNGTextSpreadsheetGenerator::closeParagraph
void closeParagraph()
Called when a paragraph is closed.
Definition RVNGTextSpreadsheetGenerator.cpp:245
librevenge::RVNGTextSpreadsheetGenerator::closeSheet
void closeSheet()
Called when a sheet should be closed.
Definition RVNGTextSpreadsheetGenerator.cpp:104
librevenge::RVNGTextSpreadsheetGenerator::closeFootnote
void closeFootnote()
Called when a footnote should be closed.
Definition RVNGTextSpreadsheetGenerator.cpp:297
librevenge::RVNGTextSpreadsheetGenerator::closeListElement
void closeListElement()
Called when a list element should be closed.
Definition RVNGTextSpreadsheetGenerator.cpp:294
librevenge::RVNGTextSpreadsheetGenerator::closeTableCell
void closeTableCell()
Called when the current table cell is closed.
Definition RVNGTextSpreadsheetGenerator.cpp:326
librevenge::RVNGTextSpreadsheetGenerator::openLink
void openLink(const RVNGPropertyList &propList)
Called when a link should be opened.
Definition RVNGTextSpreadsheetGenerator.cpp:256
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:296
librevenge::RVNGTextSpreadsheetGenerator::insertText
void insertText(const RVNGString &text)
Called when a string of text should be inserted.
Definition RVNGTextSpreadsheetGenerator.cpp:266
librevenge::RVNGTextSpreadsheetGenerator::insertSpace
void insertSpace()
Called when an explicit space should be inserted.
Definition RVNGTextSpreadsheetGenerator.cpp:273
librevenge::RVNGTextSpreadsheetGenerator::RVNGTextSpreadsheetGenerator
RVNGTextSpreadsheetGenerator(const RVNGTextSpreadsheetGenerator &other)
unimplemented copy constructor to prevent copy
librevenge::RVNGTextSpreadsheetGenerator::closeChart
void closeChart()
Called when a chart should be closed.
Definition RVNGTextSpreadsheetGenerator.cpp:221
librevenge::RVNGTextSpreadsheetGenerator::openSheetCell
void openSheetCell(const RVNGPropertyList &propList)
Called when a cell should be opened.
Definition RVNGTextSpreadsheetGenerator.cpp:137
librevenge::RVNGTextSpreadsheetGenerator::insertTab
void insertTab()
Called when a TAB character should be inserted.
Definition RVNGTextSpreadsheetGenerator.cpp:259
librevenge::RVNGTextSpreadsheetGenerator::openListElement
void openListElement(const RVNGPropertyList &propList)
Called when a list element should be opened.
Definition RVNGTextSpreadsheetGenerator.cpp:293
librevenge::RVNGTextSpreadsheetGenerator::openChartPlotArea
void openChartPlotArea(const RVNGPropertyList &propList)
Called when a chart plot area should be opened.
Definition RVNGTextSpreadsheetGenerator.cpp:224
librevenge::RVNGTextSpreadsheetGenerator::setDocumentMetaData
void setDocumentMetaData(const RVNGPropertyList &propList)
Called when all document metadata should be set.
Definition RVNGTextSpreadsheetGenerator.cpp:83
librevenge::RVNGTextSpreadsheetGenerator::closeEndnote
void closeEndnote()
Definition RVNGTextSpreadsheetGenerator.cpp:299
librevenge::RVNGTextSpreadsheetGenerator::closeOrderedListLevel
void closeOrderedListLevel()
Called when an unordered list level should be closed.
Definition RVNGTextSpreadsheetGenerator.cpp:291
librevenge::RVNGTextSpreadsheetGenerator::defineGraphicStyle
void defineGraphicStyle(const RVNGPropertyList &propList)
Definition RVNGTextSpreadsheetGenerator.cpp:345
librevenge::RVNGTextSpreadsheetGenerator::openTableRow
void openTableRow(const RVNGPropertyList &propList)
Called when a new table row is opened.
Definition RVNGTextSpreadsheetGenerator.cpp:314
librevenge::RVNGTextSpreadsheetGenerator::closeTable
void closeTable()
Called when the current table is closed.
Definition RVNGTextSpreadsheetGenerator.cpp:310
librevenge::RVNGTextSpreadsheetGenerator::closeGroup
void closeGroup()
Definition RVNGTextSpreadsheetGenerator.cpp:343
librevenge::RVNGTextSpreadsheetGenerator::openGroup
void openGroup(const RVNGPropertyList &propList)
Definition RVNGTextSpreadsheetGenerator.cpp:342
librevenge::RVNGTextSpreadsheetGenerator::openPageSpan
void openPageSpan(const RVNGPropertyList &propList)
Called when a new page span is opened.
Definition RVNGTextSpreadsheetGenerator.cpp:231
librevenge::RVNGTextSpreadsheetGenerator::drawConnector
void drawConnector(const RVNGPropertyList &propList)
Draw a connector.
Definition RVNGTextSpreadsheetGenerator.cpp:351
librevenge::RVNGTextSpreadsheetGenerator::closeSheetRow
void closeSheetRow()
Called when a sheet row should be closed.
Definition RVNGTextSpreadsheetGenerator.cpp:127
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:222
librevenge::RVNGTextSpreadsheetGenerator::insertChartAxis
void insertChartAxis(const RVNGPropertyList &axis)
Called when a axis should be add in a plot area.
Definition RVNGTextSpreadsheetGenerator.cpp:226
librevenge::RVNGTextSpreadsheetGenerator::openSheet
void openSheet(const RVNGPropertyList &propList)
Called when a sheet should be opened.
Definition RVNGTextSpreadsheetGenerator.cpp:99
librevenge::RVNGTextSpreadsheetGenerator::insertLineBreak
void insertLineBreak()
Called when a line break should be inserted.
Definition RVNGTextSpreadsheetGenerator.cpp:280
librevenge::RVNGTextSpreadsheetGenerator::drawEllipse
void drawEllipse(const RVNGPropertyList &propList)
Definition RVNGTextSpreadsheetGenerator.cpp:347
librevenge::RVNGTextSpreadsheetGenerator::drawRectangle
void drawRectangle(const RVNGPropertyList &propList)
Definition RVNGTextSpreadsheetGenerator.cpp:346
librevenge::RVNGTextSpreadsheetGenerator::openParagraph
void openParagraph(const RVNGPropertyList &propList)
Called when a new paragraph is opened.
Definition RVNGTextSpreadsheetGenerator.cpp:243
librevenge::RVNGTextSpreadsheetGenerator::openSpan
void openSpan(const RVNGPropertyList &propList)
Called when a text span is opened.
Definition RVNGTextSpreadsheetGenerator.cpp:253
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:233
librevenge::RVNGTextSpreadsheetGenerator::closeUnorderedListLevel
void closeUnorderedListLevel()
Called when an ununordered list level should be closed.
Definition RVNGTextSpreadsheetGenerator.cpp:292
librevenge::RVNGTextSpreadsheetGenerator::closeTableRow
void closeTableRow()
Called when the current table row is closed.
Definition RVNGTextSpreadsheetGenerator.cpp:318
librevenge::RVNGTextSpreadsheetGenerator::insertBinaryObject
void insertBinaryObject(const RVNGPropertyList &propList)
Called when a binary object should be inserted.
Definition RVNGTextSpreadsheetGenerator.cpp:353
librevenge::RVNGTextSpreadsheetGenerator::closeLink
void closeLink()
Called when the current link is closed.
Definition RVNGTextSpreadsheetGenerator.cpp:257
librevenge::RVNGTextSpreadsheetGenerator::closeFrame
void closeFrame()
Called when the current positioned box is closed.
Definition RVNGTextSpreadsheetGenerator.cpp:340
librevenge::RVNGTextSpreadsheetGenerator::defineSectionStyle
void defineSectionStyle(const RVNGPropertyList &propList)
Definition RVNGTextSpreadsheetGenerator.cpp:238
librevenge::RVNGTextSpreadsheetGenerator::closeChartPlotArea
void closeChartPlotArea()
Called when a chart plot arre should be closed.
Definition RVNGTextSpreadsheetGenerator.cpp:225
librevenge::RVNGTextSpreadsheetGenerator::defineSheetNumberingStyle
void defineSheetNumberingStyle(const RVNGPropertyList &propList)
Called when a numbering style must be defined.
Definition RVNGTextSpreadsheetGenerator.cpp:98
librevenge::RVNGTextSpreadsheetGenerator::openTableCell
void openTableCell(const RVNGPropertyList &propList)
Called when a new table cell is opened.
Definition RVNGTextSpreadsheetGenerator.cpp:322
librevenge::RVNGTextSpreadsheetGenerator::drawPath
void drawPath(const RVNGPropertyList &propList)
Definition RVNGTextSpreadsheetGenerator.cpp:350
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:235
librevenge::RVNGTextSpreadsheetGenerator::defineCharacterStyle
void defineCharacterStyle(const RVNGPropertyList &propList)
Definition RVNGTextSpreadsheetGenerator.cpp:252
librevenge::RVNGTextSpreadsheetGenerator::closePageSpan
void closePageSpan()
Called when a page span is closed.
Definition RVNGTextSpreadsheetGenerator.cpp:232
librevenge::RVNGTextSpreadsheetGenerator::closeChartTextObject
void closeChartTextObject()
Called when a chart text zone:legend/title/subtitle/footer should be closed.
Definition RVNGTextSpreadsheetGenerator.cpp:223
librevenge::RVNGTextSpreadsheetGenerator::endDocument
void endDocument()
Called at the end of the parsing process.
Definition RVNGTextSpreadsheetGenerator.cpp:95
librevenge::RVNGTextSpreadsheetGenerator::defineChartStyle
void defineChartStyle(const RVNGPropertyList &propList)
Definition RVNGTextSpreadsheetGenerator.cpp:219
librevenge::RVNGTextSpreadsheetGenerator::openOrderedListLevel
void openOrderedListLevel(const RVNGPropertyList &propList)
Called when a new ordered list level should be opened.
Definition RVNGTextSpreadsheetGenerator.cpp:289
librevenge::RVNGTextSpreadsheetGenerator::m_impl
RVNGTextSpreadsheetGeneratorImpl * m_impl
Definition RVNGTextSpreadsheetGenerator.h:149
librevenge::RVNGTextSpreadsheetGenerator::openSheetRow
void openSheetRow(const RVNGPropertyList &propList)
Called when a new sheet row is opened.
Definition RVNGTextSpreadsheetGenerator.cpp:111
librevenge::RVNGTextSpreadsheetGenerator::closeSheetCell
void closeSheetCell()
Called when a sheet should be closed.
Definition RVNGTextSpreadsheetGenerator.cpp:195
librevenge::RVNGTextSpreadsheetGenerator::closeSection
void closeSection()
Called when a section is closed.
Definition RVNGTextSpreadsheetGenerator.cpp:240
librevenge::RVNGTextSpreadsheetGenerator::drawPolygon
void drawPolygon(const RVNGPropertyList &propList)
Definition RVNGTextSpreadsheetGenerator.cpp:348
librevenge::RVNGTextSpreadsheetGenerator::openChartSerie
void openChartSerie(const librevenge::RVNGPropertyList &series)
Called when a serie should be opened (in a plot area).
Definition RVNGTextSpreadsheetGenerator.cpp:227
librevenge::RVNGTextSpreadsheetGenerator::openEndnote
void openEndnote(const RVNGPropertyList &propList)
Definition RVNGTextSpreadsheetGenerator.cpp:298
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:330
librevenge::RVNGTextSpreadsheetGenerator::closeTextBox
void closeTextBox()
Called when a text box should be closed.
Definition RVNGTextSpreadsheetGenerator.cpp:303
librevenge::RVNGTextSpreadsheetGenerator::startDocument
void startDocument(const RVNGPropertyList &propList)
Called at the start of the parsing process.
Definition RVNGTextSpreadsheetGenerator.cpp:94
librevenge::RVNGTextSpreadsheetGenerator::openTable
void openTable(const RVNGPropertyList &propList)
Called when a table should be opened.
Definition RVNGTextSpreadsheetGenerator.cpp:305
librevenge::RVNGTextSpreadsheetGenerator::openChart
void openChart(const RVNGPropertyList &propList)
Called when a chart should be opened.
Definition RVNGTextSpreadsheetGenerator.cpp:220
librevenge::RVNGTextSpreadsheetGenerator::insertEquation
void insertEquation(const RVNGPropertyList &propList)
Called when a mathml object should be inserted.
Definition RVNGTextSpreadsheetGenerator.cpp:354
librevenge::RVNGTextSpreadsheetGenerator::closeComment
void closeComment()
Called when a comment or annotation should be closed.
Definition RVNGTextSpreadsheetGenerator.cpp:301
librevenge::RVNGTextSpreadsheetGenerator::closeHeader
void closeHeader()
Called when a header should be closed.
Definition RVNGTextSpreadsheetGenerator.cpp:234
librevenge::RVNGTextSpreadsheetGenerator::defineEmbeddedFont
void defineEmbeddedFont(const RVNGPropertyList &propList)
Called when an embedded font should be defined.
Definition RVNGTextSpreadsheetGenerator.cpp:97
librevenge::RVNGTextSpreadsheetGenerator::closeChartSerie
void closeChartSerie()
Called when a serie should be closed (in a plot area).
Definition RVNGTextSpreadsheetGenerator.cpp:228
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:300
librevenge::RVNGTextSpreadsheetGenerator::insertField
void insertField(const RVNGPropertyList &propList)
Called when a field should be inserted.
Definition RVNGTextSpreadsheetGenerator.cpp:287
librevenge::RVNGTextSpreadsheetGenerator::closeSpan
void closeSpan()
Called when a text span is closed.
Definition RVNGTextSpreadsheetGenerator.cpp:254
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:302
librevenge::RVNGTextSpreadsheetGenerator::definePageStyle
void definePageStyle(const RVNGPropertyList &propList)
Definition RVNGTextSpreadsheetGenerator.cpp:230
librevenge::RVNGTextSpreadsheetGenerator::operator=
RVNGTextSpreadsheetGenerator & operator=(const RVNGTextSpreadsheetGenerator &other)
unimplemented copy operator to prevent copy
librevenge::RVNGTextSpreadsheetGenerator::defineParagraphStyle
void defineParagraphStyle(const RVNGPropertyList &propList)
Definition RVNGTextSpreadsheetGenerator.cpp:242
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::RVNGTextSpreadsheetGeneratorImpl
Definition RVNGTextSpreadsheetGenerator.cpp:35