MsWksParser Class Reference

the main class to read a Microsoft Works file: v1-v4 More...

#include <MsWksParser.hxx>

Inheritance diagram for MsWksParser:
MWAWTextParser MWAWParser

Public Member Functions

 MsWksParser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
 constructor More...
 
virtual ~MsWksParser ()
 destructor More...
 
bool checkHeader (MWAWHeader *header, bool strict=false)
 checks if the document header is correct (or not) More...
 
void parse (librevenge::RVNGTextInterface *documentInterface)
 virtual function used to parse the input More...
 

Protected Member Functions

void init ()
 inits all internal variables More...
 
void createDocument (librevenge::RVNGTextInterface *documentInterface)
 creates the listener which will be associated to the document More...
 
bool createZones ()
 finds the different objects zones More...
 
void newPage (int number, bool softBreak=false)
 adds a new page More...
 
void flushExtra ()
 tries to parse the ole zones which have not yet been parsed More...
 
- Protected Member Functions inherited from MWAWTextParser
 MWAWTextParser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
 constructor (protected) More...
 
 MWAWTextParser (MWAWParserStatePtr state)
 constructor using a state More...
 
- Protected Member Functions inherited from MWAWParser
 MWAWParser (MWAWParserState::Type type, MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
 constructor (protected) More...
 
 MWAWParser (MWAWParserStatePtr state)
 constructor using a state More...
 
void setVersion (int vers)
 sets the document's version More...
 
void setGraphicListener (MWAWGraphicListenerPtr &listener)
 sets the graphic listener More...
 
void resetGraphicListener ()
 resets the listener More...
 
void setPresentationListener (MWAWPresentationListenerPtr &listener)
 sets the presentation listener More...
 
void resetPresentationListener ()
 resets the listener More...
 
void setSpreadsheetListener (MWAWSpreadsheetListenerPtr &listener)
 sets the spreadsheet listener More...
 
void resetSpreadsheetListener ()
 resets the listener More...
 
void setTextListener (MWAWTextListenerPtr &listener)
 sets the text listener More...
 
void resetTextListener ()
 resets the listener More...
 
void setFontConverter (MWAWFontConverterPtr fontConverter)
 sets the font convertor More...
 
void setAsciiName (char const *name)
 Debugging: change the default ascii file. More...
 
std::string const & asciiName () const
 return the ascii file name More...
 

Protected Attributes

shared_ptr
< MsWksParserInternal::State
m_state
 the state More...
 
std::vector< MWAWEntrym_listZones
 the list of different Zones More...
 
shared_ptr< MsWksDocumentm_document
 the actual document More...
 

Detailed Description

the main class to read a Microsoft Works file: v1-v4

Constructor & Destructor Documentation

MsWksParser::MsWksParser ( MWAWInputStreamPtr  input,
MWAWRSRCParserPtr  rsrcParser,
MWAWHeader header 
)

constructor

MsWksParser::~MsWksParser ( )
virtual

destructor

Member Function Documentation

bool MsWksParser::checkHeader ( MWAWHeader header,
bool  strict = false 
)
virtual

checks if the document header is correct (or not)

Implements MWAWParser.

Referenced by parse().

void MsWksParser::createDocument ( librevenge::RVNGTextInterface *  documentInterface)
protected

creates the listener which will be associated to the document

Referenced by parse().

bool MsWksParser::createZones ( )
protected

finds the different objects zones

Referenced by parse().

void MsWksParser::flushExtra ( )
protected

tries to parse the ole zones which have not yet been parsed

Referenced by parse().

void MsWksParser::init ( )
protected

inits all internal variables

Referenced by MsWksParser().

void MsWksParser::newPage ( int  number,
bool  softBreak = false 
)
protected

adds a new page

Referenced by MsWksParser().

void MsWksParser::parse ( librevenge::RVNGTextInterface *  documentInterface)
virtual

virtual function used to parse the input

Implements MWAWTextParser.

Member Data Documentation

shared_ptr<MsWksDocument> MsWksParser::m_document
protected

the actual document

Referenced by checkHeader(), createDocument(), createZones(), flushExtra(), MsWksParser(), and parse().

std::vector<MWAWEntry> MsWksParser::m_listZones
protected

the list of different Zones

shared_ptr<MsWksParserInternal::State> MsWksParser::m_state
protected

the state

Referenced by createDocument(), createZones(), MsWksParser(), newPage(), and parse().


The documentation for this class was generated from the following files:

Generated on Tue Mar 1 2016 23:42:55 for libmwaw by doxygen 1.8.4