STOFFSpreadsheetEncoder.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 -*- */
/* libstaroffice
* 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 STOFF_SPREADSHEET_ENCODER_HXX
#define STOFF_SPREADSHEET_ENCODER_HXX
#include <librevenge/librevenge.h>
#include "libstaroffice_internal.hxx"
class STOFFPropertyHandlerEncoder;
namespace STOFFSpreadsheetEncoderInternal
{
struct State;
}
class STOFFSpreadsheetEncoder final : public librevenge::RVNGSpreadsheetInterface
{
public:
STOFFSpreadsheetEncoder();
~STOFFSpreadsheetEncoder() final;
bool getBinaryResult(STOFFEmbeddedObject &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<STOFFSpreadsheetEncoderInternal::State> m_state;
};
#endif
// 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::openSheetCell
void openSheetCell(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:166
STOFFSpreadsheetEncoder::insertLineBreak
void insertLineBreak() final
Definition STOFFSpreadsheetEncoder.cxx:307
STOFFSpreadsheetEncoder::openFootnote
void openFootnote(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:354
STOFFSpreadsheetEncoder::insertText
void insertText(const librevenge::RVNGString &text) final
Definition STOFFSpreadsheetEncoder.cxx:302
STOFFSpreadsheetEncoder::closeTextBox
void closeTextBox() final
Definition STOFFSpreadsheetEncoder.cxx:394
STOFFSpreadsheetEncoder::drawEllipse
void drawEllipse(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:456
STOFFSpreadsheetEncoder::defineChartStyle
void defineChartStyle(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:180
STOFFSpreadsheetEncoder::defineSectionStyle
void defineSectionStyle(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:277
STOFFSpreadsheetEncoder::openParagraph
void openParagraph(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:239
STOFFSpreadsheetEncoder::openUnorderedListLevel
void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:325
STOFFSpreadsheetEncoder::closeFooter
void closeFooter() final
Definition STOFFSpreadsheetEncoder.cxx:136
STOFFSpreadsheetEncoder::endDocument
void endDocument() final
Definition STOFFSpreadsheetEncoder.cxx:96
STOFFSpreadsheetEncoder::openChart
void openChart(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:185
STOFFSpreadsheetEncoder::closeUnorderedListLevel
void closeUnorderedListLevel() final
Definition STOFFSpreadsheetEncoder.cxx:335
STOFFSpreadsheetEncoder::insertBinaryObject
void insertBinaryObject(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:381
STOFFSpreadsheetEncoder::insertSpace
void insertSpace() final
Definition STOFFSpreadsheetEncoder.cxx:297
STOFFSpreadsheetEncoder::openGroup
void openGroup(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:436
STOFFSpreadsheetEncoder::closeComment
void closeComment() final
Definition STOFFSpreadsheetEncoder.cxx:368
STOFFSpreadsheetEncoder::drawPolygon
void drawPolygon(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:461
STOFFSpreadsheetEncoder::openChartTextObject
void openChartTextObject(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:195
STOFFSpreadsheetEncoder::definePageStyle
void definePageStyle(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:104
STOFFSpreadsheetEncoder::openChartSerie
void openChartSerie(const librevenge::RVNGPropertyList &series) final
Definition STOFFSpreadsheetEncoder.cxx:220
STOFFSpreadsheetEncoder::openChartPlotArea
void openChartPlotArea(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:205
STOFFSpreadsheetEncoder::closeChartTextObject
void closeChartTextObject() final
Definition STOFFSpreadsheetEncoder.cxx:200
STOFFSpreadsheetEncoder::closeChartPlotArea
void closeChartPlotArea() final
Definition STOFFSpreadsheetEncoder.cxx:210
STOFFSpreadsheetEncoder::defineEmbeddedFont
void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:109
STOFFSpreadsheetEncoder::closeSection
void closeSection() final
Definition STOFFSpreadsheetEncoder.cxx:287
STOFFSpreadsheetEncoder::insertField
void insertField(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:312
STOFFSpreadsheetEncoder::drawRectangle
void drawRectangle(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:451
STOFFSpreadsheetEncoder::closeSheetRow
void closeSheetRow() final
Definition STOFFSpreadsheetEncoder.cxx:161
STOFFSpreadsheetEncoder::closeGroup
void closeGroup() final
Definition STOFFSpreadsheetEncoder.cxx:441
STOFFSpreadsheetEncoder::openListElement
void openListElement(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:340
STOFFSpreadsheetEncoder::STOFFSpreadsheetEncoder
STOFFSpreadsheetEncoder()
constructor
Definition STOFFSpreadsheetEncoder.cxx:67
STOFFSpreadsheetEncoder::closeChartSerie
void closeChartSerie() final
Definition STOFFSpreadsheetEncoder.cxx:225
STOFFSpreadsheetEncoder::openHeader
void openHeader(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:123
STOFFSpreadsheetEncoder::closeLink
void closeLink() final
Definition STOFFSpreadsheetEncoder.cxx:269
STOFFSpreadsheetEncoder::defineParagraphStyle
void defineParagraphStyle(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:234
STOFFSpreadsheetEncoder::insertTab
void insertTab() final
Definition STOFFSpreadsheetEncoder.cxx:292
STOFFSpreadsheetEncoder::insertCoveredTableCell
void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:427
STOFFSpreadsheetEncoder::getBinaryResult
bool getBinaryResult(STOFFEmbeddedObject &object)
return the final spreadsheet
Definition STOFFSpreadsheetEncoder.cxx:77
STOFFSpreadsheetEncoder::insertChartAxis
void insertChartAxis(const librevenge::RVNGPropertyList &axis) final
Definition STOFFSpreadsheetEncoder.cxx:215
STOFFSpreadsheetEncoder::startDocument
void startDocument(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:91
STOFFSpreadsheetEncoder::openSpan
void openSpan(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:254
STOFFSpreadsheetEncoder::closePageSpan
void closePageSpan() final
Definition STOFFSpreadsheetEncoder.cxx:118
STOFFSpreadsheetEncoder::closeTableRow
void closeTableRow() final
Definition STOFFSpreadsheetEncoder.cxx:412
STOFFSpreadsheetEncoder::closeSheet
void closeSheet() final
Definition STOFFSpreadsheetEncoder.cxx:152
STOFFSpreadsheetEncoder::closeChart
void closeChart() final
Definition STOFFSpreadsheetEncoder.cxx:190
STOFFSpreadsheetEncoder::closeTableCell
void closeTableCell() final
Definition STOFFSpreadsheetEncoder.cxx:422
STOFFSpreadsheetEncoder::defineGraphicStyle
void defineGraphicStyle(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:446
STOFFSpreadsheetEncoder::closeHeader
void closeHeader() final
Definition STOFFSpreadsheetEncoder.cxx:127
STOFFSpreadsheetEncoder::closeSpan
void closeSpan() final
Definition STOFFSpreadsheetEncoder.cxx:259
STOFFSpreadsheetEncoder::openFrame
void openFrame(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:373
STOFFSpreadsheetEncoder::setDocumentMetaData
void setDocumentMetaData(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:86
STOFFSpreadsheetEncoder::closeSheetCell
void closeSheetCell() final
Definition STOFFSpreadsheetEncoder.cxx:171
STOFFSpreadsheetEncoder::drawConnector
void drawConnector(const ::librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:476
STOFFSpreadsheetEncoder::openTableCell
void openTableCell(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:417
STOFFSpreadsheetEncoder::openFooter
void openFooter(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:132
STOFFSpreadsheetEncoder::closeTable
void closeTable() final
Definition STOFFSpreadsheetEncoder.cxx:403
STOFFSpreadsheetEncoder::~STOFFSpreadsheetEncoder
~STOFFSpreadsheetEncoder() final
destructor
Definition STOFFSpreadsheetEncoder.cxx:73
STOFFSpreadsheetEncoder::insertEquation
void insertEquation(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:484
STOFFSpreadsheetEncoder::openComment
void openComment(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:364
STOFFSpreadsheetEncoder::openLink
void openLink(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:264
STOFFSpreadsheetEncoder::drawPolyline
void drawPolyline(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:466
STOFFSpreadsheetEncoder::openTable
void openTable(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:399
STOFFSpreadsheetEncoder::openTextBox
void openTextBox(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:389
STOFFSpreadsheetEncoder::defineSheetNumberingStyle
void defineSheetNumberingStyle(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:144
STOFFSpreadsheetEncoder::openSheet
void openSheet(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:148
STOFFSpreadsheetEncoder::closeFootnote
void closeFootnote() final
Definition STOFFSpreadsheetEncoder.cxx:359
STOFFSpreadsheetEncoder::closeListElement
void closeListElement() final
Definition STOFFSpreadsheetEncoder.cxx:345
STOFFSpreadsheetEncoder::openPageSpan
void openPageSpan(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:114
STOFFSpreadsheetEncoder::openSheetRow
void openSheetRow(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:156
STOFFSpreadsheetEncoder::closeOrderedListLevel
void closeOrderedListLevel() final
Definition STOFFSpreadsheetEncoder.cxx:330
STOFFSpreadsheetEncoder::openSection
void openSection(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:282
STOFFSpreadsheetEncoder::closeParagraph
void closeParagraph() final
Definition STOFFSpreadsheetEncoder.cxx:244
STOFFSpreadsheetEncoder::openTableRow
void openTableRow(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:407
STOFFSpreadsheetEncoder::openOrderedListLevel
void openOrderedListLevel(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:320
STOFFSpreadsheetEncoder::drawPath
void drawPath(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:471
STOFFSpreadsheetEncoder::closeFrame
void closeFrame() final
Definition STOFFSpreadsheetEncoder.cxx:377
STOFFSpreadsheetEncoder::defineCharacterStyle
void defineCharacterStyle(const librevenge::RVNGPropertyList &propList) final
Definition STOFFSpreadsheetEncoder.cxx:249
STOFFSpreadsheetEncoder::m_state
std::shared_ptr< STOFFSpreadsheetEncoderInternal::State > m_state
the actual state
Definition STOFFSpreadsheetEncoder.hxx:184
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:408
STOFFSpreadsheetEncoderInternal::State
the state of a STOFFSpreadsheetEncoder
Definition STOFFSpreadsheetEncoder.cxx:55