diff options
Diffstat (limited to 'tqt/tqextscintillaprinter.cpp')
-rw-r--r-- | tqt/tqextscintillaprinter.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tqt/tqextscintillaprinter.cpp b/tqt/tqextscintillaprinter.cpp index a7dd282..969d802 100644 --- a/tqt/tqextscintillaprinter.cpp +++ b/tqt/tqextscintillaprinter.cpp @@ -57,7 +57,7 @@ int TQextScintillaPrinter::printRange(TQextScintillaBase *tqsb,int from,int to) { // Sanity check. if (!tqsb) - return FALSE; + return false; // Setup the printing area. TQPaintDeviceMetrics metrics(this); @@ -90,11 +90,11 @@ int TQextScintillaPrinter::printRange(TQextScintillaBase *tqsb,int from,int to) } if (startPos >= endPos) - return FALSE; + return false; TQPainter painter(this); bool reverse = (pageOrder() == LastPageFirst); - bool needNewPage = FALSE; + bool needNewPage = false; tqsb -> SendScintilla(TQextScintillaBase::SCI_SETPRINTMAGNIFICATION,mag); tqsb -> SendScintilla(TQextScintillaBase::SCI_SETPRINTWRAPMODE,wrap); @@ -116,7 +116,7 @@ int TQextScintillaPrinter::printRange(TQextScintillaBase *tqsb,int from,int to) // See if we are going to render this page, or just see // how much would fit onto it. - bool render = FALSE; + bool render = false; if (pgFrom == 0 || pgFrom <= currPage) { @@ -124,15 +124,15 @@ int TQextScintillaPrinter::printRange(TQextScintillaBase *tqsb,int from,int to) pageStarts.push(pos); else { - render = TRUE; + render = true; if (needNewPage) { if (!newPage()) - return FALSE; + return false; } else - needNewPage = TRUE; + needNewPage = true; } } @@ -159,19 +159,19 @@ int TQextScintillaPrinter::printRange(TQextScintillaBase *tqsb,int from,int to) if (needNewPage) { if (!newPage()) - return FALSE; + return false; } else - needNewPage = TRUE; + needNewPage = true; TQRect area = def_area; - formatPage(painter,TRUE,area,currPage); - tqsb -> SendScintilla(TQextScintillaBase::SCI_FORMATRANGE,TRUE,&painter,area,pos,ePos); + formatPage(painter,true,area,currPage); + tqsb -> SendScintilla(TQextScintillaBase::SCI_FORMATRANGE,true,&painter,area,pos,ePos); } } - return TRUE; + return true; } |