PlainRenderer

The PlainRenderer class displays content of type text/plain. More...

Publicly inherits Renderer, StyleSheetReceiver.

Public Methods

PlainRenderer( Canvas* canvas, int clipWidth=???, QObject* parent=???, const char* name=??? );
boolredraw( );
voidrepaint( QPainter& p, const Rect& r );
voidstyleSheet( StyleSheet* styleSheet );
~PlainRenderer( );

Public Slots

voiddata( const char* bytes, int length );
voidendOfData( );

Private Data Members

bool_done;
QString_leftover;
PreformatRenderer*_pre;

Detailed Documentation

The PlainRenderer class displays content of type text/plain.

The PlainRenderer is just a wrapper around the PreformatRenderer. It coverts raw data into strings, and forwards the text to the PreformatRenderer. It also takes care of loading the style sheet for the plain DTD.

Public Methods Documentation

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

Create a new PlainRenderer.

bool redraw ( );

Given the PreformatRenderer a chance to redraw itself.

Public Slots Documentation

void data ( const char* bytes, int length );

Forward all data to the PreformatRenderer as text content.

void endOfData ( );

Forward end of data to the PreformatRenderer, and redraw.


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