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
29 namespace librevenge
30 {
31
32 struct 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
40 public:
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
145 private:
146 RVNGRawSpreadsheetGeneratorImpl *m_impl;
147 };
148
149 }
150
151 #endif /* RVNGRAWSPREADSHEETGENERATOR_H */
152
153 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
librevenge
Definition: RVNGBinaryData.cpp:38
librevenge::RVNGSpreadsheetInterface
Pure virtual class containing all the callback functions that can be made by a spreadsheet parser...
Definition: RVNGSpreadsheetInterface.h:49
librevenge-generators-api.h
librevenge::RVNGRawSpreadsheetGeneratorImpl
Definition: RVNGRawSpreadsheetGenerator.cpp:30
librevenge::RVNGRawSpreadsheetGenerator::m_impl
RVNGRawSpreadsheetGeneratorImpl * m_impl
Definition: RVNGRawSpreadsheetGenerator.h:146
librevenge.h
librevenge::RVNGRawSpreadsheetGenerator
Definition: RVNGRawSpreadsheetGenerator.h:34
REVENGE_GENERATORS_API
#define REVENGE_GENERATORS_API
Definition: librevenge-generators-api.h:34
librevenge::RVNGPropertyList
Definition: RVNGPropertyList.h:38
librevenge::RVNGString
UTF-8 string.
Definition: RVNGString.h:33
librevenge-stream.h