STOFFSpreadsheetEncoder.hxx Source File documentation

STOFFSpreadsheetEncoder.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/* libstaroffice
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 STOFF_SPREADSHEET_ENCODER_HXX
37#define STOFF_SPREADSHEET_ENCODER_HXX
38
39#include <librevenge/librevenge.h>
40#include "libstaroffice_internal.hxx"
41
42class STOFFPropertyHandlerEncoder;
43
44namespace STOFFSpreadsheetEncoderInternal
45{
46struct State;
47}
55 class STOFFSpreadsheetEncoder : public librevenge::RVNGSpreadsheetInterface
56{
57public:
59 STOFFSpreadsheetEncoder();
61 ~STOFFSpreadsheetEncoder();
63 bool getBinaryResult(STOFFEmbeddedObject &object);
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
182protected:
184 shared_ptr<STOFFSpreadsheetEncoderInternal::State> m_state;
185};
186
187#endif
188
189// vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
STOFFPropertyHandlerEncoder
write in librevenge::RVNGBinaryData a list of tags/and properties
Definition STOFFPropertyHandler.hxx:83
STOFFSpreadsheetEncoder::drawConnector
void drawConnector(const ::librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:473
STOFFSpreadsheetEncoder::openPageSpan
void openPageSpan(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:111
STOFFSpreadsheetEncoder::closeChartPlotArea
void closeChartPlotArea()
Definition STOFFSpreadsheetEncoder.cxx:207
STOFFSpreadsheetEncoder::closeComment
void closeComment()
Definition STOFFSpreadsheetEncoder.cxx:365
STOFFSpreadsheetEncoder::openSheet
void openSheet(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:145
STOFFSpreadsheetEncoder::closeTextBox
void closeTextBox()
Definition STOFFSpreadsheetEncoder.cxx:391
STOFFSpreadsheetEncoder::startDocument
void startDocument(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:88
STOFFSpreadsheetEncoder::closeSheetCell
void closeSheetCell()
Definition STOFFSpreadsheetEncoder.cxx:168
STOFFSpreadsheetEncoder::openSheetCell
void openSheetCell(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:163
STOFFSpreadsheetEncoder::closeLink
void closeLink()
Definition STOFFSpreadsheetEncoder.cxx:266
STOFFSpreadsheetEncoder::openTextBox
void openTextBox(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:386
STOFFSpreadsheetEncoder::insertField
void insertField(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:309
STOFFSpreadsheetEncoder::closeChartSerie
void closeChartSerie()
Definition STOFFSpreadsheetEncoder.cxx:222
STOFFSpreadsheetEncoder::openFooter
void openFooter(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:129
STOFFSpreadsheetEncoder::closeTable
void closeTable()
Definition STOFFSpreadsheetEncoder.cxx:400
STOFFSpreadsheetEncoder::setDocumentMetaData
void setDocumentMetaData(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:83
STOFFSpreadsheetEncoder::drawPath
void drawPath(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:468
STOFFSpreadsheetEncoder::drawRectangle
void drawRectangle(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:448
STOFFSpreadsheetEncoder::insertBinaryObject
void insertBinaryObject(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:378
STOFFSpreadsheetEncoder::openUnorderedListLevel
void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:322
STOFFSpreadsheetEncoder::closeParagraph
void closeParagraph()
Definition STOFFSpreadsheetEncoder.cxx:241
STOFFSpreadsheetEncoder::closeOrderedListLevel
void closeOrderedListLevel()
Definition STOFFSpreadsheetEncoder.cxx:327
STOFFSpreadsheetEncoder::closeListElement
void closeListElement()
Definition STOFFSpreadsheetEncoder.cxx:342
STOFFSpreadsheetEncoder::openChartSerie
void openChartSerie(const librevenge::RVNGPropertyList &series)
Definition STOFFSpreadsheetEncoder.cxx:217
STOFFSpreadsheetEncoder::closeUnorderedListLevel
void closeUnorderedListLevel()
Definition STOFFSpreadsheetEncoder.cxx:332
STOFFSpreadsheetEncoder::defineGraphicStyle
void defineGraphicStyle(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:443
STOFFSpreadsheetEncoder::insertText
void insertText(const librevenge::RVNGString &text)
Definition STOFFSpreadsheetEncoder.cxx:299
STOFFSpreadsheetEncoder::openSpan
void openSpan(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:251
STOFFSpreadsheetEncoder::closeFootnote
void closeFootnote()
Definition STOFFSpreadsheetEncoder.cxx:356
STOFFSpreadsheetEncoder::insertCoveredTableCell
void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:424
STOFFSpreadsheetEncoder::openTable
void openTable(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:396
STOFFSpreadsheetEncoder::defineChartStyle
void defineChartStyle(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:177
STOFFSpreadsheetEncoder::drawPolygon
void drawPolygon(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:458
STOFFSpreadsheetEncoder::STOFFSpreadsheetEncoder
STOFFSpreadsheetEncoder()
constructor
Definition STOFFSpreadsheetEncoder.cxx:66
STOFFSpreadsheetEncoder::openListElement
void openListElement(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:337
STOFFSpreadsheetEncoder::openOrderedListLevel
void openOrderedListLevel(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:317
STOFFSpreadsheetEncoder::closeTableRow
void closeTableRow()
Definition STOFFSpreadsheetEncoder.cxx:409
STOFFSpreadsheetEncoder::insertChartAxis
void insertChartAxis(const librevenge::RVNGPropertyList &axis)
Definition STOFFSpreadsheetEncoder.cxx:212
STOFFSpreadsheetEncoder::openSheetRow
void openSheetRow(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:153
STOFFSpreadsheetEncoder::openTableRow
void openTableRow(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:404
STOFFSpreadsheetEncoder::endDocument
void endDocument()
Definition STOFFSpreadsheetEncoder.cxx:93
STOFFSpreadsheetEncoder::getBinaryResult
bool getBinaryResult(STOFFEmbeddedObject &object)
return the final spreadsheet
Definition STOFFSpreadsheetEncoder.cxx:74
STOFFSpreadsheetEncoder::drawEllipse
void drawEllipse(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:453
STOFFSpreadsheetEncoder::openTableCell
void openTableCell(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:414
STOFFSpreadsheetEncoder::defineParagraphStyle
void defineParagraphStyle(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:231
STOFFSpreadsheetEncoder::defineSectionStyle
void defineSectionStyle(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:274
STOFFSpreadsheetEncoder::closeChartTextObject
void closeChartTextObject()
Definition STOFFSpreadsheetEncoder.cxx:197
STOFFSpreadsheetEncoder::defineCharacterStyle
void defineCharacterStyle(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:246
STOFFSpreadsheetEncoder::closePageSpan
void closePageSpan()
Definition STOFFSpreadsheetEncoder.cxx:115
STOFFSpreadsheetEncoder::openComment
void openComment(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:361
STOFFSpreadsheetEncoder::drawPolyline
void drawPolyline(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:463
STOFFSpreadsheetEncoder::closeHeader
void closeHeader()
Definition STOFFSpreadsheetEncoder.cxx:124
STOFFSpreadsheetEncoder::openFrame
void openFrame(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:370
STOFFSpreadsheetEncoder::closeSheet
void closeSheet()
Definition STOFFSpreadsheetEncoder.cxx:149
STOFFSpreadsheetEncoder::openSection
void openSection(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:279
STOFFSpreadsheetEncoder::closeTableCell
void closeTableCell()
Definition STOFFSpreadsheetEncoder.cxx:419
STOFFSpreadsheetEncoder::openChartTextObject
void openChartTextObject(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:192
STOFFSpreadsheetEncoder::openParagraph
void openParagraph(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:236
STOFFSpreadsheetEncoder::insertEquation
void insertEquation(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:481
STOFFSpreadsheetEncoder::openFootnote
void openFootnote(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:351
STOFFSpreadsheetEncoder::closeSection
void closeSection()
Definition STOFFSpreadsheetEncoder.cxx:284
STOFFSpreadsheetEncoder::openHeader
void openHeader(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:120
STOFFSpreadsheetEncoder::definePageStyle
void definePageStyle(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:101
STOFFSpreadsheetEncoder::insertLineBreak
void insertLineBreak()
Definition STOFFSpreadsheetEncoder.cxx:304
STOFFSpreadsheetEncoder::defineSheetNumberingStyle
void defineSheetNumberingStyle(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:141
STOFFSpreadsheetEncoder::openChartPlotArea
void openChartPlotArea(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:202
STOFFSpreadsheetEncoder::~STOFFSpreadsheetEncoder
~STOFFSpreadsheetEncoder()
destructor
Definition STOFFSpreadsheetEncoder.cxx:70
STOFFSpreadsheetEncoder::closeChart
void closeChart()
Definition STOFFSpreadsheetEncoder.cxx:187
STOFFSpreadsheetEncoder::closeGroup
void closeGroup()
Definition STOFFSpreadsheetEncoder.cxx:438
STOFFSpreadsheetEncoder::defineEmbeddedFont
void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:106
STOFFSpreadsheetEncoder::openChart
void openChart(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:182
STOFFSpreadsheetEncoder::openGroup
void openGroup(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:433
STOFFSpreadsheetEncoder::insertSpace
void insertSpace()
Definition STOFFSpreadsheetEncoder.cxx:294
STOFFSpreadsheetEncoder::closeSpan
void closeSpan()
Definition STOFFSpreadsheetEncoder.cxx:256
STOFFSpreadsheetEncoder::insertTab
void insertTab()
Definition STOFFSpreadsheetEncoder.cxx:289
STOFFSpreadsheetEncoder::closeFooter
void closeFooter()
Definition STOFFSpreadsheetEncoder.cxx:133
STOFFSpreadsheetEncoder::m_state
shared_ptr< STOFFSpreadsheetEncoderInternal::State > m_state
the actual state
Definition STOFFSpreadsheetEncoder.hxx:184
STOFFSpreadsheetEncoder::openLink
void openLink(const librevenge::RVNGPropertyList &propList)
Definition STOFFSpreadsheetEncoder.cxx:261
STOFFSpreadsheetEncoder::closeFrame
void closeFrame()
Definition STOFFSpreadsheetEncoder.cxx:374
STOFFSpreadsheetEncoder::closeSheetRow
void closeSheetRow()
Definition STOFFSpreadsheetEncoder.cxx:158
libstaroffice_internal.hxx
STOFFSpreadsheetEncoderInternal
a name space used to define internal data of STOFFSpreadsheetEncoder
Definition STOFFSpreadsheetEncoder.cxx:53
STOFFEmbeddedObject
small class use to define a embedded object
Definition libstaroffice_internal.hxx:398
STOFFSpreadsheetEncoderInternal::State
the state of a STOFFSpreadsheetEncoder
Definition STOFFSpreadsheetEncoder.cxx:55