QScintilla
2.14.1
|
#include <qsciprinter.h>
Inherits QPrinter.
Public Member Functions | |
QsciPrinter (PrinterMode mode=ScreenResolution) | |
virtual | ~QsciPrinter () |
virtual void | formatPage (QPainter &painter, bool drawing, QRect &area, int pagenr) |
int | magnification () const |
virtual void | setMagnification (int magnification) |
virtual int | printRange (QsciScintillaBase *qsb, QPainter &painter, int from=-1, int to=-1) |
virtual int | printRange (QsciScintillaBase *qsb, int from=-1, int to=-1) |
QsciScintilla::WrapMode | wrapMode () const |
virtual void | setWrapMode (QsciScintilla::WrapMode wmode) |
The QsciPrinter class is a sub-class of the Qt QPrinter class that is able to print the text of a Scintilla document.
The class can be further sub-classed to alter to layout of the text, adding headers and footers for example.
|
virtual |
Format a page, by adding headers and footers for example, before the document text is drawn on it. painter is the painter to be used to add customised text and graphics. drawing is true if the page is actually being drawn rather than being sized. painter drawing methods must only be called when drawing is true. area is the area of the page that will be used to draw the text. This should be modified if it is necessary to reserve space for any customised text or graphics. By default the area is relative to the printable area of the page. Use QPrinter::setFullPage() before calling printRange() if you want to try and print over the whole page. pagenr is the number of the page. The first page is numbered 1.
|
inline |
Return the number of points to add to each font when printing.
|
virtual |
Sets the number of points to add to each font when printing to magnification.
|
virtual |
Print a range of lines from the Scintilla instance qsb using the supplied QPainter painter. from is the first line to print and a negative value signifies the first line of text. to is the last line to print and a negative value signifies the last line of text. true is returned if there was no error.
|
virtual |
Print a range of lines from the Scintilla instance qsb using a default QPainter. from is the first line to print and a negative value signifies the first line of text. to is the last line to print and a negative value signifies the last line of text. true is returned if there was no error.
|
inline |
Return the line wrap mode used when printing. The default is QsciScintilla::WrapWord.
|
virtual |
Sets the line wrap mode used when printing to wmode.