kword
KWTableFrameSet::Cell Class Reference
#include <KWTableFrameSet.h>
Inheritance diagram for KWTableFrameSet::Cell:

Detailed Description
Table cell.
- Note:
- A cell can be any type of FrameSet, but for now, we only support text!
Definition at line 67 of file KWTableFrameSet.h.
Public Member Functions | |
Cell (KWTableFrameSet *table, unsigned int row, unsigned int col, const QString &name=QString::null) | |
Cell (KWTableFrameSet *table, const Cell &original) | |
uint | firstRow () const |
uint | firstColumn () const |
uint | rowSpan () const |
uint | columnSpan () const |
uint | lastRow () const |
uint | lastColumn () const |
uint | rowAfter () const |
uint | columnAfter () const |
void | setFirstRow (uint row) |
void | setFirstColumn (uint col) |
void | setRowSpan (uint rows) |
void | setColumnSpan (uint cols) |
bool | isFirstGridPosn (uint row, uint col) const |
bool | isFirstGridPosnFast (uint row, uint col) const |
virtual void | addFrame (KWFrame *_frame, bool recalc=true) |
virtual void | frameDeleted (KWFrame *frm, bool recalc) |
bool | isAboveOrLeftOf (unsigned row, unsigned column) const |
bool | containsCell (unsigned row, unsigned column) const |
double | leftBorder () |
double | rightBorder () |
double | topBorder () |
double | bottomBorder () |
void | setLeftBorder (KoBorder newBorder) |
void | setRightBorder (KoBorder newBorder) |
void | setTopBorder (KoBorder newBorder) |
void | setBottomBorder (KoBorder newBorder) |
void | setZOrder () |
bool | isJoinedCell () const |
void | clearMark () |
void | setMark () |
bool | marked () const |
void | drawContents (QPainter *painter, const QRect &crect, const QColorGroup &cg, bool onlyChanged, bool resetChanged, KWFrameSetEdit *edit, KWViewMode *viewMode, KWFrameViewManager *frameViewManager) |
Constructor & Destructor Documentation
KWTableFrameSet::Cell::Cell | ( | KWTableFrameSet * | table, | |
unsigned int | row, | |||
unsigned int | col, | |||
const QString & | name = QString::null | |||
) |
Member Function Documentation
void KWTableFrameSet::Cell::frameDeleted | ( | KWFrame * | frm, | |
bool | recalc | |||
) | [virtual] |
Called by deleteFrame when it really deletes a frame (remove=true), to remove it from the table too.
Reimplemented from KWFrameSet.
Definition at line 2368 of file KWTableFrameSet.cpp.
void KWTableFrameSet::Cell::setZOrder | ( | ) | [virtual] |
set zorder for all frames in this cell
Reimplemented from KWFrameSet.
Definition at line 2458 of file KWTableFrameSet.cpp.
void KWTableFrameSet::Cell::drawContents | ( | QPainter * | painter, | |
const QRect & | crect, | |||
const QColorGroup & | cg, | |||
bool | onlyChanged, | |||
bool | resetChanged, | |||
KWFrameSetEdit * | edit, | |||
KWViewMode * | viewMode, | |||
KWFrameViewManager * | frameViewManager | |||
) | [virtual] |
Overloaded to not clear any preview borders.
Reimplemented from KWTextFrameSet.
Definition at line 2467 of file KWTableFrameSet.cpp.
The documentation for this class was generated from the following files: