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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 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 00189 virtual void defineOrderedListLevel(const WPXPropertyList &propList) = 0; 00199 virtual void defineUnorderedListLevel(const WPXPropertyList &propList) = 0; 00205 virtual void openOrderedListLevel(const WPXPropertyList &propList) = 0; 00211 virtual void openUnorderedListLevel(const WPXPropertyList &propList) = 0; 00215 virtual void closeOrderedListLevel() = 0; 00219 virtual void closeUnorderedListLevel() = 0; 00236 virtual void openListElement(const WPXPropertyList &propList, const WPXPropertyListVector &tabStops) = 0; 00240 virtual void closeListElement() = 0; 00241 00247 virtual void openFootnote(const WPXPropertyList &propList) = 0; 00248 virtual void closeFootnote() = 0; 00254 virtual void openEndnote(const WPXPropertyList &propList) = 0; 00258 virtual void closeEndnote() = 0; 00259 00270 virtual void openTable(const WPXPropertyList &propList, const WPXPropertyListVector &columns) = 0; 00278 virtual void openTableRow(const WPXPropertyList &propList) = 0; 00282 virtual void closeTableRow() = 0; 00297 virtual void openTableCell(const WPXPropertyList &propList) = 0; 00301 virtual void closeTableCell() = 0; 00308 virtual void insertCoveredTableCell(const WPXPropertyList &propList) = 0; 00312 virtual void closeTable() = 0; 00313 }; 00314 00315 #endif /* WPXHLLISTENERIMPL_H */