TableRenderer

The TableRenderer class handles the geomertry management for a group of rows of cells.

Publicly inherits SgmlRenderer.

Public Methods

TableRenderer( Canvas* canvas, SgmlParser* parser, int clipWidth=???, QObject* parent=???, const char* name=??? );
boolfindAnchor( const QString& name, int& x, int& y );
boolredraw( );
voidrepaint( QPainter& p, const Rect& r );
~TableRenderer( );

Public Slots

voidcontent( QString text );
voidendOfData( );
voidendTag( );
voidstartTag( );

Private Data Members

Cell*_cell;
uint_cellDepth;
int_cellPadding;
bool_isEmpty;
QList<Row>_rows;

Public Methods Documentation

bool redraw ( );

Recompute the layout of the entire table. This is the autolayout algorithm described in RFC1942.

Public Slots Documentation

void content ( QString text );

Forward the content to the open cell, if any.

void endOfData ( );

Close off any open cells.

void endTag ( );

If the end tag is for the current open cell, close it. Otherwiser, forward the end tag to the cell.

void startTag ( );

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.


Return to Index.
Automatically generated on Aug 11 23:32