#include <WPSHeader.h>
| Public Member Functions | |
| WPSHeader (RVNGInputStreamPtr &input, RVNGInputStreamPtr &fileInput, uint8_t majorVersion, libwps::WPSKind kind=libwps::WPS_TEXT, libwps::WPSCreator creator=libwps::WPS_MSWORKS) | |
| virtual | ~WPSHeader () | 
| RVNGInputStreamPtr & | getInput () | 
| RVNGInputStreamPtr & | getFileInput () | 
| libwps::WPSCreator | getCreator () const | 
| void | setCreator (libwps::WPSCreator creator) | 
| libwps::WPSKind | getKind () const | 
| void | setKind (libwps::WPSKind kind) | 
| bool | getIsEncrypted () const | 
| void | setIsEncrypted (bool isEncrypted) | 
| bool | getNeedEncoding () const | 
| void | setNeedEncoding (bool needEncoding) | 
| uint8_t | getMajorVersion () const | 
| void | setMajorVersion (uint8_t version) | 
| Static Public Member Functions | |
| static WPSHeader * | constructHeader (RVNGInputStreamPtr &input) | 
| So far, we have identified three categories of Works documents.  More... | |
| Private Member Functions | |
| WPSHeader (const WPSHeader &) | |
| WPSHeader & | operator= (const WPSHeader &) | 
| Private Attributes | |
| RVNGInputStreamPtr | m_input | 
| RVNGInputStreamPtr | m_fileInput | 
| uint8_t | m_majorVersion | 
| libwps::WPSKind | m_kind | 
| libwps::WPSCreator | m_creator | 
| bool | m_isEncrypted | 
| a flag to know if the file is encrypted  More... | |
| bool | m_needEncodingFlag | 
| a flag to know if we need to have the character set encoding  More... | |
| WPSHeader::WPSHeader | ( | RVNGInputStreamPtr & | input, | 
| RVNGInputStreamPtr & | fileInput, | ||
| uint8_t | majorVersion, | ||
| libwps::WPSKind | kind = libwps::WPS_TEXT, | ||
| libwps::WPSCreator | creator = libwps::WPS_MSWORKS | ||
| ) | 
Referenced by constructHeader(), and setMajorVersion().
| 
 | virtual | 
| 
 | private | 
| 
 | static | 
So far, we have identified three categories of Works documents.
Works documents versions 3 and later use a MS OLE container, so we detect their type by checking for OLE stream names. Works version 2 is like Works 3 without OLE, so those two types use the same parser.
Referenced by libwps::WPSDocument::isFileFormatSupported(), libwps::WPSDocument::parse(), and WPSOLEParser::readMN0AndCheckWKS().
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
Referenced by WPSOLEParser::readMN0AndCheckWKS().
| 
 | inline | 
| 
 | inline | 
Referenced by setMajorVersion().
| 
 | inline | 
Referenced by QuattroParser::checkHeader(), WKS4Parser::checkHeader(), and LotusParser::checkHeader().
| 
 | inline | 
Referenced by WKS4Parser::checkHeader(), and LotusParser::checkHeader().
| 
 | inline | 
Referenced by QuattroParser::checkHeader(), WKS4Parser::checkHeader(), and LotusParser::checkHeader().
| 
 | inline | 
| 
 | inline | 
| 
 | private | 
Referenced by getCreator(), and setCreator().
| 
 | private | 
Referenced by getFileInput().
| 
 | private | 
Referenced by getInput().
| 
 | private | 
a flag to know if the file is encrypted
Referenced by getIsEncrypted(), and setIsEncrypted().
| 
 | private | 
| 
 | private | 
Referenced by getMajorVersion(), and setMajorVersion().
| 
 | private | 
a flag to know if we need to have the character set encoding
Referenced by getNeedEncoding(), and setNeedEncoding().