TextRenderer

The TextRenderer class is the base class for all block-level renderers. More...

Publicly inherits SgmlRenderer.

Publicly inherited by BlockRenderer, PreformatRenderer.

Public Methods

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

Public Slots

virtual voidendOfData( );
virtual voidendTag( );
virtual voidstartTag( );

Protected Methods

const QStringfindHyperlink( bool endTag=??? );
StyleRenderer*makeStyle( Style* style, bool endTag=??? );

Protected Data Members

bool_done;
QString_leftover;
QList<Line>_lines;
ListBoxRenderer*_listBox;
OptionRenderer*_option;
bool_optionSelected;
QString_optionText;
QString_optionValue;
int_prefix;
QList<Renderer>_renderers;
bool_spaceAfter;
bool_spaceBefore;
bool_startOfContent;
TextAreaRenderer*_textArea;

Detailed Documentation

The TextRenderer class is the base class for all block-level renderers.

The TextRenderer maintains a list of inlined elements (words and images), and repaints them on demand. It also keeps a list of mouse zones for clickable hyperlinks.

Public Methods Documentation

TextRenderer ( Canvas* canvas, SgmlParser* parser, int clipWidth=???, QObject* parent=???, const char* name=??? );

Create a TextRenderer. Nothing new here, compared to the SgmlRenderer.

virtual ~TextRenderer ( );

This is a virtual destructor.

Public Slots Documentation

virtual void endOfData ( );

Process the endOfData signal from the SgmlParser. Finish processing any previously leftover content.

virtual void endTag ( );

Process the endTag signal from the SgmlParser. Finish processing any leftover content.

virtual void startTag ( );

Process the startTag signal from the SgmlParser. Finish processing any leftover content.


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