summaryrefslogtreecommitdiffstats
path: root/src/kernel/tqprinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/tqprinter.cpp')
-rw-r--r--src/kernel/tqprinter.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/src/kernel/tqprinter.cpp b/src/kernel/tqprinter.cpp
index eaaa3854f..67f11b48e 100644
--- a/src/kernel/tqprinter.cpp
+++ b/src/kernel/tqprinter.cpp
@@ -71,8 +71,8 @@
printer to provide (in dpi).
\i setFullPage() tells TQPrinter whether you want to deal with the
full page or just with the part the printer can draw on. The
- default is FALSE, so that by default you should be able to paint
- on (0,0). If TRUE the origin of the coordinate system will be in
+ default is false, so that by default you should be able to paint
+ on (0,0). If true the origin of the coordinate system will be in
the top left corner of the paper and most probably the printer
will not be able to paint something there due to it's physical
margins.
@@ -210,7 +210,7 @@
TQPrinter::setFullPage(), to determine the printable area (see
TQPaintDeviceMetrics).
- The defined sizes (with setFullPage(TRUE)) are:
+ The defined sizes (with setFullPage(true)) are:
\value A0 841 x 1189 mm This value is not supported on windows.
\value A1 594 x 841 mm This value is not supported on windows.
@@ -245,7 +245,7 @@
\value Custom
\value NPageSize (internal)
- With setFullPage(FALSE) (the default), the metrics will be a bit
+ With setFullPage(false) (the default), the metrics will be a bit
smaller; how much depends on the printer in use.
*/
@@ -342,9 +342,9 @@
/*!
\fn bool TQPrinter::outputToFile() const
- Returns TRUE if the output should be written to a file, or FALSE
+ Returns true if the output should be written to a file, or false
if the output should be sent directly to the printer. The default
- setting is FALSE.
+ setting is false.
This function is currently only supported under X11 and Mac OS X.
@@ -355,8 +355,8 @@
Specifies whether the output should be written to a file or sent
directly to the printer.
- Will output to a file if \a enable is TRUE, or will output
- directly to the printer if \a enable is FALSE.
+ Will output to a file if \a enable is true, or will output
+ directly to the printer if \a enable is false.
This function is currently only supported under X11 and Mac OS X.
@@ -388,8 +388,8 @@ void TQPrinter::setOutputToFile( bool enable )
Sets the name of the output file to \a fileName.
Setting a null or empty name (0 or "") disables output to a file,
- i.e. calls setOutputToFile(FALSE). Setting a non-empty name
- enables output to a file, i.e. calls setOutputToFile(TRUE).
+ i.e. calls setOutputToFile(false). Setting a non-empty name
+ enables output to a file, i.e. calls setOutputToFile(true).
This function is currently only supported under X11.
@@ -745,8 +745,8 @@ void TQPrinter::setMinMax( int minPage, int maxPage )
\internal
- Returns TRUE if the application should provide the user with the
- option of choosing a collated printout; otherwise returns FALSE.
+ Returns true if the application should provide the user with the
+ option of choosing a collated printout; otherwise returns false.
Collation means that each page is printed in order, i.e. print the
first page, then the second page, then the third page and so on, and
@@ -763,9 +763,9 @@ void TQPrinter::setMinMax( int minPage, int maxPage )
\internal
- If \a enable is TRUE (the default) the user is given the choice of
+ If \a enable is true (the default) the user is given the choice of
whether to print out multiple copies collated in the print dialog.
- If \a enable is FALSE, then collateCopies() will be ignored.
+ If \a enable is false, then collateCopies() will be ignored.
Collation means that each page is printed in order, i.e. print the
first page, then the second page, then the third page and so on, and
@@ -782,8 +782,8 @@ void TQPrinter::setMinMax( int minPage, int maxPage )
\internal
- Returns TRUE if collation is turned on when multiple copies is selected.
- Returns FALSE if it is turned off when multiple copies is selected.
+ Returns true if collation is turned on when multiple copies is selected.
+ Returns false if it is turned off when multiple copies is selected.
\sa collateCopiesEnabled() setCollateCopiesEnabled() setCollateCopies()
*/
@@ -792,8 +792,8 @@ void TQPrinter::setMinMax( int minPage, int maxPage )
\internal
Sets the default value for collation checkbox when the print dialog appears.
- If \a on is TRUE, it will enable setCollateCopiesEnabled().
- The default value is FALSE. This value will be changed by what the
+ If \a on is true, it will enable setCollateCopiesEnabled().
+ The default value is false. This value will be changed by what the
user presses in the print dialog.
\sa collateCopiesEnabled() setCollateCopiesEnabled() collateCopies()
@@ -862,16 +862,16 @@ void TQPrinter::setPrinterSelectionOption( const TQString & option )
/*!
Sets TQPrinter to have the origin of the coordinate system at the
- top-left corner of the paper if \a fp is TRUE, or where it thinks
- the top-left corner of the printable area is if \a fp is FALSE.
+ top-left corner of the paper if \a fp is true, or where it thinks
+ the top-left corner of the printable area is if \a fp is false.
- The default is FALSE. You can (probably) print on (0,0), and
+ The default is false. You can (probably) print on (0,0), and
TQPaintDeviceMetrics will report something smaller than the size
indicated by PageSize. (Note that TQPrinter may be wrong on Unix
systems - it does not have perfect knowledge of the physical
printer.)
- If you set \a fp to TRUE, TQPaintDeviceMetrics will report the
+ If you set \a fp to true, TQPaintDeviceMetrics will report the
exact same size as indicated by \c PageSize, but you cannot print
on all of that - you must take care of the output margins
yourself.
@@ -886,8 +886,8 @@ void TQPrinter::setFullPage( bool fp )
/*!
- Returns TRUE if the origin of the printer's coordinate system is
- at the corner of the sheet and FALSE if it is at the edge of the
+ Returns true if the origin of the printer's coordinate system is
+ at the corner of the sheet and false if it is at the edge of the
printable area.
See setFullPage() for details and caveats.
@@ -920,7 +920,7 @@ bool TQPrinter::fullPage() const
void TQPrinter::setResolution( int dpi )
{
res = dpi;
- res_set = TRUE;
+ res_set = true;
}
@@ -976,11 +976,11 @@ void TQPrinter::setPrintRange( PrintRange range )
if( range != AllPages ) {
if( range == Selection
&& !isOptionEnabled( PrintSelection ) ) {
- setOptionEnabled( PrintSelection, TRUE );
+ setOptionEnabled( PrintSelection, true );
}
else if( range == PageRange
&& !isOptionEnabled( PrintPageRange ) ) {
- setOptionEnabled( PrintPageRange, TRUE );
+ setOptionEnabled( PrintPageRange, true );
}
}
d->printRange = range;
@@ -999,7 +999,7 @@ TQPrinter::PrintRange TQPrinter::printRange() const
/*!
Enables the printer option with the identifier \a option if \a
- enable is TRUE, and disables option \a option if \a enable is FALSE.
+ enable is true, and disables option \a option if \a enable is false.
\sa isOptionEnabled()
*/
@@ -1015,8 +1015,8 @@ void TQPrinter::setOptionEnabled( PrinterOption option, bool enable )
}
/*!
- Returns TRUE if the printer option with identifier \a option is enabled;
- otherwise returns FALSE.
+ Returns true if the printer option with identifier \a option is enabled;
+ otherwise returns false.
\sa setOptionEnabled()
*/