The PlainRenderer class displays content of type text/plain. More...
Publicly inherits Renderer, StyleSheetReceiver.
| PlainRenderer | ( Canvas* canvas, int clipWidth=???, QObject* parent=???, const char* name=??? ); | |
| bool | redraw | ( ); |
| void | repaint | ( QPainter& p, const Rect& r ); |
| void | styleSheet | ( StyleSheet* styleSheet ); |
| ~PlainRenderer | ( ); |
| void | data | ( const char* bytes, int length ); |
| void | endOfData | ( ); |
| bool | _done; |
| QString | _leftover; |
| PreformatRenderer* | _pre; |
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.Create a new PlainRenderer.
Given the PreformatRenderer a chance to redraw itself.
Forward all data to the PreformatRenderer as text content.
Forward end of data to the PreformatRenderer, and redraw.