DosWord.h Source File documentation

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

DosWord.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /* libwps
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) 2015 Sean Young <sean@mess.org>
11 *
12 * For minor contributions see the git repository.
13 *
14 * Alternatively, the contents of this file may be used under the terms
15 * of the GNU Lesser General Public License Version 2.1 or later
16 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
17 * applicable instead of those above.
18 *
19 * For further information visit http://libwps.sourceforge.net
20 */
21
22 #ifndef DOSWORD_H
23 #define DOSWORD_H
24
25 #include <librevenge-stream/librevenge-stream.h>
26 #include "libwps_internal.h"
27 #include "libwps_tools_win.h"
28
29 #include "MSWrite.h"
30 #include "WPSParser.h"
31 #include "WPSEntry.h"
32 #include "WPSPageSpan.h"
33
38 class DosWordParser : public MSWriteParser
39 {
40 public:
41 DosWordParser(RVNGInputStreamPtr &input, WPSHeaderPtr &header,
42 libwps_tools_win::Font::Type encoding=libwps_tools_win::Font::UNKNOWN);
43
44 ~DosWordParser();
45
47 bool checkHeader(WPSHeader *header, bool strict=false);
48
49 private:
50 DosWordParser(const DosWordParser &);
51 DosWordParser &operator=(const DosWordParser &);
52 virtual libwps_tools_win::Font::Type getFileEncoding(libwps_tools_win::Font::Type hint);
53
54 static WPSColor color(int clr);
55
56 void readSECT(uint32_t fcSep, uint32_t fcLim);
57 virtual void readSED();
58 virtual void readFFNTB();
59 virtual void readCHP(uint32_t fcFirst, uint32_t fcLim, unsigned cch);
60 virtual void readPAP(uint32_t fcFirst, uint32_t fcLim, unsigned cch);
61 virtual void insertSpecial(uint8_t val, uint32_t fc, MSWriteParserInternal::Paragraph::Location location);
62 virtual void insertControl(uint8_t val, uint32_t fc);
63 virtual void readSUMD();
64 virtual void readFNTB();
65 };
66
67 #endif /* DOSWORD_H */
68 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
DosWordParser::DosWordParser
DosWordParser(RVNGInputStreamPtr &input, WPSHeaderPtr &header, libwps_tools_win::Font::Type encoding=libwps_tools_win::Font::UNKNOWN)
Definition: DosWord.cpp:106
libwps_tools_win.h
WPSParser.h
libwps_tools_win::Font::Type
Type
enum Type
Definition: libwps_tools_win.h:46
DosWordParser::operator=
DosWordParser & operator=(const DosWordParser &)
DosWordParser::insertControl
virtual void insertControl(uint8_t val, uint32_t fc)
Definition: DosWord.cpp:559
WPSHeaderPtr
shared_ptr< WPSHeader > WPSHeaderPtr
shared pointer to WPSHeader
Definition: libwps_internal.h:108
libwps_internal.h
DosWordParser::insertSpecial
virtual void insertSpecial(uint8_t val, uint32_t fc, MSWriteParserInternal::Paragraph::Location location)
Definition: DosWord.cpp:521
WPSEntry.h
DosWordParser
This class parses Microsoft Word for DOS.
Definition: DosWord.h:38
WPSPageSpan.h
WPSHeader
Definition: WPSHeader.h:31
libwps_tools_win::Font::UNKNOWN
Definition: libwps_tools_win.h:61
DosWordParser::color
static WPSColor color(int clr)
Definition: DosWord.cpp:194
DosWordParser::readSECT
void readSECT(uint32_t fcSep, uint32_t fcLim)
Definition: DosWord.cpp:857
DosWordParser::readPAP
virtual void readPAP(uint32_t fcFirst, uint32_t fcLim, unsigned cch)
Definition: DosWord.cpp:315
MSWriteParser
This class parses Microsoft Write 3.0 and 3.1.
Definition: MSWrite.h:101
RVNGInputStreamPtr
shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:87
DosWordParser::checkHeader
bool checkHeader(WPSHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: DosWord.cpp:122
DosWordParser::readFFNTB
virtual void readFFNTB()
Definition: DosWord.cpp:116
DosWordParser::~DosWordParser
~DosWordParser()
Definition: DosWord.cpp:112
WPSColor
the class to store a color
Definition: libwps_internal.h:266
DosWordParser::readCHP
virtual void readCHP(uint32_t fcFirst, uint32_t fcLim, unsigned cch)
Definition: DosWord.cpp:218
MSWrite.h
DosWordParser::getFileEncoding
virtual libwps_tools_win::Font::Type getFileEncoding(libwps_tools_win::Font::Type hint)
Definition: DosWord.cpp:177
DosWordParser::readFNTB
virtual void readFNTB()
Definition: DosWord.cpp:750
MSWriteParserInternal::Paragraph::Location
Location
Definition: MSWrite.h:43
DosWordParser::readSED
virtual void readSED()
Definition: DosWord.cpp:799
DosWordParser::readSUMD
virtual void readSUMD()
Definition: DosWord.cpp:616