MWAWSpreadsheetEncoder.hxx
Go to the documentation of this file.
/* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
/* libmwaw
* Version: MPL 2.0 / LGPLv2+
*
* The contents of this file are subject to the Mozilla Public License Version
* 2.0 (the "License"); you may not use this file except in compliance with
* the License or as specified alternatively below. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* Major Contributor(s):
* Copyright (C) 2006 Ariya Hidayat (ariya@kde.org)
* Copyright (C) 2004 Marc Oude Kotte (marc@solcon.nl)
* Copyright (C) 2002 William Lachance (wrlach@gmail.com)
* Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
* Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
* Copyright (C) 2006, 2007 Andrew Ziem
* Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
*
*
* All Rights Reserved.
*
* For minor contributions see the git repository.
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
* in which case the provisions of the LGPLv2+ are applicable
* instead of those above.
*/
#ifndef MWAW_SPREADSHEET_ENCODER_HXX
#define MWAW_SPREADSHEET_ENCODER_HXX
#include <librevenge/librevenge.h>
#include "libmwaw_internal.hxx"
class MWAWPropertyHandlerEncoder;
namespace MWAWSpreadsheetEncoderInternal
{
struct State;
}
class MWAWSpreadsheetEncoder final : public librevenge::RVNGSpreadsheetInterface
{
public:
MWAWSpreadsheetEncoder();
~MWAWSpreadsheetEncoder() final;
bool getBinaryResult(MWAWEmbeddedObject &object);
void setDocumentMetaData(const librevenge::RVNGPropertyList &propList) final;
void startDocument(const librevenge::RVNGPropertyList &propList) final;
void endDocument() final;
void definePageStyle(const librevenge::RVNGPropertyList &propList) final;
void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList) final;
void openPageSpan(const librevenge::RVNGPropertyList &propList) final;
void closePageSpan() final;
void openHeader(const librevenge::RVNGPropertyList &propList) final;
void closeHeader() final;
void openFooter(const librevenge::RVNGPropertyList &propList) final;
void closeFooter() final;
void defineSheetNumberingStyle(const librevenge::RVNGPropertyList &propList) final;
void openSheet(const librevenge::RVNGPropertyList &propList) final;
void closeSheet() final;
void openSheetRow(const librevenge::RVNGPropertyList &propList) final;
void closeSheetRow() final;
void openSheetCell(const librevenge::RVNGPropertyList &propList) final;
void closeSheetCell() final;
void defineChartStyle(const librevenge::RVNGPropertyList &propList) final;
void openChart(const librevenge::RVNGPropertyList &propList) final;
void closeChart() final;
void openChartTextObject(const librevenge::RVNGPropertyList &propList) final;
void closeChartTextObject() final;
void openChartPlotArea(const librevenge::RVNGPropertyList &propList) final;
void closeChartPlotArea() final;
void insertChartAxis(const librevenge::RVNGPropertyList &axis) final;
void openChartSerie(const librevenge::RVNGPropertyList &series) final;
void closeChartSerie() final;
void defineParagraphStyle(const librevenge::RVNGPropertyList &propList) final;
void openParagraph(const librevenge::RVNGPropertyList &propList) final;
void closeParagraph() final;
void defineCharacterStyle(const librevenge::RVNGPropertyList &propList) final;
void openSpan(const librevenge::RVNGPropertyList &propList) final;
void closeSpan() final;
void openLink(const librevenge::RVNGPropertyList &propList) final;
void closeLink() final;
void defineSectionStyle(const librevenge::RVNGPropertyList &propList) final;
void openSection(const librevenge::RVNGPropertyList &propList) final;
void closeSection() final;
void insertTab() final;
void insertSpace() final;
void insertText(const librevenge::RVNGString &text) final;
void insertLineBreak() final;
void insertField(const librevenge::RVNGPropertyList &propList) final;
void openOrderedListLevel(const librevenge::RVNGPropertyList &propList) final;
void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList) final;
void closeOrderedListLevel() final;
void closeUnorderedListLevel() final;
void openListElement(const librevenge::RVNGPropertyList &propList) final;
void closeListElement() final;
void openFootnote(const librevenge::RVNGPropertyList &propList) final;
void closeFootnote() final;
void openComment(const librevenge::RVNGPropertyList &propList) final;
void closeComment() final;
void openFrame(const librevenge::RVNGPropertyList &propList) final;
void closeFrame() final;
void insertBinaryObject(const librevenge::RVNGPropertyList &propList) final;
//
// specific text/table
//
void openTextBox(const librevenge::RVNGPropertyList &propList) final;
void closeTextBox() final;
void openTable(const librevenge::RVNGPropertyList &propList) final;
void closeTable() final;
void openTableRow(const librevenge::RVNGPropertyList &propList) final;
void closeTableRow() final;
void openTableCell(const librevenge::RVNGPropertyList &propList) final;
void closeTableCell() final;
void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList) final;
//
// simple Graphic
//
void openGroup(const librevenge::RVNGPropertyList &propList) final;
void closeGroup() final;
void defineGraphicStyle(const librevenge::RVNGPropertyList &propList) final;
void drawRectangle(const librevenge::RVNGPropertyList &propList) final;
void drawEllipse(const librevenge::RVNGPropertyList &propList) final;
void drawPolygon(const librevenge::RVNGPropertyList &propList) final;
void drawPolyline(const librevenge::RVNGPropertyList &propList) final;
void drawPath(const librevenge::RVNGPropertyList &propList) final;
void drawConnector(const librevenge::RVNGPropertyList &propList) final;
//
// Equation
//
void insertEquation(const librevenge::RVNGPropertyList &propList) final;
protected:
std::shared_ptr<MWAWSpreadsheetEncoderInternal::State> m_state;
};
#endif
// vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWPropertyHandlerEncoder
write in librevenge::RVNGBinaryData a list of tags/and properties
Definition MWAWPropertyHandler.hxx:86
MWAWSpreadsheetEncoder::insertText
void insertText(const librevenge::RVNGString &text) final
Definition MWAWSpreadsheetEncoder.cxx:302
MWAWSpreadsheetEncoder::closeUnorderedListLevel
void closeUnorderedListLevel() final
Definition MWAWSpreadsheetEncoder.cxx:335
MWAWSpreadsheetEncoder::insertTab
void insertTab() final
Definition MWAWSpreadsheetEncoder.cxx:292
MWAWSpreadsheetEncoder::MWAWSpreadsheetEncoder
MWAWSpreadsheetEncoder()
constructor
Definition MWAWSpreadsheetEncoder.cxx:67
MWAWSpreadsheetEncoder::openChartTextObject
void openChartTextObject(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:195
MWAWSpreadsheetEncoder::openOrderedListLevel
void openOrderedListLevel(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:320
MWAWSpreadsheetEncoder::defineCharacterStyle
void defineCharacterStyle(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:249
MWAWSpreadsheetEncoder::openTextBox
void openTextBox(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:389
MWAWSpreadsheetEncoder::insertField
void insertField(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:312
MWAWSpreadsheetEncoder::openSpan
void openSpan(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:254
MWAWSpreadsheetEncoder::openFrame
void openFrame(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:373
MWAWSpreadsheetEncoder::insertBinaryObject
void insertBinaryObject(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:381
MWAWSpreadsheetEncoder::defineGraphicStyle
void defineGraphicStyle(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:446
MWAWSpreadsheetEncoder::openParagraph
void openParagraph(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:239
MWAWSpreadsheetEncoder::drawEllipse
void drawEllipse(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:456
MWAWSpreadsheetEncoder::closeChartPlotArea
void closeChartPlotArea() final
Definition MWAWSpreadsheetEncoder.cxx:210
MWAWSpreadsheetEncoder::getBinaryResult
bool getBinaryResult(MWAWEmbeddedObject &object)
return the final spreadsheet
Definition MWAWSpreadsheetEncoder.cxx:77
MWAWSpreadsheetEncoder::openChartPlotArea
void openChartPlotArea(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:205
MWAWSpreadsheetEncoder::openTableRow
void openTableRow(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:407
MWAWSpreadsheetEncoder::defineParagraphStyle
void defineParagraphStyle(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:234
MWAWSpreadsheetEncoder::closeLink
void closeLink() final
Definition MWAWSpreadsheetEncoder.cxx:269
MWAWSpreadsheetEncoder::openSheet
void openSheet(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:148
MWAWSpreadsheetEncoder::openPageSpan
void openPageSpan(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:114
MWAWSpreadsheetEncoder::closeSpan
void closeSpan() final
Definition MWAWSpreadsheetEncoder.cxx:259
MWAWSpreadsheetEncoder::insertEquation
void insertEquation(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:484
MWAWSpreadsheetEncoder::defineChartStyle
void defineChartStyle(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:180
MWAWSpreadsheetEncoder::insertChartAxis
void insertChartAxis(const librevenge::RVNGPropertyList &axis) final
Definition MWAWSpreadsheetEncoder.cxx:215
MWAWSpreadsheetEncoder::endDocument
void endDocument() final
Definition MWAWSpreadsheetEncoder.cxx:96
MWAWSpreadsheetEncoder::closeFrame
void closeFrame() final
Definition MWAWSpreadsheetEncoder.cxx:377
MWAWSpreadsheetEncoder::closeTable
void closeTable() final
Definition MWAWSpreadsheetEncoder.cxx:403
MWAWSpreadsheetEncoder::defineEmbeddedFont
void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:109
MWAWSpreadsheetEncoder::closeFootnote
void closeFootnote() final
Definition MWAWSpreadsheetEncoder.cxx:359
MWAWSpreadsheetEncoder::closeTableCell
void closeTableCell() final
Definition MWAWSpreadsheetEncoder.cxx:422
MWAWSpreadsheetEncoder::openSection
void openSection(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:282
MWAWSpreadsheetEncoder::openHeader
void openHeader(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:123
MWAWSpreadsheetEncoder::openGroup
void openGroup(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:436
MWAWSpreadsheetEncoder::drawConnector
void drawConnector(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:476
MWAWSpreadsheetEncoder::defineSectionStyle
void defineSectionStyle(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:277
MWAWSpreadsheetEncoder::openUnorderedListLevel
void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:325
MWAWSpreadsheetEncoder::closePageSpan
void closePageSpan() final
Definition MWAWSpreadsheetEncoder.cxx:118
MWAWSpreadsheetEncoder::insertSpace
void insertSpace() final
Definition MWAWSpreadsheetEncoder.cxx:297
MWAWSpreadsheetEncoder::openSheetCell
void openSheetCell(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:166
MWAWSpreadsheetEncoder::closeSheet
void closeSheet() final
Definition MWAWSpreadsheetEncoder.cxx:152
MWAWSpreadsheetEncoder::closeTableRow
void closeTableRow() final
Definition MWAWSpreadsheetEncoder.cxx:412
MWAWSpreadsheetEncoder::openFootnote
void openFootnote(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:354
MWAWSpreadsheetEncoder::openLink
void openLink(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:264
MWAWSpreadsheetEncoder::setDocumentMetaData
void setDocumentMetaData(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:86
MWAWSpreadsheetEncoder::closeSheetCell
void closeSheetCell() final
Definition MWAWSpreadsheetEncoder.cxx:171
MWAWSpreadsheetEncoder::openChartSerie
void openChartSerie(const librevenge::RVNGPropertyList &series) final
Definition MWAWSpreadsheetEncoder.cxx:220
MWAWSpreadsheetEncoder::closeComment
void closeComment() final
Definition MWAWSpreadsheetEncoder.cxx:368
MWAWSpreadsheetEncoder::insertCoveredTableCell
void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:427
MWAWSpreadsheetEncoder::closeTextBox
void closeTextBox() final
Definition MWAWSpreadsheetEncoder.cxx:394
MWAWSpreadsheetEncoder::closeChart
void closeChart() final
Definition MWAWSpreadsheetEncoder.cxx:190
MWAWSpreadsheetEncoder::closeChartTextObject
void closeChartTextObject() final
Definition MWAWSpreadsheetEncoder.cxx:200
MWAWSpreadsheetEncoder::closeParagraph
void closeParagraph() final
Definition MWAWSpreadsheetEncoder.cxx:244
MWAWSpreadsheetEncoder::drawRectangle
void drawRectangle(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:451
MWAWSpreadsheetEncoder::openChart
void openChart(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:185
MWAWSpreadsheetEncoder::~MWAWSpreadsheetEncoder
~MWAWSpreadsheetEncoder() final
destructor
Definition MWAWSpreadsheetEncoder.cxx:73
MWAWSpreadsheetEncoder::openComment
void openComment(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:364
MWAWSpreadsheetEncoder::openTableCell
void openTableCell(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:417
MWAWSpreadsheetEncoder::closeSection
void closeSection() final
Definition MWAWSpreadsheetEncoder.cxx:287
MWAWSpreadsheetEncoder::openSheetRow
void openSheetRow(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:156
MWAWSpreadsheetEncoder::drawPath
void drawPath(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:471
MWAWSpreadsheetEncoder::closeFooter
void closeFooter() final
Definition MWAWSpreadsheetEncoder.cxx:136
MWAWSpreadsheetEncoder::insertLineBreak
void insertLineBreak() final
Definition MWAWSpreadsheetEncoder.cxx:307
MWAWSpreadsheetEncoder::closeSheetRow
void closeSheetRow() final
Definition MWAWSpreadsheetEncoder.cxx:161
MWAWSpreadsheetEncoder::defineSheetNumberingStyle
void defineSheetNumberingStyle(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:144
MWAWSpreadsheetEncoder::definePageStyle
void definePageStyle(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:104
MWAWSpreadsheetEncoder::closeListElement
void closeListElement() final
Definition MWAWSpreadsheetEncoder.cxx:345
MWAWSpreadsheetEncoder::closeHeader
void closeHeader() final
Definition MWAWSpreadsheetEncoder.cxx:127
MWAWSpreadsheetEncoder::drawPolyline
void drawPolyline(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:466
MWAWSpreadsheetEncoder::startDocument
void startDocument(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:91
MWAWSpreadsheetEncoder::closeOrderedListLevel
void closeOrderedListLevel() final
Definition MWAWSpreadsheetEncoder.cxx:330
MWAWSpreadsheetEncoder::openFooter
void openFooter(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:132
MWAWSpreadsheetEncoder::openListElement
void openListElement(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:340
MWAWSpreadsheetEncoder::drawPolygon
void drawPolygon(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:461
MWAWSpreadsheetEncoder::openTable
void openTable(const librevenge::RVNGPropertyList &propList) final
Definition MWAWSpreadsheetEncoder.cxx:399
MWAWSpreadsheetEncoder::closeGroup
void closeGroup() final
Definition MWAWSpreadsheetEncoder.cxx:441
MWAWSpreadsheetEncoder::closeChartSerie
void closeChartSerie() final
Definition MWAWSpreadsheetEncoder.cxx:225
MWAWSpreadsheetEncoder::m_state
std::shared_ptr< MWAWSpreadsheetEncoderInternal::State > m_state
the actual state
Definition MWAWSpreadsheetEncoder.hxx:184
libmwaw_internal.hxx
MWAWSpreadsheetEncoderInternal
a name space used to define internal data of MWAWSpreadsheetEncoder
Definition MWAWSpreadsheetEncoder.cxx:53
MWAWEmbeddedObject
small class use to define a embedded object
Definition libmwaw_internal.hxx:467
MWAWSpreadsheetEncoderInternal::State
the state of a MWAWSpreadsheetEncoder
Definition MWAWSpreadsheetEncoder.cxx:55