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 WPXHLLISTENERIMPL_H 00028 #define WPXHLLISTENERIMPL_H 00029 #include "WPXPropertyList.h" 00030 #include "WPXPropertyListVector.h" 00031 00038 class WPXHLListenerImpl 00039 { 00040 public: 00054 virtual void setDocumentMetaData(const WPXPropertyList &propList) = 0; 00055 00059 virtual void startDocument() = 0; 00063 virtual void endDocument() = 0; 00064 00079 virtual void openPageSpan(const WPXPropertyList &propList) = 0; 00083 virtual void closePageSpan() = 0; 00084 00090 virtual void openHeader(const WPXPropertyList &propList) = 0; 00094 virtual void closeHeader() = 0; 00095 00101 virtual void openFooter(const WPXPropertyList &propList) = 0; 00105 virtual void closeFooter() = 0; 00106 00123 virtual void openParagraph(const WPXPropertyList &propList, const WPXPropertyListVector &tabStops) = 0; 00127 virtual void closeParagraph() = 0; 00128 00143 virtual void openSpan(const WPXPropertyList &propList) = 0; 00147 virtual void closeSpan() = 0; 00158 virtual void openSection(const WPXPropertyList &propList, const WPXPropertyListVector &columns) = 0; 00162 virtual void closeSection() = 0; 00163 00167 virtual void insertTab() = 0; 00172 virtual void insertText(const WPXString &text) = 0; 00176 virtual void insertLineBreak() = 0; 00177 00190 virtual void defineOrderedListLevel(const WPXPropertyList &propList) = 0; 00200 virtual void defineUnorderedListLevel(const WPXPropertyList &propList) = 0; 00206 virtual void openOrderedListLevel(const WPXPropertyList &propList) = 0; 00212 virtual void openUnorderedListLevel(const WPXPropertyList &propList) = 0; 00216 virtual void closeOrderedListLevel() = 0; 00220 virtual void closeUnorderedListLevel() = 0; 00237 virtual void openListElement(const WPXPropertyList &propList, const WPXPropertyListVector &tabStops) = 0; 00241 virtual void closeListElement() = 0; 00242 00248 virtual void openFootnote(const WPXPropertyList &propList) = 0; 00249 virtual void closeFootnote() = 0; 00255 virtual void openEndnote(const WPXPropertyList &propList) = 0; 00259 virtual void closeEndnote() = 0; 00260 00271 virtual void openTable(const WPXPropertyList &propList, const WPXPropertyListVector &columns) = 0; 00280 virtual void openTableRow(const WPXPropertyList &propList) = 0; 00284 virtual void closeTableRow() = 0; 00299 virtual void openTableCell(const WPXPropertyList &propList) = 0; 00303 virtual void closeTableCell() = 0; 00310 virtual void insertCoveredTableCell(const WPXPropertyList &propList) = 0; 00314 virtual void closeTable() = 0; 00315 00316 protected: 00317 ~WPXHLListenerImpl() {} 00318 }; 00319 00320 #endif /* WPXHLLISTENERIMPL_H */