summaryrefslogtreecommitdiffstats
path: root/tqt/tqextscintillaprinter.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-04-04 13:24:41 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-04 13:59:21 +0900
commit3f2dc73d5a565121db00f4a0f050a48910b51623 (patch)
tree3a2f1b4b88fc316e2c3d87b5e83058cb346b2852 /tqt/tqextscintillaprinter.cpp
parent3c23eba2e71e6aebeb7ff5091fc69d050170e1d1 (diff)
downloadtqscintilla-master.tar.gz
tqscintilla-master.zip
Replace TRUE/FALSE with boolean values true/falseHEADmaster
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tqt/tqextscintillaprinter.cpp')
-rw-r--r--tqt/tqextscintillaprinter.cpp24
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;
}