#include <WPS8.h>
Classes | |
struct | Note |
struct | Stream |
struct | Zone |
Starting near beginning of CONTENTS stream, there is an index to various types of pages in the document. More... |
Public Member Functions | |
WPS8Parser (WPXInputStreamPtr &input, WPSHeaderPtr &header) | |
~WPS8Parser () | |
void | parse (WPXDocumentInterface *documentInterface) |
![]() | |
WPSParser (WPXInputStreamPtr &input, WPSHeaderPtr &header) | |
virtual | ~WPSParser () |
Protected Types | |
typedef std::multimap < std::string, Zone > | IndexMultiMap |
Private Member Functions | |
void | readFontsTable (WPXInputStreamPtr &input) |
Reads fonts table into memory. | |
void | readStreams (WPXInputStreamPtr &input) |
Reads streams (subdocuments) information. | |
void | readNotes (std::vector< Note > &dest, WPXInputStreamPtr &input, const char *key) |
void | appendUTF16LE (WPXInputStreamPtr &input) |
void | readTextRange (WPXInputStreamPtr &input, uint32_t startpos, uint32_t endpos, uint16_t stream) |
Read the range of the document text using previously-read formatting information, up to but excluding endpos. | |
bool | readFODPage (WPXInputStreamPtr &input, std::vector< WPSFOD > &FODs, uint16_t page_size) |
Read a single page (of size page_size bytes) that contains formatting descriptors for either characters OR paragraphs. | |
void | parseHeaderIndexEntry (WPXInputStreamPtr &input) |
Parse an index entry in the file format's header. | |
void | parseHeaderIndex (WPXInputStreamPtr &input) |
In the header, parse the index to the different sections of the CONTENTS stream. | |
void | parsePages (std::vector< WPSPageSpan > &pageList, WPXInputStreamPtr &input) |
Read the page format from the file. | |
void | parse (WPXInputStreamPtr &stream) |
void | propertyChangeDelta (uint32_t newTextAttributeBits) |
void | propertyChange (std::string rgchProp, uint16_t &specialCode, int &fieldType) |
Process a character property change. | |
void | propertyChangePara (std::string rgchProp) |
void | sendNote (WPXInputStreamPtr &input, int noteId, bool is_endnote) |
Private Attributes | |
shared_ptr< WPS8ContentListener > | m_listener |
the listener | |
uint32_t | m_offset_eot |
uint32_t | m_oldTextAttributeBits |
IndexMultiMap | m_headerIndexTable |
std::vector< WPSFOD > | m_CHFODs |
std::vector< WPSFOD > | m_PAFODs |
std::vector< std::string > | m_fontNames |
std::vector< Stream > | m_streams |
std::vector< Note > | m_footnotes |
int | m_actualFootnote |
std::vector< Note > | m_endnotes |
int | m_actualEndnote |
Friends | |
class | WPS8ParserInternal::SubDocument |
Additional Inherited Members | |
![]() | |
WPSHeaderPtr & | getHeader () |
WPXInputStreamPtr & | getInput () |
|
protected |
WPS8Parser::WPS8Parser | ( | WPXInputStreamPtr & | input, |
WPSHeaderPtr & | header | ||
) |
WPS8Parser::~WPS8Parser | ( | ) |
|
private |
Referenced by readTextRange().
|
virtual |
Implements WPSParser.
|
private |
|
private |
In the header, parse the index to the different sections of the CONTENTS stream.
Referenced by parse().
|
private |
Parse an index entry in the file format's header.
For example, this function may be called multiple times to parse several FDPP entries. This functions begins at the current position of the input stream, which will be advanced.
Referenced by parseHeaderIndex().
|
private |
Read the page format from the file.
It seems that WPS8 files can only have one page format throughout the whole document.
Referenced by parse().
|
private |
Process a character property change.
The Works format supplies all the character formatting each time there is any change (as opposed to HTML, for example). In Works 8, the position in rgchProp is not significant because there are some kind of codes.
Referenced by readTextRange().
|
private |
newTextAttributeBits,: | all the new, current bits (will be compared against old, and old will be discarded). |
Referenced by propertyChange().
|
private |
Referenced by readTextRange().
|
private |
Read a single page (of size page_size bytes) that contains formatting descriptors for either characters OR paragraphs.
Starts reading at current position in stream.
Return: true if more pages of this type exist, otherwise false
Referenced by parse().
|
private |
Reads fonts table into memory.
Referenced by parse().
|
private |
Referenced by parse().
|
private |
Reads streams (subdocuments) information.
Referenced by parse().
|
private |
Read the range of the document text using previously-read formatting information, up to but excluding endpos.
Referenced by parse(), and sendNote().
|
private |
Referenced by WPS8ParserInternal::SubDocument::parse().
|
friend |
|
private |
Referenced by parse(), and readTextRange().
|
private |
Referenced by parse(), and readTextRange().
|
private |
Referenced by parse(), and readTextRange().
|
private |
Referenced by parse(), and sendNote().
|
private |
Referenced by propertyChange(), and readFontsTable().
|
private |
Referenced by parse(), and sendNote().
|
private |
Referenced by parse(), parseHeaderIndexEntry(), readFontsTable(), readNotes(), and readStreams().
|
private |
the listener
Referenced by appendUTF16LE(), parse(), propertyChange(), propertyChangeDelta(), propertyChangePara(), readTextRange(), and sendNote().
|
private |
Referenced by parse(), and readFODPage().
|
private |
Referenced by propertyChangeDelta(), and readTextRange().
|
private |
Referenced by parse(), and readTextRange().
|
private |
Referenced by parse(), readStreams(), and sendNote().