the main class to read a BeagleWorks spreadsheet file More...
#include <BeagleWksSSParser.hxx>
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::DebugFile & | rsrcAscii () |
| 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 |
the main class to read a BeagleWorks spreadsheet file
| BeagleWksSSParser::BeagleWksSSParser | ( | MWAWInputStreamPtr | input, |
| MWAWRSRCParserPtr | rsrcParser, | ||
| MWAWHeader * | header | ||
| ) |
constructor
| BeagleWksSSParser::~BeagleWksSSParser | ( | ) | [virtual] |
destructor
| bool BeagleWksSSParser::checkHeader | ( | MWAWHeader * | header, |
| bool | strict = false |
||
| ) | [virtual] |
| 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().
| MWAWVec2f BeagleWksSSParser::getPageLeftTop | ( | ) | const [protected] |
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.
| bool BeagleWksSSParser::readCellSheet | ( | BeagleWksSSParserInternal::Cell & | cell | ) | [protected] |
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().
| bool BeagleWksSSParser::readColumnWidths | ( | BeagleWksSSParserInternal::Spreadsheet & | sheet | ) | [protected] |
read the columns widths
Referenced by readSpreadsheet().
| bool BeagleWksSSParser::readFormula | ( | BeagleWksSSParserInternal::Spreadsheet & | sheet | ) | [protected] |
read the differents formula
Referenced by readSpreadsheet().
| bool BeagleWksSSParser::readPrintInfo | ( | ) | [protected] |
read the print info zone
Referenced by checkHeader(), and createZones().
| bool BeagleWksSSParser::readRowSheet | ( | BeagleWksSSParserInternal::Spreadsheet & | sheet | ) | [protected] |
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().
| libmwaw::DebugFile & BeagleWksSSParser::rsrcAscii | ( | ) | [protected] |
a DebugFile used to write what we recognize when we parse the document in rsrc
| MWAWInputStreamPtr BeagleWksSSParser::rsrcInput | ( | ) | [protected] |
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] |
try to send a text zone
Referenced by BeagleWksSSParserInternal::SubDocument::parse(), and BeagleWksSSParserInternal::Chart::sendContent().
friend struct BeagleWksSSParserInternal::Chart [friend] |
friend class BeagleWksSSParserInternal::SubDocument [friend] |
shared_ptr<BeagleWksSSParserInternal::State> BeagleWksSSParser::m_state [protected] |
the state
Referenced by checkHeader(), createDocument(), createZones(), getPageLeftTop(), init(), newPage(), readCellSheet(), readChart(), readSpreadsheet(), and sendSpreadsheet().
shared_ptr<BeagleWksStructManager> BeagleWksSSParser::m_structureManager [protected] |
the structure manager
Referenced by createDocument(), createZones(), init(), readFormula(), readRSRCZones(), and sendPageFrames().