WP1Listener.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /* libwpd
3  * Copyright (C) 2003 William Lachance (wrlach@gmail.com)
4  * Copyright (C) 2003 Marc Maurer (uwog@uwog.net)
5  * Copyright (C) 2005-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
20  *
21  * For further information visit http://libwpd.sourceforge.net
22  */
23 
24 /* "This product is not manufactured, approved, or supported by
25  * Corel Corporation or Corel Corporation Limited."
26  */
27 
28 #ifndef WP1LISTENER_H
29 #define WP1LISTENER_H
30 
31 #include "libwpd_internal.h"
32 #include <vector>
33 
34 class WP1SubDocument;
35 class WPXBinaryData;
36 
38 {
39 public:
40  WP1Listener();
41  virtual ~WP1Listener() {};
42 
43  virtual void startDocument() = 0;
44  virtual void startSubDocument() = 0;
45  virtual void insertCharacter(uint32_t character) = 0;
46  virtual void insertExtendedCharacter(uint8_t extendedCharacter) = 0;
47  virtual void insertTab() = 0;
48  virtual void insertBreak(uint8_t breakType) = 0;
49  virtual void insertEOL() = 0;
50  virtual void insertNote(WPXNoteType noteType, WP1SubDocument *subDocument) = 0;
51  virtual void attributeChange(bool isOn, uint8_t attribute) = 0;
52  virtual void fontPointSize(uint8_t pointSize) = 0;
53  virtual void fontId(uint16_t id) = 0;
54  virtual void marginReset(uint16_t leftMargin, uint16_t rightMargin) = 0;
55  virtual void topMarginSet(uint16_t topMargin) = 0;
56  virtual void bottomMarginSet(uint16_t bottomMargin) = 0;
57  virtual void leftIndent(uint16_t leftMarginOffset) = 0;
58  virtual void leftRightIndent(uint16_t leftRightMarginOffset) = 0;
59  virtual void leftMarginRelease(uint16_t release) = 0;
60  virtual void setTabs(const std::vector<WPXTabStop> &tabStops) = 0;
61  virtual void headerFooterGroup(uint8_t headerFooterDefinition, WP1SubDocument *subDocument) = 0;
62  virtual void suppressPageCharacteristics(uint8_t suppressCode) = 0;
63  virtual void justificationChange(uint8_t justification) = 0;
64  virtual void lineSpacingChange(uint8_t spacing) = 0;
65  virtual void flushRightOn() = 0;
66  virtual void flushRightOff() = 0;
67  virtual void centerOn() = 0;
68  virtual void centerOff() = 0;
69  virtual void endDocument() = 0;
70  virtual void endSubDocument() = 0;
71  virtual void insertPicture(uint16_t width, uint16_t height, const WPXBinaryData &binaryData) = 0;
72 
73 };
74 
75 #endif /* WP1LISTENER_H */
76 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */

Generated for libwpd by doxygen 1.8.1.2