diff options
Diffstat (limited to 'doc/html/motif-walkthrough-9.html')
-rw-r--r-- | doc/html/motif-walkthrough-9.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/html/motif-walkthrough-9.html b/doc/html/motif-walkthrough-9.html index 4c0cc9dc6..76fb859a7 100644 --- a/doc/html/motif-walkthrough-9.html +++ b/doc/html/motif-walkthrough-9.html @@ -39,12 +39,12 @@ body { background: #ffffff; color: black; } <p> The <em>Print</em> dialog is the last component in our application that uses <a href="motif-extension.html#Motif">Motif</a>. The current <tt>Print()</tt> function does nothing more than write the plain text to a temporary file, and then executes 'lpr' to -send the text to the printer. Since we will use <a href="qprinter.html">TQPrinter</a>, we do not +send the text to the printer. Since we will use <a href="ntqprinter.html">TQPrinter</a>, we do not this function any more, so we remove it. The current <tt>MainWindow::filePrint()</tt> implementation is removed as well. We will write a new <tt>MainWindow::filePrint()</tt> implementation in <tt>mainwindow.ui.h</tt>. <p> Note: The steps involved in using the TQPrinter class are beyond the scope of this walkthrough and will not be discussed here. The -TQPrinter Class Reference, <a href="qsimplerichtext.html">TQSimpleRichText</a> Class Reference and the +TQPrinter Class Reference, <a href="ntqsimplerichtext.html">TQSimpleRichText</a> Class Reference and the <a href="simple-application.html">Simple Application Walkthrough</a> contain information on the use of TQPrinter. <p> For completeness, the code to initialize a TQPrinter object is included below. @@ -62,12 +62,12 @@ previous versions. <p> <pre></pre> <p> Next we just loop over all pages, appending the page label, contents and formatting characters to a <tt>printtext</tt> variable (which is a -<a href="qstring.html">TQString</a>). +<a href="ntqstring.html">TQString</a>). <p> <pre></pre> <p> The rest of the <tt>MainWindow::filePrint()</tt> function is the actual -printing code. Here we simply create a <a href="qsimplerichtext.html">TQSimpleRichText</a> object using -the string we created above, and draw this string on the <a href="qprinter.html">TQPrinter</a> -object using <a href="qpainter.html">TQPainter</a>. +printing code. Here we simply create a <a href="ntqsimplerichtext.html">TQSimpleRichText</a> object using +the string we created above, and draw this string on the <a href="ntqprinter.html">TQPrinter</a> +object using <a href="ntqpainter.html">TQPainter</a>. <p> <pre></pre> <p> <h2> Removing the Dependency on Xt/Motif </h2> |