MCDParser Class Reference

the main class to read a MacDoc file More...

#include <MCDParser.hxx>

Inheritance diagram for MCDParser:
MWAWParser

List of all members.

Public Member Functions

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

Protected Member Functions

void init ()
 inits all internal variables
void createDocument (WPXDocumentInterface *documentInterface)
 creates the listener which will be associated to the document
void newPage (int number)
 adds a new page
bool createZones ()
 finds the different objects zones
bool sendContents ()
 try to send the contents
bool sendPicture (MWAWEntry const &entry)
 try to send a picture
bool readFont (MWAWEntry const &entry)
 try to read a font index entry
bool readIndex (MWAWEntry const &entry)
 try to read an index entry
int updateIndex (int actIndex, int actLevel)
 try to set the index level and return the next index value (or -1)
bool readBookmark (MWAWEntry const &entry)
 try to read a bookmark entry
bool readFile (MWAWEntry const &entry)
 try to read a file entry
bool readWP (MWAWEntry const &entry)
 try to read a MDwp entry (window pos?)
bool sendIndex ()
 try to send the index
MWAWInputStreamPtr rsrcInput ()
 return the input input
libmwaw::DebugFilersrcAscii ()
 a DebugFile used to write what we recognize when we parse the document in rsrc

Protected Attributes

shared_ptr
< MCDParserInternal::State
m_state
 the state

Friends

class MCDText

Detailed Description

the main class to read a MacDoc file


Constructor & Destructor Documentation

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

constructor

MCDParser::~MCDParser ( ) [virtual]

destructor


Member Function Documentation

bool MCDParser::checkHeader ( MWAWHeader header,
bool  strict = false 
) [virtual]

checks if the document header is correct (or not)

no data fork, may be ok, but this means that the file contains no text, so...

Implements MWAWParser.

Referenced by parse().

void MCDParser::createDocument ( WPXDocumentInterface *  documentInterface) [protected]

creates the listener which will be associated to the document

Referenced by parse().

bool MCDParser::createZones ( ) [protected]

finds the different objects zones

Referenced by parse().

void MCDParser::init ( ) [protected]

inits all internal variables

Referenced by MCDParser().

void MCDParser::newPage ( int  number) [protected]

adds a new page

Referenced by sendContents().

void MCDParser::parse ( WPXDocumentInterface *  documentInterface) [virtual]

virtual function used to parse the input

Implements MWAWParser.

bool MCDParser::readBookmark ( MWAWEntry const &  entry) [protected]

try to read a bookmark entry

Referenced by createZones().

bool MCDParser::readFile ( MWAWEntry const &  entry) [protected]

try to read a file entry

Referenced by createZones().

bool MCDParser::readFont ( MWAWEntry const &  entry) [protected]

try to read a font index entry

Referenced by createZones().

bool MCDParser::readIndex ( MWAWEntry const &  entry) [protected]

try to read an index entry

Referenced by createZones().

bool MCDParser::readWP ( MWAWEntry const &  entry) [protected]

try to read a MDwp entry (window pos?)

Referenced by createZones().

a DebugFile used to write what we recognize when we parse the document in rsrc

Referenced by createZones(), readBookmark(), readFile(), readFont(), readIndex(), and readWP().

return the input input

Referenced by readBookmark(), readFile(), readFont(), readIndex(), readWP(), and sendIndex().

bool MCDParser::sendContents ( ) [protected]

try to send the contents

Referenced by parse().

bool MCDParser::sendIndex ( ) [protected]

try to send the index

Referenced by sendContents().

bool MCDParser::sendPicture ( MWAWEntry const &  entry) [protected]

try to send a picture

Referenced by sendContents().

int MCDParser::updateIndex ( int  actIndex,
int  actLevel 
) [protected]

try to set the index level and return the next index value (or -1)

Referenced by sendIndex().


Friends And Related Function Documentation

friend class MCDText [friend]

Member Data Documentation


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