RVNGRawSpreadsheetGenerator.h Source File documentation

RVNGRawSpreadsheetGenerator.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-2004 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 RVNGRAWSPREADSHEETGENERATOR_H
22#define RVNGRAWSPREADSHEETGENERATOR_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 RVNGRawSpreadsheetGeneratorImpl;
33
34 class REVENGE_GENERATORS_API RVNGRawSpreadsheetGenerator : public RVNGSpreadsheetInterface
35{
36 // disable copying
37 RVNGRawSpreadsheetGenerator(const RVNGRawSpreadsheetGenerator &other);
38 RVNGRawSpreadsheetGenerator &operator=(const RVNGRawSpreadsheetGenerator &other);
39
40public:
41 explicit RVNGRawSpreadsheetGenerator(bool printCallgraphScore);
42 ~RVNGRawSpreadsheetGenerator();
43
44 void setDocumentMetaData(const RVNGPropertyList &propList);
45
46 void startDocument(const RVNGPropertyList &propList);
47 void endDocument();
48
49 void defineEmbeddedFont(const RVNGPropertyList &propList);
50
51 // sheet
52 void defineSheetNumberingStyle(const RVNGPropertyList &propList);
53 void openSheet(const RVNGPropertyList &propList);
54 void closeSheet();
55 void openSheetRow(const RVNGPropertyList &propList);
56 void closeSheetRow();
57 void openSheetCell(const RVNGPropertyList &propList);
58 void closeSheetCell();
59
60 // chart
61 void defineChartStyle(const RVNGPropertyList &propList);
62 void openChart(const RVNGPropertyList &propList);
63 void closeChart();
64 void openChartTextObject(const RVNGPropertyList &propList);
65 void closeChartTextObject();
66 void openChartPlotArea(const RVNGPropertyList &propList);
67 void closeChartPlotArea();
68 void insertChartAxis(const RVNGPropertyList &axis);
69 void openChartSerie(const librevenge::RVNGPropertyList &series);
70 void closeChartSerie();
71
72 void definePageStyle(const RVNGPropertyList &propList);
73 void openPageSpan(const RVNGPropertyList &propList);
74 void closePageSpan();
75 void openHeader(const RVNGPropertyList &propList);
76 void closeHeader();
77 void openFooter(const RVNGPropertyList &propList);
78 void closeFooter();
79
80 void defineParagraphStyle(const RVNGPropertyList &propList);
81 void openParagraph(const RVNGPropertyList &propList);
82 void closeParagraph();
83
84 void defineCharacterStyle(const RVNGPropertyList &propList);
85 void openSpan(const RVNGPropertyList &propList);
86 void closeSpan();
87
88 void openLink(const RVNGPropertyList &propList);
89 void closeLink();
90
91 void defineSectionStyle(const RVNGPropertyList &propList);
92 void openSection(const RVNGPropertyList &propList);
93 void closeSection();
94
95 void insertTab();
96 void insertSpace();
97 void insertText(const RVNGString &text);
98 void insertLineBreak();
99 void insertField(const RVNGPropertyList &propList);
100
101 void openOrderedListLevel(const RVNGPropertyList &propList);
102 void openUnorderedListLevel(const RVNGPropertyList &propList);
103 void closeOrderedListLevel();
104 void closeUnorderedListLevel();
105 void openListElement(const RVNGPropertyList &propList);
106 void closeListElement();
107
108 void openFootnote(const RVNGPropertyList &propList);
109 void closeFootnote();
110 void openEndnote(const RVNGPropertyList &propList);
111 void closeEndnote();
112 void openComment(const RVNGPropertyList &propList);
113 void closeComment();
114
115 void openTextBox(const RVNGPropertyList &propList);
116 void closeTextBox();
117
118 void openTable(const RVNGPropertyList &propList);
119 void openTableRow(const RVNGPropertyList &propList);
120 void closeTableRow();
121 void openTableCell(const RVNGPropertyList &propList);
122 void closeTableCell();
123 void insertCoveredTableCell(const RVNGPropertyList &propList);
124 void closeTable();
125
126 void openFrame(const RVNGPropertyList &propList);
127 void closeFrame();
128
129 void insertBinaryObject(const RVNGPropertyList &propList);
130
131 // drawing function
132 void openGroup(const RVNGPropertyList &propList);
133 void closeGroup();
134
135 void defineGraphicStyle(const RVNGPropertyList &propList);
136 void drawRectangle(const RVNGPropertyList &propList);
137 void drawEllipse(const RVNGPropertyList &propList);
138 void drawPolygon(const RVNGPropertyList &propList);
139 void drawPolyline(const RVNGPropertyList &propList);
140 void drawPath(const RVNGPropertyList &propList);
141 void drawConnector(const RVNGPropertyList &propList);
142
143 void insertEquation(const RVNGPropertyList &propList);
144
145private:
146 RVNGRawSpreadsheetGeneratorImpl *m_impl;
147};
148
149}
150
151#endif /* RVNGRAWSPREADSHEETGENERATOR_H */
152
153/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
librevenge::RVNGPropertyList
Definition RVNGPropertyList.h:39
librevenge::RVNGRawSpreadsheetGenerator::closeChartPlotArea
void closeChartPlotArea()
Called when a chart plot arre should be closed.
Definition RVNGRawSpreadsheetGenerator.cpp:149
librevenge::RVNGRawSpreadsheetGenerator::defineCharacterStyle
void defineCharacterStyle(const RVNGPropertyList &propList)
Definition RVNGRawSpreadsheetGenerator.cpp:279
librevenge::RVNGRawSpreadsheetGenerator::closeHeader
void closeHeader()
Called when a header should be closed.
Definition RVNGRawSpreadsheetGenerator.cpp:244
librevenge::RVNGRawSpreadsheetGenerator::openChartSerie
void openChartSerie(const librevenge::RVNGPropertyList &series)
Called when a serie should be opened (in a plot area).
Definition RVNGRawSpreadsheetGenerator.cpp:157
librevenge::RVNGRawSpreadsheetGenerator::operator=
RVNGRawSpreadsheetGenerator & operator=(const RVNGRawSpreadsheetGenerator &other)
librevenge::RVNGRawSpreadsheetGenerator::drawPolygon
void drawPolygon(const RVNGPropertyList &propList)
Definition RVNGRawSpreadsheetGenerator.cpp:196
librevenge::RVNGRawSpreadsheetGenerator::insertChartAxis
void insertChartAxis(const RVNGPropertyList &axis)
Called when a axis should be add in a plot area.
Definition RVNGRawSpreadsheetGenerator.cpp:153
librevenge::RVNGRawSpreadsheetGenerator::closeChartSerie
void closeChartSerie()
Called when a serie should be closed (in a plot area).
Definition RVNGRawSpreadsheetGenerator.cpp:162
librevenge::RVNGRawSpreadsheetGenerator::openFootnote
void openFootnote(const RVNGPropertyList &propList)
Called when a footnote should be opened (a sub-document will be placed inside of it).
Definition RVNGRawSpreadsheetGenerator.cpp:378
librevenge::RVNGRawSpreadsheetGenerator::RVNGRawSpreadsheetGenerator
RVNGRawSpreadsheetGenerator(const RVNGRawSpreadsheetGenerator &other)
librevenge::RVNGRawSpreadsheetGenerator::openFrame
void openFrame(const RVNGPropertyList &propList)
Called when a positioned box should be opened.
Definition RVNGRawSpreadsheetGenerator.cpp:458
librevenge::RVNGRawSpreadsheetGenerator::openOrderedListLevel
void openOrderedListLevel(const RVNGPropertyList &propList)
Called when a new ordered list level should be opened.
Definition RVNGRawSpreadsheetGenerator.cpp:344
librevenge::RVNGRawSpreadsheetGenerator::openListElement
void openListElement(const RVNGPropertyList &propList)
Called when a list element should be opened.
Definition RVNGRawSpreadsheetGenerator.cpp:367
librevenge::RVNGRawSpreadsheetGenerator::defineParagraphStyle
void defineParagraphStyle(const RVNGPropertyList &propList)
Definition RVNGRawSpreadsheetGenerator.cpp:263
librevenge::RVNGRawSpreadsheetGenerator::closeListElement
void closeListElement()
Called when a list element should be closed.
Definition RVNGRawSpreadsheetGenerator.cpp:373
librevenge::RVNGRawSpreadsheetGenerator::closeFooter
void closeFooter()
Called when a footer should be closed.
Definition RVNGRawSpreadsheetGenerator.cpp:257
librevenge::RVNGRawSpreadsheetGenerator::closeOrderedListLevel
void closeOrderedListLevel()
Called when an unordered list level should be closed.
Definition RVNGRawSpreadsheetGenerator.cpp:356
librevenge::RVNGRawSpreadsheetGenerator::closePageSpan
void closePageSpan()
Called when a page span is closed.
Definition RVNGRawSpreadsheetGenerator.cpp:231
librevenge::RVNGRawSpreadsheetGenerator::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 RVNGRawSpreadsheetGenerator.cpp:400
librevenge::RVNGRawSpreadsheetGenerator::closeSpan
void closeSpan()
Called when a text span is closed.
Definition RVNGRawSpreadsheetGenerator.cpp:289
librevenge::RVNGRawSpreadsheetGenerator::endDocument
void endDocument()
Called at the end of the parsing process.
Definition RVNGRawSpreadsheetGenerator.cpp:74
librevenge::RVNGRawSpreadsheetGenerator::closeParagraph
void closeParagraph()
Called when a paragraph is closed.
Definition RVNGRawSpreadsheetGenerator.cpp:274
librevenge::RVNGRawSpreadsheetGenerator::setDocumentMetaData
void setDocumentMetaData(const RVNGPropertyList &propList)
Called when all document metadata should be set.
Definition RVNGRawSpreadsheetGenerator.cpp:53
librevenge::RVNGRawSpreadsheetGenerator::closeFrame
void closeFrame()
Called when the current positioned box is closed.
Definition RVNGRawSpreadsheetGenerator.cpp:464
librevenge::RVNGRawSpreadsheetGenerator::openSheetCell
void openSheetCell(const RVNGPropertyList &propList)
Called when a cell should be opened.
Definition RVNGRawSpreadsheetGenerator.cpp:108
librevenge::RVNGRawSpreadsheetGenerator::drawEllipse
void drawEllipse(const RVNGPropertyList &propList)
Definition RVNGRawSpreadsheetGenerator.cpp:191
librevenge::RVNGRawSpreadsheetGenerator::insertCoveredTableCell
void insertCoveredTableCell(const RVNGPropertyList &propList)
Called when a covered (spanned by another cell in the table) table cell is opened.
Definition RVNGRawSpreadsheetGenerator.cpp:448
librevenge::RVNGRawSpreadsheetGenerator::closeLink
void closeLink()
Called when the current link is closed.
Definition RVNGRawSpreadsheetGenerator.cpp:299
librevenge::RVNGRawSpreadsheetGenerator::definePageStyle
void definePageStyle(const RVNGPropertyList &propList)
Definition RVNGRawSpreadsheetGenerator.cpp:220
librevenge::RVNGRawSpreadsheetGenerator::drawPolyline
void drawPolyline(const RVNGPropertyList &propList)
Definition RVNGRawSpreadsheetGenerator.cpp:201
librevenge::RVNGRawSpreadsheetGenerator::defineSectionStyle
void defineSectionStyle(const RVNGPropertyList &propList)
Definition RVNGRawSpreadsheetGenerator.cpp:304
librevenge::RVNGRawSpreadsheetGenerator::openChartTextObject
void openChartTextObject(const RVNGPropertyList &propList)
Called when a chart text zone:label/legend/title/subtitle/footer should be opened.
Definition RVNGRawSpreadsheetGenerator.cpp:135
librevenge::RVNGRawSpreadsheetGenerator::openSheet
void openSheet(const RVNGPropertyList &propList)
Called when a sheet should be opened.
Definition RVNGRawSpreadsheetGenerator.cpp:87
librevenge::RVNGRawSpreadsheetGenerator::insertSpace
void insertSpace()
Called when an explicit space should be inserted.
Definition RVNGRawSpreadsheetGenerator.cpp:324
librevenge::RVNGRawSpreadsheetGenerator::closeSheetCell
void closeSheetCell()
Called when a sheet should be closed.
Definition RVNGRawSpreadsheetGenerator.cpp:114
librevenge::RVNGRawSpreadsheetGenerator::drawPath
void drawPath(const RVNGPropertyList &propList)
Definition RVNGRawSpreadsheetGenerator.cpp:206
librevenge::RVNGRawSpreadsheetGenerator::insertLineBreak
void insertLineBreak()
Called when a line break should be inserted.
Definition RVNGRawSpreadsheetGenerator.cpp:334
librevenge::RVNGRawSpreadsheetGenerator::closeComment
void closeComment()
Called when a comment or annotation should be closed.
Definition RVNGRawSpreadsheetGenerator.cpp:406
librevenge::RVNGRawSpreadsheetGenerator::openTableRow
void openTableRow(const RVNGPropertyList &propList)
Called when a new table row is opened.
Definition RVNGRawSpreadsheetGenerator.cpp:426
librevenge::RVNGRawSpreadsheetGenerator::openUnorderedListLevel
void openUnorderedListLevel(const RVNGPropertyList &propList)
Called when a new unordered list level should be opened.
Definition RVNGRawSpreadsheetGenerator.cpp:350
librevenge::RVNGRawSpreadsheetGenerator::closeTableRow
void closeTableRow()
Called when the current table row is closed.
Definition RVNGRawSpreadsheetGenerator.cpp:432
librevenge::RVNGRawSpreadsheetGenerator::defineChartStyle
void defineChartStyle(const RVNGPropertyList &propList)
Definition RVNGRawSpreadsheetGenerator.cpp:122
librevenge::RVNGRawSpreadsheetGenerator::insertEquation
void insertEquation(const RVNGPropertyList &propList)
Called when a mathml object should be inserted.
Definition RVNGRawSpreadsheetGenerator.cpp:474
librevenge::RVNGRawSpreadsheetGenerator::closeSection
void closeSection()
Called when a section is closed.
Definition RVNGRawSpreadsheetGenerator.cpp:314
librevenge::RVNGRawSpreadsheetGenerator::closeSheetRow
void closeSheetRow()
Called when a sheet row should be closed.
Definition RVNGRawSpreadsheetGenerator.cpp:103
librevenge::RVNGRawSpreadsheetGenerator::closeTextBox
void closeTextBox()
Called when a text box should be closed.
Definition RVNGRawSpreadsheetGenerator.cpp:416
librevenge::RVNGRawSpreadsheetGenerator::closeChart
void closeChart()
Called when a chart should be closed.
Definition RVNGRawSpreadsheetGenerator.cpp:131
librevenge::RVNGRawSpreadsheetGenerator::openTableCell
void openTableCell(const RVNGPropertyList &propList)
Called when a new table cell is opened.
Definition RVNGRawSpreadsheetGenerator.cpp:437
librevenge::RVNGRawSpreadsheetGenerator::closeUnorderedListLevel
void closeUnorderedListLevel()
Called when an ununordered list level should be closed.
Definition RVNGRawSpreadsheetGenerator.cpp:362
librevenge::RVNGRawSpreadsheetGenerator::defineSheetNumberingStyle
void defineSheetNumberingStyle(const RVNGPropertyList &propList)
Called when a numbering style must be defined.
Definition RVNGRawSpreadsheetGenerator.cpp:82
librevenge::RVNGRawSpreadsheetGenerator::openTable
void openTable(const RVNGPropertyList &propList)
Called when a table should be opened.
Definition RVNGRawSpreadsheetGenerator.cpp:421
librevenge::RVNGRawSpreadsheetGenerator::openGroup
void openGroup(const RVNGPropertyList &propList)
Definition RVNGRawSpreadsheetGenerator.cpp:170
librevenge::RVNGRawSpreadsheetGenerator::drawConnector
void drawConnector(const RVNGPropertyList &propList)
Draw a connector.
Definition RVNGRawSpreadsheetGenerator.cpp:211
librevenge::RVNGRawSpreadsheetGenerator::m_impl
RVNGRawSpreadsheetGeneratorImpl * m_impl
Definition RVNGRawSpreadsheetGenerator.h:146
librevenge::RVNGRawSpreadsheetGenerator::insertBinaryObject
void insertBinaryObject(const RVNGPropertyList &propList)
Called when a binary object should be inserted.
Definition RVNGRawSpreadsheetGenerator.cpp:469
librevenge::RVNGRawSpreadsheetGenerator::openParagraph
void openParagraph(const RVNGPropertyList &propList)
Called when a new paragraph is opened.
Definition RVNGRawSpreadsheetGenerator.cpp:268
librevenge::RVNGRawSpreadsheetGenerator::drawRectangle
void drawRectangle(const RVNGPropertyList &propList)
Definition RVNGRawSpreadsheetGenerator.cpp:186
librevenge::RVNGRawSpreadsheetGenerator::openFooter
void openFooter(const RVNGPropertyList &propList)
Called when a footer should be opened (a sub-document will be placed inside of it).
Definition RVNGRawSpreadsheetGenerator.cpp:250
librevenge::RVNGRawSpreadsheetGenerator::openLink
void openLink(const RVNGPropertyList &propList)
Called when a link should be opened.
Definition RVNGRawSpreadsheetGenerator.cpp:294
librevenge::RVNGRawSpreadsheetGenerator::startDocument
void startDocument(const RVNGPropertyList &propList)
Called at the start of the parsing process.
Definition RVNGRawSpreadsheetGenerator.cpp:69
librevenge::RVNGRawSpreadsheetGenerator::openPageSpan
void openPageSpan(const RVNGPropertyList &propList)
Called when a new page span is opened.
Definition RVNGRawSpreadsheetGenerator.cpp:225
librevenge::RVNGRawSpreadsheetGenerator::openChart
void openChart(const RVNGPropertyList &propList)
Called when a chart should be opened.
Definition RVNGRawSpreadsheetGenerator.cpp:126
librevenge::RVNGRawSpreadsheetGenerator::closeTable
void closeTable()
Called when the current table is closed.
Definition RVNGRawSpreadsheetGenerator.cpp:453
librevenge::RVNGRawSpreadsheetGenerator::closeTableCell
void closeTableCell()
Called when the current table cell is closed.
Definition RVNGRawSpreadsheetGenerator.cpp:443
librevenge::RVNGRawSpreadsheetGenerator::defineGraphicStyle
void defineGraphicStyle(const RVNGPropertyList &propList)
Definition RVNGRawSpreadsheetGenerator.cpp:181
librevenge::RVNGRawSpreadsheetGenerator::closeGroup
void closeGroup()
Definition RVNGRawSpreadsheetGenerator.cpp:176
librevenge::RVNGRawSpreadsheetGenerator::openHeader
void openHeader(const RVNGPropertyList &propList)
Called when a header should be opened (a sub-document will be placed inside of it).
Definition RVNGRawSpreadsheetGenerator.cpp:237
librevenge::RVNGRawSpreadsheetGenerator::openEndnote
void openEndnote(const RVNGPropertyList &propList)
Definition RVNGRawSpreadsheetGenerator.cpp:389
librevenge::RVNGRawSpreadsheetGenerator::openTextBox
void openTextBox(const RVNGPropertyList &propList)
Called when a text box should be opened (a sub-document will be placed inside of it).
Definition RVNGRawSpreadsheetGenerator.cpp:411
librevenge::RVNGRawSpreadsheetGenerator::openSection
void openSection(const RVNGPropertyList &propList)
Called when a new section is opened.
Definition RVNGRawSpreadsheetGenerator.cpp:309
librevenge::RVNGRawSpreadsheetGenerator::closeChartTextObject
void closeChartTextObject()
Called when a chart text zone:legend/title/subtitle/footer should be closed.
Definition RVNGRawSpreadsheetGenerator.cpp:140
librevenge::RVNGRawSpreadsheetGenerator::closeFootnote
void closeFootnote()
Called when a footnote should be closed.
Definition RVNGRawSpreadsheetGenerator.cpp:384
librevenge::RVNGRawSpreadsheetGenerator::closeEndnote
void closeEndnote()
Definition RVNGRawSpreadsheetGenerator.cpp:395
librevenge::RVNGRawSpreadsheetGenerator::openSheetRow
void openSheetRow(const RVNGPropertyList &propList)
Called when a new sheet row is opened.
Definition RVNGRawSpreadsheetGenerator.cpp:97
librevenge::RVNGRawSpreadsheetGenerator::defineEmbeddedFont
void defineEmbeddedFont(const RVNGPropertyList &propList)
Called when an embedded font should be defined.
Definition RVNGRawSpreadsheetGenerator.cpp:61
librevenge::RVNGRawSpreadsheetGenerator::insertTab
void insertTab()
Called when a TAB character should be inserted.
Definition RVNGRawSpreadsheetGenerator.cpp:319
librevenge::RVNGRawSpreadsheetGenerator::insertField
void insertField(const RVNGPropertyList &propList)
Called when a field should be inserted.
Definition RVNGRawSpreadsheetGenerator.cpp:339
librevenge::RVNGRawSpreadsheetGenerator::openSpan
void openSpan(const RVNGPropertyList &propList)
Called when a text span is opened.
Definition RVNGRawSpreadsheetGenerator.cpp:284
librevenge::RVNGRawSpreadsheetGenerator::insertText
void insertText(const RVNGString &text)
Called when a string of text should be inserted.
Definition RVNGRawSpreadsheetGenerator.cpp:329
librevenge::RVNGRawSpreadsheetGenerator::openChartPlotArea
void openChartPlotArea(const RVNGPropertyList &propList)
Called when a chart plot area should be opened.
Definition RVNGRawSpreadsheetGenerator.cpp:144
librevenge::RVNGRawSpreadsheetGenerator::closeSheet
void closeSheet()
Called when a sheet should be closed.
Definition RVNGRawSpreadsheetGenerator.cpp:92
librevenge::RVNGSpreadsheetInterface
Pure virtual class containing all the callback functions that can be made by a spreadsheet parser.
Definition RVNGSpreadsheetInterface.h:50
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:39
librevenge::RVNGRawSpreadsheetGeneratorImpl
Definition RVNGRawSpreadsheetGenerator.cpp:31