MsWksDBParser Class Reference

the main class to read a Microsoft Works database file and convert it in a spreadsheet file More...

#include <MsWksDBParser.hxx>

Inheritance diagram for MsWksDBParser:
MWAWSpreadsheetParser MWAWParser

List of all members.

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< MWAWEntrym_listZones
 the list of different Zones
shared_ptr< MsWksDocumentm_document
 the actual zone

Friends

class MsWksDBParserInternal::SubDocument

Detailed Description

the main class to read a Microsoft Works database file and convert it in a spreadsheet file


Constructor & Destructor Documentation

constructor

destructor


Member Function Documentation

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

checks if the document header is correct (or not)

Implements MWAWParser.

Referenced by parse().

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().

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

Note:
if onlyCheck = true, only check if the zone is ok but do nothing

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]

reads the serial value

reads the serial formula

Referenced by readDataBase().

bool MsWksDBParser::readUnknownV2 ( ) [protected]

reads an unknown zone V2

Note:
this header looks like the form v3-4 header, but is it really the form header ?

Referenced by readDataBase().

bool MsWksDBParser::sendDatabase ( ) [protected]

try to send the main database

Referenced by parse().


Friends And Related Function Documentation

friend class MsWksDBParserInternal::SubDocument [friend]

Member Data Documentation

std::vector<MWAWEntry> MsWksDBParser::m_listZones [protected]

the list of different Zones


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