a function used by MWAWDocument to store the version of document More...
#include <MWAWHeader.hxx>
| Public Types | |
| typedef enum MWAWDocument::Type | Type | 
| typedef enum MWAWDocument::Kind | Kind | 
| Public Member Functions | |
| MWAWHeader (MWAWDocument::Type type=MWAWDocument::MWAW_T_UNKNOWN, int version=0, MWAWDocument::Kind kind=MWAWDocument::MWAW_K_TEXT) | |
| constructor given the input  More... | |
| MWAWHeader (MWAWHeader const &)=default | |
| MWAWHeader & | operator= (MWAWHeader const &)=default | 
| virtual | ~MWAWHeader () | 
| destructor  More... | |
| void | reset (MWAWDocument::Type type, int vers, Kind kind=MWAWDocument::MWAW_K_TEXT) | 
| resets the data  More... | |
| int | getMajorVersion () const | 
| returns the major version  More... | |
| void | setMajorVersion (int version) | 
| sets the major version  More... | |
| Type | getType () const | 
| returns the document type  More... | |
| void | setType (Type type) | 
| sets the document type  More... | |
| Kind | getKind () const | 
| returns the document kind  More... | |
| void | setKind (Kind kind) | 
| sets the document kind  More... | |
| Static Public Member Functions | |
| static std::vector< MWAWHeader > | constructHeader (MWAWInputStreamPtr input, std::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... | |
| Type | m_docType | 
| the document type  More... | |
| Kind | m_docKind | 
| the document kind  More... | |
a function used by MWAWDocument to store the version of document
This class is responsible for finding a list of potential formats corresponding to a file, this list will latter be checked by calling the corresponding parser's function checkHeader via MWAWDocument.
This class also allows to store the document type, king and version.
| typedef enum MWAWDocument::Kind MWAWHeader::Kind | 
| typedef enum MWAWDocument::Type MWAWHeader::Type | 
| 
 | explicit | 
constructor given the input
| type | the document type | 
| version | the file version | 
| kind | the document kind (default word processing document) | 
| 
 | default | 
| 
 | 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 | 
| 
 | inline | 
returns the major version
Referenced by MWAWDocumentInternal::getGraphicParserFromHeader(), MWAWDocumentInternal::getPresentationParserFromHeader(), MWAWDocumentInternal::getTextParserFromHeader(), and MWAWParserState::MWAWParserState().
| 
 | inline | 
| 
 | default | 
| 
 | inline | 
resets the data
Referenced by MacDocParser::checkHeader(), TeachTxtParser::checkHeader(), MaxWrtParser::checkHeader(), PixelPaintParser::checkHeader(), EDocParser::checkHeader(), StyleParser::checkHeader(), MacPaintParser::checkHeader(), MouseWrtParser::checkHeader(), GreatWksBMParser::checkHeader(), MsWrd1Parser::checkHeader(), MacWrtParser::checkHeader(), MacDrawParser::checkHeader(), MsWksParser::checkHeader(), MacDraftParser::checkHeader(), CricketDrawParser::checkHeader(), SuperPaintParser::checkHeader(), ActaParser::checkHeader(), BeagleWksBMParser::checkHeader(), BeagleWksParser::checkHeader(), LightWayTxtParser::checkHeader(), MultiplanParser::checkHeader(), PowerPoint1Parser::checkHeader(), NisusWrtParser::checkHeader(), BeagleWksDBParser::checkHeader(), BeagleWksDRParser::checkHeader(), CorelPainterParser::checkHeader(), MindWrtParser::checkHeader(), MacDraft5Parser::checkHeader(), WingzParser::checkHeader(), FreeHandParser::checkHeader(), PowerPoint7Parser::checkHeader(), PowerPoint3Parser::checkHeader(), GreatWksDocument::checkHeader(), RagTimeParser::checkHeader(), ClarisDrawParser::checkHeader(), MacDrawProParser::checkHeader(), BeagleWksSSParser::checkHeader(), WriterPlsParser::checkHeader(), ApplePictParser::checkHeader(), FullWrtParser::checkHeader(), WriteNowParser::checkHeader(), MacWrtProParser::checkHeader(), ClarisWksDocument::checkHeader(), MoreParser::checkHeader(), RagTime5Parser::checkHeader(), ZWrtParser::checkHeader(), MsWrdParser::checkHeader(), HanMacWrdJParser::checkHeader(), MarinerWrtParser::checkHeader(), HanMacWrdKParser::checkHeader(), and MsWksDocument::checkHeader3().
| 
 | inline | 
sets the document kind
Referenced by ClarisWksDocument::checkHeader().
| 
 | inline | 
sets the major version
| 
 | inline | 
sets the document type
| 
 | private | 
| 
 | private | 
| 
 | private | 
the document version
Referenced by getMajorVersion(), reset(), and setMajorVersion().