the main class to read the text part of Claris Works file More...
#include <CWDatabase.hxx>
Public Member Functions | |
CWDatabase (CWParser &parser) | |
constructor More... | |
virtual | ~CWDatabase () |
destructor More... | |
int | version () const |
returns the file version More... | |
int | numPages () const |
returns the number of pages More... | |
shared_ptr< CWStruct::DSET > | readDatabaseZone (CWStruct::DSET const &zone, MWAWEntry const &entry, bool &complete) |
reads the zone Text DSET More... | |
bool | canSendDatabaseAsGraphic (int) const |
check if we can send a database as graphic More... | |
bool | sendDatabase (int number) |
sends the zone data to the listener (if it exists ) More... | |
Protected Member Functions | |
bool | readFields (CWDatabaseInternal::Database &dBase) |
try to read the database structure More... | |
bool | readDefaults (CWDatabaseInternal::Database &dBase) |
try to read the default structure More... | |
Protected Attributes | |
MWAWParserStatePtr | m_parserState |
the parser state More... | |
shared_ptr < CWDatabaseInternal::State > | m_state |
the state More... | |
CWParser * | m_mainParser |
the main parser; More... | |
shared_ptr< CWStyleManager > | m_styleManager |
the style manager More... | |
Private Member Functions | |
CWDatabase (CWDatabase const &orig) | |
CWDatabase & | operator= (CWDatabase const &orig) |
Friends | |
class | CWParser |
the main class to read the text part of Claris Works file
CWDatabase::CWDatabase | ( | CWParser & | parser | ) |
constructor
|
virtual |
destructor
|
private |
|
inline |
check if we can send a database as graphic
int CWDatabase::numPages | ( | ) | const |
returns the number of pages
|
private |
shared_ptr< CWStruct::DSET > CWDatabase::readDatabaseZone | ( | CWStruct::DSET const & | zone, |
MWAWEntry const & | entry, | ||
bool & | complete | ||
) |
reads the zone Text DSET
|
protected |
try to read the default structure
|
protected |
try to read the database structure
find f1=600 for a number f16 = 0[checkbox, ... ], 2[number or text],3 [name field], 82[value list], f16 & 8: can not be empty
bool CWDatabase::sendDatabase | ( | int | number | ) |
sends the zone data to the listener (if it exists )
int CWDatabase::version | ( | ) | const |
returns the file version
Referenced by readDefaults(), and readFields().
|
friend |
|
protected |
the main parser;
Referenced by sendDatabase().
|
protected |
the parser state
Referenced by readDefaults(), readFields(), sendDatabase(), and version().
|
protected |
the state
Referenced by sendDatabase().
|
protected |
the style manager