MSKParser Class Reference

generic parser for Microsoft Works file More...

#include <MSKParser.hxx>

Inheritance diagram for MSKParser:
MWAWParser MSK3Parser MSK4Zone

List of all members.

Public Member Functions

 MSKParser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
 constructor
 MSKParser (MWAWInputStreamPtr input, MWAWParserStatePtr parserState)
 constructor using the parser state
virtual ~MSKParser ()
 destructor
MWAWInputStreamPtrgetInput ()
 returns the actual input
bool getColor (int id, MWAWColor &col, int vers=-1) const
 return the color which correspond to an index
virtual void sendFrameText (MWAWEntry const &entry, std::string const &frame)
 virtual function used to send the text of a frame (v4)
virtual void sendOLE (int id, MWAWPosition const &pos, WPXPropertyList frameExtras)
 virtual function used to send an OLE (v4)
virtual Vec2f getPageLeftTop () const =0
 returns the page top left point
libmwaw::DebugFileascii ()
 a DebugFile used to write what we recognize when we parse the document

Static Public Member Functions

static std::vector< MWAWColor >
const & 
getPalette (int vers)
 return a list of color corresponding to a version

Protected Attributes

shared_ptr
< MSKParserInternal::State
m_state
 the state
MWAWInputStreamPtr m_input
 the input which can be an OLE in MSWorks 4 file
libmwaw::DebugFile m_asciiFile
 the debug file of the actual input

Friends

class MSKGraph
class MSKTable

Detailed Description

generic parser for Microsoft Works file


Constructor & Destructor Documentation

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

constructor

constructor using the parser state

MSKParser::~MSKParser ( ) [virtual]

destructor


Member Function Documentation

bool MSKParser::getColor ( int  id,
MWAWColor col,
int  vers = -1 
) const

return the color which correspond to an index

Referenced by MSK3Text::readFont(), MSKGraph::readPictHeader(), and MSKTable::readTable().

virtual Vec2f MSKParser::getPageLeftTop ( ) const [pure virtual]

returns the page top left point

Implemented in MSK4Zone, and MSK3Parser.

Referenced by MSKGraph::send().

std::vector< MWAWColor > const & MSKParser::getPalette ( int  vers) [static]

return a list of color corresponding to a version

Referenced by getColor(), and MSKGraph::send().

void MSKParser::sendFrameText ( MWAWEntry const &  entry,
std::string const &  frame 
) [virtual]

virtual function used to send the text of a frame (v4)

Reimplemented in MSK4Zone.

Referenced by MSKGraph::sendFrameText().

void MSKParser::sendOLE ( int  id,
MWAWPosition const &  pos,
WPXPropertyList  frameExtras 
) [virtual]

virtual function used to send an OLE (v4)

Reimplemented in MSK4Zone.

Referenced by MSKGraph::send().


Friends And Related Function Documentation

friend class MSKGraph [friend]

Reimplemented in MSK4Zone, and MSK3Parser.

friend class MSKTable [friend]

Member Data Documentation

the debug file of the actual input

Referenced by ascii().

the input which can be an OLE in MSWorks 4 file

Referenced by getInput().

the state

Reimplemented in MSK4Zone, and MSK3Parser.


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