46 class WPXPropertyList;
78 void addTo(WPXPropertyList &propList)
const;
174 std::vector<MWAWBorder>
const &
borders()
const {
void setPosition(Vec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.hxx:103
Box2f m_bdBox
the cell bounding box (unit in point)
Definition: MWAWCell.hxx:217
friend std::ostream & operator<<(std::ostream &o, MWAWCell const &cell)
operator<<
Definition: MWAWCell.cxx:165
MWAWBorder m_extraLineType
extra line type
Definition: MWAWCell.hxx:235
void setBdBox(Box2f box)
set the bdbox (unit point)
Definition: MWAWCell.hxx:121
Vec2i m_numberCellSpanned
the cell spanned : by default (1,1)
Definition: MWAWCell.hxx:214
void setBackgroundColor(MWAWColor color)
sets the background color
Definition: MWAWCell.hxx:190
MWAWCell()
constructor
Definition: MWAWCell.hxx:69
void setHAlignement(HorizontalAlignment align)
sets the horizontal alignement
Definition: MWAWCell.hxx:156
HorizontalAlignment hAlignement() const
returns the horizontal alignement
Definition: MWAWCell.hxx:152
bool hasBorders() const
return true if the cell has some border
Definition: MWAWCell.hxx:170
void setProtected(bool fl)
returns true if the cell is protected
Definition: MWAWCell.hxx:147
Vec2f const & bdSize() const
bdbox size accessor
Definition: MWAWCell.hxx:126
Definition: MWAWCell.hxx:63
std::vector< MWAWBorder > m_bordersList
the cell border MWAWBorder::Pos
Definition: MWAWCell.hxx:227
VerticalAlignment m_vAlign
the vertical cell alignement : by default nothing
Definition: MWAWCell.hxx:225
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:129
Box2f const & bdBox() const
bdbox accessor
Definition: MWAWCell.hxx:117
a class used to recreate the table structure using cell informations, ....
Definition: MWAWTable.hxx:53
bool m_protected
cell protected
Definition: MWAWCell.hxx:231
static std::string getColumnName(int col)
return the column name
Definition: MWAWCell.cxx:119
void setVAlignement(VerticalAlignment align)
sets the vertical alignement
Definition: MWAWCell.hxx:165
ExtraLine extraLine() const
returns the extra lines
Definition: MWAWCell.hxx:198
HorizontalAlignment
the default horizontal alignement.
Definition: MWAWCell.hxx:57
a structure used to define a cell and its format
Definition: MWAWCell.hxx:51
the class to store a color
Definition: libmwaw_internal.hxx:166
MWAWColor backgroundColor() const
returns the background color
Definition: MWAWCell.hxx:186
Definition: MWAWCell.hxx:66
void addTo(WPXPropertyList &propList) const
adds to the propList
Definition: MWAWCell.cxx:48
virtual ~MWAWCell()
destructor
Definition: MWAWCell.hxx:75
a border
Definition: libmwaw_internal.hxx:237
void setBdSize(Vec2f sz)
set the bdbox size(unit point)
Definition: MWAWCell.hxx:130
void setNumSpannedCells(Vec2i numSpanned)
sets the number of spanned cells : Vec2i(1,1) means 1 cellule
Definition: MWAWCell.hxx:112
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:251
HorizontalAlignment m_hAlign
the cell alignement : by default nothing
Definition: MWAWCell.hxx:223
ExtraLine
an enum to defined potential internal line: E_Line1=TL to RB, E_Line2=BL to RT
Definition: MWAWCell.hxx:66
Definition: MWAWCell.hxx:63
Definition: MWAWCell.hxx:58
Vec2f m_bdSize
the cell bounding size : unit point
Definition: MWAWCell.hxx:220
void setExtraLine(ExtraLine extrLine, MWAWBorder const &type=MWAWBorder())
sets the extraline
Definition: MWAWCell.hxx:206
ExtraLine m_extraLine
extra line
Definition: MWAWCell.hxx:233
void resetBorders()
reset the border
Definition: MWAWCell.hxx:179
Definition: MWAWCell.hxx:66
Vec2i const & position() const
position accessor
Definition: MWAWCell.hxx:99
Definition: MWAWCell.hxx:63
VerticalAlignment vAlignement() const
returns the vertical alignement
Definition: MWAWCell.hxx:161
Definition: MWAWCell.hxx:58
shared_ptr< MWAWContentListener > MWAWContentListenerPtr
a smart pointer of MWAWContentListener
Definition: libmwaw_internal.hxx:340
MWAWColor m_backgroundColor
the backgroung color
Definition: MWAWCell.hxx:229
bool hasExtraLine() const
returns true if we have some extra lines
Definition: MWAWCell.hxx:194
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:242
Definition: MWAWCell.hxx:66
std::vector< MWAWBorder > const & borders() const
return the cell border: libmwaw::Left | ...
Definition: MWAWCell.hxx:174
MWAWBorder const & extraLineType() const
returns the extra line border
Definition: MWAWCell.hxx:202
VerticalAlignment
the default vertical alignement.
Definition: MWAWCell.hxx:63
Vec2i const & numSpannedCells() const
returns the number of spanned cells
Definition: MWAWCell.hxx:108
Definition: MWAWCell.hxx:57
Definition: MWAWCell.hxx:63
Definition: MWAWCell.hxx:66
Definition: MWAWCell.hxx:57
bool isProtected() const
returns true if the cell is protected
Definition: MWAWCell.hxx:143
Definition: MWAWCell.hxx:57
Vec2i m_position
the cell row and column : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.hxx:212
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::Left|...
Definition: MWAWCell.cxx:142
bool isEmpty() const
returns true if the border is empty
Definition: libmwaw_internal.hxx:250