00001 /* libwpd 00002 * Copyright (C) 2002-2005 William Lachance (wrlach@gmail.com) 00003 * Copyright (C) 2002 Marc Maurer (uwog@uwog.net) 00004 * Copyright (C) 2006 Fridrich Strba (fridrich.strba@bluewin.ch) 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Library General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Library General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Library General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 00019 * 00020 * For further information visit http://libwpd.sourceforge.net 00021 */ 00022 00023 /* "This product is not manufactured, approved, or supported by 00024 * Corel Corporation or Corel Corporation Limited." 00025 */ 00026 00027 #ifndef WPXDOCUMENTINTERFACEIMPL_H 00028 #define WPXDOCUMENTINTERFACEIMPL_H 00029 #include "WPXPropertyList.h" 00030 #include "WPXPropertyListVector.h" 00031 #include "WPXBinaryData.h" 00032 00039 class WPXInputStream; 00040 00041 class WPXDocumentInterface 00042 { 00043 public: 00044 virtual ~WPXDocumentInterface() {} 00045 00101 virtual void setDocumentMetaData(const WPXPropertyList &propList) = 0; 00102 00106 virtual void startDocument() = 0; 00110 virtual void endDocument() = 0; 00111 00112 virtual void definePageStyle(const WPXPropertyList &propList) = 0; 00113 00128 virtual void openPageSpan(const WPXPropertyList &propList) = 0; 00132 virtual void closePageSpan() = 0; 00133 00139 virtual void openHeader(const WPXPropertyList &propList) = 0; 00143 virtual void closeHeader() = 0; 00144 00150 virtual void openFooter(const WPXPropertyList &propList) = 0; 00154 virtual void closeFooter() = 0; 00155 00156 virtual void defineParagraphStyle(const WPXPropertyList &propList, const WPXPropertyListVector &tabStops) = 0; 00157 00175 virtual void openParagraph(const WPXPropertyList &propList, const WPXPropertyListVector &tabStops) = 0; 00179 virtual void closeParagraph() = 0; 00180 00181 virtual void defineCharacterStyle(const WPXPropertyList &propList) = 0; 00182 00199 virtual void openSpan(const WPXPropertyList &propList) = 0; 00203 virtual void closeSpan() = 0; 00204 00205 virtual void defineSectionStyle(const WPXPropertyList &propList, const WPXPropertyListVector &columns) = 0; 00206 00219 virtual void openSection(const WPXPropertyList &propList, const WPXPropertyListVector &columns) = 0; 00223 virtual void closeSection() = 0; 00224 00228 virtual void insertTab() = 0; 00232 virtual void insertSpace() = 0; 00237 virtual void insertText(const WPXString &text) = 0; 00241 virtual void insertLineBreak() = 0; 00242 00250 virtual void insertField(const WPXString &type, const WPXPropertyList &propList) = 0; 00251 00264 virtual void defineOrderedListLevel(const WPXPropertyList &propList) = 0; 00274 virtual void defineUnorderedListLevel(const WPXPropertyList &propList) = 0; 00280 virtual void openOrderedListLevel(const WPXPropertyList &propList) = 0; 00286 virtual void openUnorderedListLevel(const WPXPropertyList &propList) = 0; 00290 virtual void closeOrderedListLevel() = 0; 00294 virtual void closeUnorderedListLevel() = 0; 00312 virtual void openListElement(const WPXPropertyList &propList, const WPXPropertyListVector &tabStops) = 0; 00316 virtual void closeListElement() = 0; 00317 00323 virtual void openFootnote(const WPXPropertyList &propList) = 0; 00327 virtual void closeFootnote() = 0; 00328 00334 virtual void openEndnote(const WPXPropertyList &propList) = 0; 00338 virtual void closeEndnote() = 0; 00339 00344 virtual void openComment(const WPXPropertyList &propList) = 0; 00348 virtual void closeComment() = 0; 00349 00354 virtual void openTextBox(const WPXPropertyList &propList) = 0; 00358 virtual void closeTextBox() = 0; 00359 00371 virtual void openTable(const WPXPropertyList &propList, const WPXPropertyListVector &columns) = 0; 00379 virtual void openTableRow(const WPXPropertyList &propList) = 0; 00383 virtual void closeTableRow() = 0; 00398 virtual void openTableCell(const WPXPropertyList &propList) = 0; 00402 virtual void closeTableCell() = 0; 00409 virtual void insertCoveredTableCell(const WPXPropertyList &propList) = 0; 00413 virtual void closeTable() = 0; 00429 virtual void openFrame(const WPXPropertyList &propList) = 0; 00433 virtual void closeFrame() = 0; 00440 virtual void insertBinaryObject(const WPXPropertyList &propList, const WPXBinaryData &data) = 0; 00447 virtual void insertEquation(const WPXPropertyList &propList, const WPXString &data) = 0; 00448 }; 00449 00450 #endif /* WPXDOCUMENTINTERFACEIMPL_H */