45 class WPXPropertyList;
144 std::vector<MWAWBorder>
const &
borders()
const {
230 std::string
const &
text()
const {
267 std::string &
text)
const;
270 static bool double2Date(
double val,
int &Y,
int &M,
int &D);
272 static bool double2Time(
double val,
int &H,
int &M,
int &S);
void setPosition(Vec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.hxx:310
friend std::ostream & operator<<(std::ostream &o, MWAWCell const &cell)
operator<<
Definition: MWAWCell.cxx:398
Content
the different types of cell's field
Definition: MWAWCell.hxx:194
std::string m_textValue
the cell string
Definition: MWAWCell.hxx:287
Vec2i m_numberCellSpanned
the cell spanned : by default (1,1)
Definition: MWAWCell.hxx:336
MWAWCell()
constructor
Definition: MWAWCell.hxx:299
static bool double2Time(double val, int &H, int &M, int &S)
conversion beetween double: second since 0:00 and time
Definition: MWAWCell.cxx:351
Content content() const
returns the content type
Definition: MWAWCell.hxx:202
Definition: MWAWCell.hxx:194
std::string m_formulaValue
the formula string
Definition: MWAWCell.hxx:291
MWAWCellContent()
the constructor
Definition: MWAWCell.hxx:197
bool getDataCellProperty(MWAWCellFormat::Format format, WPXPropertyList &property, std::string &text) const
If the content is a data cell, filled property and returns in text, a string which can be used as tex...
Definition: MWAWCell.cxx:251
static std::string getCellName(Vec2i const &pos, Vec2b const &absolute)
return the name of a cell (given row and column) : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.cxx:418
Definition: MWAWCell.hxx:194
Content m_contentType
the content type ( by default unknown )
Definition: MWAWCell.hxx:279
virtual ~MWAWCellContent()
Definition: MWAWCell.hxx:199
bool isTextSet() const
returns true if the text has been setted
Definition: MWAWCell.hxx:238
static std::string getColumnName(int col)
return the column name
Definition: MWAWCell.cxx:408
Definition: MWAWCell.hxx:194
Vec2i & position()
position accessor
Definition: MWAWCell.hxx:302
a structure used to defined the cell position, and a format
Definition: MWAWCell.hxx:295
the class to store a color
Definition: libmwaw_internal.hxx:161
void setContent(Content type)
set the content type
Definition: MWAWCell.hxx:206
void setFormula(std::string const &val)
sets the formula value
Definition: MWAWCell.hxx:243
double m_value
the cell value
Definition: MWAWCell.hxx:282
a structure used to defined the cell content
Definition: MWAWCell.hxx:190
void setValue(double val)
sets the double value
Definition: MWAWCell.hxx:211
std::string const & formula() const
returns the formula value
Definition: MWAWCell.hxx:247
a border
Definition: libmwaw_internal.hxx:232
bool hasText() const
returns true if the text is set
Definition: MWAWCell.hxx:234
friend std::ostream & operator<<(std::ostream &o, MWAWCellContent const &cell)
operator<<
Definition: MWAWCell.cxx:363
void setNumSpannedCells(Vec2i numSpanned)
sets the number of spanned cells : Vec2i(1,1) means 1 cellule
Definition: MWAWCell.hxx:319
void setText(std::string const &val)
sets the text value
Definition: MWAWCell.hxx:225
std::string const & text() const
returns the text value
Definition: MWAWCell.hxx:230
static bool double2Date(double val, int &Y, int &M, int &D)
conversion beetween double days since 1900 and date
Definition: MWAWCell.cxx:338
Vec2i const & position() const
position accessor
Definition: MWAWCell.hxx:306
bool m_valueSet
true if the value has been set
Definition: MWAWCell.hxx:284
bool empty() const
returns true if the cell has no content
Definition: MWAWCell.hxx:252
bool m_textValueSet
true if the text value has been set
Definition: MWAWCell.hxx:289
Vec2i const & numSpannedCells() const
returns the number of spanned cells
Definition: MWAWCell.hxx:315
double value() const
return the double value
Definition: MWAWCell.hxx:216
Definition: MWAWCell.hxx:194
bool isValueSet() const
returns true if the value has been setted
Definition: MWAWCell.hxx:220
Vec2i m_position
the cell row and column : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.hxx:334
Definition: MWAWCell.hxx:194