WP1Listener.h Source File documentation

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 * Version: MPL 2.0 / LGPLv2.1+
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * Major Contributor(s):
10 * Copyright (C) 2003 William Lachance (wrlach@gmail.com)
11 * Copyright (C) 2003 Marc Maurer (uwog@uwog.net)
12 * Copyright (C) 2005-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
13 *
14 * For minor contributions see the git repository.
15 *
16 * Alternatively, the contents of this file may be used under the terms
17 * of the GNU Lesser General Public License Version 2.1 or later
18 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
19 * applicable instead of those above.
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 <memory>
32#include <vector>
33#include <librevenge/librevenge.h>
34#include "libwpd_internal.h"
35
36class WP1SubDocument;
37
38 class WP1Listener
39{
40public:
41 WP1Listener();
42 virtual ~WP1Listener() {}
43
44 virtual void startDocument() = 0;
45 virtual void startSubDocument() = 0;
46 virtual void insertCharacter(unsigned character) = 0;
47 virtual void insertExtendedCharacter(unsigned char extendedCharacter) = 0;
48 virtual void insertTab() = 0;
49 virtual void insertBreak(unsigned char breakType) = 0;
50 virtual void insertEOL() = 0;
51 virtual void insertNote(WPXNoteType noteType, WP1SubDocument *subDocument) = 0;
52 virtual void attributeChange(bool isOn, unsigned char attribute) = 0;
53 virtual void fontPointSize(unsigned char pointSize) = 0;
54 virtual void fontId(unsigned short id) = 0;
55 virtual void marginReset(unsigned short leftMargin, unsigned short rightMargin) = 0;
56 virtual void topMarginSet(unsigned short topMargin) = 0;
57 virtual void bottomMarginSet(unsigned short bottomMargin) = 0;
58 virtual void leftIndent(unsigned short leftMarginOffset) = 0;
59 virtual void leftRightIndent(unsigned short leftRightMarginOffset) = 0;
60 virtual void leftMarginRelease(unsigned short release) = 0;
61 virtual void setTabs(const std::vector<WPXTabStop> &tabStops) = 0;
62 virtual void headerFooterGroup(unsigned char headerFooterDefinition, const std::shared_ptr<WP1SubDocument> &subDocument) = 0;
63 virtual void suppressPageCharacteristics(unsigned char suppressCode) = 0;
64 virtual void justificationChange(unsigned char justification) = 0;
65 virtual void lineSpacingChange(unsigned char spacing) = 0;
66 virtual void flushRightOn() = 0;
67 virtual void flushRightOff() = 0;
68 virtual void centerOn() = 0;
69 virtual void centerOff() = 0;
70 virtual void endDocument() = 0;
71 virtual void endSubDocument() = 0;
72 virtual void insertPicture(unsigned short width, unsigned short height, const librevenge::RVNGBinaryData &binaryData) = 0;
73
74};
75
76#endif /* WP1LISTENER_H */
77/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
WP1Listener::centerOn
virtual void centerOn()=0
WP1Listener::insertEOL
virtual void insertEOL()=0
WP1Listener::headerFooterGroup
virtual void headerFooterGroup(unsigned char headerFooterDefinition, const std::shared_ptr< WP1SubDocument > &subDocument)=0
WP1Listener::flushRightOff
virtual void flushRightOff()=0
WP1Listener::fontPointSize
virtual void fontPointSize(unsigned char pointSize)=0
WP1Listener::topMarginSet
virtual void topMarginSet(unsigned short topMargin)=0
WP1Listener::centerOff
virtual void centerOff()=0
WP1Listener::insertNote
virtual void insertNote(WPXNoteType noteType, WP1SubDocument *subDocument)=0
WP1Listener::suppressPageCharacteristics
virtual void suppressPageCharacteristics(unsigned char suppressCode)=0
WP1Listener::setTabs
virtual void setTabs(const std::vector< WPXTabStop > &tabStops)=0
WP1Listener::insertPicture
virtual void insertPicture(unsigned short width, unsigned short height, const librevenge::RVNGBinaryData &binaryData)=0
WP1Listener::endSubDocument
virtual void endSubDocument()=0
WP1Listener::bottomMarginSet
virtual void bottomMarginSet(unsigned short bottomMargin)=0
WP1Listener::endDocument
virtual void endDocument()=0
WP1Listener::attributeChange
virtual void attributeChange(bool isOn, unsigned char attribute)=0
WP1Listener::leftRightIndent
virtual void leftRightIndent(unsigned short leftRightMarginOffset)=0
WP1Listener::startDocument
virtual void startDocument()=0
WP1Listener::insertCharacter
virtual void insertCharacter(unsigned character)=0
WP1Listener::marginReset
virtual void marginReset(unsigned short leftMargin, unsigned short rightMargin)=0
WP1Listener::justificationChange
virtual void justificationChange(unsigned char justification)=0
WP1Listener::insertBreak
virtual void insertBreak(unsigned char breakType)=0
WP1Listener::fontId
virtual void fontId(unsigned short id)=0
WP1Listener::flushRightOn
virtual void flushRightOn()=0
WP1Listener::insertTab
virtual void insertTab()=0
WP1Listener::leftIndent
virtual void leftIndent(unsigned short leftMarginOffset)=0
WP1Listener::lineSpacingChange
virtual void lineSpacingChange(unsigned char spacing)=0
WP1Listener::insertExtendedCharacter
virtual void insertExtendedCharacter(unsigned char extendedCharacter)=0
WP1Listener::WP1Listener
WP1Listener()
Definition WP1Listener.cpp:30
WP1Listener::~WP1Listener
virtual ~WP1Listener()
Definition WP1Listener.h:42
WP1Listener::startSubDocument
virtual void startSubDocument()=0
WP1Listener::leftMarginRelease
virtual void leftMarginRelease(unsigned short release)=0
WP1SubDocument
Definition WP1SubDocument.h:34
libwpd_internal.h
WPXNoteType
WPXNoteType
Definition libwpd_internal.h:93