The VerticalRenderer class manages a list of Renderers that are laid out top to bottom. More...
Publicly inherits SgmlRenderer.
Publicly inherited by Cell, FormRenderer.
VerticalRenderer | ( Canvas* canvas, SgmlParser* parser, int clipWidth=???, QObject* parent=???, const char* name=??? ); | |
bool | findAnchor | ( const QString& name, int& x, int& y ); |
virtual bool | redraw | ( ); |
void | repaint | ( QPainter& p, const Rect& r ); |
virtual | ~VerticalRenderer | ( ); |
virtual void | content | ( QString text ); |
virtual void | endOfData | ( ); |
virtual void | endTag | ( ); |
virtual void | startTag | ( ); |
virtual void | widthChanged | ( int w ); |
int | _marginLeft; |
int | _marginRight; |
QList<ChildInfo> | _renderers; |
int | _sgmlDepth; |
SgmlRenderer* | _sgmlRenderer; |
TextRenderer* | _textRenderer; |
QString | _titleString; |
int | _vspace; |
The VerticalRenderer class manages a list of Renderers that are laid out top to bottom.
A VerticalRenderer receives start tag, end tag, and content signals from an SgmlParser, and creates appropriate Renders to display the content. It also manages their geometry and insures that the proper amount of padding exists betweem each of its children.Create a VerticalRenderer.
Reposition my children so that they do not overlap. Child widgets are laid out from top to bottom, with vertical space between them.
This is a virtual destructor.
Process the content signal from the SgmlParser. Forward the content to the current text renderer. If there is no current text renderer, create one based on the current style's whitespace setting (Normal or Pre).
Forward the endOfData signal to the open child renderer, if any.
Adjust the current left and right margins. If there is an open table renderer, forward the end tag to it. If the end tag is for the open table renderer, close the table renderer. Otherwise, if the end tag is for an inline element, forward it to the open text renderer, if any. If the end tag is for a block-level element, close the open text renderer, if any.
Adjust the current left and right margins. If there is an open table renderer then forward the start tag to it, and return. Otherwise take the following actions, based on the display type of the start tag:
Notify each of the child renderers of their new preferred widths.