The TableRenderer class handles the geomertry management for a group of rows of cells.
Publicly inherits SgmlRenderer.
TableRenderer | ( Canvas* canvas, SgmlParser* parser, int clipWidth=???, QObject* parent=???, const char* name=??? ); | |
bool | findAnchor | ( const QString& name, int& x, int& y ); |
bool | redraw | ( ); |
void | repaint | ( QPainter& p, const Rect& r ); |
~TableRenderer | ( ); |
void | content | ( QString text ); |
void | endOfData | ( ); |
void | endTag | ( ); |
void | startTag | ( ); |
Cell* | _cell; |
uint | _cellDepth; |
int | _cellPadding; |
bool | _isEmpty; |
QList<Row> | _rows; |
Recompute the layout of the entire table. This is the autolayout algorithm described in RFC1942.
Forward the content to the open cell, if any.
Close off any open cells.
If the end tag is for the current open cell, close it. Otherwiser, forward the end tag to the cell.
Process a start tag from the SgmlParser. For TableRow elements, close off any existin gcell or row, and create a new row. For TableData elements close off any open cell and create a new one. For other types of start tags, forward them to the open cell.