45 class WPXPropertyList;
77 void addTo(WPXPropertyList &propList)
const;
173 std::vector<MWAWBorder>
const &
borders()
const {
void setPosition(Vec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.hxx:102
Box2f m_bdBox
the cell bounding box (unit in point)
Definition: MWAWCell.hxx:216
friend std::ostream & operator<<(std::ostream &o, MWAWCell const &cell)
operator<<
Definition: MWAWCell.cxx:162
MWAWBorder m_extraLineType
extra line type
Definition: MWAWCell.hxx:234
void setBdBox(Box2f box)
set the bdbox (unit point)
Definition: MWAWCell.hxx:120
Vec2i m_numberCellSpanned
the cell spanned : by default (1,1)
Definition: MWAWCell.hxx:213
void setBackgroundColor(MWAWColor color)
sets the background color
Definition: MWAWCell.hxx:189
MWAWCell()
constructor
Definition: MWAWCell.hxx:68
void setHAlignement(HorizontalAlignment align)
sets the horizontal alignement
Definition: MWAWCell.hxx:155
HorizontalAlignment hAlignement() const
returns the horizontal alignement
Definition: MWAWCell.hxx:151
bool hasBorders() const
return true if the cell has some border
Definition: MWAWCell.hxx:169
void setProtected(bool fl)
returns true if the cell is protected
Definition: MWAWCell.hxx:146
Vec2f const & bdSize() const
bdbox size accessor
Definition: MWAWCell.hxx:125
Definition: MWAWCell.hxx:62
std::vector< MWAWBorder > m_bordersList
the cell border MWAWBorder::Pos
Definition: MWAWCell.hxx:226
VerticalAlignment m_vAlign
the vertical cell alignement : by default nothing
Definition: MWAWCell.hxx:224
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:126
Box2f const & bdBox() const
bdbox accessor
Definition: MWAWCell.hxx:116
a class used to recreate the table structure using cell informations, ....
Definition: MWAWTable.hxx:53
bool m_protected
cell protected
Definition: MWAWCell.hxx:230
static std::string getColumnName(int col)
return the column name
Definition: MWAWCell.cxx:116
void setVAlignement(VerticalAlignment align)
sets the vertical alignement
Definition: MWAWCell.hxx:164
ExtraLine extraLine() const
returns the extra lines
Definition: MWAWCell.hxx:197
HorizontalAlignment
the default horizontal alignement.
Definition: MWAWCell.hxx:56
a structure used to define a cell and its format
Definition: MWAWCell.hxx:50
the class to store a color
Definition: libmwaw_internal.hxx:166
MWAWColor backgroundColor() const
returns the background color
Definition: MWAWCell.hxx:185
Definition: MWAWCell.hxx:65
void addTo(WPXPropertyList &propList) const
adds to the propList
Definition: MWAWCell.cxx:45
virtual ~MWAWCell()
destructor
Definition: MWAWCell.hxx:74
a border
Definition: libmwaw_internal.hxx:237
void setBdSize(Vec2f sz)
set the bdbox size(unit point)
Definition: MWAWCell.hxx:129
void setNumSpannedCells(Vec2i numSpanned)
sets the number of spanned cells : Vec2i(1,1) means 1 cellule
Definition: MWAWCell.hxx:111
virtual bool sendContent(MWAWContentListenerPtr listener, MWAWTable &table)
function called when the content of a cell must be send to the listener, ie.
Definition: MWAWCell.cxx:248
HorizontalAlignment m_hAlign
the cell alignement : by default nothing
Definition: MWAWCell.hxx:222
ExtraLine
an enum to defined potential internal line: E_Line1=TL to RB, E_Line2=BL to RT
Definition: MWAWCell.hxx:65
Definition: MWAWCell.hxx:62
Definition: MWAWCell.hxx:57
Vec2f m_bdSize
the cell bounding size : unit point
Definition: MWAWCell.hxx:219
void setExtraLine(ExtraLine extrLine, MWAWBorder const &type=MWAWBorder())
sets the extraline
Definition: MWAWCell.hxx:205
ExtraLine m_extraLine
extra line
Definition: MWAWCell.hxx:232
void resetBorders()
reset the border
Definition: MWAWCell.hxx:178
Definition: MWAWCell.hxx:65
Vec2i const & position() const
position accessor
Definition: MWAWCell.hxx:98
Definition: MWAWCell.hxx:62
VerticalAlignment vAlignement() const
returns the vertical alignement
Definition: MWAWCell.hxx:160
Definition: MWAWCell.hxx:57
shared_ptr< MWAWContentListener > MWAWContentListenerPtr
a smart pointer of MWAWContentListener
Definition: libmwaw_internal.hxx:340
MWAWColor m_backgroundColor
the backgroung color
Definition: MWAWCell.hxx:228
bool hasExtraLine() const
returns true if we have some extra lines
Definition: MWAWCell.hxx:193
virtual bool send(MWAWContentListenerPtr listener, MWAWTable &table)
function called when a cell is send by MWAWTable to send a cell to a listener.
Definition: MWAWCell.cxx:239
Definition: MWAWCell.hxx:65
std::vector< MWAWBorder > const & borders() const
return the cell border: libmwaw::Left | ...
Definition: MWAWCell.hxx:173
MWAWBorder const & extraLineType() const
returns the extra line border
Definition: MWAWCell.hxx:201
VerticalAlignment
the default vertical alignement.
Definition: MWAWCell.hxx:62
Vec2i const & numSpannedCells() const
returns the number of spanned cells
Definition: MWAWCell.hxx:107
Definition: MWAWCell.hxx:56
Definition: MWAWCell.hxx:62
Definition: MWAWCell.hxx:65
Definition: MWAWCell.hxx:56
bool isProtected() const
returns true if the cell is protected
Definition: MWAWCell.hxx:142
Definition: MWAWCell.hxx:56
Vec2i m_position
the cell row and column : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.hxx:211
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::Left|...
Definition: MWAWCell.cxx:139
bool isEmpty() const
returns true if the border is empty
Definition: libmwaw_internal.hxx:250