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);
Definition: MWAWCell.hxx:383
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:166
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:549
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:328
MWAWFont m_font
the font ( in v1-3 spreadsheet)
Definition: ClarisWksDbaseContent.hxx:121
Definition: MWAWCell.hxx:56
Type
the different types of cell's field
Definition: MWAWCell.hxx:419
std::shared_ptr< ClarisWksDocument > m_document
the main document manager
Definition: ClarisWksParser.hxx:110
MWAWEntry m_textEntry
the cell string
Definition: MWAWCell.hxx:474
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:443
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:1498
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
Definition: MWAWCell.hxx:58
bool readNumber(long endPos, double &res, bool &isNan)
try to read a number
Definition: ClarisWksDbaseContent.cxx:1279
Definition: MWAWCell.hxx:383
Definition: MWAWFont.hxx:190
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
Definition: MWAWCell.hxx:56
small class use to define a formula instruction
Definition: MWAWCell.hxx:382
Definition: MWAWCell.hxx:419
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
Definition: MWAWCell.hxx:58
class to store the paragraph properties
Definition: MWAWParagraph.hxx:84
Definition: MWAWCell.hxx:383
Definition: MWAWFont.hxx:49
Definition: MWAWCell.hxx:58
the structure to store the style in a ClarisWksStyleManager
Definition: ClarisWksStyleManager.hxx:206
main document information used to create a ClarisWorks file
Definition: ClarisWksDocument.hxx:73
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:57
const char * m_name
Definition: ClarisWksDbaseContent.cxx:1293
std::string m_content
the content ( if type == F_Operator or type = F_Function or type==F_Text)
Definition: MWAWCell.hxx:403
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
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
Definition: MWAWFont.hxx:190
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
Definition: MWAWCell.hxx:383
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:476
MWAWColor m_surfaceColor
the surface color
Definition: MWAWGraphicStyle.hxx:425
Definition: MWAWFont.hxx:191
Type m_type
the type
Definition: MWAWCell.hxx:401
Column()
constructor
Definition: ClarisWksDbaseContent.hxx:131
int m_graphicId
the graphic (checkme)
Definition: ClarisWksStyleManager.hxx:237
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:66
int m_version
the file version
Definition: ClarisWksDbaseContent.hxx:169
small class use to define a sheet cell content
Definition: MWAWCell.hxx:378
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:71
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:405
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
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:407
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
Definition: MWAWCell.hxx:419
Definition: MWAWCell.hxx:383
Definition: MWAWCell.hxx:383
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
Definition: MWAWCell.hxx:56
static const Operators s_listOperators[]
Definition: ClarisWksDbaseContent.cxx:1297
Definition: MWAWCell.hxx:56
Definition: MWAWFont.hxx:190
Definition: MWAWCell.hxx:58
int m_style
the style if known
Definition: ClarisWksDbaseContent.hxx:105
int m_cellFormatId
the formatId
Definition: ClarisWksStyleManager.hxx:227
Definition: MWAWCell.hxx:419
int m_arity
Definition: ClarisWksDbaseContent.cxx:1294
Definition: MWAWCell.hxx:383
int m_fileFormat
the format ( in a v1-3 spreadsheet)
Definition: ClarisWksDbaseContent.hxx:111
Definition: MWAWParagraph.hxx:91
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:555
HorizontalAlignment
the default horizontal alignment.
Definition: MWAWCell.hxx:127
MWAWVec2i m_position[2]
cell position ( if type==F_Cell or F_CellList )
Definition: MWAWCell.hxx:409
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:65
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:411
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:551
Definition: MWAWCell.hxx:127
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:1290
Class to store font.
Definition: MWAWFont.hxx:43
MWAWCell::Format m_format
the format
Definition: ClarisWksDbaseContent.hxx:107
a structure used to define a cell and its format
Definition: MWAWCell.hxx:52
Type m_contentType
the content type ( by default unknown )
Definition: MWAWCell.hxx:468
Definition: MWAWCell.hxx:419
MWAWVec2< bool > MWAWVec2b
MWAWVec2 of bool.
Definition: libmwaw_internal.hxx:834
bool getColumnList(int row, std::vector< int > &list) const
returns the list of filled columns
Definition: ClarisWksDbaseContent.cxx:150
Definition: MWAWCell.hxx:127
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:836
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:225
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
Definition: MWAWCell.hxx:419
Definition: MWAWCell.hxx:127
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
Generated on Sat Jan 25 2020 05:49:58 for libmwaw by
doxygen 1.8.16