This class parses Lotus format file. More...
#include <WKS4Format.h>
Public Member Functions | |
WKS4Format (WKS4Parser &parser, RVNGInputStreamPtr const &input) | |
constructor | |
~WKS4Format () | |
destructor | |
bool | parse () |
try to parse an input |
Protected Member Functions | |
bool | checkFilePosition (long pos) |
return true if the pos is in the file, update the file size if need | |
bool | checkHeader (bool strict=false) |
format zone ////////////////////////////// checks if the document header is correct (or not) | |
bool | readZones () |
finds the different zones | |
bool | readZone () |
reads a zone | |
bool | readFontName () |
reads a format font name: zones 0xae | |
bool | readFontSize () |
reads a format font sizes zones 0xaf and 0xb1 | |
bool | readFontId () |
reads a format font id zone: 0xb0 |
Private Member Functions | |
WKS4Format (WKS4Format const &orig)=delete | |
WKS4Format & | operator= (WKS4Format const &orig)=delete |
libwps::DebugFile & | ascii () |
returns the debug file |
Private Attributes | |
RVNGInputStreamPtr | m_input |
the input | |
WKS4Parser & | m_mainParser |
the main parser | |
std::shared_ptr< WKS4FormatInternal::State > | m_state |
the internal state | |
libwps::DebugFile | m_asciiFile |
the ascii file |
Friends | |
class | WKS4Parser |
This class parses Lotus format file.
|
explicit |
constructor
Referenced by operator=(), and WKS4Format().
WKS4Format::~WKS4Format | ( | ) |
destructor
|
privatedelete |
|
inlineprivate |
returns the debug file
Referenced by checkHeader(), parse(), readFontId(), readFontName(), readFontSize(), readZone(), and readZones().
|
protected |
return true if the pos is in the file, update the file size if need
Referenced by checkHeader(), readZone(), and readZones().
|
protected |
format zone ////////////////////////////// checks if the document header is correct (or not)
Referenced by parse().
|
privatedelete |
bool WKS4Format::parse | ( | ) |
try to parse an input
Referenced by WKS4Parser::parseFormatStream().
|
protected |
reads a format font id zone: 0xb0
Referenced by readZone().
|
protected |
reads a format font name: zones 0xae
Referenced by readZone().
|
protected |
reads a format font sizes zones 0xaf and 0xb1
Referenced by readZone().
|
protected |
reads a zone
Referenced by checkHeader(), and readZones().
|
protected |
finds the different zones
Referenced by parse().
|
friend |
Referenced by WKS4Format(), and WKS4Parser.
|
private |
the ascii file
Referenced by ascii(), and WKS4Format().
|
private |
the input
Referenced by checkFilePosition(), checkHeader(), parse(), readFontId(), readFontName(), readFontSize(), readZone(), readZones(), and WKS4Format().
|
private |
the main parser
Referenced by WKS4Format().
|
private |
the internal state
Referenced by checkFilePosition(), checkHeader(), readFontId(), readFontName(), readFontSize(), and WKS4Format().