This class parses Microsoft Write 3.0 and 3.1. More...
#include <MSWrite.h>
Public Member Functions | |
MSWriteParser (RVNGInputStreamPtr &input, WPSHeaderPtr &header, libwps_tools_win::Font::Type encoding=libwps_tools_win::Font::WIN3_WEUROPE) | |
~MSWriteParser () | |
void | parse (librevenge::RVNGTextInterface *const documentInterface) |
![]() | |
WPSParser (RVNGInputStreamPtr &input, WPSHeaderPtr &header) | |
virtual | ~WPSParser () |
Private Member Functions | |
MSWriteParser (const MSWriteParser &) | |
MSWriteParser & | operator= (const MSWriteParser &) |
shared_ptr< WPSContentListener > | createListener (librevenge::RVNGTextInterface *interface) |
void | readFIB () |
void | readFFNTB () |
void | readSECT () |
void | readPAP () |
void | readCHP () |
void | findZones () |
void | readText (WPSEntry e) |
void | processObject (WPSPosition &pos, unsigned long lastPos) |
bool | processDDB (librevenge::RVNGBinaryData &bmpdata, WPSPosition &pos, unsigned width, unsigned height, unsigned byte_width, unsigned planes, unsigned bits_pixel, unsigned size) |
bool | processDIB (librevenge::RVNGBinaryData &bmpdata, unsigned size) |
bool | processWMF (librevenge::RVNGBinaryData &wmfdata, unsigned size) |
void | processEmbeddedOLE (WPSPosition &pos, unsigned long lastPos) |
bool | processStaticOLE (librevenge::RVNGBinaryData &, std::string &mimetype, WPSPosition &pos, unsigned long lastPos) |
bool | readString (std::string &res, unsigned long lastPos) |
unsigned | insertString (const unsigned char *str, unsigned size, libwps_tools_win::Font::Type type) |
bool | checkFilePosition (uint32_t pos) const |
check if the file position is correct or not More... | |
Private Attributes | |
uint32_t | m_fileLength |
the last file position More... | |
uint32_t | m_fcMac |
std::vector< MSWriteParserInternal::Paragraph > | m_paragraphList |
std::vector< MSWriteParserInternal::Font > | m_fontList |
std::vector< librevenge::RVNGString > | m_fonts |
WPSPageSpan | m_pageSpan |
libwps_tools_win::Font::Type | m_fontType |
shared_ptr< WPSContentListener > | m_listener |
WPSEntry | m_Main |
WPSEntry | m_Header |
WPSEntry | m_Footer |
bool | m_HeaderPage1 |
bool | m_FooterPage1 |
Friends | |
class | MSWriteParserInternal::SubDocument |
struct | MSWriteParserInternal::Paragraph |
struct | MSWriteParserInternal::Font |
Additional Inherited Members | |
![]() | |
typedef std::multimap< std::string, WPSEntry > | NameMultiMap |
a map to retrieve a file entry by name More... | |
![]() | |
RVNGInputStreamPtr & | getInput () |
RVNGInputStreamPtr | getFileInput () |
WPSHeaderPtr & | getHeader () |
int | version () const |
void | setVersion (int vers) |
libwps::DebugFile & | ascii () |
a DebugFile used to write what we recognize when we parse the document More... | |
NameMultiMap & | getNameEntryMap () |
NameMultiMap const & | getNameEntryMap () const |
This class parses Microsoft Write 3.0 and 3.1.
MSWriteParser::MSWriteParser | ( | RVNGInputStreamPtr & | input, |
WPSHeaderPtr & | header, | ||
libwps_tools_win::Font::Type | encoding = libwps_tools_win::Font::WIN3_WEUROPE |
||
) |
MSWriteParser::~MSWriteParser | ( | ) |
|
private |
|
inlineprivate |
check if the file position is correct or not
Referenced by processEmbeddedOLE(), processObject(), readCHP(), readFFNTB(), readFIB(), readPAP(), readSECT(), and readString().
|
private |
Referenced by parse().
|
private |
Referenced by parse().
|
private |
Referenced by readText().
|
private |
|
virtual |
Implements WPSParser.
|
private |
Referenced by processObject(), and processStaticOLE().
|
private |
Referenced by processStaticOLE().
|
private |
Referenced by processObject().
|
private |
Referenced by readText().
|
private |
Referenced by processEmbeddedOLE(), and processObject().
|
private |
Referenced by processObject(), and processStaticOLE().
|
private |
Referenced by parse().
|
private |
Referenced by parse().
|
private |
Referenced by parse().
|
private |
Referenced by parse().
|
private |
Referenced by parse().
|
private |
Referenced by processEmbeddedOLE(), and processStaticOLE().
|
private |
Referenced by parse(), and MSWriteParserInternal::SubDocument::parse().
|
friend |
|
friend |
|
friend |
|
private |
Referenced by findZones(), readCHP(), readFIB(), readPAP(), and readText().
|
private |
the last file position
Referenced by checkFilePosition(), and MSWriteParser().
|
private |
Referenced by readCHP(), and readText().
|
private |
Referenced by readCHP(), and readFFNTB().
|
private |
Referenced by MSWriteParser(), readCHP(), and readFFNTB().
|
private |
Referenced by createListener(), and findZones().
|
private |
Referenced by createListener(), and findZones().
|
private |
Referenced by createListener(), and findZones().
|
private |
Referenced by createListener(), and findZones().
|
private |
Referenced by insertString(), parse(), processEmbeddedOLE(), processObject(), and readText().
|
private |
Referenced by findZones(), and parse().
|
private |
Referenced by createListener(), readPAP(), and readSECT().
|
private |
Referenced by findZones(), readPAP(), and readText().