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 * Alternatively, the contents of this file may be used under the terms 00010 * of the GNU Lesser General Public License Version 2.1 or later 00011 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are 00012 * applicable instead of those above. 00013 */ 00014 00015 #ifndef RVNGRAWPRESENTATIONGENERATOR_H 00016 #define RVNGRAWPRESENTATIONGENERATOR_H 00017 00018 #include "librevenge-generators-api.h" 00019 00020 #include <librevenge/librevenge.h> 00021 #include <librevenge-stream/librevenge-stream.h> 00022 00023 namespace librevenge 00024 { 00025 00026 struct RVNGRawPresentationGeneratorImpl; 00027 00028 class REVENGE_GENERATORS_API RVNGRawPresentationGenerator : public RVNGPresentationInterface 00029 { 00030 // disable copying 00031 RVNGRawPresentationGenerator(const RVNGRawPresentationGenerator &other); 00032 RVNGRawPresentationGenerator &operator=(const RVNGRawPresentationGenerator &other); 00033 00034 public: 00035 explicit RVNGRawPresentationGenerator(bool printCallgraphScore); 00036 ~RVNGRawPresentationGenerator(); 00037 00038 void startDocument(const RVNGPropertyList &propList); 00039 void endDocument(); 00040 void setDocumentMetaData(const RVNGPropertyList &propList); 00041 void defineEmbeddedFont(const RVNGPropertyList &propList); 00042 void startSlide(const RVNGPropertyList &propList); 00043 void endSlide(); 00044 void startMasterSlide(const RVNGPropertyList &propList); 00045 void endMasterSlide(); 00046 void setSlideTransition(const RVNGPropertyList &propList); 00047 void startLayer(const RVNGPropertyList &propList); 00048 void endLayer(); 00049 void startEmbeddedGraphics(const RVNGPropertyList &propList); 00050 void endEmbeddedGraphics(); 00051 void openGroup(const RVNGPropertyList &propList); 00052 void closeGroup(); 00053 00054 void setStyle(const RVNGPropertyList &propList); 00055 00056 void drawRectangle(const RVNGPropertyList &propList); 00057 void drawEllipse(const RVNGPropertyList &propList); 00058 void drawPolyline(const RVNGPropertyList &propList); 00059 void drawPolygon(const RVNGPropertyList &propList); 00060 void drawPath(const RVNGPropertyList &propList); 00061 void drawGraphicObject(const RVNGPropertyList &propList); 00062 void drawConnector(const RVNGPropertyList &propList); 00063 00064 void startTextObject(const RVNGPropertyList &propList); 00065 void endTextObject(); 00066 void defineParagraphStyle(const RVNGPropertyList &propList); 00067 void openParagraph(const RVNGPropertyList &propList); 00068 void closeParagraph(); 00069 void defineCharacterStyle(const RVNGPropertyList &propList); 00070 void openSpan(const RVNGPropertyList &propList); 00071 void closeSpan(); 00072 00073 void openLink(const RVNGPropertyList &propList); 00074 void closeLink(); 00075 00076 void insertTab(); 00077 void insertSpace(); 00078 void insertText(const RVNGString &str); 00079 void insertLineBreak(); 00080 00081 void insertField(const RVNGPropertyList &propList); 00082 00083 void openOrderedListLevel(const RVNGPropertyList &propList); 00084 void openUnorderedListLevel(const RVNGPropertyList &propList); 00085 void closeOrderedListLevel(); 00086 void closeUnorderedListLevel(); 00087 void openListElement(const RVNGPropertyList &propList); 00088 void closeListElement(); 00089 00090 void startTableObject(const RVNGPropertyList &propList); 00091 void openTableRow(const RVNGPropertyList &propList); 00092 void closeTableRow(); 00093 void openTableCell(const RVNGPropertyList &propList); 00094 void closeTableCell(); 00095 void insertCoveredTableCell(const RVNGPropertyList &propList); 00096 void endTableObject(); 00097 00098 void startComment(const RVNGPropertyList &propList); 00099 void endComment(); 00100 00101 void startNotes(const RVNGPropertyList &propList); 00102 void endNotes(); 00103 00104 void defineChartStyle(const RVNGPropertyList &propList); 00105 void openChart(const RVNGPropertyList &propList); 00106 void closeChart(); 00107 void openChartTextObject(const RVNGPropertyList &propList); 00108 void closeChartTextObject(); 00109 void openChartPlotArea(const RVNGPropertyList &propList); 00110 void closeChartPlotArea(); 00111 void insertChartAxis(const RVNGPropertyList &propList); 00112 void openChartSeries(const librevenge::RVNGPropertyList &propList); 00113 void closeChartSeries(); 00114 00115 void openAnimationSequence(const RVNGPropertyList &propList); 00116 void closeAnimationSequence(); 00117 void openAnimationGroup(const RVNGPropertyList &propList); 00118 void closeAnimationGroup(); 00119 void openAnimationIteration(const RVNGPropertyList &propList); 00120 void closeAnimationIteration(); 00121 void insertMotionAnimation(const RVNGPropertyList &propList); 00122 void insertColorAnimation(const RVNGPropertyList &propList); 00123 void insertAnimation(const RVNGPropertyList &propList); 00124 void insertEffect(const RVNGPropertyList &propList); 00125 00126 private: 00127 RVNGRawPresentationGeneratorImpl *m_impl; 00128 }; 00129 00130 } 00131 00132 #endif // RVNGRAWPRESENTATIONGENERATOR_H 00133 00134 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */