/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ /* libwpd * Copyright (C) 2003 William Lachance (wrlach@gmail.com) * Copyright (C) 2003 Marc Maurer (uwog@uwog.net) * Copyright (C) 2005-2006 Fridrich Strba (fridrich.strba@bluewin.ch) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * * For further information visit http://libwpd.sourceforge.net */ /* "This product is not manufactured, approved, or supported by * Corel Corporation or Corel Corporation Limited." */ #ifndef WP1LISTENER_H #define WP1LISTENER_H #include "libwpd_internal.h" #include class WP1SubDocument; class WPXBinaryData; class WP1Listener { public: WP1Listener(); virtual ~WP1Listener() {}; virtual void startDocument() = 0; virtual void startSubDocument() = 0; virtual void insertCharacter(uint32_t character) = 0; virtual void insertExtendedCharacter(uint8_t extendedCharacter) = 0; virtual void insertTab() = 0; virtual void insertBreak(uint8_t breakType) = 0; virtual void insertEOL() = 0; virtual void insertNote(WPXNoteType noteType, WP1SubDocument *subDocument) = 0; virtual void attributeChange(bool isOn, uint8_t attribute) = 0; virtual void fontPointSize(uint8_t pointSize) = 0; virtual void fontId(uint16_t id) = 0; virtual void marginReset(uint16_t leftMargin, uint16_t rightMargin) = 0; virtual void topMarginSet(uint16_t topMargin) = 0; virtual void bottomMarginSet(uint16_t bottomMargin) = 0; virtual void leftIndent(uint16_t leftMarginOffset) = 0; virtual void leftRightIndent(uint16_t leftRightMarginOffset) = 0; virtual void leftMarginRelease(uint16_t release) = 0; virtual void setTabs(const std::vector &tabStops) = 0; virtual void headerFooterGroup(uint8_t headerFooterDefinition, WP1SubDocument *subDocument) = 0; virtual void suppressPageCharacteristics(uint8_t suppressCode) = 0; virtual void justificationChange(uint8_t justification) = 0; virtual void lineSpacingChange(uint8_t spacing) = 0; virtual void flushRightOn() = 0; virtual void flushRightOff() = 0; virtual void centerOn() = 0; virtual void centerOff() = 0; virtual void endDocument() = 0; virtual void endSubDocument() = 0; virtual void insertPicture(uint16_t width, uint16_t height, const WPXBinaryData &binaryData) = 0; }; #endif /* WP1LISTENER_H */ /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */