summaryrefslogtreecommitdiffstats
path: root/src/kernel/tqprinter_unix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/tqprinter_unix.cpp')
-rw-r--r--src/kernel/tqprinter_unix.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/kernel/tqprinter_unix.cpp b/src/kernel/tqprinter_unix.cpp
index e5bacff9c..e9caedc3d 100644
--- a/src/kernel/tqprinter_unix.cpp
+++ b/src/kernel/tqprinter_unix.cpp
@@ -121,8 +121,8 @@ TQPrinter::TQPrinter( PrinterMode m )
printer_name = getenv("PRINTER");
from_pg = to_pg = min_pg = max_pg = 0;
state = PST_IDLE;
- output_file = FALSE;
- to_edge = FALSE;
+ output_file = false;
+ to_edge = false;
paper_source = OnlyOne;
switch ( m ) {
case ScreenResolution:
@@ -137,10 +137,10 @@ TQPrinter::TQPrinter( PrinterMode m )
}
d = new TQPrinterUnixPrivate;
- D->marginsSpecified = FALSE;
+ D->marginsSpecified = false;
d->printerOptions = 0;
- setOptionEnabled( PrintToFile, TRUE );
- setOptionEnabled( PrintPageRange, TRUE );
+ setOptionEnabled( PrintToFile, true );
+ setOptionEnabled( PrintPageRange, true );
setPrintRange( AllPages );
}
@@ -161,21 +161,21 @@ TQPrinter::~TQPrinter()
/*!
- Advances to a new page on the printer. Returns TRUE if successful;
- otherwise returns FALSE.
+ Advances to a new page on the printer. Returns true if successful;
+ otherwise returns false.
*/
bool TQPrinter::newPage()
{
if ( state == PST_ACTIVE && pdrv )
return ((TQPSPrinter*)pdrv)->cmd( TQPSPrinter::NewPage, 0, 0 );
- return FALSE;
+ return false;
}
/*!
- Aborts the print job. Returns TRUE if successful; otherwise
- returns FALSE.
+ Aborts the print job. Returns true if successful; otherwise
+ returns false.
\sa aborted()
*/
@@ -195,8 +195,8 @@ bool TQPrinter::abort()
}
/*!
- Returns TRUE if the print job was aborted; otherwise returns
- FALSE.
+ Returns true if the print job was aborted; otherwise returns
+ false.
\sa abort()
*/
@@ -240,7 +240,7 @@ static void deleteGlobalPrinterDefaults()
user to specify which printer they wish to use and what settings
it should have.
- Returns TRUE if the user pressed "OK" to print, or FALSE if the
+ Returns true if the user pressed "OK" to print, or false if the
user canceled the operation.
*/
@@ -249,7 +249,7 @@ bool TQPrinter::setup( TQWidget * parent )
#ifndef TQT_NO_PRINTDIALOG
bool result = TQPrintDialog::getPrinterSetup( this, parent );
#else
- bool result = FALSE;
+ bool result = false;
#endif
if ( result ) {
if ( !globalPrinterDefaults ) {
@@ -329,7 +329,7 @@ bool TQPrinter::cmd( int c, TQPainter *paint, TQPDevCmdParam *p )
if ( pipe( fds ) != 0 ) {
tqWarning( "TQPSPrinter: could not open pipe to print" );
state = PST_ERROR;
- return FALSE;
+ return false;
}
// ### shouldn't we use TQProcess here????
@@ -453,7 +453,7 @@ bool TQPrinter::cmd( int c, TQPainter *paint, TQPDevCmdParam *p )
// ignore it? I don't know
}
} else {
- bool r = FALSE;
+ bool r = false;
if ( state == PST_ACTIVE && pdrv ) {
r = ((TQPSPrinter*)pdrv)->cmd( c, paint, p );
if ( c == PdcEnd ) {
@@ -469,7 +469,7 @@ bool TQPrinter::cmd( int c, TQPainter *paint, TQPDevCmdParam *p )
state = PST_IDLE;
return r;
}
- return TRUE;
+ return true;
}
@@ -593,12 +593,12 @@ int TQPrinter::metric( int m ) const
margin of the printer. On Unix, this is a best-effort guess, not
based on perfect knowledge.
- If you have called setFullPage( TRUE ), margins().width() may be
+ If you have called setFullPage( true ), margins().width() may be
treated as the smallest sane left margin you can use, and
margins().height() as the smallest sane top margin you can
use.
- If you have called setFullPage( FALSE ) (this is the default),
+ If you have called setFullPage( false ) (this is the default),
margins() is automatically subtracted from the pageSize() by
TQPrinter.
@@ -622,10 +622,10 @@ TQSize TQPrinter::margins() const
printer. On Unix, this is a best-effort guess, not based on
perfect knowledge.
- If you have called setFullPage( TRUE ), the four values specify
+ If you have called setFullPage( true ), the four values specify
the smallest sane margins you can use.
- If you have called setFullPage( FALSE ) (this is the default),
+ If you have called setFullPage( false ) (this is the default),
the margins are automatically subtracted from the pageSize() by
TQPrinter.
@@ -660,7 +660,7 @@ void TQPrinter::setMargins( uint top, uint left, uint bottom, uint right )
D->leftMargin = left;
D->bottomMargin = bottom;
D->rightMargin = right;
- D->marginsSpecified = TRUE;
+ D->marginsSpecified = true;
}
#endif