summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqprinter.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqprinter.3qt')
-rw-r--r--doc/man/man3/tqprinter.3qt40
1 files changed, 20 insertions, 20 deletions
diff --git a/doc/man/man3/tqprinter.3qt b/doc/man/man3/tqprinter.3qt
index f9ee148c2..6678a74c4 100644
--- a/doc/man/man3/tqprinter.3qt
+++ b/doc/man/man3/tqprinter.3qt
@@ -210,7 +210,7 @@ setPageSize() tells QPrinter what page size to expect from the printer.
.TP
setResolution() tells QPrinter what resolution you wish the printer to provide (in dpi).
.TP
-setFullPage() tells QPrinter 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 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.
+setFullPage() tells QPrinter 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 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.
.TP
setNumCopies() tells QPrinter how many copies of the document it should print.
.TP
@@ -280,7 +280,7 @@ This enum type is used by QPrinter to tell the application program how to print.
.SH "QPrinter::PageSize"
This enum type specifies what paper size QPrinter should use. QPrinter does not check that the paper size is available; it just uses this information, together with QPrinter::Orientation and QPrinter::setFullPage(), to determine the printable area (see QPaintDeviceMetrics).
.PP
-The defined sizes (with setFullPage(TRUE)) are:
+The defined sizes (with setFullPage(true)) are:
.TP
\fCQPrinter::A0\fR - 841 x 1189 mm This value is not supported on windows.
.TP
@@ -346,7 +346,7 @@ The defined sizes (with setFullPage(TRUE)) are:
.TP
\fCQPrinter::NPageSize\fR - (internal)
.PP
-With setFullPage(FALSE) (the default), the metrics will be a bit smaller; how much depends on the printer in use.
+With setFullPage(false) (the default), the metrics will be a bit smaller; how much depends on the printer in use.
.SH "QPrinter::PaperSource"
This enum type specifies what paper source QPrinter is to use. QPrinter does not check that the paper source is available; it just uses this information to try and set the paper source. Whether it will set the paper source depends on whether the printer has that particular source.
.PP
@@ -415,11 +415,11 @@ See also QPrinter::PrinterMode.
.SH "QPrinter::~QPrinter ()"
Destroys the printer paint device and cleans up.
.SH "bool QPrinter::abort ()"
-Aborts the print job. Returns TRUE if successful; otherwise returns FALSE.
+Aborts the print job. Returns true if successful; otherwise returns false.
.PP
See also aborted().
.SH "bool QPrinter::aborted () const"
-Returns TRUE if the print job was aborted; otherwise returns FALSE.
+Returns true if the print job was aborted; otherwise returns false.
.PP
See also abort().
.SH "ColorMode QPrinter::colorMode () const"
@@ -443,21 +443,21 @@ The programmer is responsible for reading this setting and printing accordingly.
.PP
See also setFromTo() and toPage().
.SH "bool QPrinter::fullPage () const"
-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.
+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.
.PP
See setFullPage() for details and caveats.
.PP
See also setFullPage(), PageSize, and QPaintDeviceMetrics.
.SH "bool QPrinter::isOptionEnabled ( PrinterOption option )"
-Returns TRUE if the printer option with identifier \fIoption\fR is enabled; otherwise returns FALSE.
+Returns true if the printer option with identifier \fIoption\fR is enabled; otherwise returns false.
.PP
See also setOptionEnabled().
.SH "QSize QPrinter::margins () const"
Returns the width of the left margin and the height of the top margin of the printer. On Unix, this is a best-effort guess, not based on perfect knowledge.
.PP
-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( 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.
.PP
-If you have called setFullPage( FALSE ) (this is the default), margins() is automatically subtracted from the pageSize() by QPrinter.
+If you have called setFullPage( false ) (this is the default), margins() is automatically subtracted from the pageSize() by QPrinter.
.PP
See also setFullPage(), QPaintDeviceMetrics, and PageSize.
.SH "void QPrinter::margins ( uint * top, uint * left, uint * bottom, uint * right ) const"
@@ -465,9 +465,9 @@ This is an overloaded member function, provided for convenience. It behaves esse
.PP
Sets \fItop\fR, \fIleft\fR, \fIbottom\fR and \fIright\fR to the margins of the printer. On Unix, this is a best-effort guess, not based on perfect knowledge.
.PP
-If you have called setFullPage( TRUE ), the four values specify the smallest sane margins you can use.
+If you have called setFullPage( true ), the four values specify the smallest sane margins you can use.
.PP
-If you have called setFullPage( FALSE ) (this is the default), the margins are automatically subtracted from the pageSize() by QPrinter.
+If you have called setFullPage( false ) (this is the default), the margins are automatically subtracted from the pageSize() by QPrinter.
.PP
See also setFullPage(), QPaintDeviceMetrics, and PageSize.
.SH "int QPrinter::maxPage () const"
@@ -479,7 +479,7 @@ Returns the min-page setting, i.e. the lowest page number a user is allowed to c
.PP
See also maxPage(), setMinMax(), and setFromTo().
.SH "bool QPrinter::newPage ()"
-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.
.PP
Examples:
.)l action/application.cpp, application/application.cpp, helpviewer/helpwindow.cpp, and mdi/application.cpp.
@@ -498,7 +498,7 @@ Returns the name of the output file. There is no default file name.
.PP
See also setOutputFileName() and setOutputToFile().
.SH "bool QPrinter::outputToFile () const"
-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.
+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.
.PP
This function is currently only supported under X11 and Mac OS X.
.PP
@@ -570,11 +570,11 @@ This function is useful mostly to set a default value that the user can override
.PP
See also fromPage(), toPage(), setMinMax(), and setup().
.SH "void QPrinter::setFullPage ( bool fp )\fC [virtual]\fR"
-Sets QPrinter to have the origin of the coordinate system at the top-left corner of the paper if \fIfp\fR is TRUE, or where it thinks the top-left corner of the printable area is if \fIfp\fR is FALSE.
+Sets QPrinter to have the origin of the coordinate system at the top-left corner of the paper if \fIfp\fR is true, or where it thinks the top-left corner of the printable area is if \fIfp\fR is false.
.PP
-The default is FALSE. You can (probably) print on (0,0), and QPaintDeviceMetrics will report something smaller than the size indicated by PageSize. (Note that QPrinter may be wrong on Unix systems - it does not have perfect knowledge of the physical printer.)
+The default is false. You can (probably) print on (0,0), and QPaintDeviceMetrics will report something smaller than the size indicated by PageSize. (Note that QPrinter may be wrong on Unix systems - it does not have perfect knowledge of the physical printer.)
.PP
-If you set \fIfp\fR to TRUE, QPaintDeviceMetrics will report the exact same size as indicated by PageSize, but you cannot print on all of that - you must take care of the output margins yourself.
+If you set \fIfp\fR to true, QPaintDeviceMetrics will report the exact same size as indicated by PageSize, but you cannot print on all of that - you must take care of the output margins yourself.
.PP
See also PageSize, setPageSize(), QPaintDeviceMetrics, and fullPage().
.PP
@@ -599,7 +599,7 @@ The printer driver reads this setting and prints the specified number of copies.
.PP
See also numCopies() and setup().
.SH "void QPrinter::setOptionEnabled ( PrinterOption option, bool enable )"
-Enables the printer option with the identifier \fIoption\fR if \fIenable\fR is TRUE, and disables option \fIoption\fR if \fIenable\fR is FALSE.
+Enables the printer option with the identifier \fIoption\fR if \fIenable\fR is true, and disables option \fIoption\fR if \fIenable\fR is false.
.PP
See also isOptionEnabled().
.SH "void QPrinter::setOrientation ( Orientation orientation )\fC [virtual]\fR"
@@ -615,7 +615,7 @@ See also orientation().
.SH "void QPrinter::setOutputFileName ( const TQString & fileName )\fC [virtual]\fR"
Sets the name of the output file to \fIfileName\fR.
.PP
-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).
+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).
.PP
This function is currently only supported under X11.
.PP
@@ -623,7 +623,7 @@ See also outputFileName() and setOutputToFile().
.SH "void QPrinter::setOutputToFile ( bool enable )\fC [virtual]\fR"
Specifies whether the output should be written to a file or sent directly to the printer.
.PP
-Will output to a file if \fIenable\fR is TRUE, or will output directly to the printer if \fIenable\fR is FALSE.
+Will output to a file if \fIenable\fR is true, or will output directly to the printer if \fIenable\fR is false.
.PP
This function is currently only supported under X11 and Mac OS X.
.PP
@@ -691,7 +691,7 @@ Windows only, using this function is not portable! Sets the windows page size va
.SH "bool QPrinter::setup ( TQWidget * parent = 0 )"
Opens a printer setup dialog, with parent \fIparent\fR, and asks the user to specify which printer they wish to use and what settings it should have.
.PP
-Returns TRUE if the user pressed "OK" to print, or FALSE if the user canceled the operation.
+Returns true if the user pressed "OK" to print, or false if the user canceled the operation.
.PP
Examples:
.)l action/application.cpp, application/application.cpp, drawdemo/drawdemo.cpp, helpviewer/helpwindow.cpp, and mdi/application.cpp.