a function used by MWAWDocument to store the version of document and the input 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 | |
| virtual | ~MWAWHeader () |
| destructor | |
| void | reset (MWAWDocument::Type type, int vers, Kind kind=MWAWDocument::MWAW_K_TEXT) |
| resets the data | |
| int | getMajorVersion () const |
| returns the major version | |
| void | setMajorVersion (int version) |
| sets the major version | |
| Type | getType () const |
| returns the document type | |
| void | setType (Type type) |
| sets the document type | |
| Kind | getKind () const |
| returns the document kind | |
| void | setKind (Kind kind) |
| sets the document kind | |
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 ) | |
Private Attributes | |
| int | m_version |
| the document version | |
| Type | m_docType |
| the document type | |
| Kind | m_docKind |
| the document kind | |
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::Kind MWAWHeader::Kind |
| typedef enum MWAWDocument::Type MWAWHeader::Type |
| MWAWHeader::MWAWHeader | ( | MWAWDocument::Type | type = MWAWDocument::MWAW_T_UNKNOWN, |
| int | version = 0, |
||
| MWAWDocument::Kind | kind = MWAWDocument::MWAW_K_TEXT |
||
| ) |
constructor given the input
| type | the document type |
| version | the file version |
| king | the document kind (default word processing document) |
| MWAWHeader::~MWAWHeader | ( | ) | [virtual] |
destructor
| std::vector< MWAWHeader > MWAWHeader::constructHeader | ( | MWAWInputStreamPtr | input, |
| shared_ptr< MWAWRSRCParser > | rsrcParser | ||
| ) | [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().
| Kind MWAWHeader::getKind | ( | ) | const [inline] |
returns the document kind
Referenced by CWPresentation::numPages(), CWGraph::numPages(), CWDatabase::sendDatabase(), CWSpreadsheet::sendSpreadsheet(), and CWParser::typeMainZones().
| int MWAWHeader::getMajorVersion | ( | ) | const [inline] |
returns the major version
Referenced by MWAWDocumentInternal::getParserFromHeader(), and MWAWParserState::MWAWParserState().
| Type MWAWHeader::getType | ( | ) | const [inline] |
returns the document type
Referenced by MWAWDocumentInternal::getParserFromHeader().
| void MWAWHeader::reset | ( | MWAWDocument::Type | type, |
| int | vers, | ||
| Kind | kind = MWAWDocument::MWAW_K_TEXT |
||
| ) | [inline] |
resets the data
Referenced by EDParser::checkHeader(), MCDParser::checkHeader(), TTParser::checkHeader(), DMParser::checkHeader(), MSW1Parser::checkHeader(), BWParser::checkHeader(), ACParser::checkHeader(), MWParser::checkHeader(), LWParser::checkHeader(), NSParser::checkHeader(), GWParser::checkHeader(), MDWParser::checkHeader(), MSK3Parser::checkHeader(), MSK4Parser::checkHeader(), WPParser::checkHeader(), FWParser::checkHeader(), WNParser::checkHeader(), MWProParser::checkHeader(), MORParser::checkHeader(), ZWParser::checkHeader(), CWParser::checkHeader(), MSWParser::checkHeader(), HMWJParser::checkHeader(), MRWParser::checkHeader(), and HMWKParser::checkHeader().
| void MWAWHeader::setKind | ( | Kind | kind | ) | [inline] |
sets the document kind
Referenced by CWParser::checkHeader(), and CWParser::parse().
| void MWAWHeader::setMajorVersion | ( | int | version | ) | [inline] |
sets the major version
| void MWAWHeader::setType | ( | Type | type | ) | [inline] |
sets the document type
Kind MWAWHeader::m_docKind [private] |
Type MWAWHeader::m_docType [private] |
int MWAWHeader::m_version [private] |
the document version
Referenced by getMajorVersion(), reset(), and setMajorVersion().