RVNGRawSpreadsheetGenerator.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
00002 /* librevenge
00003  * Version: MPL 2.0 / LGPLv2.1+
00004  *
00005  * This Source Code Form is subject to the terms of the Mozilla Public
00006  * License, v. 2.0. If a copy of the MPL was not distributed with this
00007  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
00008  *
00009  * Major Contributor(s):
00010  * Copyright (C) 2002 William Lachance (wrlach@gmail.com)
00011  * Copyright (C) 2002-2004 Marc Maurer (uwog@uwog.net)
00012  *
00013  * For minor contributions see the git repository.
00014  *
00015  * Alternatively, the contents of this file may be used under the terms
00016  * of the GNU Lesser General Public License Version 2.1 or later
00017  * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
00018  * applicable instead of those above.
00019  */
00020 
00021 #ifndef RVNGRAWSPREADSHEETGENERATOR_H
00022 #define RVNGRAWSPREADSHEETGENERATOR_H
00023 
00024 #include "librevenge-generators-api.h"
00025 
00026 #include <librevenge/librevenge.h>
00027 #include <librevenge-stream/librevenge-stream.h>
00028 
00029 namespace librevenge
00030 {
00031 
00032 struct RVNGRawSpreadsheetGeneratorImpl;
00033 
00034 class REVENGE_GENERATORS_API RVNGRawSpreadsheetGenerator : public RVNGSpreadsheetInterface
00035 {
00036         // disable copying
00037         RVNGRawSpreadsheetGenerator(const RVNGRawSpreadsheetGenerator &other);
00038         RVNGRawSpreadsheetGenerator &operator=(const RVNGRawSpreadsheetGenerator &other);
00039 
00040 public:
00041         explicit RVNGRawSpreadsheetGenerator(bool printCallgraphScore);
00042         ~RVNGRawSpreadsheetGenerator();
00043 
00044         void setDocumentMetaData(const RVNGPropertyList &propList);
00045 
00046         void startDocument(const RVNGPropertyList &propList);
00047         void endDocument();
00048 
00049         void defineEmbeddedFont(const RVNGPropertyList &propList);
00050 
00051         // sheet
00052         void defineSheetNumberingStyle(const RVNGPropertyList &propList);
00053         void openSheet(const RVNGPropertyList &propList);
00054         void closeSheet();
00055         void openSheetRow(const RVNGPropertyList &propList);
00056         void closeSheetRow();
00057         void openSheetCell(const RVNGPropertyList &propList);
00058         void closeSheetCell();
00059 
00060         // chart
00061         void defineChartStyle(const RVNGPropertyList &propList);
00062         void openChart(const RVNGPropertyList &propList);
00063         void closeChart();
00064         void openChartTextObject(const RVNGPropertyList &propList);
00065         void closeChartTextObject();
00066         void openChartPlotArea(const RVNGPropertyList &propList);
00067         void closeChartPlotArea();
00068         void insertChartAxis(const RVNGPropertyList &axis);
00069         void openChartSerie(const librevenge::RVNGPropertyList &series);
00070         void closeChartSerie();
00071 
00072         void definePageStyle(const RVNGPropertyList &propList);
00073         void openPageSpan(const RVNGPropertyList &propList);
00074         void closePageSpan();
00075         void openHeader(const RVNGPropertyList &propList);
00076         void closeHeader();
00077         void openFooter(const RVNGPropertyList &propList);
00078         void closeFooter();
00079 
00080         void defineParagraphStyle(const RVNGPropertyList &propList);
00081         void openParagraph(const RVNGPropertyList &propList);
00082         void closeParagraph();
00083 
00084         void defineCharacterStyle(const RVNGPropertyList &propList);
00085         void openSpan(const RVNGPropertyList &propList);
00086         void closeSpan();
00087 
00088         void openLink(const RVNGPropertyList &propList);
00089         void closeLink();
00090 
00091         void defineSectionStyle(const RVNGPropertyList &propList);
00092         void openSection(const RVNGPropertyList &propList);
00093         void closeSection();
00094 
00095         void insertTab();
00096         void insertSpace();
00097         void insertText(const RVNGString &text);
00098         void insertLineBreak();
00099         void insertField(const RVNGPropertyList &propList);
00100 
00101         void openOrderedListLevel(const RVNGPropertyList &propList);
00102         void openUnorderedListLevel(const RVNGPropertyList &propList);
00103         void closeOrderedListLevel();
00104         void closeUnorderedListLevel();
00105         void openListElement(const RVNGPropertyList &propList);
00106         void closeListElement();
00107 
00108         void openFootnote(const RVNGPropertyList &propList);
00109         void closeFootnote();
00110         void openEndnote(const RVNGPropertyList &propList);
00111         void closeEndnote();
00112         void openComment(const RVNGPropertyList &propList);
00113         void closeComment();
00114 
00115         void openTextBox(const RVNGPropertyList &propList);
00116         void closeTextBox();
00117 
00118         void openTable(const RVNGPropertyList &propList);
00119         void openTableRow(const RVNGPropertyList &propList);
00120         void closeTableRow();
00121         void openTableCell(const RVNGPropertyList &propList);
00122         void closeTableCell();
00123         void insertCoveredTableCell(const RVNGPropertyList &propList);
00124         void closeTable();
00125 
00126         void openFrame(const RVNGPropertyList &propList);
00127         void closeFrame();
00128 
00129         void insertBinaryObject(const RVNGPropertyList &propList);
00130 
00131         // drawing function
00132         void openGroup(const RVNGPropertyList &propList);
00133         void closeGroup();
00134 
00135         void defineGraphicStyle(const RVNGPropertyList &propList);
00136         void drawRectangle(const RVNGPropertyList &propList);
00137         void drawEllipse(const RVNGPropertyList &propList);
00138         void drawPolygon(const RVNGPropertyList &propList);
00139         void drawPolyline(const RVNGPropertyList &propList);
00140         void drawPath(const RVNGPropertyList &propList);
00141         void drawConnector(const RVNGPropertyList &propList);
00142 
00143         void insertEquation(const RVNGPropertyList &propList);
00144 
00145 private:
00146         RVNGRawSpreadsheetGeneratorImpl *m_impl;
00147 };
00148 
00149 }
00150 
00151 #endif /* RVNGRAWSPREADSHEETGENERATOR_H */
00152 
00153 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */