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 00126 virtual void openPageSpan(const WPXPropertyList &propList) = 0; 00130 virtual void closePageSpan() = 0; 00131 00137 virtual void openHeader(const WPXPropertyList &propList) = 0; 00141 virtual void closeHeader() = 0; 00142 00148 virtual void openFooter(const WPXPropertyList &propList) = 0; 00152 virtual void closeFooter() = 0; 00153 00171 virtual void openParagraph(const WPXPropertyList &propList, const WPXPropertyListVector &tabStops) = 0; 00175 virtual void closeParagraph() = 0; 00176 00193 virtual void openSpan(const WPXPropertyList &propList) = 0; 00197 virtual void closeSpan() = 0; 00210 virtual void openSection(const WPXPropertyList &propList, const WPXPropertyListVector &columns) = 0; 00214 virtual void closeSection() = 0; 00215 00219 virtual void insertTab() = 0; 00224 virtual void insertText(const WPXString &text) = 0; 00228 virtual void insertLineBreak() = 0; 00229 00242 virtual void defineOrderedListLevel(const WPXPropertyList &propList) = 0; 00252 virtual void defineUnorderedListLevel(const WPXPropertyList &propList) = 0; 00258 virtual void openOrderedListLevel(const WPXPropertyList &propList) = 0; 00264 virtual void openUnorderedListLevel(const WPXPropertyList &propList) = 0; 00268 virtual void closeOrderedListLevel() = 0; 00272 virtual void closeUnorderedListLevel() = 0; 00290 virtual void openListElement(const WPXPropertyList &propList, const WPXPropertyListVector &tabStops) = 0; 00294 virtual void closeListElement() = 0; 00295 00301 virtual void openFootnote(const WPXPropertyList &propList) = 0; 00305 virtual void closeFootnote() = 0; 00306 00312 virtual void openEndnote(const WPXPropertyList &propList) = 0; 00316 virtual void closeEndnote() = 0; 00317 00322 virtual void openComment(const WPXPropertyList &propList) = 0; 00326 virtual void closeComment() = 0; 00327 00332 virtual void openTextBox(const WPXPropertyList &propList) = 0; 00336 virtual void closeTextBox() = 0; 00337 00349 virtual void openTable(const WPXPropertyList &propList, const WPXPropertyListVector &columns) = 0; 00357 virtual void openTableRow(const WPXPropertyList &propList) = 0; 00361 virtual void closeTableRow() = 0; 00376 virtual void openTableCell(const WPXPropertyList &propList) = 0; 00380 virtual void closeTableCell() = 0; 00387 virtual void insertCoveredTableCell(const WPXPropertyList &propList) = 0; 00391 virtual void closeTable() = 0; 00407 virtual void openFrame(const WPXPropertyList &propList) = 0; 00411 virtual void closeFrame() = 0; 00418 virtual void insertBinaryObject(const WPXPropertyList &propList, const WPXBinaryData &data) = 0; 00419 }; 00420 00421 #endif /* WPXDOCUMENTINTERFACEIMPL_H */