|
Public Member Functions |
| WPS4Parser (WPSInputStream *input, WPSHeader *header) |
| This class parses Works version 2 through 4.
|
| ~WPS4Parser () |
void | parse (WPXHLListenerImpl *listenerImpl) |
Private Member Functions |
void | parsePages (std::list< WPSPageSpan > &pageList, WPSInputStream *input) |
| Read the page format from the file.
|
void | parse (WPSInputStream *stream, WPS4Listener *listener) |
void | readFontsTable (WPSInputStream *input) |
| Reads fonts table into memory.
|
bool | readFODPage (WPSInputStream *input, std::vector< FOD > *FODs) |
| Read a single "page" (128 bytes) that contains formatting descriptors (FODs) for either characters OR paragraphs.
|
void | propertyChangeTextAttribute (const uint32_t newTextAttributeBits, const uint8_t attribute, const uint32_t bit, WPS4Listener *listener) |
void | propertyChangeDelta (uint32_t newTextAttributeBits, WPS4Listener *listener) |
void | propertyChange (std::string rgchProp, WPS4Listener *listener) |
| Process a character property change.
|
void | appendCP850 (const uint8_t readVal, WPS4Listener *listener) |
| Take a character in CP850 encoding, convert it and append it to the text buffer as UTF8.
|
void | appendCP1252 (const uint8_t readVal, WPS4Listener *listener) |
| Take a character in CP1252 encoding, convert it and append it to the text buffer as UTF8.
|
void | readText (WPSInputStream *input, WPS4Listener *listener) |
| Read the text of the document using previously-read formatting information.
|
Private Attributes |
uint32_t | oldTextAttributeBits |
uint32_t | offset_eot |
uint32_t | offset_eos |
std::vector< FOD > | CHFODs |
std::vector< FOD > | PAFODs |
std::map< uint8_t, std::string > | fonts |
const uint8_t | m_worksVersion |