Go to the documentation of this file.
38 #ifndef CLARIS_WKS_DBASE_CONTENT
39 # define CLARIS_WKS_DBASE_CONTENT
146 bool readString(
long endPos, std::string &res);
148 bool readNumber(
long endPos,
double &res,
bool &isNan);
151 std::vector<MWAWCellContent::FormulaInstruction> &formula, std::string &error);
@ F_CellList
Definition: MWAWCell.hxx:360
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:161
int m_borders
the border in v1-3 spreadsheet
Definition: ClarisWksDbaseContent.hxx:110
bool hasSurfaceColor() const
returns true if the surface is defined
Definition: MWAWGraphicStyle.hxx:288
MWAWFont m_font
the font ( in v1-3 spreadsheet)
Definition: ClarisWksDbaseContent.hxx:108
@ F_BOOLEAN
Definition: MWAWCell.hxx:56
char const * m_name
Definition: ClarisWksDbaseContent.cxx:1256
Type
the different types of cell's field
Definition: MWAWCell.hxx:390
MWAWEntry m_textEntry
the cell string
Definition: MWAWCell.hxx:438
MWAWCellContent m_content
the content
Definition: ClarisWksDbaseContent.hxx:100
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
void setValue(double value)
sets the double value
Definition: MWAWCell.hxx:407
@ F_DATE
Definition: MWAWCell.hxx:56
~ClarisWksDbaseContent()
destructor
Definition: ClarisWksDbaseContent.cxx:69
void updateFormulaCells(MWAWVec2i const &removeDelta)
update the formula cell (removing delta to each position)
Definition: ClarisWksDbaseContent.cxx:1452
MWAWCell::HorizontalAlignment m_hAlign
the cell alignment : by default nothing
Definition: ClarisWksDbaseContent.hxx:96
bool getExtrema(MWAWVec2i &min, MWAWVec2i &max) const
returns the dimension of the read data
Definition: ClarisWksDbaseContent.cxx:82
@ F_NUMBER_DECIMAL
Definition: MWAWCell.hxx:58
bool readNumber(long endPos, double &res, bool &isNan)
try to read a number
Definition: ClarisWksDbaseContent.cxx:1242
@ F_Operator
Definition: MWAWCell.hxx:360
@ boldBit
Definition: MWAWFont.hxx:182
@ F_NUMBER_PERCENT
Definition: MWAWCell.hxx:58
bool readContent()
try to read the record structure
Definition: ClarisWksDbaseContent.cxx:168
bool isValueSet() const
returns true if the value has been setted
Definition: MWAWCell.hxx:413
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:320
MWAWColor m_backgroundColor
the background color
Definition: ClarisWksDbaseContent.hxx:106
@ F_UNKNOWN
Definition: MWAWCell.hxx:56
small class use to define a formula instruction
Definition: MWAWCell.hxx:359
@ C_NONE
Definition: MWAWCell.hxx:390
the class to store a color
Definition: libmwaw_internal.hxx:182
bool readColumn(int c)
try to read the column structure(COLM): a list of chnk
Definition: ClarisWksDbaseContent.cxx:299
bool readRecordDB(MWAWVec2i const &where, long pos, Record &record)
try to read a database record
Definition: ClarisWksDbaseContent.cxx:985
bool get(MWAWVec2i const &pos, Record &data) const
retrieves the cell data
Definition: ClarisWksDbaseContent.cxx:1083
@ F_NUMBER_SCIENTIFIC
Definition: MWAWCell.hxx:58
shared_ptr< ClarisWksStyleManager > getStyleManager()
returns the style manager
Definition: ClarisWksDocument.hxx:132
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
@ F_Function
Definition: MWAWCell.hxx:360
@ Simple
Definition: MWAWFont.hxx:49
@ F_NUMBER_GENERIC
Definition: MWAWCell.hxx:58
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
the structure to store the style in a ClarisWksStyleManager
Definition: ClarisWksStyleManager.hxx:192
main document information used to create a ClarisWorks file
Definition: ClarisWksDocument.hxx:74
bool readFormula(MWAWVec2i const &cPos, long endPos, std::vector< MWAWCellContent::FormulaInstruction > &formula, std::string &error)
read to read a formula
Definition: ClarisWksDbaseContent.cxx:1269
bool m_hasNaNValue
a flag to know if a double result is nan or not
Definition: ClarisWksDbaseContent.hxx:104
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
void setDeltaLetterSpacing(float d, librevenge::RVNGUnit unit=librevenge::RVNG_POINT)
sets the letter spacing ( delta value in point )
Definition: MWAWFont.hxx:271
small structure used to parse main content of a spreadsheet/database zone
Definition: ClarisWksDbaseContent.hxx:58
std::string m_content
the content ( if type == F_Operator or type = F_Function or type==F_Text)
Definition: MWAWCell.hxx:376
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
bool readRecordSSV1(MWAWVec2i const &where, long pos, Record &record)
try to read a spreadsheet record(v1-v3)
Definition: ClarisWksDbaseContent.cxx:431
void setDatabaseFormats(std::vector< ClarisWksStyleManager::CellFormat > const &format)
set the field format ( for database )
Definition: ClarisWksDbaseContent.cxx:73
@ embossBit
Definition: MWAWFont.hxx:182
struct which stores a record in ClarisWksDbaseContent
Definition: ClarisWksDbaseContent.hxx:83
void setStrikeOutStyle(Line::Style style=Line::None, bool doReset=true)
sets the strikeoutline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:406
@ F_Text
Definition: MWAWCell.hxx:360
@ JustificationCenter
Definition: MWAWParagraph.hxx:87
bool readCellInFormula(MWAWVec2i const &pos, MWAWCellContent::FormulaInstruction &instr)
reads a cell
Definition: ClarisWksDbaseContent.cxx:1189
std::vector< FormulaInstruction > m_formula
the formula list of instruction
Definition: MWAWCell.hxx:440
MWAWColor m_surfaceColor
the surface color
Definition: MWAWGraphicStyle.hxx:385
@ shadowBit
Definition: MWAWFont.hxx:183
std::string getDebugString(shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
Type m_type
the type
Definition: MWAWCell.hxx:374
Column()
constructor
Definition: ClarisWksDbaseContent.hxx:116
int m_graphicId
the graphic (checkme)
Definition: ClarisWksStyleManager.hxx:214
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:56
double m_value
the cell value
Definition: MWAWCell.hxx:434
int m_version
the file version
Definition: ClarisWksDbaseContent.hxx:156
small class use to define a sheet cell content
Definition: MWAWCell.hxx:356
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
bool send(MWAWVec2i const &pos)
try to send a cell content to the listener
Definition: ClarisWksDbaseContent.cxx:1107
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:61
bool getRecordList(std::vector< int > &list) const
returns the list of filled record/row
Definition: ClarisWksDbaseContent.cxx:127
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:243
bool readString(long endPos, std::string &res)
try to read a string
Definition: ClarisWksDbaseContent.cxx:1227
double m_longValue
value ( if type==F_Long )
Definition: MWAWCell.hxx:378
bool m_isSpreadsheet
a bool to know if this is a spreadsheet or a database
Definition: ClarisWksDbaseContent.hxx:158
std::map< int, Record > m_idRecordMap
a map line (or record id) to record
Definition: ClarisWksDbaseContent.hxx:120
@ JustificationLeft
Definition: MWAWParagraph.hxx:87
MWAWParserStatePtr m_parserState
the parser state
Definition: ClarisWksDbaseContent.hxx:163
double m_doubleValue
value ( if type==F_Double )
Definition: MWAWCell.hxx:380
static bool double2String(double val, MWAWCell::Format const &format, std::string &str)
conversion of the value in string knowing the cell format
Definition: MWAWCell.cxx:597
@ C_FORMULA
Definition: MWAWCell.hxx:390
@ F_Cell
Definition: MWAWCell.hxx:360
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
@ F_Long
Definition: MWAWCell.hxx:360
long end() const
returns the end offset
Definition: MWAWEntry.hxx:77
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:254
MWAWCellContent::Type m_valueType
the type of the content value ( original or result of a formula )
Definition: ClarisWksDbaseContent.hxx:102
ClarisWksDocument & m_document
the document
Definition: ClarisWksDbaseContent.hxx:161
ClarisWksDbaseContent(ClarisWksDocument &document, bool spreadsheet)
constructor
Definition: ClarisWksDbaseContent.cxx:59
@ F_NUMBER
Definition: MWAWCell.hxx:56
@ F_TIME
Definition: MWAWCell.hxx:56
@ italicBit
Definition: MWAWFont.hxx:182
@ F_NUMBER_CURRENCY
Definition: MWAWCell.hxx:58
int m_style
the style if known
Definition: ClarisWksDbaseContent.hxx:92
int m_cellFormatId
the formatId
Definition: ClarisWksStyleManager.hxx:204
@ C_TEXT
Definition: MWAWCell.hxx:390
int m_arity
Definition: ClarisWksDbaseContent.cxx:1257
@ F_Double
Definition: MWAWCell.hxx:360
int m_fileFormat
the format ( in a v1-3 spreadsheet)
Definition: ClarisWksDbaseContent.hxx:98
@ JustificationRight
Definition: MWAWParagraph.hxx:88
HorizontalAlignment
the default horizontal alignment.
Definition: MWAWCell.hxx:116
MWAWVec2i m_position[2]
cell position ( if type==F_Cell or F_CellList )
Definition: MWAWCell.hxx:382
std::map< int, Column > m_idColumnMap
a map col id to column
Definition: ClarisWksDbaseContent.hxx:166
Definition: ClarisWksDbaseContent.cxx:1255
Record()
contructor
Definition: ClarisWksDbaseContent.hxx:85
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
MWAWParserStatePtr m_parserState
the parser state
Definition: MWAWParser.hxx:244
std::set< MWAWVec2i > m_positionSet
a set of cell position (sorted by row)
Definition: ClarisWksDbaseContent.hxx:168
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
std::vector< ClarisWksStyleManager::CellFormat > m_dbFormatList
the databse format
Definition: ClarisWksDbaseContent.hxx:170
bool readRecordList(MWAWVec2i const &where, Column &col)
try to read a list of records(CHNK)
Definition: ClarisWksDbaseContent.cxx:352
shared_ptr< ClarisWksDocument > m_document
the main document manager
Definition: ClarisWksParser.hxx:110
MWAWVec2b m_positionRelative[2]
relative cell position ( if type==F_Cell or F_CellList )
Definition: MWAWCell.hxx:384
void updateCellPositionsSet() const
update the position set
Definition: ClarisWksDbaseContent.cxx:111
@ HALIGN_LEFT
Definition: MWAWCell.hxx:116
bool readRecordSS(MWAWVec2i const &where, long pos, Record &record)
try to read a spreadsheet record
Definition: ClarisWksDbaseContent.cxx:721
bool readColumnList()
try to read the columns list structure(CTAB)
Definition: ClarisWksDbaseContent.cxx:233
struct which stores a column in ClarisWksDbaseContent
Definition: ClarisWksDbaseContent.hxx:114
Definition: ClarisWksDbaseContent.cxx:1254
Class to store font.
Definition: MWAWFont.hxx:44
MWAWCell::Format m_format
the format
Definition: ClarisWksDbaseContent.hxx:94
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
Type m_contentType
the content type ( by default unknown )
Definition: MWAWCell.hxx:432
@ C_NUMBER
Definition: MWAWCell.hxx:390
MWAWVec2< bool > MWAWVec2b
MWAWVec2 of bool.
Definition: libmwaw_internal.hxx:779
static Operators const s_listOperators[]
Definition: ClarisWksDbaseContent.cxx:1260
bool getColumnList(int row, std::vector< int > &list) const
returns the list of filled columns
Definition: ClarisWksDbaseContent.cxx:150
@ HALIGN_RIGHT
Definition: MWAWCell.hxx:116
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:505
int m_fontId
the char
Definition: ClarisWksStyleManager.hxx:202
void setUnderlineStyle(Line::Style style=Line::None, bool doReset=true)
sets the underline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:445
@ C_UNKNOWN
Definition: MWAWCell.hxx:390
@ HALIGN_CENTER
Definition: MWAWCell.hxx:116
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:304
Generated on Wed Jun 17 2020 06:30:09 for libmwaw by
doxygen 1.8.18