the main class to read a Microsoft Works database file and convert it in a spreadsheet file More...
#include <MsWksDBParser.hxx>
Public Member Functions | |
| MsWksDBParser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header) | |
| constructor | |
| virtual | ~MsWksDBParser () |
| 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 | |
| bool | createZones () |
| finds the different objects zones | |
| bool | readDataBase () |
| try to read the database zone | |
| bool | sendDatabase () |
| try to send the main database | |
| bool | readFieldTypes () |
| reads the list of the fields type v3-v4 | |
| bool | readFieldTypesV2 () |
| reads the list of the fields type v2 | |
| bool | readRecords (bool onlyCheck) |
| reads the database contents: field's names and values | |
| bool | readFilters () |
| reads the filters | |
| bool | readColSize (std::vector< int > &colSize) |
| reads the list of the columns size | |
| bool | readDefaultValues () |
| reads the default value | |
| bool | readFormula () |
| reads the formula value | |
| bool | readSerialFormula () |
| reads the serial value | |
| bool | readForms () |
| reads all the form | |
| bool | readFormV2 () |
| reads a list of dimension(?) corresponding to the fields type v2 | |
| bool | readForm () |
| reads one form | |
| bool | readFormTypes (MsWksDBParserInternal::Form &form) |
| read a form types | |
| bool | readReports () |
| reads the reports | |
| bool | readReportHeader () |
| read a report header | |
| bool | readReportV2 () |
| reads a report zone in v.2 file | |
| bool | readUnknownV2 () |
| reads an unknown zone V2 | |
Protected Attributes | |
| shared_ptr < MsWksDBParserInternal::State > | m_state |
| the state | |
| std::vector< MWAWEntry > | m_listZones |
| the list of different Zones | |
| shared_ptr< MsWksDocument > | m_document |
| the actual zone | |
Friends | |
| class | MsWksDBParserInternal::SubDocument |
the main class to read a Microsoft Works database file and convert it in a spreadsheet file
| MsWksDBParser::MsWksDBParser | ( | MWAWInputStreamPtr | input, |
| MWAWRSRCParserPtr | rsrcParser, | ||
| MWAWHeader * | header | ||
| ) |
constructor
| MsWksDBParser::~MsWksDBParser | ( | ) | [virtual] |
destructor
| bool MsWksDBParser::checkHeader | ( | MWAWHeader * | header, |
| bool | strict = false |
||
| ) | [virtual] |
| void MsWksDBParser::createDocument | ( | librevenge::RVNGSpreadsheetInterface * | documentInterface | ) | [protected] |
creates the listener which will be associated to the document
Referenced by parse().
| bool MsWksDBParser::createZones | ( | ) | [protected] |
finds the different objects zones
Referenced by parse().
| void MsWksDBParser::init | ( | ) | [protected] |
inits all internal variables
Referenced by MsWksDBParser().
| void MsWksDBParser::parse | ( | librevenge::RVNGSpreadsheetInterface * | documentInterface | ) | [virtual] |
virtual function used to parse the input
Implements MWAWSpreadsheetParser.
| bool MsWksDBParser::readColSize | ( | std::vector< int > & | colSize | ) | [protected] |
reads the list of the columns size
Referenced by readForms(), readFormV2(), and readReportV2().
| bool MsWksDBParser::readDataBase | ( | ) | [protected] |
try to read the database zone
Referenced by createZones().
| bool MsWksDBParser::readDefaultValues | ( | ) | [protected] |
reads the default value
Referenced by readDataBase().
| bool MsWksDBParser::readFieldTypes | ( | ) | [protected] |
reads the list of the fields type v3-v4
Referenced by readDataBase().
| bool MsWksDBParser::readFieldTypesV2 | ( | ) | [protected] |
reads the list of the fields type v2
Referenced by readDataBase().
| bool MsWksDBParser::readFilters | ( | ) | [protected] |
reads the filters
Referenced by readDataBase().
| bool MsWksDBParser::readForm | ( | ) | [protected] |
reads one form
Referenced by readForms().
| bool MsWksDBParser::readForms | ( | ) | [protected] |
reads all the form
Referenced by createZones(), and readReports().
| bool MsWksDBParser::readFormTypes | ( | MsWksDBParserInternal::Form & | form | ) | [protected] |
read a form types
[ff,5c,_,-8,_,-9] or [ff,a8,_,-8,_,-9] or [_,5c,_,-8,_,-9]
Referenced by readForm().
| bool MsWksDBParser::readFormula | ( | ) | [protected] |
reads the formula value
Referenced by readDataBase().
| bool MsWksDBParser::readFormV2 | ( | ) | [protected] |
reads a list of dimension(?) corresponding to the fields type v2
Referenced by readDataBase().
| bool MsWksDBParser::readRecords | ( | bool | onlyCheck | ) | [protected] |
reads the database contents: field's names and values
Referenced by readDataBase().
| bool MsWksDBParser::readReportHeader | ( | ) | [protected] |
read a report header
Referenced by readReports().
| bool MsWksDBParser::readReports | ( | ) | [protected] |
reads the reports
Referenced by createZones().
| bool MsWksDBParser::readReportV2 | ( | ) | [protected] |
reads a report zone in v.2 file
Referenced by readDataBase().
| bool MsWksDBParser::readSerialFormula | ( | ) | [protected] |
| bool MsWksDBParser::readUnknownV2 | ( | ) | [protected] |
reads an unknown zone V2
Referenced by readDataBase().
| bool MsWksDBParser::sendDatabase | ( | ) | [protected] |
try to send the main database
Referenced by parse().
friend class MsWksDBParserInternal::SubDocument [friend] |
shared_ptr<MsWksDocument> MsWksDBParser::m_document [protected] |
the actual zone
Referenced by checkHeader(), createDocument(), createZones(), MsWksDBParser(), parse(), readColSize(), readDataBase(), readDefaultValues(), readFieldTypes(), readFieldTypesV2(), readFilters(), readForm(), readForms(), readFormTypes(), readFormula(), readFormV2(), readRecords(), readReportHeader(), readReports(), readReportV2(), readSerialFormula(), readUnknownV2(), and sendDatabase().
std::vector<MWAWEntry> MsWksDBParser::m_listZones [protected] |
the list of different Zones
shared_ptr<MsWksDBParserInternal::State> MsWksDBParser::m_state [protected] |
the state
Referenced by checkHeader(), createDocument(), createZones(), init(), readDataBase(), readDefaultValues(), readFieldTypes(), readFieldTypesV2(), readForm(), readForms(), readFormTypes(), readFormula(), readFormV2(), readRecords(), readReports(), readSerialFormula(), and sendDatabase().