ClarisWksParser Class Reference

the main class to read a Claris Works file More...

#include <ClarisWksParser.hxx>

Inheritance diagram for ClarisWksParser:
MWAWTextParser MWAWParser

Public Member Functions

 ClarisWksParser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
 constructor More...
 
virtual ~ClarisWksParser ()
 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...
 
void newPage (int number, bool softBreak)
 adds a new page More...
 
void sendFootnote (int zoneId)
 creates a document to send a footnote 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
< ClarisWksParserInternal::State
m_state
 the state More...
 
shared_ptr< ClarisWksDocumentm_document
 the main document manager More...
 

Friends

class ClarisWksParserInternal::SubDocument
 
class ClarisWksDocument
 

Detailed Description

the main class to read a Claris Works file

Constructor & Destructor Documentation

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

constructor

ClarisWksParser::~ClarisWksParser ( )
virtual

destructor

Member Function Documentation

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

checks if the document header is correct (or not)

Implements MWAWParser.

Referenced by parse().

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

creates the listener which will be associated to the document

Referenced by parse().

void ClarisWksParser::init ( )
protected

inits all internal variables

Referenced by ClarisWksParser().

void ClarisWksParser::newPage ( int  number,
bool  softBreak 
)
protected

adds a new page

Referenced by init(), and parse().

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

virtual function used to parse the input

Implements MWAWTextParser.

void ClarisWksParser::sendFootnote ( int  zoneId)
protected

creates a document to send a footnote

Referenced by init().

Friends And Related Function Documentation

friend class ClarisWksDocument
friend

Referenced by init().

Member Data Documentation

shared_ptr<ClarisWksDocument> ClarisWksParser::m_document
protected

the main document manager

Referenced by checkHeader(), createDocument(), init(), and parse().

shared_ptr<ClarisWksParserInternal::State> ClarisWksParser::m_state
protected

the state

Referenced by checkHeader(), createDocument(), init(), newPage(), and parse().


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

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