a function used by MWAWDocument to store the version of document and the input More...
#include <MWAWHeader.hxx>
Public Types | |
| typedef enum MWAWDocument::DocumentType | DocumentType |
| typedef enum MWAWDocument::DocumentKind | DocumentKind |
Public Member Functions | |
| MWAWHeader (MWAWDocument::DocumentType type=MWAWDocument::UNKNOWN, int vers=0, DocumentKind kind=MWAWDocument::K_TEXT) | |
| constructor given the input More... | |
| virtual | ~MWAWHeader () |
| destructor More... | |
| void | reset (MWAWDocument::DocumentType type, int vers, DocumentKind kind=MWAWDocument::K_TEXT) |
| resets the data More... | |
| int | getMajorVersion () const |
| returns the major version More... | |
| void | setMajorVersion (int version) |
| sets the major version More... | |
| DocumentType | getType () const |
| returns the document type More... | |
| void | setType (DocumentType type) |
| sets the document type More... | |
| DocumentKind | getKind () const |
| returns the document kind More... | |
| void | setKind (DocumentKind kind) |
| sets the document kind More... | |
Static Public Member Functions | |
| static std::vector< MWAWHeader > | constructHeader (MWAWInputStreamPtr input, shared_ptr< MWAWRSRCParser > rsrcParser) |
| tests the input file and returns a header if the file looks like a MWAW document ( trying first to use the resource parsed if it exists ) More... | |
Private Attributes | |
| int | m_version |
| the document version More... | |
| DocumentType | m_docType |
| the document type More... | |
| DocumentKind | m_docKind |
| the document kind More... | |
a function used by MWAWDocument to store the version of document and the input
This class is mainly used to maintain a symetry with the libwpd library
| typedef enum MWAWDocument::DocumentKind MWAWHeader::DocumentKind |
| typedef enum MWAWDocument::DocumentType MWAWHeader::DocumentType |
| MWAWHeader::MWAWHeader | ( | MWAWDocument::DocumentType | type = MWAWDocument::UNKNOWN, |
| int | vers = 0, |
||
| DocumentKind | kind = MWAWDocument::K_TEXT |
||
| ) |
constructor given the input
|
virtual |
destructor
|
static |
tests the input file and returns a header if the file looks like a MWAW document ( trying first to use the resource parsed if it exists )
So far, we have identified.
Referenced by MWAWDocumentInternal::getHeader().
|
inline |
returns the document kind
Referenced by CWPresentation::numPages(), and CWParser::typeMainZones().
|
inline |
returns the major version
Referenced by MWAWDocumentInternal::getParserFromHeader(), and MWAWParserState::MWAWParserState().
|
inline |
returns the document type
Referenced by MWAWDocumentInternal::getParserFromHeader().
|
inline |
resets the data
Referenced by EDParser::checkHeader(), TTParser::checkHeader(), DMParser::checkHeader(), MSW1Parser::checkHeader(), ACParser::checkHeader(), MWParser::checkHeader(), LWParser::checkHeader(), MSK3Parser::checkHeader(), NSParser::checkHeader(), MDWParser::checkHeader(), MSK4Parser::checkHeader(), WPParser::checkHeader(), WNParser::checkHeader(), MWProParser::checkHeader(), CWParser::checkHeader(), ZWParser::checkHeader(), MSWParser::checkHeader(), FWParser::checkHeader(), HMWJParser::checkHeader(), MRWParser::checkHeader(), and HMWKParser::checkHeader().
|
inline |
sets the document kind
Referenced by CWParser::checkHeader().
|
inline |
sets the major version
|
inline |
sets the document type
|
private |
|
private |
|
private |
the document version
Referenced by getMajorVersion(), reset(), and setMajorVersion().