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 RVNGRAWTEXTGENERATOR_H 00022 #define RVNGRAWTEXTGENERATOR_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 RVNGRawTextGeneratorImpl; 00033 00034 class REVENGE_GENERATORS_API RVNGRawTextGenerator : public RVNGTextInterface 00035 { 00036 // disable copying 00037 RVNGRawTextGenerator(const RVNGRawTextGenerator &other); 00038 RVNGRawTextGenerator &operator=(const RVNGRawTextGenerator &other); 00039 00040 public: 00041 explicit RVNGRawTextGenerator(bool printCallgraphScore); 00042 ~RVNGRawTextGenerator(); 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 void definePageStyle(const RVNGPropertyList &propList); 00052 void openPageSpan(const RVNGPropertyList &propList); 00053 void closePageSpan(); 00054 void openHeader(const RVNGPropertyList &propList); 00055 void closeHeader(); 00056 void openFooter(const RVNGPropertyList &propList); 00057 void closeFooter(); 00058 00059 void defineParagraphStyle(const RVNGPropertyList &propList); 00060 void openParagraph(const RVNGPropertyList &propList); 00061 void closeParagraph(); 00062 00063 void defineCharacterStyle(const RVNGPropertyList &propList); 00064 void openSpan(const RVNGPropertyList &propList); 00065 void closeSpan(); 00066 00067 void openLink(const RVNGPropertyList &propList); 00068 void closeLink(); 00069 00070 void defineSectionStyle(const RVNGPropertyList &propList); 00071 void openSection(const RVNGPropertyList &propList); 00072 void closeSection(); 00073 00074 void insertTab(); 00075 void insertSpace(); 00076 void insertText(const RVNGString &text); 00077 void insertLineBreak(); 00078 void insertField(const RVNGPropertyList &propList); 00079 00080 void openOrderedListLevel(const RVNGPropertyList &propList); 00081 void openUnorderedListLevel(const RVNGPropertyList &propList); 00082 void closeOrderedListLevel(); 00083 void closeUnorderedListLevel(); 00084 void openListElement(const RVNGPropertyList &propList); 00085 void closeListElement(); 00086 00087 void openFootnote(const RVNGPropertyList &propList); 00088 void closeFootnote(); 00089 void openEndnote(const RVNGPropertyList &propList); 00090 void closeEndnote(); 00091 void openComment(const RVNGPropertyList &propList); 00092 void closeComment(); 00093 void openTextBox(const RVNGPropertyList &propList); 00094 void closeTextBox(); 00095 00096 void openTable(const RVNGPropertyList &propList); 00097 void openTableRow(const RVNGPropertyList &propList); 00098 void closeTableRow(); 00099 void openTableCell(const RVNGPropertyList &propList); 00100 void closeTableCell(); 00101 void insertCoveredTableCell(const RVNGPropertyList &propList); 00102 void closeTable(); 00103 00104 void openFrame(const RVNGPropertyList &propList); 00105 void closeFrame(); 00106 00107 void openGroup(const librevenge::RVNGPropertyList &propList); 00108 void closeGroup(); 00109 00110 void defineGraphicStyle(const librevenge::RVNGPropertyList &propList); 00111 void drawRectangle(const librevenge::RVNGPropertyList &propList); 00112 void drawEllipse(const librevenge::RVNGPropertyList &propList); 00113 void drawPolygon(const librevenge::RVNGPropertyList &propList); 00114 void drawPolyline(const librevenge::RVNGPropertyList &propList); 00115 void drawPath(const librevenge::RVNGPropertyList &propList); 00116 void drawConnector(const RVNGPropertyList &propList); 00117 00118 void insertBinaryObject(const RVNGPropertyList &propList); 00119 void insertEquation(const RVNGPropertyList &propList); 00120 00121 private: 00122 RVNGRawTextGeneratorImpl *m_impl; 00123 }; 00124 00125 } 00126 00127 #endif /* RVNGRAWTEXTGENERATOR_H */ 00128 00129 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */