diff options
Diffstat (limited to 'doc/html/tqprinter.html')
-rw-r--r-- | doc/html/tqprinter.html | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/doc/html/tqprinter.html b/doc/html/tqprinter.html index 4b674cdb3..2e475c864 100644 --- a/doc/html/tqprinter.html +++ b/doc/html/tqprinter.html @@ -121,8 +121,8 @@ printer. printer to provide (in dpi). <li> <a href="#setFullPage">setFullPage</a>() 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. @@ -227,7 +227,7 @@ TQPrinter does not check that the paper size is available; it just uses this information, together with TQPrinter::Orientation and <a href="#setFullPage">TQPrinter::setFullPage</a>(), to determine the printable area (see <a href="tqpaintdevicemetrics.html">TQPaintDeviceMetrics</a>). -<p> The defined sizes (with <a href="#setFullPage">setFullPage</a>(TRUE)) are: +<p> The defined sizes (with <a href="#setFullPage">setFullPage</a>(true)) are: <ul> <li><tt>TQPrinter::A0</tt> - 841 x 1189 mm This value is not supported on windows. <li><tt>TQPrinter::A1</tt> - 594 x 841 mm This value is not supported on windows. @@ -261,7 +261,7 @@ uses this information, together with TQPrinter::Orientation and <li><tt>TQPrinter::Tabloid</tt> - 279 x 432 mm <li><tt>TQPrinter::Custom</tt> <li><tt>TQPrinter::NPageSize</tt> - (internal) -</ul><p> With <a href="#setFullPage">setFullPage</a>(FALSE) (the default), the metrics will be a bit +</ul><p> With <a href="#setFullPage">setFullPage</a>(false) (the default), the metrics will be a bit smaller; how much depends on the printer in use. <h3 class=fn><a name="PaperSource-enum"></a>TQPrinter::PaperSource</h3> @@ -343,14 +343,14 @@ Destroys the printer paint device and cleans up. <h3 class=fn>bool <a name="abort"></a>TQPrinter::abort () </h3> -Aborts the print job. Returns TRUE if successful; otherwise -returns FALSE. +Aborts the print job. Returns true if successful; otherwise +returns false. <p> <p>See also <a href="#aborted">aborted</a>(). <h3 class=fn>bool <a name="aborted"></a>TQPrinter::aborted () const </h3> -Returns TRUE if the print job was aborted; otherwise returns -FALSE. +Returns true if the print job was aborted; otherwise returns +false. <p> <p>See also <a href="#abort">abort</a>(). <h3 class=fn><a href="tqprinter.html#ColorMode-enum">ColorMode</a> <a name="colorMode"></a>TQPrinter::colorMode () const @@ -382,16 +382,16 @@ printing accordingly. <h3 class=fn>bool <a name="fullPage"></a>TQPrinter::fullPage () const </h3> -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. <p> See <a href="#setFullPage">setFullPage</a>() for details and caveats. <p> <p>See also <a href="#setFullPage">setFullPage</a>(), <a href="#PageSize-enum">PageSize</a>, and <a href="tqpaintdevicemetrics.html">TQPaintDeviceMetrics</a>. <h3 class=fn>bool <a name="isOptionEnabled"></a>TQPrinter::isOptionEnabled ( <a href="tqprinter.html#PrinterOption-enum">PrinterOption</a> option ) </h3> -Returns TRUE if the printer option with identifier <em>option</em> is enabled; -otherwise returns FALSE. +Returns true if the printer option with identifier <em>option</em> is enabled; +otherwise returns false. <p> <p>See also <a href="#setOptionEnabled">setOptionEnabled</a>(). <h3 class=fn><a href="tqsize.html">TQSize</a> <a name="margins"></a>TQPrinter::margins () const @@ -399,11 +399,11 @@ otherwise returns FALSE. 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. -<p> If you have called <a href="#setFullPage">setFullPage</a>( TRUE ), <a href="#margins">margins</a>().width() may be +<p> If you have called <a href="#setFullPage">setFullPage</a>( true ), <a href="#margins">margins</a>().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. -<p> If you have called setFullPage( FALSE ) (this is the default), +<p> If you have called setFullPage( false ) (this is the default), margins() is automatically subtracted from the <a href="#pageSize">pageSize</a>() by TQPrinter. <p> <p>See also <a href="#setFullPage">setFullPage</a>(), <a href="tqpaintdevicemetrics.html">TQPaintDeviceMetrics</a>, and <a href="#PageSize-enum">PageSize</a>. @@ -414,9 +414,9 @@ This is an overloaded member function, provided for convenience. It behaves esse <p> Sets <em>top</em>, <em>left</em>, <em>bottom</em> and <em>right</em> to the margins of the printer. On Unix, this is a best-effort guess, not based on perfect knowledge. -<p> If you have called <a href="#setFullPage">setFullPage</a>( TRUE ), the four values specify +<p> If you have called <a href="#setFullPage">setFullPage</a>( true ), the four values specify the smallest sane margins you can use. -<p> If you have called setFullPage( FALSE ) (this is the default), +<p> If you have called setFullPage( false ) (this is the default), the margins are automatically subtracted from the <a href="#pageSize">pageSize</a>() by TQPrinter. <p> <p>See also <a href="#setFullPage">setFullPage</a>(), <a href="tqpaintdevicemetrics.html">TQPaintDeviceMetrics</a>, and <a href="#PageSize-enum">PageSize</a>. @@ -438,8 +438,8 @@ is allowed to choose. The default value is 0. <h3 class=fn>bool <a name="newPage"></a>TQPrinter::newPage () </h3> -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. <p>Examples: <a href="tqaction-application-example.html#x1149">action/application.cpp</a>, <a href="simple-application-example.html#x1567">application/application.cpp</a>, <a href="helpviewer-example.html#x1005">helpviewer/helpwindow.cpp</a>, and <a href="mdi-example.html#x2050">mdi/application.cpp</a>. <h3 class=fn>int <a name="numCopies"></a>TQPrinter::numCopies () const @@ -470,9 +470,9 @@ name. <h3 class=fn>bool <a name="outputToFile"></a>TQPrinter::outputToFile () const </h3> -<p> Returns TRUE if the output should be written to a file, or FALSE +<p> 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. <p> This function is currently only supported under X11 and Mac OS X. <p> <p>See also <a href="#setOutputToFile">setOutputToFile</a>() and <a href="#setOutputFileName">setOutputFileName</a>(). @@ -567,14 +567,14 @@ user can override in the print dialog when you call <a href="#setup">setup</a>() <h3 class=fn>void <a name="setFullPage"></a>TQPrinter::setFullPage ( bool fp )<tt> [virtual]</tt> </h3> Sets TQPrinter to have the origin of the coordinate system at the -top-left corner of the paper if <em>fp</em> is TRUE, or where it thinks -the top-left corner of the printable area is if <em>fp</em> is FALSE. -<p> The default is FALSE. You can (probably) print on (0,0), and +top-left corner of the paper if <em>fp</em> is true, or where it thinks +the top-left corner of the printable area is if <em>fp</em> is false. +<p> The default is false. You can (probably) print on (0,0), and <a href="tqpaintdevicemetrics.html">TQPaintDeviceMetrics</a> 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.) -<p> If you set <em>fp</em> to TRUE, TQPaintDeviceMetrics will report the +<p> If you set <em>fp</em> to true, TQPaintDeviceMetrics will report the exact same size as indicated by <a href="#PageSize-enum">PageSize</a>, but you cannot print on all of that - you must take care of the output margins yourself. @@ -606,7 +606,7 @@ number of copies. <h3 class=fn>void <a name="setOptionEnabled"></a>TQPrinter::setOptionEnabled ( <a href="tqprinter.html#PrinterOption-enum">PrinterOption</a> option, bool enable ) </h3> -Enables the printer option with the identifier <em>option</em> if <em>enable</em> is TRUE, and disables option <em>option</em> if <em>enable</em> is FALSE. +Enables the printer option with the identifier <em>option</em> if <em>enable</em> is true, and disables option <em>option</em> if <em>enable</em> is false. <p> <p>See also <a href="#isOptionEnabled">isOptionEnabled</a>(). <h3 class=fn>void <a name="setOrientation"></a>TQPrinter::setOrientation ( <a href="tqprinter.html#Orientation-enum">Orientation</a> orientation )<tt> [virtual]</tt> @@ -624,8 +624,8 @@ take effect from the next call to <a href="#newPage">newPage</a>() </h3> Sets the name of the output file to <em>fileName</em>. <p> Setting a null or empty name (0 or "") disables output to a file, -i.e. calls <a href="#setOutputToFile">setOutputToFile</a>(FALSE). Setting a non-empty name -enables output to a file, i.e. calls setOutputToFile(TRUE). +i.e. calls <a href="#setOutputToFile">setOutputToFile</a>(false). Setting a non-empty name +enables output to a file, i.e. calls setOutputToFile(true). <p> This function is currently only supported under X11. <p> <p>See also <a href="#outputFileName">outputFileName</a>() and <a href="#setOutputToFile">setOutputToFile</a>(). @@ -633,8 +633,8 @@ enables output to a file, i.e. calls setOutputToFile(TRUE). </h3> Specifies whether the output should be written to a file or sent directly to the printer. -<p> Will output to a file if <em>enable</em> is TRUE, or will output -directly to the printer if <em>enable</em> is FALSE. +<p> Will output to a file if <em>enable</em> is true, or will output +directly to the printer if <em>enable</em> is false. <p> This function is currently only supported under X11 and Mac OS X. <p> <p>See also <a href="#outputToFile">outputToFile</a>() and <a href="#setOutputFileName">setOutputFileName</a>(). @@ -724,7 +724,7 @@ from wingdi.h. Opens a printer setup dialog, with parent <em>parent</em>, and asks the user to specify which printer they wish to use and what settings it should have. -<p> Returns TRUE if the user pressed "OK" to print, or FALSE if the +<p> Returns true if the user pressed "OK" to print, or false if the user canceled the operation. <p>Examples: <a href="tqaction-application-example.html#x1151">action/application.cpp</a>, <a href="simple-application-example.html#x1569">application/application.cpp</a>, <a href="drawdemo-example.html#x1079">drawdemo/drawdemo.cpp</a>, <a href="helpviewer-example.html#x1007">helpviewer/helpwindow.cpp</a>, and <a href="mdi-example.html#x2052">mdi/application.cpp</a>. |