MWAWSpreadsheetEncoder.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
2
3/* libmwaw
4* Version: MPL 2.0 / LGPLv2+
5*
6* The contents of this file are subject to the Mozilla Public License Version
7* 2.0 (the "License"); you may not use this file except in compliance with
8* the License or as specified alternatively below. You may obtain a copy of
9* the License at http://www.mozilla.org/MPL/
10*
11* Software distributed under the License is distributed on an "AS IS" basis,
12* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13* for the specific language governing rights and limitations under the
14* License.
15*
16* Major Contributor(s):
17 * Copyright (C) 2006 Ariya Hidayat (ariya@kde.org)
18 * Copyright (C) 2004 Marc Oude Kotte (marc@solcon.nl)
19* Copyright (C) 2002 William Lachance (wrlach@gmail.com)
20* Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
21* Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
22* Copyright (C) 2006, 2007 Andrew Ziem
23* Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
24*
25*
26* All Rights Reserved.
27*
28* For minor contributions see the git repository.
29*
30* Alternatively, the contents of this file may be used under the terms of
31* the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
32* in which case the provisions of the LGPLv2+ are applicable
33* instead of those above.
34*/
35
36#ifndef MWAW_SPREADSHEET_ENCODER_HXX
37#define MWAW_SPREADSHEET_ENCODER_HXX
38
39#include <librevenge/librevenge.h>
40#include "libmwaw_internal.hxx"
41
43
45{
46struct State;
47}
55class MWAWSpreadsheetEncoder final : public librevenge::RVNGSpreadsheetInterface
56{
57public:
64
65 void setDocumentMetaData(const librevenge::RVNGPropertyList &propList) final;
66
67 void startDocument(const librevenge::RVNGPropertyList &propList) final;
68 void endDocument() final;
69
70 void definePageStyle(const librevenge::RVNGPropertyList &propList) final;
71 void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList) final;
72
73 void openPageSpan(const librevenge::RVNGPropertyList &propList) final;
74 void closePageSpan() final;
75
76 void openHeader(const librevenge::RVNGPropertyList &propList) final;
77 void closeHeader() final;
78
79 void openFooter(const librevenge::RVNGPropertyList &propList) final;
80 void closeFooter() final;
81
82 void defineSheetNumberingStyle(const librevenge::RVNGPropertyList &propList) final;
83 void openSheet(const librevenge::RVNGPropertyList &propList) final;
84 void closeSheet() final;
85 void openSheetRow(const librevenge::RVNGPropertyList &propList) final;
86 void closeSheetRow() final;
87 void openSheetCell(const librevenge::RVNGPropertyList &propList) final;
88 void closeSheetCell() final;
89
90 void defineChartStyle(const librevenge::RVNGPropertyList &propList) final;
91
92 void openChart(const librevenge::RVNGPropertyList &propList) final;
93 void closeChart() final;
94
95 void openChartTextObject(const librevenge::RVNGPropertyList &propList) final;
96 void closeChartTextObject() final;
97
98 void openChartPlotArea(const librevenge::RVNGPropertyList &propList) final;
99 void closeChartPlotArea() final;
100 void insertChartAxis(const librevenge::RVNGPropertyList &axis) final;
101 void openChartSerie(const librevenge::RVNGPropertyList &series) final;
102 void closeChartSerie() final;
103
104 void defineParagraphStyle(const librevenge::RVNGPropertyList &propList) final;
105
106 void openParagraph(const librevenge::RVNGPropertyList &propList) final;
107 void closeParagraph() final;
108
109 void defineCharacterStyle(const librevenge::RVNGPropertyList &propList) final;
110
111 void openSpan(const librevenge::RVNGPropertyList &propList) final;
112 void closeSpan() final;
113 void openLink(const librevenge::RVNGPropertyList &propList) final;
114 void closeLink() final;
115
116 void defineSectionStyle(const librevenge::RVNGPropertyList &propList) final;
117
118 void openSection(const librevenge::RVNGPropertyList &propList) final;
119 void closeSection() final;
120
121 void insertTab() final;
122 void insertSpace() final;
123 void insertText(const librevenge::RVNGString &text) final;
124 void insertLineBreak() final;
125
126 void insertField(const librevenge::RVNGPropertyList &propList) final;
127
128 void openOrderedListLevel(const librevenge::RVNGPropertyList &propList) final;
129 void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList) final;
130 void closeOrderedListLevel() final;
131 void closeUnorderedListLevel() final;
132 void openListElement(const librevenge::RVNGPropertyList &propList) final;
133 void closeListElement() final;
134
135 void openFootnote(const librevenge::RVNGPropertyList &propList) final;
136 void closeFootnote() final;
137
138 void openComment(const librevenge::RVNGPropertyList &propList) final;
139 void closeComment() final;
140
141 void openFrame(const librevenge::RVNGPropertyList &propList) final;
142 void closeFrame() final;
143 void insertBinaryObject(const librevenge::RVNGPropertyList &propList) final;
144
145 //
146 // specific text/table
147 //
148
149 void openTextBox(const librevenge::RVNGPropertyList &propList) final;
150 void closeTextBox() final;
151
152 void openTable(const librevenge::RVNGPropertyList &propList) final;
153 void closeTable() final;
154 void openTableRow(const librevenge::RVNGPropertyList &propList) final;
155 void closeTableRow() final;
156 void openTableCell(const librevenge::RVNGPropertyList &propList) final;
157 void closeTableCell() final;
158 void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList) final;
159
160 //
161 // simple Graphic
162 //
163
164 void openGroup(const librevenge::RVNGPropertyList &propList) final;
165 void closeGroup() final;
166
167 void defineGraphicStyle(const librevenge::RVNGPropertyList &propList) final;
168
169 void drawRectangle(const librevenge::RVNGPropertyList &propList) final;
170 void drawEllipse(const librevenge::RVNGPropertyList &propList) final;
171 void drawPolygon(const librevenge::RVNGPropertyList &propList) final;
172 void drawPolyline(const librevenge::RVNGPropertyList &propList) final;
173 void drawPath(const librevenge::RVNGPropertyList &propList) final;
174 void drawConnector(const librevenge::RVNGPropertyList &propList) final;
175
176 //
177 // Equation
178 //
179
180 void insertEquation(const librevenge::RVNGPropertyList &propList) final;
181
182protected:
184 std::shared_ptr<MWAWSpreadsheetEncoderInternal::State> m_state;
185};
186
187#endif
188
189// vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
write in librevenge::RVNGBinaryData a list of tags/and properties
Definition: MWAWPropertyHandler.hxx:86
main class used to define store librevenge::RVNGSpreadsheetInterface lists of command in a librevenge...
Definition: MWAWSpreadsheetEncoder.hxx:56
void insertText(const librevenge::RVNGString &text) final
Definition: MWAWSpreadsheetEncoder.cxx:302
void closeUnorderedListLevel() final
Definition: MWAWSpreadsheetEncoder.cxx:335
void insertTab() final
Definition: MWAWSpreadsheetEncoder.cxx:292
MWAWSpreadsheetEncoder()
constructor
Definition: MWAWSpreadsheetEncoder.cxx:67
void openChartTextObject(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:195
void openOrderedListLevel(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:320
void defineCharacterStyle(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:249
void openTextBox(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:389
void insertField(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:312
void openSpan(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:254
void openFrame(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:373
void insertBinaryObject(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:381
void defineGraphicStyle(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:446
void openParagraph(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:239
void drawEllipse(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:456
void closeChartPlotArea() final
Definition: MWAWSpreadsheetEncoder.cxx:210
bool getBinaryResult(MWAWEmbeddedObject &object)
return the final spreadsheet
Definition: MWAWSpreadsheetEncoder.cxx:77
void openChartPlotArea(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:205
void openTableRow(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:407
void defineParagraphStyle(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:234
void closeLink() final
Definition: MWAWSpreadsheetEncoder.cxx:269
void openSheet(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:148
void openPageSpan(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:114
void closeSpan() final
Definition: MWAWSpreadsheetEncoder.cxx:259
void insertEquation(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:484
void defineChartStyle(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:180
void insertChartAxis(const librevenge::RVNGPropertyList &axis) final
Definition: MWAWSpreadsheetEncoder.cxx:215
void endDocument() final
Definition: MWAWSpreadsheetEncoder.cxx:96
void closeFrame() final
Definition: MWAWSpreadsheetEncoder.cxx:377
void closeTable() final
Definition: MWAWSpreadsheetEncoder.cxx:403
void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:109
void closeFootnote() final
Definition: MWAWSpreadsheetEncoder.cxx:359
void closeTableCell() final
Definition: MWAWSpreadsheetEncoder.cxx:422
void openSection(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:282
void openHeader(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:123
void openGroup(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:436
void drawConnector(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:476
void defineSectionStyle(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:277
void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:325
void closePageSpan() final
Definition: MWAWSpreadsheetEncoder.cxx:118
void insertSpace() final
Definition: MWAWSpreadsheetEncoder.cxx:297
void openSheetCell(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:166
void closeSheet() final
Definition: MWAWSpreadsheetEncoder.cxx:152
void closeTableRow() final
Definition: MWAWSpreadsheetEncoder.cxx:412
void openFootnote(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:354
void openLink(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:264
void setDocumentMetaData(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:86
void closeSheetCell() final
Definition: MWAWSpreadsheetEncoder.cxx:171
void openChartSerie(const librevenge::RVNGPropertyList &series) final
Definition: MWAWSpreadsheetEncoder.cxx:220
void closeComment() final
Definition: MWAWSpreadsheetEncoder.cxx:368
void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:427
void closeTextBox() final
Definition: MWAWSpreadsheetEncoder.cxx:394
void closeChart() final
Definition: MWAWSpreadsheetEncoder.cxx:190
void closeChartTextObject() final
Definition: MWAWSpreadsheetEncoder.cxx:200
void closeParagraph() final
Definition: MWAWSpreadsheetEncoder.cxx:244
void drawRectangle(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:451
void openChart(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:185
~MWAWSpreadsheetEncoder() final
destructor
Definition: MWAWSpreadsheetEncoder.cxx:73
void openComment(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:364
void openTableCell(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:417
void closeSection() final
Definition: MWAWSpreadsheetEncoder.cxx:287
void openSheetRow(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:156
void drawPath(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:471
void closeFooter() final
Definition: MWAWSpreadsheetEncoder.cxx:136
void insertLineBreak() final
Definition: MWAWSpreadsheetEncoder.cxx:307
void closeSheetRow() final
Definition: MWAWSpreadsheetEncoder.cxx:161
void defineSheetNumberingStyle(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:144
void definePageStyle(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:104
void closeListElement() final
Definition: MWAWSpreadsheetEncoder.cxx:345
void closeHeader() final
Definition: MWAWSpreadsheetEncoder.cxx:127
void drawPolyline(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:466
void startDocument(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:91
void closeOrderedListLevel() final
Definition: MWAWSpreadsheetEncoder.cxx:330
void openFooter(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:132
void openListElement(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:340
void drawPolygon(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:461
void openTable(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWSpreadsheetEncoder.cxx:399
void closeGroup() final
Definition: MWAWSpreadsheetEncoder.cxx:441
void closeChartSerie() final
Definition: MWAWSpreadsheetEncoder.cxx:225
std::shared_ptr< MWAWSpreadsheetEncoderInternal::State > m_state
the actual state
Definition: MWAWSpreadsheetEncoder.hxx:184
a name space used to define internal data of MWAWSpreadsheetEncoder
Definition: MWAWSpreadsheetEncoder.cxx:53
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467

Generated on Wed May 3 2023 07:18:29 for libmwaw by doxygen 1.9.6