ClarisWksDatabase Class Reference

the main class to read the text part of Claris Works file More...

#include <ClarisWksDatabase.hxx>

List of all members.

Public Member Functions

 ClarisWksDatabase (ClarisWksDocument &document)
 constructor
virtual ~ClarisWksDatabase ()
 destructor
int version () const
 returns the file version
int numPages () const
 returns the number of pages
shared_ptr< ClarisWksStruct::DSETreadDatabaseZone (ClarisWksStruct::DSET const &zone, MWAWEntry const &entry, bool &complete)
 reads the zone Text DSET
bool canSendDatabaseAsGraphic (int) const
 check if we can send a database as graphic
bool sendDatabase (int number, MWAWListenerPtr listener)
 sends the zone data to the listener (if it exists )

Protected Member Functions

bool readFields (ClarisWksDatabaseInternal::Database &dBase)
 try to read the database structure
bool readDefaults (ClarisWksDatabaseInternal::Database &dBase)
 try to read the default structure
bool readLayout (ClarisWksDatabaseInternal::Database &dBase)
 try to read the layout structures

Protected Attributes

ClarisWksDocumentm_document
 the document
MWAWParserStatePtr m_parserState
 the parser state
shared_ptr
< ClarisWksDatabaseInternal::State
m_state
 the state
MWAWParserm_mainParser
 the main parser;

Private Member Functions

 ClarisWksDatabase (ClarisWksDatabase const &orig)
ClarisWksDatabaseoperator= (ClarisWksDatabase const &orig)

Friends

class ClarisWksParser

Detailed Description

the main class to read the text part of Claris Works file


Constructor & Destructor Documentation

destructor


Member Function Documentation

bool ClarisWksDatabase::canSendDatabaseAsGraphic ( int  ) const [inline]

check if we can send a database as graphic

returns the number of pages

ClarisWksDatabase& ClarisWksDatabase::operator= ( ClarisWksDatabase const &  orig) [private]
shared_ptr< ClarisWksStruct::DSET > ClarisWksDatabase::readDatabaseZone ( ClarisWksStruct::DSET const &  zone,
MWAWEntry const &  entry,
bool &  complete 
)

reads the zone Text DSET

try to read the default structure

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

try to read the layout structures

bool ClarisWksDatabase::sendDatabase ( int  number,
MWAWListenerPtr  listener 
)

sends the zone data to the listener (if it exists )

returns the file version

Referenced by readDefaults(), and readFields().


Friends And Related Function Documentation

friend class ClarisWksParser [friend]

Member Data Documentation

the main parser;

the state

Referenced by sendDatabase().


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