MWAWSpreadsheetEncoder.hxx Source File documentation

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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
42 class MWAWPropertyHandlerEncoder;
43
44 namespace MWAWSpreadsheetEncoderInternal
45 {
46 struct State;
47 }
55 class MWAWSpreadsheetEncoder : public librevenge::RVNGSpreadsheetInterface
56 {
57 public:
59 MWAWSpreadsheetEncoder();
61 ~MWAWSpreadsheetEncoder();
63 bool getBinaryResult(librevenge::RVNGBinaryData &result, std::string &mimeType);
64
65 void setDocumentMetaData(const librevenge::RVNGPropertyList &propList);
66
67 void startDocument(const librevenge::RVNGPropertyList &propList);
68 void endDocument();
69
70 void definePageStyle(const librevenge::RVNGPropertyList &propList);
71 void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList);
72
73 void openPageSpan(const librevenge::RVNGPropertyList &propList);
74 void closePageSpan();
75
76 void openHeader(const librevenge::RVNGPropertyList &propList);
77 void closeHeader();
78
79 void openFooter(const librevenge::RVNGPropertyList &propList);
80 void closeFooter();
81
82 void defineSheetNumberingStyle(const librevenge::RVNGPropertyList &propList);
83 void openSheet(const librevenge::RVNGPropertyList &propList);
84 void closeSheet();
85 void openSheetRow(const librevenge::RVNGPropertyList &propList);
86 void closeSheetRow();
87 void openSheetCell(const librevenge::RVNGPropertyList &propList);
88 void closeSheetCell();
89
90 void defineChartStyle(const librevenge::RVNGPropertyList &propList);
91
92 void openChart(const librevenge::RVNGPropertyList &propList);
93 void closeChart();
94
95 void openChartTextObject(const librevenge::RVNGPropertyList &propList);
96 void closeChartTextObject();
97
98 void openChartPlotArea(const librevenge::RVNGPropertyList &propList);
99 void closeChartPlotArea();
100 void insertChartAxis(const librevenge::RVNGPropertyList &axis);
101 void openChartSerie(const librevenge::RVNGPropertyList &series);
102 void closeChartSerie();
103
104 void defineParagraphStyle(const librevenge::RVNGPropertyList &propList);
105
106 void openParagraph(const librevenge::RVNGPropertyList &propList);
107 void closeParagraph();
108
109 void defineCharacterStyle(const librevenge::RVNGPropertyList &propList);
110
111 void openSpan(const librevenge::RVNGPropertyList &propList);
112 void closeSpan();
113 void openLink(const librevenge::RVNGPropertyList &propList);
114 void closeLink();
115
116 void defineSectionStyle(const librevenge::RVNGPropertyList &propList);
117
118 void openSection(const librevenge::RVNGPropertyList &propList);
119 void closeSection();
120
121 void insertTab();
122 void insertSpace();
123 void insertText(const librevenge::RVNGString &text);
124 void insertLineBreak();
125
126 void insertField(const librevenge::RVNGPropertyList &propList);
127
128 void openOrderedListLevel(const librevenge::RVNGPropertyList &propList);
129 void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList);
130 void closeOrderedListLevel();
131 void closeUnorderedListLevel();
132 void openListElement(const librevenge::RVNGPropertyList &propList);
133 void closeListElement();
134
135 void openFootnote(const librevenge::RVNGPropertyList &propList);
136 void closeFootnote();
137
138 void openComment(const librevenge::RVNGPropertyList &propList);
139 void closeComment();
140
141 void openFrame(const librevenge::RVNGPropertyList &propList);
142 void closeFrame();
143 void insertBinaryObject(const librevenge::RVNGPropertyList &propList);
144
145 //
146 // specific text/table
147 //
148
149 void openTextBox(const librevenge::RVNGPropertyList &propList);
150 void closeTextBox();
151
152 void openTable(const librevenge::RVNGPropertyList &propList);
153 void closeTable();
154 void openTableRow(const librevenge::RVNGPropertyList &propList);
155 void closeTableRow();
156 void openTableCell(const librevenge::RVNGPropertyList &propList);
157 void closeTableCell();
158 void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList);
159
160 //
161 // simple Graphic
162 //
163
164 void openGroup(const librevenge::RVNGPropertyList &propList);
165 void closeGroup();
166
167 void defineGraphicStyle(const librevenge::RVNGPropertyList &propList);
168
169 void drawRectangle(const librevenge::RVNGPropertyList &propList);
170 void drawEllipse(const librevenge::RVNGPropertyList &propList);
171 void drawPolygon(const librevenge::RVNGPropertyList &propList);
172 void drawPolyline(const librevenge::RVNGPropertyList &propList);
173 void drawPath(const librevenge::RVNGPropertyList &propList);
174 void drawConnector(const ::librevenge::RVNGPropertyList &propList);
175
176 //
177 // Equation
178 //
179
180 void insertEquation(const librevenge::RVNGPropertyList &propList);
181
182 protected:
184 shared_ptr<MWAWSpreadsheetEncoderInternal::State> m_state;
185 };
186
187 #endif
188
189 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWSpreadsheetEncoder::closeChartSerie
void closeChartSerie()
Definition: MWAWSpreadsheetEncoder.cxx:221
MWAWSpreadsheetEncoder::insertLineBreak
void insertLineBreak()
Definition: MWAWSpreadsheetEncoder.cxx:303
MWAWSpreadsheetEncoder::~MWAWSpreadsheetEncoder
~MWAWSpreadsheetEncoder()
destructor
Definition: MWAWSpreadsheetEncoder.cxx:70
MWAWSpreadsheetEncoder::defineGraphicStyle
void defineGraphicStyle(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:442
MWAWSpreadsheetEncoder::openTable
void openTable(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:395
MWAWSpreadsheetEncoder::openGroup
void openGroup(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:432
MWAWSpreadsheetEncoder::openSheetCell
void openSheetCell(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:162
MWAWSpreadsheetEncoder::openChart
void openChart(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:181
MWAWSpreadsheetEncoder::closeSheetRow
void closeSheetRow()
Definition: MWAWSpreadsheetEncoder.cxx:157
MWAWSpreadsheetEncoder::closeListElement
void closeListElement()
Definition: MWAWSpreadsheetEncoder.cxx:341
MWAWSpreadsheetEncoder::insertBinaryObject
void insertBinaryObject(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:377
MWAWSpreadsheetEncoder::openSheet
void openSheet(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:144
MWAWSpreadsheetEncoder::closeSheetCell
void closeSheetCell()
Definition: MWAWSpreadsheetEncoder.cxx:167
libmwaw_internal.hxx
MWAWSpreadsheetEncoder::openFooter
void openFooter(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:128
MWAWSpreadsheetEncoder::openSheetRow
void openSheetRow(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:152
MWAWSpreadsheetEncoder::closeChartTextObject
void closeChartTextObject()
Definition: MWAWSpreadsheetEncoder.cxx:196
MWAWSpreadsheetEncoder::drawPolygon
void drawPolygon(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:457
MWAWSpreadsheetEncoder::closeFrame
void closeFrame()
Definition: MWAWSpreadsheetEncoder.cxx:373
MWAWSpreadsheetEncoder::closeUnorderedListLevel
void closeUnorderedListLevel()
Definition: MWAWSpreadsheetEncoder.cxx:331
MWAWSpreadsheetEncoder::openTableCell
void openTableCell(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:413
MWAWSpreadsheetEncoder::defineCharacterStyle
void defineCharacterStyle(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:245
MWAWSpreadsheetEncoder::insertChartAxis
void insertChartAxis(const librevenge::RVNGPropertyList &axis)
Definition: MWAWSpreadsheetEncoder.cxx:211
MWAWSpreadsheetEncoder::defineChartStyle
void defineChartStyle(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:176
MWAWPropertyHandlerEncoder
write in librevenge::RVNGBinaryData a list of tags/and properties
Definition: MWAWPropertyHandler.hxx:82
MWAWSpreadsheetEncoder::insertField
void insertField(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:308
MWAWSpreadsheetEncoder::closePageSpan
void closePageSpan()
Definition: MWAWSpreadsheetEncoder.cxx:114
MWAWSpreadsheetEncoder
main class used to define store librevenge::RVNGSpreadsheetInterface lists of command in a librevenge...
Definition: MWAWSpreadsheetEncoder.hxx:55
MWAWSpreadsheetEncoder::closeParagraph
void closeParagraph()
Definition: MWAWSpreadsheetEncoder.cxx:240
MWAWSpreadsheetEncoder::openPageSpan
void openPageSpan(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:110
MWAWSpreadsheetEncoder::closeFooter
void closeFooter()
Definition: MWAWSpreadsheetEncoder.cxx:132
MWAWSpreadsheetEncoder::closeSection
void closeSection()
Definition: MWAWSpreadsheetEncoder.cxx:283
MWAWSpreadsheetEncoder::defineSectionStyle
void defineSectionStyle(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:273
MWAWSpreadsheetEncoder::closeLink
void closeLink()
Definition: MWAWSpreadsheetEncoder.cxx:265
MWAWSpreadsheetEncoder::closeSpan
void closeSpan()
Definition: MWAWSpreadsheetEncoder.cxx:255
MWAWSpreadsheetEncoder::openComment
void openComment(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:360
MWAWSpreadsheetEncoder::closeChart
void closeChart()
Definition: MWAWSpreadsheetEncoder.cxx:186
MWAWSpreadsheetEncoder::closeTableRow
void closeTableRow()
Definition: MWAWSpreadsheetEncoder.cxx:408
MWAWSpreadsheetEncoder::insertCoveredTableCell
void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:423
MWAWSpreadsheetEncoder::openSpan
void openSpan(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:250
MWAWSpreadsheetEncoder::closeChartPlotArea
void closeChartPlotArea()
Definition: MWAWSpreadsheetEncoder.cxx:206
MWAWSpreadsheetEncoder::drawPolyline
void drawPolyline(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:462
MWAWSpreadsheetEncoder::startDocument
void startDocument(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:87
MWAWSpreadsheetEncoder::closeHeader
void closeHeader()
Definition: MWAWSpreadsheetEncoder.cxx:123
MWAWSpreadsheetEncoder::drawConnector
void drawConnector(const ::librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:472
MWAWSpreadsheetEncoder::setDocumentMetaData
void setDocumentMetaData(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:82
MWAWSpreadsheetEncoder::openUnorderedListLevel
void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:321
MWAWSpreadsheetEncoder::openTextBox
void openTextBox(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:385
MWAWSpreadsheetEncoder::defineSheetNumberingStyle
void defineSheetNumberingStyle(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:140
MWAWSpreadsheetEncoder::insertEquation
void insertEquation(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:480
MWAWSpreadsheetEncoder::insertText
void insertText(const librevenge::RVNGString &text)
Definition: MWAWSpreadsheetEncoder.cxx:298
MWAWSpreadsheetEncoder::m_state
shared_ptr< MWAWSpreadsheetEncoderInternal::State > m_state
the actual state
Definition: MWAWSpreadsheetEncoder.hxx:184
MWAWSpreadsheetEncoder::openSection
void openSection(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:278
MWAWSpreadsheetEncoder::openOrderedListLevel
void openOrderedListLevel(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:316
MWAWSpreadsheetEncoder::insertTab
void insertTab()
Definition: MWAWSpreadsheetEncoder.cxx:288
MWAWSpreadsheetEncoder::closeComment
void closeComment()
Definition: MWAWSpreadsheetEncoder.cxx:364
MWAWSpreadsheetEncoder::closeTextBox
void closeTextBox()
Definition: MWAWSpreadsheetEncoder.cxx:390
MWAWSpreadsheetEncoder::defineParagraphStyle
void defineParagraphStyle(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:230
MWAWSpreadsheetEncoder::openFootnote
void openFootnote(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:350
MWAWSpreadsheetEncoder::openTableRow
void openTableRow(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:403
MWAWSpreadsheetEncoder::openHeader
void openHeader(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:119
MWAWSpreadsheetEncoder::openChartSerie
void openChartSerie(const librevenge::RVNGPropertyList &series)
Definition: MWAWSpreadsheetEncoder.cxx:216
MWAWSpreadsheetEncoder::getBinaryResult
bool getBinaryResult(librevenge::RVNGBinaryData &result, std::string &mimeType)
return the final spreadsheet
Definition: MWAWSpreadsheetEncoder.cxx:74
MWAWSpreadsheetEncoder::openLink
void openLink(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:260
MWAWSpreadsheetEncoder::MWAWSpreadsheetEncoder
MWAWSpreadsheetEncoder()
constructor
Definition: MWAWSpreadsheetEncoder.cxx:66
MWAWSpreadsheetEncoder::drawEllipse
void drawEllipse(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:452
MWAWSpreadsheetEncoder::drawPath
void drawPath(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:467
MWAWSpreadsheetEncoder::openListElement
void openListElement(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:336
MWAWSpreadsheetEncoder::openChartPlotArea
void openChartPlotArea(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:201
MWAWSpreadsheetEncoder::defineEmbeddedFont
void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:105
MWAWSpreadsheetEncoder::drawRectangle
void drawRectangle(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:447
MWAWSpreadsheetEncoder::closeSheet
void closeSheet()
Definition: MWAWSpreadsheetEncoder.cxx:148
MWAWSpreadsheetEncoderInternal
a name space used to define internal data of MWAWSpreadsheetEncoder
Definition: MWAWSpreadsheetEncoder.cxx:52
MWAWSpreadsheetEncoder::closeGroup
void closeGroup()
Definition: MWAWSpreadsheetEncoder.cxx:437
MWAWSpreadsheetEncoder::closeOrderedListLevel
void closeOrderedListLevel()
Definition: MWAWSpreadsheetEncoder.cxx:326
MWAWSpreadsheetEncoder::closeTableCell
void closeTableCell()
Definition: MWAWSpreadsheetEncoder.cxx:418
MWAWSpreadsheetEncoder::endDocument
void endDocument()
Definition: MWAWSpreadsheetEncoder.cxx:92
MWAWSpreadsheetEncoder::closeFootnote
void closeFootnote()
Definition: MWAWSpreadsheetEncoder.cxx:355
MWAWSpreadsheetEncoder::insertSpace
void insertSpace()
Definition: MWAWSpreadsheetEncoder.cxx:293
MWAWSpreadsheetEncoder::closeTable
void closeTable()
Definition: MWAWSpreadsheetEncoder.cxx:399
MWAWSpreadsheetEncoder::definePageStyle
void definePageStyle(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:100
MWAWSpreadsheetEncoder::openChartTextObject
void openChartTextObject(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:191
MWAWSpreadsheetEncoder::openFrame
void openFrame(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:369
MWAWSpreadsheetEncoder::openParagraph
void openParagraph(const librevenge::RVNGPropertyList &propList)
Definition: MWAWSpreadsheetEncoder.cxx:235