00001 /* libwpd 00002 * Copyright (C) 2002-2005 William Lachance (william.lachance@sympatico.ca) 00003 * Copyright (C) 2002 Marc Maurer (j.m.maurer@student.utwente.nl) 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Library General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Library General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Library General Public 00016 * License along with this library; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 * 00019 * For further information visit http://libwpd.sourceforge.net 00020 */ 00021 00022 /* "This product is not manufactured, approved, or supported by 00023 * Corel Corporation or Corel Corporation Limited." 00024 */ 00025 00026 #ifndef WPXHLLISTENERIMPL_H 00027 #define WPXHLLISTENERIMPL_H 00028 #include "WPXPropertyList.h" 00029 #include "WPXPropertyListVector.h" 00030 00037 class WPXHLListenerImpl 00038 { 00039 public: 00053 virtual void setDocumentMetaData(const WPXPropertyList &propList) = 0; 00054 00058 virtual void startDocument() = 0; 00062 virtual void endDocument() = 0; 00063 00078 virtual void openPageSpan(const WPXPropertyList &propList) = 0; 00082 virtual void closePageSpan() = 0; 00083 00089 virtual void openHeader(const WPXPropertyList &propList) = 0; 00093 virtual void closeHeader() = 0; 00094 00100 virtual void openFooter(const WPXPropertyList &propList) = 0; 00104 virtual void closeFooter() = 0; 00105 00122 virtual void openParagraph(const WPXPropertyList &propList, const WPXPropertyListVector &tabStops) = 0; 00126 virtual void closeParagraph() = 0; 00127 00142 virtual void openSpan(const WPXPropertyList &propList) = 0; 00146 virtual void closeSpan() = 0; 00157 virtual void openSection(const WPXPropertyList &propList, const WPXPropertyListVector &columns) = 0; 00161 virtual void closeSection() = 0; 00162 00166 virtual void insertTab() = 0; 00171 virtual void insertText(const WPXString &text) = 0; 00175 virtual void insertLineBreak() = 0; 00176 00188 virtual void defineOrderedListLevel(const WPXPropertyList &propList) = 0; 00197 virtual void defineUnorderedListLevel(const WPXPropertyList &propList) = 0; 00203 virtual void openOrderedListLevel(const WPXPropertyList &propList) = 0; 00209 virtual void openUnorderedListLevel(const WPXPropertyList &propList) = 0; 00213 virtual void closeOrderedListLevel() = 0; 00217 virtual void closeUnorderedListLevel() = 0; 00234 virtual void openListElement(const WPXPropertyList &propList, const WPXPropertyListVector &tabStops) = 0; 00238 virtual void closeListElement() = 0; 00239 00245 virtual void openFootnote(const WPXPropertyList &propList) = 0; 00246 virtual void closeFootnote() = 0; 00252 virtual void openEndnote(const WPXPropertyList &propList) = 0; 00256 virtual void closeEndnote() = 0; 00257 00268 virtual void openTable(const WPXPropertyList &propList, const WPXPropertyListVector &columns) = 0; 00276 virtual void openTableRow(const WPXPropertyList &propList) = 0; 00280 virtual void closeTableRow() = 0; 00295 virtual void openTableCell(const WPXPropertyList &propList) = 0; 00299 virtual void closeTableCell() = 0; 00306 virtual void insertCoveredTableCell(const WPXPropertyList &propList) = 0; 00310 virtual void closeTable() = 0; 00311 }; 00312 00313 #endif /* WPXHLLISTENERIMPL_H */