You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
253 lines
12 KiB
253 lines
12 KiB
13 years ago
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
||
2 years ago
|
<title>TQScintilla: TQextScintillaPrinter Class Reference</title>
|
||
13 years ago
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||
|
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||
|
</head><body>
|
||
|
<!-- Generated by Doxygen 1.4.7 -->
|
||
|
<div class="tabs">
|
||
|
<ul>
|
||
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
||
|
<li id="current"><a href="annotated.html"><span>Classes</span></a></li>
|
||
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||
|
</ul></div>
|
||
|
<div class="tabs">
|
||
|
<ul>
|
||
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||
|
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
||
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||
|
</ul></div>
|
||
2 years ago
|
<h1>TQextScintillaPrinter Class Reference</h1><!-- doxytag: class="TQextScintillaPrinter" -->The <a class="el" href="classTQextScintillaPrinter.html">TQextScintillaPrinter</a> class is a sub-class of the TQt TQPrinter class that is able to print the text of a Scintilla document.
|
||
13 years ago
|
<a href="#_details">More...</a>
|
||
|
<p>
|
||
2 years ago
|
<code>#include <tqextscintillaprinter.h></code>
|
||
13 years ago
|
<p>
|
||
2 years ago
|
<a href="classTQextScintillaPrinter-members.html">List of all members.</a><h2>Public Member Functions</h2>
|
||
13 years ago
|
<ul>
|
||
2 years ago
|
<li><a class="el" href="classTQextScintillaPrinter.html#d304f2d535a10595acc613521f92dc49">TQextScintillaPrinter</a> (PrinterMode mode=ScreenResolution)
|
||
|
<li><a class="el" href="classTQextScintillaPrinter.html#34077d68da930b18eba124ab64555898">~TQextScintillaPrinter</a> ()
|
||
|
<li>virtual void <a class="el" href="classTQextScintillaPrinter.html#5d6f0f8c13568054efbe9003867f1b09">formatPage</a> (TQPainter &painter, bool drawing, TQRect &area, int pagenr)
|
||
|
<li>int <a class="el" href="classTQextScintillaPrinter.html#a990192f1b73683409f23b0bb1ba3e94">magnification</a> () const
|
||
|
<li>virtual void <a class="el" href="classTQextScintillaPrinter.html#7343a1deb132bfc5dfd2c4208eff3d00">setMagnification</a> (int magnification)
|
||
|
<li>virtual int <a class="el" href="classTQextScintillaPrinter.html#31d261de4a31e82646f4f75d1a6085f6">printRange</a> (<a class="el" href="classTQextScintillaBase.html">TQextScintillaBase</a> *tqsb, int from=-1, int to=-1)
|
||
|
<li><a class="el" href="classTQextScintilla.html#15ead1c6cb74fa8a441f27587ed99ed3">TQextScintilla::WrapMode</a> <a class="el" href="classTQextScintillaPrinter.html#8aba0d63efee1fb2d6b5609c9120f970">wrapMode</a> () const
|
||
|
<li>virtual void <a class="el" href="classTQextScintillaPrinter.html#f4904d6ba001f4c7145983f9814f00c1">setWrapMode</a> (<a class="el" href="classTQextScintilla.html#15ead1c6cb74fa8a441f27587ed99ed3">TQextScintilla::WrapMode</a> wmode)
|
||
13 years ago
|
</ul>
|
||
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
||
2 years ago
|
The <a class="el" href="classTQextScintillaPrinter.html">TQextScintillaPrinter</a> class is a sub-class of the TQt TQPrinter class that is able to print the text of a Scintilla document.
|
||
13 years ago
|
<p>
|
||
13 years ago
|
The class can be further sub-classed to alter to layout of the text, adding headers and footers for example.
|
||
13 years ago
|
<p>
|
||
|
<hr><h2>Constructor & Destructor Documentation</h2>
|
||
2 years ago
|
<a class="anchor" name="d304f2d535a10595acc613521f92dc49"></a><!-- doxytag: member="TQextScintillaPrinter::TQextScintillaPrinter" ref="d304f2d535a10595acc613521f92dc49" args="(PrinterMode mode=ScreenResolution)" -->
|
||
13 years ago
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
2 years ago
|
<td class="memname">TQextScintillaPrinter::TQextScintillaPrinter </td>
|
||
13 years ago
|
<td>(</td>
|
||
|
<td class="paramtype">PrinterMode </td>
|
||
|
<td class="paramname"> <em>mode</em> = <code>ScreenResolution</code> </td>
|
||
|
<td> ) </td>
|
||
|
<td width="100%"></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>
|
||
|
Constructs a printer paint device with mode <em>mode</em>.
|
||
|
<p>
|
||
|
|
||
|
</div>
|
||
|
</div><p>
|
||
2 years ago
|
<a class="anchor" name="34077d68da930b18eba124ab64555898"></a><!-- doxytag: member="TQextScintillaPrinter::~TQextScintillaPrinter" ref="34077d68da930b18eba124ab64555898" args="()" -->
|
||
13 years ago
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
2 years ago
|
<td class="memname">TQextScintillaPrinter::~TQextScintillaPrinter </td>
|
||
13 years ago
|
<td>(</td>
|
||
|
<td class="paramname"> </td>
|
||
|
<td> ) </td>
|
||
|
<td width="100%"></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>
|
||
2 years ago
|
Destroys the <a class="el" href="classTQextScintillaPrinter.html">TQextScintillaPrinter</a> instance.
|
||
13 years ago
|
<p>
|
||
|
|
||
|
</div>
|
||
|
</div><p>
|
||
|
<hr><h2>Member Function Documentation</h2>
|
||
2 years ago
|
<a class="anchor" name="5d6f0f8c13568054efbe9003867f1b09"></a><!-- doxytag: member="TQextScintillaPrinter::formatPage" ref="5d6f0f8c13568054efbe9003867f1b09" args="(TQPainter &painter, bool drawing, TQRect &area, int pagenr)" -->
|
||
13 years ago
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
2 years ago
|
<td class="memname">virtual void TQextScintillaPrinter::formatPage </td>
|
||
13 years ago
|
<td>(</td>
|
||
13 years ago
|
<td class="paramtype">TQPainter & </td>
|
||
13 years ago
|
<td class="paramname"> <em>painter</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">bool </td>
|
||
|
<td class="paramname"> <em>drawing</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
13 years ago
|
<td class="paramtype">TQRect & </td>
|
||
13 years ago
|
<td class="paramname"> <em>area</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">int </td>
|
||
|
<td class="paramname"> <em>pagenr</em></td><td> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td><td width="100%"><code> [virtual]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>
|
||
2 years ago
|
Format a page, by adding headers and footers for example, before the document text is drawn on it. <em>painter</em> is the painter to be used to add customised text and graphics. <em>drawing</em> is TRUE if the page is actually being drawn rather than being sized. <em>painter</em> drawing methods must only be called when <em>drawing</em> is TRUE. <em>area</em> is the area of the page that will be used to draw the text. This should be modified if it is necessary to reserve space for any customised text or graphics. By default the area is relative to the printable area of the page. Use TQPrinter::setFullPage() because calling <a class="el" href="classTQextScintillaPrinter.html#31d261de4a31e82646f4f75d1a6085f6">printRange()</a> if you want to try and print over the whole page. <em>pagenr</em> is the number of the page. The first page is numbered 1.
|
||
13 years ago
|
</div>
|
||
|
</div><p>
|
||
2 years ago
|
<a class="anchor" name="a990192f1b73683409f23b0bb1ba3e94"></a><!-- doxytag: member="TQextScintillaPrinter::magnification" ref="a990192f1b73683409f23b0bb1ba3e94" args="() const " -->
|
||
13 years ago
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
2 years ago
|
<td class="memname">int TQextScintillaPrinter::magnification </td>
|
||
13 years ago
|
<td>(</td>
|
||
|
<td class="paramname"> </td>
|
||
|
<td> ) </td>
|
||
|
<td width="100%"> const<code> [inline]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>
|
||
|
Return the number of points to add to each font when printing.<p>
|
||
2 years ago
|
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classTQextScintillaPrinter.html#7343a1deb132bfc5dfd2c4208eff3d00">setMagnification()</a> </dd></dl>
|
||
13 years ago
|
|
||
|
</div>
|
||
|
</div><p>
|
||
2 years ago
|
<a class="anchor" name="7343a1deb132bfc5dfd2c4208eff3d00"></a><!-- doxytag: member="TQextScintillaPrinter::setMagnification" ref="7343a1deb132bfc5dfd2c4208eff3d00" args="(int magnification)" -->
|
||
13 years ago
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
2 years ago
|
<td class="memname">virtual void TQextScintillaPrinter::setMagnification </td>
|
||
13 years ago
|
<td>(</td>
|
||
|
<td class="paramtype">int </td>
|
||
|
<td class="paramname"> <em>magnification</em> </td>
|
||
|
<td> ) </td>
|
||
|
<td width="100%"><code> [virtual]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>
|
||
|
Sets the number of points to add to each font when printing to <em>magnification</em>.<p>
|
||
2 years ago
|
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classTQextScintillaPrinter.html#a990192f1b73683409f23b0bb1ba3e94">magnification()</a> </dd></dl>
|
||
13 years ago
|
|
||
|
</div>
|
||
|
</div><p>
|
||
2 years ago
|
<a class="anchor" name="31d261de4a31e82646f4f75d1a6085f6"></a><!-- doxytag: member="TQextScintillaPrinter::printRange" ref="31d261de4a31e82646f4f75d1a6085f6" args="(TQextScintillaBase *tqsb, int from=-1, int to=-1)" -->
|
||
13 years ago
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
2 years ago
|
<td class="memname">virtual int TQextScintillaPrinter::printRange </td>
|
||
13 years ago
|
<td>(</td>
|
||
2 years ago
|
<td class="paramtype"><a class="el" href="classTQextScintillaBase.html">TQextScintillaBase</a> * </td>
|
||
|
<td class="paramname"> <em>tqsb</em>, </td>
|
||
13 years ago
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">int </td>
|
||
|
<td class="paramname"> <em>from</em> = <code>-1</code>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">int </td>
|
||
|
<td class="paramname"> <em>to</em> = <code>-1</code></td><td> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td><td width="100%"><code> [virtual]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>
|
||
2 years ago
|
Print a range of lines from the Scintilla instance <em>tqsb</em>. <em>from</em> is the first line to print and a negative value signifies the first line of text. <em>to</em> is the last line to print and a negative value signifies the last line of text. TRUE is returned if there was no error.
|
||
13 years ago
|
</div>
|
||
|
</div><p>
|
||
2 years ago
|
<a class="anchor" name="8aba0d63efee1fb2d6b5609c9120f970"></a><!-- doxytag: member="TQextScintillaPrinter::wrapMode" ref="8aba0d63efee1fb2d6b5609c9120f970" args="() const " -->
|
||
13 years ago
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
2 years ago
|
<td class="memname"><a class="el" href="classTQextScintilla.html#15ead1c6cb74fa8a441f27587ed99ed3">TQextScintilla::WrapMode</a> TQextScintillaPrinter::wrapMode </td>
|
||
13 years ago
|
<td>(</td>
|
||
|
<td class="paramname"> </td>
|
||
|
<td> ) </td>
|
||
|
<td width="100%"> const<code> [inline]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>
|
||
2 years ago
|
Return the line wrap mode used when printing. The default is <a class="el" href="classTQextScintilla.html#15ead1c6cb74fa8a441f27587ed99ed3a7f65cd359e236aee9ab70d7bf55085c">TQextScintilla::WrapWord</a>.<p>
|
||
|
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classTQextScintillaPrinter.html#f4904d6ba001f4c7145983f9814f00c1">setWrapMode()</a> </dd></dl>
|
||
13 years ago
|
|
||
|
</div>
|
||
|
</div><p>
|
||
2 years ago
|
<a class="anchor" name="f4904d6ba001f4c7145983f9814f00c1"></a><!-- doxytag: member="TQextScintillaPrinter::setWrapMode" ref="f4904d6ba001f4c7145983f9814f00c1" args="(TQextScintilla::WrapMode wmode)" -->
|
||
13 years ago
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
2 years ago
|
<td class="memname">virtual void TQextScintillaPrinter::setWrapMode </td>
|
||
13 years ago
|
<td>(</td>
|
||
2 years ago
|
<td class="paramtype"><a class="el" href="classTQextScintilla.html#15ead1c6cb74fa8a441f27587ed99ed3">TQextScintilla::WrapMode</a> </td>
|
||
13 years ago
|
<td class="paramname"> <em>wmode</em> </td>
|
||
|
<td> ) </td>
|
||
|
<td width="100%"><code> [virtual]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>
|
||
|
Sets the line wrap mode used when printing to <em>wmode</em>.<p>
|
||
2 years ago
|
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classTQextScintillaPrinter.html#8aba0d63efee1fb2d6b5609c9120f970">wrapMode()</a> </dd></dl>
|
||
13 years ago
|
|
||
|
</div>
|
||
|
</div><p>
|
||
13 years ago
|
<hr size="1"><address style="align: right;"><small>Generated on Thu Nov 30 09:32:31 2006 for TQScintilla by
|
||
13 years ago
|
<a href="http://www.doxygen.org/index.html">
|
||
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
|
||
|
</body>
|
||
|
</html>
|