Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

WP3Listener.h

Go to the documentation of this file.
00001 /* libwpd
00002  * Copyright (C) 2004 Marc Maurer (uwog@uwog.net)
00003  * Copyright (C) 2005-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
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 WP3LISTENER_H
00027 #define WP3LISTENER_H
00028 
00029 #include "libwpd_internal.h"
00030 #include <vector>
00031 
00032 class WP3SubDocument;
00033 
00034 class WP3Listener
00035 {
00036 public:
00037         WP3Listener();
00038         virtual ~WP3Listener() {}
00039 
00040         virtual void startDocument() = 0;
00041         virtual void insertCharacter(const uint16_t character) = 0;
00042         virtual void insertTab() = 0;
00043         virtual void insertTab(const uint8_t tabType, const float tabPosition) = 0;
00044         virtual void insertBreak(const uint8_t breakType) = 0;
00045         virtual void insertEOL() = 0;
00046         virtual void lineSpacingChange(const float lineSpacing) = 0;
00047         virtual void attributeChange(const bool isOn, const uint8_t attribute) = 0;
00048         virtual void pageMarginChange(const uint8_t side, const uint16_t margin) = 0;
00049         virtual void pageFormChange(const uint16_t length, const uint16_t width, const WPXFormOrientation orientation) = 0;
00050         virtual void marginChange(const uint8_t side, const uint16_t margin) = 0;
00051         virtual void indentFirstLineChange(const int16_t offset) = 0;
00052         virtual void setTabs(const bool isRelative, const std::vector<WPXTabStop> tabStops) = 0;
00053         virtual void columnChange(const WPXTextColumnType columnType, const uint8_t numColumns, const std::vector<float> &columnWidth,
00054                                         const std::vector<bool> &isFixedWidth) = 0;
00055         virtual void endDocument() = 0;
00056 
00057         virtual void defineTable(const uint8_t position, const uint16_t leftOffset) = 0;
00058         virtual void addTableColumnDefinition(const uint32_t width, const uint32_t leftGutter, const uint32_t rightGutter,
00059                                         const uint32_t attributes, const uint8_t alignment) = 0;
00060         virtual void startTable() = 0;
00061         virtual void closeCell() = 0;
00062         virtual void closeRow() = 0;
00063         virtual void setTableCellSpan(const uint16_t colSpan, const uint16_t rowSpan) = 0;
00064         virtual void setTableCellFillColor(const RGBSColor * cellFillColor) = 0;
00065         virtual void endTable() = 0;
00066         virtual void undoChange(const uint8_t undoType, const uint16_t undoLevel) = 0;
00067         virtual void justificationChange(const uint8_t justification) = 0;
00068         virtual void setTextColor(const RGBSColor * fontColor) = 0;
00069         virtual void setTextFont(const WPXString &fontName) = 0;
00070         virtual void setFontSize(const uint16_t fontSize) = 0;
00071         virtual void insertPageNumber(const WPXString &pageNumber) = 0;
00072         virtual void insertNoteReference(const WPXString &noteReference) = 0;
00073         virtual void insertNote(const WPXNoteType noteType, WP3SubDocument *subDocument) = 0;
00074         virtual void headerFooterGroup(const uint8_t headerFooterType, const uint8_t occurenceBits, WP3SubDocument *subDocument) = 0;
00075         virtual void suppressPage(const uint16_t suppressCode) = 0;
00076         virtual void backTab() = 0;
00077         virtual void leftIndent() = 0;
00078         virtual void leftIndent(const float offset) = 0;
00079         virtual void leftRightIndent() = 0;
00080         virtual void leftRightIndent(const float offset) = 0;
00081 };
00082 
00083 #endif /* WP3LISTENER_H */

Generated on Sat Aug 20 05:20:56 2022 for libwpd by doxygen 1.3.5