38 #ifndef CLARIS_WKS_DBASE_CONTENT
39 # define CLARIS_WKS_DBASE_CONTENT
142 bool readString(
long endPos, std::string &res);
144 bool readNumber(
long endPos,
double &res,
bool &isNan);
147 std::vector<MWAWCellContent::FormulaInstruction> &formula, std::string &error);
small class use to define a formula instruction
Definition: MWAWCell.hxx:360
Type
the different types of cell's field
Definition: MWAWCell.hxx:391
bool readCellInFormula(Vec2i const &pos, MWAWCellContent::FormulaInstruction &instr)
reads a cell
Definition: ClarisWksDbaseContent.cxx:1121
struct which stores a column in ClarisWksDbaseContent
Definition: ClarisWksDbaseContent.hxx:110
bool readContent()
try to read the record structure
Definition: ClarisWksDbaseContent.cxx:134
int m_fileFormat
the format ( in a v1-3 spreadsheet)
Definition: ClarisWksDbaseContent.hxx:94
Column()
constructor
Definition: ClarisWksDbaseContent.hxx:112
MWAWParserStatePtr m_parserState
the parser state
Definition: ClarisWksDbaseContent.hxx:157
bool getExtrema(Vec2i &min, Vec2i &max) const
returns the dimension of the read data
Definition: ClarisWksDbaseContent.cxx:82
MWAWCell::Format m_format
the format
Definition: ClarisWksDbaseContent.hxx:90
std::vector< ClarisWksStyleManager::CellFormat > m_dbFormatList
the databse format
Definition: ClarisWksDbaseContent.hxx:162
bool getRecordList(std::vector< int > &list) const
returns the list of filled record (for database)
Definition: ClarisWksDbaseContent.cxx:111
bool readRecordSSV1(Vec2i const &where, long pos, Record &record)
try to read a spreadsheet record(v1-v3)
Definition: ClarisWksDbaseContent.cxx:397
std::map< int, Record > m_idRecordMap
a map line (or record id) to record
Definition: ClarisWksDbaseContent.hxx:116
MWAWColor m_backgroundColor
the background color
Definition: ClarisWksDbaseContent.hxx:102
bool readColumnList()
try to read the columns list structure(CTAB)
Definition: ClarisWksDbaseContent.cxx:199
bool readRecordSS(Vec2i const &where, long pos, Record &record)
try to read a spreadsheet record
Definition: ClarisWksDbaseContent.cxx:683
bool readNumber(long endPos, double &res, bool &isNan)
try to read a number
Definition: ClarisWksDbaseContent.cxx:1174
ClarisWksDbaseContent(ClarisWksDocument &document, bool spreadsheet)
constructor
Definition: ClarisWksDbaseContent.cxx:59
bool readFormula(Vec2i const &cPos, long endPos, std::vector< MWAWCellContent::FormulaInstruction > &formula, std::string &error)
read to read a formula
Definition: ClarisWksDbaseContent.cxx:1201
std::map< int, Column > m_idColumnMap
a map col id to column
Definition: ClarisWksDbaseContent.hxx:160
HorizontalAlignment
the default horizontal alignement.
Definition: MWAWCell.hxx:118
a structure used to define a cell and its format
Definition: MWAWCell.hxx:52
the class to store a color
Definition: libmwaw_internal.hxx:166
small class use to define a sheet cell content
Definition: MWAWCell.hxx:356
bool m_isSpreadsheet
a bool to know if this is a spreadsheet or a database
Definition: ClarisWksDbaseContent.hxx:152
Class to store font.
Definition: MWAWFont.hxx:44
bool m_hasNaNValue
a flag to know if a double result is nan or not
Definition: ClarisWksDbaseContent.hxx:100
main document information used to create a ClarisWorks file
Definition: ClarisWksDocument.hxx:69
MWAWCellContent m_content
the content
Definition: ClarisWksDbaseContent.hxx:96
small structure used to parse main content of a spreadsheet/database zone
Definition: ClarisWksDbaseContent.hxx:56
MWAWFont m_font
the font ( in v1-3 spreadsheet)
Definition: ClarisWksDbaseContent.hxx:104
MWAWCell::HorizontalAlignment m_hAlign
the cell alignement : by default nothing
Definition: ClarisWksDbaseContent.hxx:92
struct which stores a record in ClarisWksDbaseContent
Definition: ClarisWksDbaseContent.hxx:80
bool readString(long endPos, std::string &res)
try to read a string
Definition: ClarisWksDbaseContent.cxx:1159
bool readRecordList(Vec2i const &where, Column &col)
try to read a list of records(CHNK)
Definition: ClarisWksDbaseContent.cxx:318
bool readColumn(int c)
try to read the column structure(COLM): a list of chnk
Definition: ClarisWksDbaseContent.cxx:265
int m_borders
the border in v1-3 spreadsheet
Definition: ClarisWksDbaseContent.hxx:106
int m_version
the file version
Definition: ClarisWksDbaseContent.hxx:150
bool readRecordDB(Vec2i const &where, long pos, Record &record)
try to read a database record
Definition: ClarisWksDbaseContent.cxx:930
ClarisWksDocument & m_document
the document
Definition: ClarisWksDbaseContent.hxx:155
Defines MWAWCell (cell content and format)
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:386
~ClarisWksDbaseContent()
destructor
Definition: ClarisWksDbaseContent.cxx:69
void setDatabaseFormats(std::vector< ClarisWksStyleManager::CellFormat > const &format)
set the field format ( for database )
Definition: ClarisWksDbaseContent.cxx:73
bool send(Vec2i const &pos)
try to send a cell content to the listener
Definition: ClarisWksDbaseContent.cxx:1041
MWAWCellContent::Type m_valueType
the type of the content value ( original or result of a formula )
Definition: ClarisWksDbaseContent.hxx:98
int m_style
the style if known
Definition: ClarisWksDbaseContent.hxx:88
Record()
contructor
Definition: ClarisWksDbaseContent.hxx:82