CWDatabase Class Reference

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

#include <CWDatabase.hxx>

List of all members.

Public Member Functions

 CWDatabase (CWParser &parser)
 constructor
virtual ~CWDatabase ()
 destructor
int version () const
 returns the file version
int numPages () const
 returns the number of pages
shared_ptr< CWStruct::DSETreadDatabaseZone (CWStruct::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)
 sends the zone data to the listener (if it exists )

Protected Member Functions

bool readFields (CWDatabaseInternal::Database &dBase)
 try to read the database structure
bool readDefaults (CWDatabaseInternal::Database &dBase)
 try to read the default structure

Protected Attributes

MWAWParserStatePtr m_parserState
 the parser state
shared_ptr
< CWDatabaseInternal::State
m_state
 the state
CWParserm_mainParser
 the main parser;
shared_ptr< CWStyleManagerm_styleManager
 the style manager

Private Member Functions

 CWDatabase (CWDatabase const &orig)
CWDatabaseoperator= (CWDatabase const &orig)

Friends

class CWParser

Detailed Description

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


Constructor & Destructor Documentation

constructor

CWDatabase::~CWDatabase ( ) [virtual]

destructor

CWDatabase::CWDatabase ( CWDatabase const &  orig) [private]

Member Function Documentation

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

check if we can send a database as graphic

int CWDatabase::numPages ( ) const

returns the number of pages

CWDatabase& CWDatabase::operator= ( CWDatabase const &  orig) [private]
shared_ptr< CWStruct::DSET > CWDatabase::readDatabaseZone ( CWStruct::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

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


Friends And Related Function Documentation

friend class CWParser [friend]

Member Data Documentation

the main parser;

Referenced by sendDatabase().

the state

Referenced by sendDatabase().

shared_ptr<CWStyleManager> CWDatabase::m_styleManager [protected]

the style manager


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