BeagleWksSSParser Class Reference

the main class to read a BeagleWorks spreadsheet file More...

#include <BeagleWksSSParser.hxx>

Inheritance diagram for BeagleWksSSParser:
MWAWSpreadsheetParser MWAWParser

List of all members.

Public Member Functions

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

Protected Member Functions

void init ()
 inits all internal variables
void createDocument (librevenge::RVNGSpreadsheetInterface *documentInterface)
 creates the listener which will be associated to the document
MWAWVec2f getPageLeftTop () const
 returns the page left top point ( in inches)
void newPage (int number)
 adds a new page
bool sendSpreadsheet ()
 try to send the main spreadsheet
bool sendText (MWAWEntry entry, bool headerFooter=false)
 try to send a text zone
bool sendPageFrames ()
 try to send the page graphic
bool sendFrame (BeagleWksStructManager::Frame const &frame)
 try to send a frame
bool sendPicture (int pId, MWAWPosition const &pos, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
 try to send a picture
bool createZones ()
 finds the different objects zones
bool readRSRCZones ()
 read the resource fork zone
bool readPrintInfo ()
 read the print info zone
bool readChartZone ()
 read the chart zone
bool readChart ()
 read a chart
bool readSpreadsheet ()
 read the spreadsheet zone
bool readRowSheet (BeagleWksSSParserInternal::Spreadsheet &sheet)
 read the spreadsheet row
bool readCellSheet (BeagleWksSSParserInternal::Cell &cell)
 read a cell row
bool readZone0 ()
 read an unknown zone ( which appears before and after the columns's width zone )
bool readColumnWidths (BeagleWksSSParserInternal::Spreadsheet &sheet)
 read the columns widths
bool readFormula (BeagleWksSSParserInternal::Spreadsheet &sheet)
 read the differents formula
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
< BeagleWksSSParserInternal::State
m_state
 the state
shared_ptr
< BeagleWksStructManager
m_structureManager
 the structure manager

Friends

struct BeagleWksSSParserInternal::Chart
class BeagleWksSSParserInternal::SubDocument

Detailed Description

the main class to read a BeagleWorks spreadsheet file


Constructor & Destructor Documentation

constructor

destructor


Member Function Documentation

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

checks if the document header is correct (or not)

Implements MWAWParser.

Referenced by parse().

void BeagleWksSSParser::createDocument ( librevenge::RVNGSpreadsheetInterface *  documentInterface) [protected]

creates the listener which will be associated to the document

Referenced by parse().

bool BeagleWksSSParser::createZones ( ) [protected]

finds the different objects zones

Referenced by parse().

returns the page left top point ( in inches)

void BeagleWksSSParser::init ( ) [protected]

inits all internal variables

Referenced by BeagleWksSSParser().

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

adds a new page

void BeagleWksSSParser::parse ( librevenge::RVNGSpreadsheetInterface *  documentInterface) [virtual]

virtual function used to parse the input

Implements MWAWSpreadsheetParser.

read a cell row

Referenced by readRowSheet().

bool BeagleWksSSParser::readChart ( ) [protected]

read a chart

Referenced by readChartZone().

bool BeagleWksSSParser::readChartZone ( ) [protected]

read the chart zone

Referenced by createZones().

read the columns widths

Referenced by readSpreadsheet().

read the differents formula

Referenced by readSpreadsheet().

bool BeagleWksSSParser::readPrintInfo ( ) [protected]

read the print info zone

Referenced by checkHeader(), and createZones().

read the spreadsheet row

Referenced by readSpreadsheet().

bool BeagleWksSSParser::readRSRCZones ( ) [protected]

read the resource fork zone

Referenced by createZones().

bool BeagleWksSSParser::readSpreadsheet ( ) [protected]

read the spreadsheet zone

Referenced by createZones().

bool BeagleWksSSParser::readZone0 ( ) [protected]

read an unknown zone ( which appears before and after the columns's width zone )

Referenced by readSpreadsheet().

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

return the input input

bool BeagleWksSSParser::sendFrame ( BeagleWksStructManager::Frame const &  frame) [protected]

try to send a frame

Referenced by sendPageFrames().

bool BeagleWksSSParser::sendPageFrames ( ) [protected]

try to send the page graphic

Referenced by sendSpreadsheet().

bool BeagleWksSSParser::sendPicture ( int  pId,
MWAWPosition const &  pos,
MWAWGraphicStyle const &  style = MWAWGraphicStyle::emptyStyle() 
) [protected]

try to send a picture

Referenced by sendFrame().

bool BeagleWksSSParser::sendSpreadsheet ( ) [protected]

try to send the main spreadsheet

Referenced by parse().

bool BeagleWksSSParser::sendText ( MWAWEntry  entry,
bool  headerFooter = false 
) [protected]

Friends And Related Function Documentation

friend struct BeagleWksSSParserInternal::Chart [friend]

Member Data Documentation


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