WP5Parser.h Source File documentation

WP5Parser.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 *
13 * For minor contributions see the git repository.
14 *
15 * Alternatively, the contents of this file may be used under the terms
16 * of the GNU Lesser General Public License Version 2.1 or later
17 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
18 * applicable instead of those above.
19 *
20 * For further information visit http://libwpd.sourceforge.net
21 */
22
23 /* "This product is not manufactured, approved, or supported by
24 * Corel Corporation or Corel Corporation Limited."
25 */
26
27 #ifndef WP5PARSER_H
28 #define WP5PARSER_H
29
30 #include "WPXParser.h"
31
32 class WP5Listener;
33 class WP5PrefixData;
34
35 class WP5Parser : public WPXParser
36 {
37 public:
38 WP5Parser(librevenge::RVNGInputStream *input, WPXHeader *header, WPXEncryption *encryption);
39 ~WP5Parser() override;
40
41 void parse(librevenge::RVNGTextInterface *documentInterface) override;
42 void parseSubDocument(librevenge::RVNGTextInterface *documentInterface) override;
43
44 static void parseDocument(librevenge::RVNGInputStream *input, WPXEncryption *encryption, WP5Listener *listener);
45
46 private:
47 WP5PrefixData *getPrefixData(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
48
49 void parse(librevenge::RVNGInputStream *input, WPXEncryption *encryption, WP5Listener *listener);
50 };
51
52 #endif /* WP5PARSER_H */
53 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
WP5ListFontsUsedPacket
Definition: WP5ListFontsUsedPacket.h:33
WP5Parser
Definition: WP5Parser.h:36
WP5ContentListener::setFont
void setFont(const librevenge::RVNGString &fontName, double fontSize) override
Definition: WP5ContentListener.cpp:496
WP5Listener::endDocument
virtual void endDocument()=0
WPXParser::getInput
librevenge::RVNGInputStream * getInput()
Definition: WPXParser.h:48
WPXHeader.h
WPXParser::getHeader
WPXHeader * getHeader()
Definition: WPXParser.h:44
WP5PrefixData.h
FileException
Definition: libwpd_internal.h:209
WPXTable.h
WP5Parser::~WP5Parser
~WP5Parser() override
Definition: WP5Parser.cpp:47
WPD_DEBUG_MSG
#define WPD_DEBUG_MSG(M)
Definition: libwpd_internal.h:50
WPX_SOFT_PAGE_BREAK
#define WPX_SOFT_PAGE_BREAK
Definition: libwpd_internal.h:156
WPX_PAGE_BREAK
#define WPX_PAGE_BREAK
Definition: libwpd_internal.h:155
WP5Listener::insertBreak
virtual void insertBreak(unsigned char breakType)=0
libwpd_internal.h
WP5Listener
Definition: WP5Listener.h:41
WP5Parser::parseSubDocument
void parseSubDocument(librevenge::RVNGTextInterface *documentInterface) override
Definition: WP5Parser.cpp:194
WP5Listener::getGeneralPacketData
const WP5GeneralPacketData * getGeneralPacketData(const int type) const
Definition: WP5Listener.cpp:39
WP5StylesListener::startSubDocument
void startSubDocument() override
Definition: WP5StylesListener.h:45
WPXParser
Definition: WPXParser.h:35
WP5FontNameStringPoolPacket.h
WP5Parser.h
WP5Parser::WP5Parser
WP5Parser(librevenge::RVNGInputStream *input, WPXHeader *header, WPXEncryption *encryption)
Definition: WP5Parser.cpp:42
WP5PrefixData
Definition: WP5PrefixData.h:35
WP5ContentListener::startSubDocument
void startSubDocument() override
Definition: WP5ContentListener.h:59
WP5Part::constructPart
static WP5Part * constructPart(librevenge::RVNGInputStream *input, WPXEncryption *encryption, const unsigned char readVal)
Definition: WP5Part.cpp:38
WP5ContentListener::setDefaultFont
void setDefaultFont(const librevenge::RVNGString &fontName, double fontSize)
Definition: WP5ContentListener.cpp:599
WP5ListFontsUsedPacket.h
WP5Listener::setPrefixData
void setPrefixData(WP5PrefixData *prefixData)
Definition: WP5Listener.h:85
WPXTableList
Definition: WPXTableList.h:36
WP5FontNameStringPoolPacket
Definition: WP5FontNameStringPoolPacket.h:36
WP5ContentListener::endSubDocument
void endSubDocument() override
Definition: WP5ContentListener.h:91
WP5Parser::parse
void parse(librevenge::RVNGTextInterface *documentInterface) override
Definition: WP5Parser.cpp:118
WP5StylesListener::endSubDocument
void endSubDocument() override
Definition: WP5StylesListener.cpp:55
WP5Parser::getPrefixData
WP5PrefixData * getPrefixData(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP5Parser.cpp:51
WP5Listener::insertEOL
virtual void insertEOL()=0
WP5Listener::startDocument
virtual void startDocument()=0
WP5StylesListener
Definition: WP5StylesListener.h:40
WPXParser.h
readU8
unsigned char readU8(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: libwpd_internal.cpp:106
WP5ContentListener
Definition: WP5ContentListener.h:50
WP5StylesListener.h
WP5Listener::insertCharacter
virtual void insertCharacter(unsigned character)=0
WP5Parser::parseDocument
static void parseDocument(librevenge::RVNGInputStream *input, WPXEncryption *encryption, WP5Listener *listener)
Definition: WP5Parser.cpp:70
WPXEncryption
Definition: WPXEncryption.h:36
WPXParser::getEncryption
WPXEncryption * getEncryption()
Definition: WPXParser.h:52
WPXHeader
Definition: WPXHeader.h:36
WP5Part.h
WP5ContentListener.h