Go to the documentation of this file.
38 #ifndef CLARIS_WKS_DBASE_CONTENT
39 # define CLARIS_WKS_DBASE_CONTENT
70 std::vector<MWAWCellContent::FormulaInstruction> &formula, std::string &error);
162 bool readString(
long endPos, std::string &res);
164 bool readNumber(
long endPos,
double &res,
bool &isNan);
@ F_CellList
Definition: MWAWCell.hxx:398
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:167
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
int m_borders
the border in v1-3 spreadsheet
Definition: ClarisWksDbaseContent.hxx:123
bool hasSurfaceColor() const
returns true if the surface is defined
Definition: MWAWGraphicStyle.hxx:421
MWAWFont m_font
the font ( in v1-3 spreadsheet)
Definition: ClarisWksDbaseContent.hxx:121
@ F_BOOLEAN
Definition: MWAWCell.hxx:56
char const * m_name
Definition: ClarisWksDbaseContent.cxx:1293
Type
the different types of cell's field
Definition: MWAWCell.hxx:433
std::shared_ptr< ClarisWksDocument > m_document
the main document manager
Definition: ClarisWksParser.hxx:110
MWAWEntry m_textEntry
the cell string
Definition: MWAWCell.hxx:489
MWAWCellContent m_content
the content
Definition: ClarisWksDbaseContent.hxx:113
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
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:458
@ F_DATE
Definition: MWAWCell.hxx:56
~ClarisWksDbaseContent()
destructor
Definition: ClarisWksDbaseContent.cxx:75
void updateFormulaCells(MWAWVec2i const &removeDelta)
update the formula cell (removing delta to each position)
Definition: ClarisWksDbaseContent.cxx:1505
MWAWCell::HorizontalAlignment m_hAlign
the cell alignment : by default nothing
Definition: ClarisWksDbaseContent.hxx:109
bool getExtrema(MWAWVec2i &min, MWAWVec2i &max) const
returns the dimension of the read data
Definition: ClarisWksDbaseContent.cxx:88
@ F_NUMBER_DECIMAL
Definition: MWAWCell.hxx:58
bool readNumber(long endPos, double &res, bool &isNan)
try to read a number
Definition: ClarisWksDbaseContent.cxx:1279
@ F_Operator
Definition: MWAWCell.hxx:398
@ boldBit
Definition: MWAWFont.hxx:190
@ F_NUMBER_PERCENT
Definition: MWAWCell.hxx:58
bool readContent()
try to read the record structure
Definition: ClarisWksDbaseContent.cxx:168
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
MWAWColor m_backgroundColor
the background color
Definition: ClarisWksDbaseContent.hxx:119
@ F_UNKNOWN
Definition: MWAWCell.hxx:56
small class use to define a formula instruction
Definition: MWAWCell.hxx:397
@ C_NONE
Definition: MWAWCell.hxx:433
the class to store a color
Definition: libmwaw_internal.hxx:192
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:1116
@ F_NUMBER_SCIENTIFIC
Definition: MWAWCell.hxx:58
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
@ F_Function
Definition: MWAWCell.hxx:398
@ Simple
Definition: MWAWFont.hxx:49
@ F_NUMBER_GENERIC
Definition: MWAWCell.hxx:58
the structure to store the style in a ClarisWksStyleManager
Definition: ClarisWksStyleManager.hxx:207
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:1306
bool m_hasNaNValue
a flag to know if a double result is nan or not
Definition: ClarisWksDbaseContent.hxx:117
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:292
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:417
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:79
@ embossBit
Definition: MWAWFont.hxx:190
Defines MWAWCell (cell content and format)
struct which stores a record in ClarisWksDbaseContent
Definition: ClarisWksDbaseContent.hxx:86
void setStrikeOutStyle(Line::Style style=Line::None, bool doReset=true)
sets the strikeoutline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:427
@ F_Text
Definition: MWAWCell.hxx:398
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
bool readCellInFormula(MWAWVec2i const &pos, MWAWCellContent::FormulaInstruction &instr)
reads a cell
Definition: ClarisWksDbaseContent.cxx:1226
std::vector< FormulaInstruction > m_formula
the formula list of instruction
Definition: MWAWCell.hxx:491
MWAWColor m_surfaceColor
the surface color
Definition: MWAWGraphicStyle.hxx:518
@ shadowBit
Definition: MWAWFont.hxx:191
Type m_type
the type
Definition: MWAWCell.hxx:415
Column()
constructor
Definition: ClarisWksDbaseContent.hxx:131
int m_graphicId
the graphic (checkme)
Definition: ClarisWksStyleManager.hxx:238
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
int m_version
the file version
Definition: ClarisWksDbaseContent.hxx:169
small class use to define a sheet cell content
Definition: MWAWCell.hxx:394
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
bool send(MWAWVec2i const &pos)
try to send a cell content to the listener
Definition: ClarisWksDbaseContent.cxx:1140
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
bool getRecordList(std::vector< int > &list) const
returns the list of filled record/row
Definition: ClarisWksDbaseContent.cxx:129
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
bool readString(long endPos, std::string &res)
try to read a string
Definition: ClarisWksDbaseContent.cxx:1264
double m_longValue
value ( if type==F_Long )
Definition: MWAWCell.hxx:419
bool m_isSpreadsheet
a bool to know if this is a spreadsheet or a database
Definition: ClarisWksDbaseContent.hxx:171
std::map< int, Record > m_idRecordMap
a map line (or record id) to record
Definition: ClarisWksDbaseContent.hxx:136
std::map< int, MWAWFont > m_posToFontMap
map id to font ( in database)
Definition: ClarisWksDbaseContent.hxx:125
std::shared_ptr< ClarisWksStyleManager > getStyleManager()
returns the style manager
Definition: ClarisWksDocument.hxx:134
@ JustificationLeft
Definition: MWAWParagraph.hxx:90
MWAWParserStatePtr m_parserState
the parser state
Definition: ClarisWksDbaseContent.hxx:176
double m_doubleValue
value ( if type==F_Double )
Definition: MWAWCell.hxx:421
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:602
@ C_FORMULA
Definition: MWAWCell.hxx:433
@ F_Cell
Definition: MWAWCell.hxx:398
@ F_Long
Definition: MWAWCell.hxx:398
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
MWAWCellContent::Type m_valueType
the type of the content value ( original or result of a formula )
Definition: ClarisWksDbaseContent.hxx:115
ClarisWksDocument & m_document
the document
Definition: ClarisWksDbaseContent.hxx:174
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:190
@ F_NUMBER_CURRENCY
Definition: MWAWCell.hxx:58
int m_style
the style if known
Definition: ClarisWksDbaseContent.hxx:105
int m_cellFormatId
the formatId
Definition: ClarisWksStyleManager.hxx:228
@ C_TEXT
Definition: MWAWCell.hxx:433
int m_arity
Definition: ClarisWksDbaseContent.cxx:1294
@ F_Double
Definition: MWAWCell.hxx:398
int m_fileFormat
the format ( in a v1-3 spreadsheet)
Definition: ClarisWksDbaseContent.hxx:111
@ JustificationRight
Definition: MWAWParagraph.hxx:91
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
HorizontalAlignment
the default horizontal alignment.
Definition: MWAWCell.hxx:128
MWAWVec2i m_position[2]
cell position ( if type==F_Cell or F_CellList )
Definition: MWAWCell.hxx:423
std::map< int, Column > m_idColumnMap
a map col id to column
Definition: ClarisWksDbaseContent.hxx:179
Definition: ClarisWksDbaseContent.cxx:1292
Record()
contructor
Definition: ClarisWksDbaseContent.hxx:88
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:181
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:183
bool readRecordList(MWAWVec2i const &where, Column &col)
try to read a list of records(CHNK)
Definition: ClarisWksDbaseContent.cxx:352
MWAWVec2b m_positionRelative[2]
relative cell position ( if type==F_Cell or F_CellList )
Definition: MWAWCell.hxx:425
void updateCellPositionsSet() const
update the position set
Definition: ClarisWksDbaseContent.cxx:115
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
@ HALIGN_LEFT
Definition: MWAWCell.hxx:128
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:129
Definition: ClarisWksDbaseContent.cxx:1291
Class to store font.
Definition: MWAWFont.hxx:44
MWAWCell::Format m_format
the format
Definition: ClarisWksDbaseContent.hxx:107
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:483
@ C_NUMBER
Definition: MWAWCell.hxx:433
MWAWVec2< bool > MWAWVec2b
MWAWVec2 of bool.
Definition: libmwaw_internal.hxx:836
static Operators const s_listOperators[]
Definition: ClarisWksDbaseContent.cxx:1297
bool getColumnList(int row, std::vector< int > &list) const
returns the list of filled columns
Definition: ClarisWksDbaseContent.cxx:150
@ HALIGN_RIGHT
Definition: MWAWCell.hxx:128
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
int m_fontId
the char
Definition: ClarisWksStyleManager.hxx:226
void setUnderlineStyle(Line::Style style=Line::None, bool doReset=true)
sets the underline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:466
@ C_UNKNOWN
Definition: MWAWCell.hxx:433
@ HALIGN_CENTER
Definition: MWAWCell.hxx:128
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20