itom
Loading...
Searching...
No Matches
ito::ScriptEditorPrinter Class Reference
Inheritance diagram for ito::ScriptEditorPrinter:

Public Member Functions

 ScriptEditorPrinter (QPrinter::PrinterMode mode=QPrinter::ScreenResolution)
 
virtual QRect formatPage (QPainter &painter, bool drawing, const QRect &area, int pageNumber, int pageCount)
 
int magnification () const
 
virtual void setMagnification (int magnification)
 
virtual int printRange (CodeEditor *editor, int from=-1, int to=-1)
 
virtual void paintPage (int pageNumber, int pageCount, QPainter *painter, QTextDocument *doc, const QRectF &textRect, float scale)
 

Private Member Functions

 ScriptEditorPrinter (const ScriptEditorPrinter &)
 
ScriptEditorPrinteroperator= (const ScriptEditorPrinter &)
 

Private Attributes

int m_magnification
 
int m_alphaLevel
 

Member Function Documentation

◆ magnification()

int ito::ScriptEditorPrinter::magnification ( ) const
inline

Return the number of points to add to each font when printing.

See also
setMagnification()

◆ printRange()

int ito::ScriptEditorPrinter::printRange ( CodeEditor * editor,
int from = -1,
int to = -1 )
virtual

Print a range of lines from the Scintilla instance qsb. 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.

◆ setMagnification()

void ito::ScriptEditorPrinter::setMagnification ( int magnification)
virtual

Sets the number of points to add to each font when printing to magnification.

See also
magnification()

The documentation for this class was generated from the following files: