You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.1 KiB
46 lines
1.1 KiB
//
|
|
// Class: RenderedDocumentPagePrinter
|
|
//
|
|
// Widget for displaying TeX DVI files.
|
|
// Part of KDVI- A previewer for TeX DVI files.
|
|
//
|
|
// (C) 2005 Stefan Kebekus. Distributed under the GPL.
|
|
|
|
|
|
#ifndef _rendereddocumentpageprinter_h_
|
|
#define _rendereddocumentpageprinter_h_
|
|
|
|
#include "renderedDocumentPage.h"
|
|
#include <tqpainter.h>
|
|
|
|
class KPrinter;
|
|
|
|
|
|
class RenderedDocumentPagePrinter: public RenderedDocumentPage
|
|
{
|
|
public:
|
|
RenderedDocumentPagePrinter(KPrinter *kp);
|
|
|
|
virtual ~RenderedDocumentPagePrinter() { delete printerPainter; }
|
|
|
|
/** Returns a pointer to the paintDevice, in this implementation
|
|
either a TQPrinter. The pointer returned is valid as long as
|
|
*this RenderedDocumentPage exists. This method is used by the
|
|
renderer to draw on the page. */
|
|
virtual TQPainter *getPainter() { return printerPainter; }
|
|
|
|
virtual TQSize size();
|
|
|
|
/** This method does nothing. In particular, it does NOT delete the
|
|
TQPainter. The TQPainter is deleted automatically when this
|
|
RenderedDocumentPagePrinter is destructed. */
|
|
virtual void returnPainter(TQPainter *) {;}
|
|
|
|
private:
|
|
KPrinter *printer;
|
|
TQPainter *printerPainter;
|
|
};
|
|
|
|
|
|
#endif
|