38 #ifndef CW_DBASE_CONTENT
39 # define CW_DBASE_CONTENT
48 #include "MWAWFont.hxx"
81 Record() :
m_style(-1),
m_resType(
R_Unknown),
m_resLong(0),
m_resDouble(0),
m_resDoubleNaN(false),
m_resString(),
m_format(0),
m_font(3,9),
m_justify(0),
m_borders(0) {
void setDatabaseFormats(std::vector< CWStyleManager::CellFormat > const &format)
set the field format ( for database )
Definition: CWDbaseContent.cxx:72
std::vector< CWStyleManager::CellFormat > m_dbFormatList
the databse format
Definition: CWDbaseContent.hxx:143
std::map< int, Column > m_idColumnMap
a map col id to column
Definition: CWDbaseContent.hxx:141
small structure used to parse main content of a spreadsheet/database zone
Definition: CWDbaseContent.hxx:56
a structure to store the style list and the lookup zone
Definition: CWStyleManager.hxx:59
int m_version
the file version
Definition: CWDbaseContent.hxx:131
Record()
contructor
Definition: CWDbaseContent.hxx:81
MWAWEntry m_resString
the result entry if string
Definition: CWDbaseContent.hxx:95
bool readRecordSS(Vec2i const &where, long pos, Record &record)
try to read a spreadsheet record
Definition: CWDbaseContent.cxx:623
double m_resDouble
the result id double
Definition: CWDbaseContent.hxx:91
bool readRecordDB(Vec2i const &where, long pos, Record &record)
try to read a database record
Definition: CWDbaseContent.cxx:800
MWAWFont m_font
the font ( in v1-3 spreadsheet)
Definition: CWDbaseContent.hxx:99
struct which stores a column in CWDbaseContent
Definition: CWDbaseContent.hxx:106
Definition: CWDbaseContent.hxx:79
shared_ptr< CWStyleManager > m_styleManager
the style manager
Definition: CWDbaseContent.hxx:138
~CWDbaseContent()
destructor
Definition: CWDbaseContent.cxx:68
CWDbaseContent(MWAWParserStatePtr parserState, shared_ptr< CWStyleManager > styleManager, bool spreadsheet)
constructor
Definition: CWDbaseContent.cxx:58
Definition: CWDbaseContent.hxx:79
bool readContent()
try to read the record structure
Definition: CWDbaseContent.cxx:132
bool m_resDoubleNaN
a flag to know if a double result is nan or not
Definition: CWDbaseContent.hxx:93
bool m_isSpreadsheet
a bool to know if this is a spreadsheet or a database
Definition: CWDbaseContent.hxx:133
struct which stores a record in CWDbaseContent
Definition: CWDbaseContent.hxx:77
bool getExtrema(Vec2i &min, Vec2i &max) const
returns the dimension of the read data
Definition: CWDbaseContent.cxx:81
bool send(Vec2i const &pos)
try to send a cell content to the listener
Definition: CWDbaseContent.cxx:882
Definition: CWDbaseContent.hxx:79
int m_justify
cell justify in v1-3 spreadsheet
Definition: CWDbaseContent.hxx:101
bool getRecordList(std::vector< int > &list) const
returns the list of filled record (for database)
Definition: CWDbaseContent.cxx:109
bool readColumn(int c)
try to read the column structure(COLM): a list of chnk
Definition: CWDbaseContent.cxx:263
bool readColumnList()
try to read the columns list structure(CTAB)
Definition: CWDbaseContent.cxx:197
int m_format
the format ( in a v1-3 spreadsheet)
Definition: CWDbaseContent.hxx:97
bool readRecordSSV1(Vec2i const &where, long pos, Record &record)
try to read a spreadsheet record(v1-v3)
Definition: CWDbaseContent.cxx:395
Type m_resType
the result type
Definition: CWDbaseContent.hxx:87
MWAWParserStatePtr m_parserState
the parser state
Definition: CWDbaseContent.hxx:136
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:356
Definition: CWDbaseContent.hxx:79
int m_borders
the border in v1-3 spreadsheet
Definition: CWDbaseContent.hxx:103
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
std::map< int, Record > m_idRecordMap
a map line (or record id) to record
Definition: CWDbaseContent.hxx:111
Type
different result type
Definition: CWDbaseContent.hxx:79
long m_resLong
the result if int/long
Definition: CWDbaseContent.hxx:89
Column()
constructor
Definition: CWDbaseContent.hxx:108
int m_style
the style if known
Definition: CWDbaseContent.hxx:85
bool readRecordList(Vec2i const &where, Column &col)
try to read a list of records(CHNK)
Definition: CWDbaseContent.cxx:316