Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 1f9eb832ba1e4b88d9a5c2b384813bb4 > files > 2631

kdelibs3-apidocs-3.5.10-31.fc15.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US">

<head>
  <title>kdeprint: KPrinter Class Reference (kdeprint)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <meta http-equiv="Content-Style-Type" content="text/css" />

  <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org"  r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org"  r (n 0 s 0 v 0 l 0))' />

  <meta name="trademark" content="KDE e.V." />
  <meta name="description" content="K Desktop Environment Homepage, KDE.org" />
  <meta name="MSSmartTagsPreventParsing" content="true" />
  <meta name="robots" content="all" />

  <link rel="shortcut icon" href="../../favicon.ico" />

<link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" />



</head>

<body>

<div id="nav_header_top" align="right">
  <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a>

  <a href="../.."><img id="nav_header_logo" alt="Home" align="left" src="../../kde_gear_64.png" border="0" /></a>
  <span class="doNotDisplay">::</span>

  <div id="nav_header_title" align="left">KDE API Reference</div>


</div>

<div id="nav_header_bottom" align="right">
  <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span>
  <div id="nav_header_bottom_right" style="text-align: left;">
/ <a href="../..">API Reference</a>
 / <a href=".">kdeprint</a>
  </div>
</div>


<table id="main" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
      <td valign="top" class="menuheader" height="0"></td>

  <td id="contentcolumn" valign="top" rowspan="2" >
    <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;">
    <a name="content"></a>


<!-- Generated by Doxygen 1.7.4 -->
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle">
<div class="title">KPrinter Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="KPrinter" --><!-- doxytag: inherits="QPaintDevice,KPReloadObject" -->
<p>This class is the main interface to access the KDE print framework.  
 <a href="classKPrinter.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="kprinter_8h_source.html">kprinter.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for KPrinter:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classKPrinter.png" usemap="#KPrinter_map" alt=""/>
  <map id="KPrinter_map" name="KPrinter_map">
<area href="qpaintdevice.html" alt="QPaintDevice" shape="rect" coords="0,0,90,24"/>
</map>
 </div></div>

<p><a href="classKPrinter-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a5aac9a81bc890f76dce1b3e59e8e3755">StandardPageType</a> { <b>CopiesPage</b> =  0x01, 
<b>FilesPage</b> =  0x02, 
<b>Custom</b> =  0x10
 }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a7c59f005bf28b7cf7888b161f0b0cb4d">PageSelectionType</a> { <b>ApplicationSide</b> =  0x01, 
<b>SystemSide</b> =  0x02
 }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a42d86b7b7d9c88237937748d7c128355">ApplicationType</a> { <b>Dialog</b> =  0x00, 
<b>StandAlone</b> =  0x01, 
<b>StandAlonePersistent</b> =  0x02
 }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a7f6940c97f979952f1099b0764e43961">PageSetType</a> { <b>AllPages</b> =  0x00, 
<b>OddPages</b> =  0x01, 
<b>EvenPages</b> =  0x02
 }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#aa6719cf21322ecd0bca4fc764d7ecd7c">CollateType</a> { <b>Collate</b> =  0x00, 
<b>Uncollate</b> =  0x01
 }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#acfe1b1ece0fa03e0758697feade17c20">ColorMode</a> { <b>GrayScale</b> =  QPrinter::GrayScale, 
<b>Color</b> =  QPrinter::Color
 }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#af41ac751bb785b2c998255180035ad89">Orientation</a> { <b>Portrait</b> =  QPrinter::Portrait, 
<b>Landscape</b> =  QPrinter::Landscape
 }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#ab2c3814253a64f1d9f318571e9cbe22f">PageOrder</a> { <b>FirstPageFirst</b> =  QPrinter::FirstPageFirst, 
<b>LastPageFirst</b> =  QPrinter::LastPageFirst
 }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a14bad784daffaf6f9722907ed3c0d35b">PageSize</a> { <br/>
&#160;&#160;<b>A4</b> =  QPrinter::A4, 
<b>B5</b> =  QPrinter::B5, 
<b>Letter</b> =  QPrinter::Letter, 
<b>Legal</b> =  QPrinter::Legal, 
<br/>
&#160;&#160;<b>Executive</b> =  QPrinter::Executive, 
<b>A0</b> =  QPrinter::A0, 
<b>A1</b> =  QPrinter::A1, 
<b>A2</b> =  QPrinter::A2, 
<br/>
&#160;&#160;<b>A3</b> =  QPrinter::A3, 
<b>A5</b> =  QPrinter::A5, 
<b>A6</b> =  QPrinter::A6, 
<b>A7</b> =  QPrinter::A7, 
<br/>
&#160;&#160;<b>A8</b> =  QPrinter::A8, 
<b>A9</b> =  QPrinter::A9, 
<b>B0</b> =  QPrinter::B0, 
<b>B1</b> =  QPrinter::B1, 
<br/>
&#160;&#160;<b>B10</b> =  QPrinter::B10, 
<b>B2</b> =  QPrinter::B2, 
<b>B3</b> =  QPrinter::B3, 
<b>B4</b> =  QPrinter::B4, 
<br/>
&#160;&#160;<b>B6</b> =  QPrinter::B6, 
<b>B7</b> =  QPrinter::B7, 
<b>B8</b> =  QPrinter::B8, 
<b>B9</b> =  QPrinter::B9, 
<br/>
&#160;&#160;<b>C5E</b> =  QPrinter::C5E, 
<b>Comm10E</b> =  QPrinter::Comm10E, 
<b>DLE</b> =  QPrinter::DLE, 
<b>Folio</b> =  QPrinter::Folio, 
<br/>
&#160;&#160;<b>Ledger</b> =  QPrinter::Ledger, 
<b>Tabloid</b> =  QPrinter::Tabloid, 
<b>NPageSize</b> =  QPrinter::NPageSize
<br/>
 }</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a1f8ea151e7b11fa0b252747a9d57e014">KPrinter</a> (bool restore=true, QPrinter::PrinterMode m=QPrinter::ScreenResolution)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#ae8e7e8e8bdd1143a0e021082b0d5934d">~KPrinter</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a1171e68e882bccf8746198c1d8a305e3">newPage</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#aae6db91434af7f5554363fb23fd4ef4d">abort</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a4c84e8e30ad97155914b59b88298cfcc">aborted</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#adfe897914d6be489a7d70102496a8bae">outputToFile</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a726f87792683bdcb335164d2fade151b">setOutputToFile</a> (bool)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a17bb43798803db343148c43826c6924e">outputFileName</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#af2602407b1ee43d2b8dd53d5e71b0a50">setOutputFileName</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#aeeeca49093fbecea784d4d3afd6967be">docName</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a5308d52128c3a2054799cf9afc13ddbf">setDocName</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a0b17587ffcf63d147c6c4e0cffc59ab7">creator</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#af1739e0dcfb11bd6c01f1fe859d8ce1a">setCreator</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a3eec43ebda3c2e6628a241792e46e9e0">fullPage</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a3f550f10ccc358ad06de1299ce66a2b9">setFullPage</a> (bool)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKPrinter.html#acfe1b1ece0fa03e0758697feade17c20">ColorMode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a0fa2ae3d6081ec3a8d081455c8a3f954">colorMode</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a7896574c528e84b29d696f0268056dae">setColorMode</a> (<a class="el" href="classKPrinter.html#acfe1b1ece0fa03e0758697feade17c20">ColorMode</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#aa6946fd1f3c4d8ff005ad7a6d0c4ee1c">numCopies</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a5f2cbb7d800ca1872880fbc36531a679">setNumCopies</a> (int n)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKPrinter.html#af41ac751bb785b2c998255180035ad89">Orientation</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a254dc41b19b57f78276010ed80055341">orientation</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#af18187b482d5996f32d34ac67caa4ee8">setOrientation</a> (<a class="el" href="classKPrinter.html#af41ac751bb785b2c998255180035ad89">Orientation</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKPrinter.html#ab2c3814253a64f1d9f318571e9cbe22f">PageOrder</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#acb61517a6f1fab18ccac4a3fbc618b6d">pageOrder</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a6f889a07ae2693cd8b896066df49bec0">setPageOrder</a> (<a class="el" href="classKPrinter.html#ab2c3814253a64f1d9f318571e9cbe22f">PageOrder</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKPrinter.html#aa6719cf21322ecd0bca4fc764d7ecd7c">CollateType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a3c278417693195b889362bfe130a8692">collate</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#afe9b2f314d6221066a970eab974da18c">setCollate</a> (<a class="el" href="classKPrinter.html#aa6719cf21322ecd0bca4fc764d7ecd7c">CollateType</a> type)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a752a5bdc83ca4e7628caf855c1ee0f08">minPage</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#ac5152fd05c0841958433d97552431442">maxPage</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#ac8d702b046bbbd7a2c46db7940fdc08f">setMinMax</a> (int, int)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a599f9cbe79076c619a69ccdabff6c08c">fromPage</a> () const KDE_DEPRECATED</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#ae17368cf1218e437fa4181449656fbd9">toPage</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a55e81218bb26d3986d1a01e04cbb64a9">setFromTo</a> (int, int)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKPrinter.html#a14bad784daffaf6f9722907ed3c0d35b">PageSize</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a943525e8337dc7c1df37ce2e3033c2be">pageSize</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a2053831dec48bf330b41547ca72227c6">setPageSize</a> (<a class="el" href="classKPrinter.html#a14bad784daffaf6f9722907ed3c0d35b">PageSize</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a3535ad8e5bcb9f71983085ac40b4dab0">printerName</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#aad4149a203b4c77dc959e1c30b80acbc">setPrinterName</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a234a9844c16dafa1cbc544f41acd62a3">printProgram</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a31fe9e053c99b4e88e042a0500e62192">setPrintProgram</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;cmd)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a6002c82515146f05c7966c446af0a61c">printerSelectionOption</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a25cd794aa9c09ea1c20d80dfadf8a6ab">setPrinterSelectionOption</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#ac30ce3d0a62d69abef8599f9ce2eb533">currentPage</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#ae4bba3fd8cd042733814776c5c22326c">setCurrentPage</a> (int p=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKPrinter.html#a7f6940c97f979952f1099b0764e43961">PageSetType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#ab08533094878a1cf2cb20a6216080b65">pageSet</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a26976f55d230788ebf1ad2172f2f6e6d">setup</a> (<a class="elRef" href="qwidget.html">QWidget</a> *parent=0, const <a class="elRef" href="qstring.html">QString</a> &amp;caption=QString::null, bool forceExpand=false)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qsize.html">QSize</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a4e5a1ba05b3bf9b1b3864b94806691e6">margins</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a18784d6f47e2213b172d405492c85ffe">setMargins</a> (<a class="elRef" href="qsize.html">QSize</a> m)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qsize.html">QSize</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a7b939b57da4d5d247c49fb0a85f5ab99">realPageSize</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a2aed8fa276ace8a2a1b17ad8459f9331">setRealPageSize</a> (<a class="elRef" href="qsize.html">QSize</a> p)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#acf58fa896b6dbb4fdcf8b42ae744dcce">setRealDrawableArea</a> (const <a class="elRef" href="qrect.html">QRect</a> &amp;r)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qrect.html">QRect</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a35bc5ba02ab26f22a3b0c6f93f881adb">realDrawableArea</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a308bdfe1a92cab556d2df48e76c5faf2"></a><!-- doxytag: member="KPrinter::margins" ref="a308bdfe1a92cab556d2df48e76c5faf2" args="(uint *top, uint *left, uint *bottom, uint *right) const " -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>margins</b> (uint *top, uint *left, uint *bottom, uint *right) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9a227eefb5b97b1ea6eda79290fa93f3"></a><!-- doxytag: member="KPrinter::setMargins" ref="a9a227eefb5b97b1ea6eda79290fa93f3" args="(uint top, uint left, uint bottom, uint right)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>setMargins</b> (uint top, uint left, uint bottom, uint right)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qvaluelist.html">QValueList</a>&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a96ffeb8f69c66c5d30a67d96facc8c4d">pageList</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#aadfbba392035d311c4388ce00df0da7f">setPreviewOnly</a> (bool on)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a742f18961faec99d34b8da68975d994c">previewOnly</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#aaf40b2a20707f8b043e85fd8c0274109">setResolution</a> (int dpi)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a5fc70b55c17254190eed4545f11488c5">resolution</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#ae94c9f3aa6a72ddaf2a80454c0c1813d">setUsePrinterResolution</a> (bool on)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">KPrinterImpl *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a5e0f54e26ca5a2ff9822cd70887071d7">implementation</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#ae592e741799547bb58f044fc04ea1543">printFiles</a> (const <a class="elRef" href="qstringlist.html">QStringList</a> &amp;files, bool removeafter=false, bool startviewer=true)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a8aa402c9f0f6cea036252afb9a5c1057">option</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;key) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#acd9c70f6a4143fbcb084f08ff4e7441f">setOption</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;key, const <a class="elRef" href="qstring.html">QString</a> &amp;value)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="elRef" href="qmap.html">QMap</a>&lt; <a class="elRef" href="qstring.html">QString</a>, <a class="elRef" href="qstring.html">QString</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#ab74b06883bd3aeed3a0f8d1d22e5bcff">options</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a689ca281f262e253bd3b22ada060ec1c">setOptions</a> (const <a class="elRef" href="qmap.html">QMap</a>&lt; <a class="elRef" href="qstring.html">QString</a>, <a class="elRef" href="qstring.html">QString</a> &gt; &amp;opts)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a6593e3ff6779399074908296bb5bdb95">initOptions</a> (const <a class="elRef" href="qmap.html">QMap</a>&lt; <a class="elRef" href="qstring.html">QString</a>, <a class="elRef" href="qstring.html">QString</a> &gt; &amp;opts)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a4fa5ba95b3fe452e27f5c4ad84b25a05">searchName</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#ae4ebbe35a92ba37bc7500c2ee2034389">setSearchName</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;n)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#aa8931f6878ba40f1e248e549bdb4b021">errorMessage</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a9a3c2e6176797e69b158edac2f6a7868">setErrorMessage</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;msg)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#af0a86c9b60878eea68401e16d8fab3af">autoConfigure</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;prname=QString::null, <a class="elRef" href="qwidget.html">QWidget</a> *parent=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a8c00510380a19b1474adbf158108b8ec">setDocFileName</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;filename)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a1c1086eecac25c93a800367e50da1739">docFileName</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a3f630e9701046916835f0d7796704a6f">setDocDirectory</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;dir)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a32d22be3b5e589e04ccf00c00e80c66e">docDirectory</a> () const </td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a53ad09a804a214109f206eaea58cade7">addDialogPage</a> (<a class="el" href="classKPrintDialogPage.html">KPrintDialogPage</a> *_page)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#af575cae0694de359c43a147e983354bc">setPageSelection</a> (<a class="el" href="classKPrinter.html#a7c59f005bf28b7cf7888b161f0b0cb4d">PageSelectionType</a> _mode)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classKPrinter.html#a7c59f005bf28b7cf7888b161f0b0cb4d">PageSelectionType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#acc152e94ba787c1c6460cab9daae8b17">pageSelection</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#ad42130fc4bc2630cf16dfc0c92e044c7">setApplicationType</a> (<a class="el" href="classKPrinter.html#a42d86b7b7d9c88237937748d7c128355">ApplicationType</a> type)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classKPrinter.html#a42d86b7b7d9c88237937748d7c128355">ApplicationType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#adb4716090b361f154a9b9dbc328b74d2">applicationType</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#af69ddc3443ad3d9c40abc26ffdef6b87">addStandardPage</a> (int p)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a149d52b98c0bfb8a56fa02b13c6eefdc">removeStandardPage</a> (int p)</td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4044aed3b1bcd863c3df66286ec0316d"></a><!-- doxytag: member="KPrinter::cmd" ref="a4044aed3b1bcd863c3df66286ec0316d" args="(int, QPainter *, QPDevCmdParam *)" -->
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><b>cmd</b> (int, <a class="elRef" href="qpainter.html">QPainter</a> *, QPDevCmdParam *)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a08db757f1fe58a7a1bd91b8f9b8c938f"></a><!-- doxytag: member="KPrinter::metric" ref="a08db757f1fe58a7a1bd91b8f9b8c938f" args="(int) const " -->
virtual int&#160;</td><td class="memItemRight" valign="bottom"><b>metric</b> (int) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrinter.html#a0891873329771d4e9f34459e85e7a554">translateQtOptions</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad8b2d541ca6ac67fe5b22dc88170996b"></a><!-- doxytag: member="KPrinter::loadSettings" ref="ad8b2d541ca6ac67fe5b22dc88170996b" args="()" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>loadSettings</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a22d73534cb318e318b67dd5ac873e3dc"></a><!-- doxytag: member="KPrinter::saveSettings" ref="a22d73534cb318e318b67dd5ac873e3dc" args="()" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>saveSettings</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aae23aef910da5197e4caec0cd129a497"></a><!-- doxytag: member="KPrinter::preparePrinting" ref="aae23aef910da5197e4caec0cd129a497" args="()" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>preparePrinting</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad8c8b68dea8ad6c64502653901b8d159"></a><!-- doxytag: member="KPrinter::finishPrinting" ref="ad8c8b68dea8ad6c64502653901b8d159" args="()" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>finishPrinting</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a762ab46d7ef1076efbe1a076fb4ba6d3"></a><!-- doxytag: member="KPrinter::reload" ref="a762ab46d7ef1076efbe1a076fb4ba6d3" args="()" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>reload</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7fb9b75dbc142d4e5b7c722025f86a25"></a><!-- doxytag: member="KPrinter::init" ref="a7fb9b75dbc142d4e5b7c722025f86a25" args="(bool restore=true, QPrinter::PrinterMode m=QPrinter::ScreenResolution)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>init</b> (bool restore=true, QPrinter::PrinterMode m=QPrinter::ScreenResolution)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa8a1e0e36660e41684bac7da6100dec5"></a><!-- doxytag: member="KPrinter::doPreview" ref="aa8a1e0e36660e41684bac7da6100dec5" args="(const QString &amp;file)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>doPreview</b> (const <a class="elRef" href="qstring.html">QString</a> &amp;file)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a002a0e0f38ccc934c935bde53ae1cebf"></a><!-- doxytag: member="KPrinter::setRealPageSize" ref="a002a0e0f38ccc934c935bde53ae1cebf" args="(DrPageSize *p)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>setRealPageSize</b> (DrPageSize *p)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa988e15c5af4d6b324278d8a8aa2718f"></a><!-- doxytag: member="KPrinter::setOption" ref="aa988e15c5af4d6b324278d8a8aa2718f" args="(const QString &amp;key, const QString &amp;value, bool broadcast)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>setOption</b> (const <a class="elRef" href="qstring.html">QString</a> &amp;key, const <a class="elRef" href="qstring.html">QString</a> &amp;value, bool broadcast)</td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7790a836dcd2ad266801f0450e92639e"></a><!-- doxytag: member="KPrinter::d" ref="a7790a836dcd2ad266801f0450e92639e" args="" -->
KPrinterPrivate *&#160;</td><td class="memItemRight" valign="bottom"><b>d</b></td></tr>
<tr><td colspan="2"><h2><a name="friends"></a>
Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af148c34d30caf5143c2839661ab79c9a"></a><!-- doxytag: member="KPrinter::KPrinterWrapper" ref="af148c34d30caf5143c2839661ab79c9a" args="" -->
class&#160;</td><td class="memItemRight" valign="bottom"><b>KPrinterWrapper</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa68003a936f5e29c7cb388f7992d253b"></a><!-- doxytag: member="KPrinter::KPrinterImpl" ref="aa68003a936f5e29c7cb388f7992d253b" args="" -->
class&#160;</td><td class="memItemRight" valign="bottom"><b>KPrinterImpl</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>This class is the main interface to access the KDE print framework. </p>
<p>It allows KDE applications to easily access the print system, through an interface that is compatible with <a class="elRef" href="qprinter.html">QPrinter</a>. So that the porting of an existing application should be as easy as replacing any occurrence of <a class="elRef" href="qprinter.html">QPrinter</a> by <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a>. However applications that explicitly used the QPrintDialog class must be changed to the standard <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> way of accessing the print dialog.</p>
<p>Basically, a KDE application will use the <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object as a paint device, and will draw on it using <a class="elRef" href="qpainter.html">QPainter</a>. In a standard application, the use of the <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> class will look like this: </p>
<div class="fragment"><pre class="fragment"><span class="preprocessor"> #include &lt;kprinter.h&gt;</span>
<span class="preprocessor"> #include &lt;qpainter.h&gt;</span>

 <span class="keywordtype">void</span> MyClass::doPrint()
 {
   <a class="code" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> printer;

   <span class="comment">// do some printer initialization</span>
   printer.<a class="code" href="classKPrinter.html#a3f550f10ccc358ad06de1299ce66a2b9" title="See QPrinter::setFullPage().">setFullPage</a>( <span class="keyword">true</span> );

   <span class="comment">// initialize the printer using the print dialog</span>
   <span class="keywordflow">if</span> ( printer.<a class="code" href="classKPrinter.html#a26976f55d230788ebf1ad2172f2f6e6d" title="Sets up the KPrinter object using the print dialog, returns true if the user clicked OK...">setup</a>( <span class="keyword">this</span> ) )
   {
     <span class="comment">// create a painter to paint on the printer object</span>
     <a class="codeRef" href="qpainter.html">QPainter</a> painter;

     <span class="comment">// start painting</span>
     painter.<a class="codeRef" href="qpainter.html#begin">begin</a>( &amp;printer );
     &lt;<span class="keywordflow">do</span> something&gt;
     <span class="comment">// stop painting, this will automatically send the print data to the printer</span>
     painter.<a class="codeRef" href="qpainter.html#end">end</a>();
   }
 }
</pre></div><p>The <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> interface also allows some more advanced possibilities, like the customization of the print dialog to integrate application specific print options. This is done by subclassing <a class="el" href="classKPrintDialogPage.html" title="This class is intended to be used as base class for customized print dialog page.">KPrintDialogPage</a> and adding the page using <a class="el" href="classKPrinter.html#a53ad09a804a214109f206eaea58cade7" title="Adds a customized page to the print dialog.">addDialogPage()</a>.</p>
<p>When compiling an application that uses <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a>, you must link to -lkdeprint, which when using the standard KDE build framework can be done by adding  to _LDADD.</p>
<p>The central interface class to access the KDE print system. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>Michael Goffioul </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="elRef" href="qprinter.html">QPrinter</a>, <a class="el" href="classKPrintDialogPage.html" title="This class is intended to be used as base class for customized print dialog page.">KPrintDialogPage</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8h_source.html#l00088">88</a> of file <a class="el" href="kprinter_8h_source.html">kprinter.h</a>.</p>
</div><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a42d86b7b7d9c88237937748d7c128355"></a><!-- doxytag: member="KPrinter::ApplicationType" ref="a42d86b7b7d9c88237937748d7c128355" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKPrinter.html#a42d86b7b7d9c88237937748d7c128355">KPrinter::ApplicationType</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Defines the type of the application, this affects the GUI of the print dialog: </p>
<ul>
<li><code>Dialog:</code> print dialog used in an application (default) </li>
<li><code>StandAlone:</code> print dialog used as a standalone widget </li>
<li><code>StandAlonePersistent:</code> print dialog used as standalone widget, but persistent (do not use) </li>
</ul>

<p>Definition at line <a class="el" href="kprinter_8h_source.html#l00126">126</a> of file <a class="el" href="kprinter_8h_source.html">kprinter.h</a>.</p>

</div>
</div>
<a class="anchor" id="aa6719cf21322ecd0bca4fc764d7ecd7c"></a><!-- doxytag: member="KPrinter::CollateType" ref="aa6719cf21322ecd0bca4fc764d7ecd7c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKPrinter.html#aa6719cf21322ecd0bca4fc764d7ecd7c">KPrinter::CollateType</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Defines the collate property of the printer (if supported by the print system): </p>
<ul>
<li><code>Collate:</code> copies collated (1-2-3-..., 1-2-3-...) </li>
<li><code>Uncollate:</code> copies uncollated (1-1-..., 2-2-..., 3-3-...)</li>
</ul>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#afe9b2f314d6221066a970eab974da18c" title="Sets the collate status for the current KPrinter to type.">setCollate()</a>, <a class="el" href="classKPrinter.html#a3c278417693195b889362bfe130a8692" title="Returns the collate status of the current KPrinter.">collate()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8h_source.html#l00145">145</a> of file <a class="el" href="kprinter_8h_source.html">kprinter.h</a>.</p>

</div>
</div>
<a class="anchor" id="acfe1b1ece0fa03e0758697feade17c20"></a><!-- doxytag: member="KPrinter::ColorMode" ref="acfe1b1ece0fa03e0758697feade17c20" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKPrinter.html#acfe1b1ece0fa03e0758697feade17c20">KPrinter::ColorMode</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Defines the color mode of the printer. </p>
<dl class="see"><dt><b>See also:</b></dt><dd>QPrinter::ColorMode </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8h_source.html#l00152">152</a> of file <a class="el" href="kprinter_8h_source.html">kprinter.h</a>.</p>

</div>
</div>
<a class="anchor" id="af41ac751bb785b2c998255180035ad89"></a><!-- doxytag: member="KPrinter::Orientation" ref="af41ac751bb785b2c998255180035ad89" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKPrinter.html#af41ac751bb785b2c998255180035ad89">KPrinter::Orientation</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Defines the orientation of the paper. </p>
<dl class="see"><dt><b>See also:</b></dt><dd>QPrinter::Orientation </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8h_source.html#l00157">157</a> of file <a class="el" href="kprinter_8h_source.html">kprinter.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab2c3814253a64f1d9f318571e9cbe22f"></a><!-- doxytag: member="KPrinter::PageOrder" ref="ab2c3814253a64f1d9f318571e9cbe22f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKPrinter.html#ab2c3814253a64f1d9f318571e9cbe22f">KPrinter::PageOrder</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Defines the page order of the print job. </p>
<dl class="see"><dt><b>See also:</b></dt><dd>QPrinter::PageOrder </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8h_source.html#l00162">162</a> of file <a class="el" href="kprinter_8h_source.html">kprinter.h</a>.</p>

</div>
</div>
<a class="anchor" id="a7c59f005bf28b7cf7888b161f0b0cb4d"></a><!-- doxytag: member="KPrinter::PageSelectionType" ref="a7c59f005bf28b7cf7888b161f0b0cb4d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKPrinter.html#a7c59f005bf28b7cf7888b161f0b0cb4d">KPrinter::PageSelectionType</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Defines whether the application can perform page selection itself or not. </p>
<p>Some print systems (like CUPS) can do page selection, in this case the page selection will be enabled in the print dialog, otherwise it will be disabled. However some applications (word processor) can do page selection themselves, then it will be enabled in the print dialog, whatever the print system used. But such an application has to tell kdeprint about its feature: </p>
<ul>
<li><code>ApplicationSide:</code> the application will do page selection </li>
<li><code>SystemSide:</code> page selection will be left to the print system, if available (default)</li>
</ul>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#af575cae0694de359c43a147e983354bc" title="Sets the page selection mode of the application.">setPageSelection()</a>, <a class="el" href="classKPrinter.html#acc152e94ba787c1c6460cab9daae8b17" title="Returns the page selection mode of the current application.">pageSelection()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8h_source.html#l00116">116</a> of file <a class="el" href="kprinter_8h_source.html">kprinter.h</a>.</p>

</div>
</div>
<a class="anchor" id="a7f6940c97f979952f1099b0764e43961"></a><!-- doxytag: member="KPrinter::PageSetType" ref="a7f6940c97f979952f1099b0764e43961" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKPrinter.html#a7f6940c97f979952f1099b0764e43961">KPrinter::PageSetType</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Defines the page set to print: </p>
<ul>
<li><code>AllPages:</code> all pages </li>
<li><code>OddPages:</code> only odd pages </li>
<li><code>EvenPages:</code> only even pages</li>
</ul>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#ab08533094878a1cf2cb20a6216080b65" title="Returns the page set of the current KPrinter object.">pageSet()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8h_source.html#l00137">137</a> of file <a class="el" href="kprinter_8h_source.html">kprinter.h</a>.</p>

</div>
</div>
<a class="anchor" id="a14bad784daffaf6f9722907ed3c0d35b"></a><!-- doxytag: member="KPrinter::PageSize" ref="a14bad784daffaf6f9722907ed3c0d35b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKPrinter.html#a14bad784daffaf6f9722907ed3c0d35b">KPrinter::PageSize</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Defines the paper size to use. </p>
<dl class="see"><dt><b>See also:</b></dt><dd>QPrinter::PageSize </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8h_source.html#l00167">167</a> of file <a class="el" href="kprinter_8h_source.html">kprinter.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5aac9a81bc890f76dce1b3e59e8e3755"></a><!-- doxytag: member="KPrinter::StandardPageType" ref="a5aac9a81bc890f76dce1b3e59e8e3755" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKPrinter.html#a5aac9a81bc890f76dce1b3e59e8e3755">KPrinter::StandardPageType</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Defines the standard pages available for the print dialog: </p>
<ul>
<li><code>CopiesPage:</code> page and copies selection (included by default) </li>
<li><code>FilesPage:</code> file selection (only used by kprinter utility) </li>
<li><code>Custom:</code> unused</li>
</ul>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#af69ddc3443ad3d9c40abc26ffdef6b87" title="Adds a standard page to the print dialog.">addStandardPage()</a>, <a class="el" href="classKPrinter.html#a149d52b98c0bfb8a56fa02b13c6eefdc" title="Removes a standard page from the print dialog.">removeStandardPage()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8h_source.html#l00102">102</a> of file <a class="el" href="kprinter_8h_source.html">kprinter.h</a>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a1f8ea151e7b11fa0b252747a9d57e014"></a><!-- doxytag: member="KPrinter::KPrinter" ref="a1f8ea151e7b11fa0b252747a9d57e014" args="(bool restore=true, QPrinter::PrinterMode m=QPrinter::ScreenResolution)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KPrinter::KPrinter </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>restore</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QPrinter::PrinterMode&#160;</td>
          <td class="paramname"><em>m</em> = <code>QPrinter::ScreenResolution</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructor. </p>
<p>This also restores/saves the state from a previous <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object created within the same application run, if <code>restore</code> is true. Setting <code>restore</code> to false may be useful if you want an independent/clean <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">restore</td><td>if true, options will be restored/saved between successive <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> objects </td></tr>
    <tr><td class="paramname">m</td><td>the mode to establish the <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> in (see QPrinter::PrinterMode) </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00123">123</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ae8e7e8e8bdd1143a0e021082b0d5934d"></a><!-- doxytag: member="KPrinter::~KPrinter" ref="ae8e7e8e8bdd1143a0e021082b0d5934d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KPrinter::~KPrinter </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destructor. </p>
<p>This also saves the current <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> state for future printing. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00129">129</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aae6db91434af7f5554363fb23fd4ef4d"></a><!-- doxytag: member="KPrinter::abort" ref="aae6db91434af7f5554363fb23fd4ef4d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KPrinter::abort </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#abort">QPrinter::abort()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00932">932</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a4c84e8e30ad97155914b59b88298cfcc"></a><!-- doxytag: member="KPrinter::aborted" ref="a4c84e8e30ad97155914b59b88298cfcc" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KPrinter::aborted </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#aborted">QPrinter::aborted</a>(.) </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00935">935</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a53ad09a804a214109f206eaea58cade7"></a><!-- doxytag: member="KPrinter::addDialogPage" ref="a53ad09a804a214109f206eaea58cade7" args="(KPrintDialogPage *_page)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::addDialogPage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classKPrintDialogPage.html">KPrintDialogPage</a> *&#160;</td>
          <td class="paramname"><em>_page</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds a customized page to the print dialog. </p>
<p>The pages will appear in a tab widget in the bottom half of the dialog, along with the standard "Copies" page. The page must be created and added each time you want open a print dialog with <a class="el" href="classKPrinter.html#a26976f55d230788ebf1ad2172f2f6e6d" title="Sets up the KPrinter object using the print dialog, returns true if the user clicked OK...">setup()</a>. If you correctly reimplemented <a class="el" href="classKPrintDialogPage.html#a65f9bc8e1a12b23b13d53b5a4d759cc1" title="This function is called to update the current page with the options contained in opts.">KPrintDialogPage::setOptions()</a>, the settings will be restored from call to call, you don't have to worry about state saving/restoration. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_page</td><td>the page to add </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrintDialogPage.html#a65f9bc8e1a12b23b13d53b5a4d759cc1" title="This function is called to update the current page with the options contained in opts.">KPrintDialogPage::setOptions()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00250">250</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af69ddc3443ad3d9c40abc26ffdef6b87"></a><!-- doxytag: member="KPrinter::addStandardPage" ref="af69ddc3443ad3d9c40abc26ffdef6b87" args="(int p)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::addStandardPage </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds a standard page to the print dialog. </p>
<p>This is not useful yet as there's only one standard page defines <code>CopiesPage</code>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>the page identifier </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#a5aac9a81bc890f76dce1b3e59e8e3755" title="Defines the standard pages available for the print dialog:">StandardPageType</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00240">240</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="adb4716090b361f154a9b9dbc328b74d2"></a><!-- doxytag: member="KPrinter::applicationType" ref="adb4716090b361f154a9b9dbc328b74d2" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKPrinter.html#a42d86b7b7d9c88237937748d7c128355">KPrinter::ApplicationType</a> KPrinter::applicationType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the application type concerning the print dialog. </p>
<p>For internal use only. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the type for the current application </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#ad42130fc4bc2630cf16dfc0c92e044c7" title="Sets the application type concerning the print dialog.">setApplicationType()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00270">270</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af0a86c9b60878eea68401e16d8fab3af"></a><!-- doxytag: member="KPrinter::autoConfigure" ref="af0a86c9b60878eea68401e16d8fab3af" args="(const QString &amp;prname=QString::null, QWidget *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KPrinter::autoConfigure </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>prname</em> = <code>QString::null</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="qwidget.html">QWidget</a> *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Configure the <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object to be used with the printer named <code>prname</code>. </p>
<p>After the call, the <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object can be used without the need to call the print dialog. If <code>prname</code> is empty, then the <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object is configured for the default printer. If <code>prname</code> corresponds to a pseudo-printer which needs an output file, a file dialog will be used. In that case, providing a parent widget for that dialog in <code>parent</code> may be useful. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">prname</td><td>the name of the printer for which the <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object has to be configured </td></tr>
    <tr><td class="paramname">parent</td><td>a parent widget, used a parent for a file dialog </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>boolean flag: if false, the <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> has not been correctly set up, and the application shouldn't use it to print. This may happen if the printer named <code>prname</code> has not been found or if the user clicked "Cancel" in the file dialog. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#a26976f55d230788ebf1ad2172f2f6e6d" title="Sets up the KPrinter object using the print dialog, returns true if the user clicked OK...">setup()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00667">667</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a3c278417693195b889362bfe130a8692"></a><!-- doxytag: member="KPrinter::collate" ref="a3c278417693195b889362bfe130a8692" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKPrinter.html#aa6719cf21322ecd0bca4fc764d7ecd7c">KPrinter::CollateType</a> KPrinter::collate </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the collate status of the current <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00827">827</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a0fa2ae3d6081ec3a8d081455c8a3f954"></a><!-- doxytag: member="KPrinter::colorMode" ref="a0fa2ae3d6081ec3a8d081455c8a3f954" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKPrinter.html#acfe1b1ece0fa03e0758697feade17c20">KPrinter::ColorMode</a> KPrinter::colorMode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#colorMode">QPrinter::colorMode()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00809">809</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a0b17587ffcf63d147c6c4e0cffc59ab7"></a><!-- doxytag: member="KPrinter::creator" ref="a0b17587ffcf63d147c6c4e0cffc59ab7" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KPrinter::creator </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#creator">QPrinter::creator()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00797">797</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ac30ce3d0a62d69abef8599f9ce2eb533"></a><!-- doxytag: member="KPrinter::currentPage" ref="ac30ce3d0a62d69abef8599f9ce2eb533" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KPrinter::currentPage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current page number. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#ae4bba3fd8cd042733814776c5c22326c" title="Sets the current page number.">setCurrentPage()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00858">858</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a32d22be3b5e589e04ccf00c00e80c66e"></a><!-- doxytag: member="KPrinter::docDirectory" ref="a32d22be3b5e589e04ccf00c00e80c66e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KPrinter::docDirectory </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the default document directory, that is the directory used for any output file. </p>
<p>By default, it is the $HOME directory. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the default output directory </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#a3f630e9701046916835f0d7796704a6f" title="Set the default document directory.">setDocDirectory</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l01032">1032</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a1c1086eecac25c93a800367e50da1739"></a><!-- doxytag: member="KPrinter::docFileName" ref="a1c1086eecac25c93a800367e50da1739" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KPrinter::docFileName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the default document filename, that is the default basename used for the output file. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the default document basename </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#a8c00510380a19b1474adbf158108b8ec" title="Set the default document filename.">setDocFileName()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l01026">1026</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aeeeca49093fbecea784d4d3afd6967be"></a><!-- doxytag: member="KPrinter::docName" ref="aeeeca49093fbecea784d4d3afd6967be" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KPrinter::docName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#docName">QPrinter::docName()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00791">791</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aa8931f6878ba40f1e248e549bdb4b021"></a><!-- doxytag: member="KPrinter::errorMessage" ref="aa8931f6878ba40f1e248e549bdb4b021" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KPrinter::errorMessage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the last error message issued by the print system. </p>
<p>Unimplemented yet. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the last error message </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l01007">1007</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a599f9cbe79076c619a69ccdabff6c08c"></a><!-- doxytag: member="KPrinter::fromPage" ref="a599f9cbe79076c619a69ccdabff6c08c" args="() const KDE_DEPRECATED" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KPrinter::fromPage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the first page to be printed. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000002">Deprecated:</a></b></dt><dd>Applications should use <a class="el" href="classKPrinter.html#a96ffeb8f69c66c5d30a67d96facc8c4d" title="Returns the page list to be printed, correpsonding to the options selected by the user...">pageList()</a> instead, which takes into account all options: collate, page order, ranges, page set, ...</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#a96ffeb8f69c66c5d30a67d96facc8c4d" title="Returns the page list to be printed, correpsonding to the options selected by the user...">pageList()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00842">842</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a3eec43ebda3c2e6628a241792e46e9e0"></a><!-- doxytag: member="KPrinter::fullPage" ref="a3eec43ebda3c2e6628a241792e46e9e0" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KPrinter::fullPage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#fullPage">QPrinter::fullPage()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00803">803</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a5e0f54e26ca5a2ff9822cd70887071d7"></a><!-- doxytag: member="KPrinter::implementation" ref="a5e0f54e26ca5a2ff9822cd70887071d7" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KPrinterImpl * KPrinter::implementation </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>For internal use only. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00782">782</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a6593e3ff6779399074908296bb5bdb95"></a><!-- doxytag: member="KPrinter::initOptions" ref="a6593e3ff6779399074908296bb5bdb95" args="(const QMap&lt; QString, QString &gt; &amp;opts)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::initOptions </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qmap.html">QMap</a>&lt; <a class="elRef" href="qstring.html">QString</a>, <a class="elRef" href="qstring.html">QString</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>opts</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>For internal use only. </p>
<p>Does a similar job as <a class="el" href="classKPrinter.html#acd9c70f6a4143fbcb084f08ff4e7441f" title="Adds or modifies an option in the KPrinter object.">setOption()</a>, except that all possible internal printers are initialized with the option if it has the form "kde-...". </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">opts</td><td>the option set </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#a689ca281f262e253bd3b22ada060ec1c" title="Sets the option set in one operation.">setOptions()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00645">645</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a4e5a1ba05b3bf9b1b3864b94806691e6"></a><!-- doxytag: member="KPrinter::margins" ref="a4e5a1ba05b3bf9b1b3864b94806691e6" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qsize.html">QSize</a> KPrinter::margins </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#margins">QPrinter::margins()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00550">550</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ac5152fd05c0841958433d97552431442"></a><!-- doxytag: member="KPrinter::maxPage" ref="ac5152fd05c0841958433d97552431442" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KPrinter::maxPage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#maxPage">QPrinter::maxPage()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00836">836</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a752a5bdc83ca4e7628caf855c1ee0f08"></a><!-- doxytag: member="KPrinter::minPage" ref="a752a5bdc83ca4e7628caf855c1ee0f08" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KPrinter::minPage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#minPage">QPrinter::minPage()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00833">833</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a1171e68e882bccf8746198c1d8a305e3"></a><!-- doxytag: member="KPrinter::newPage" ref="a1171e68e882bccf8746198c1d8a305e3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KPrinter::newPage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#newPage">QPrinter::newPage()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00906">906</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aa6946fd1f3c4d8ff005ad7a6d0c4ee1c"></a><!-- doxytag: member="KPrinter::numCopies" ref="aa6946fd1f3c4d8ff005ad7a6d0c4ee1c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KPrinter::numCopies </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#numCopies">QPrinter::numCopies()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00543">543</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a8aa402c9f0f6cea036252afb9a5c1057"></a><!-- doxytag: member="KPrinter::option" ref="a8aa402c9f0f6cea036252afb9a5c1057" args="(const QString &amp;key) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="elRef" href="qstring.html">QString</a> &amp; KPrinter::option </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>key</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Starts the add printer wizard. </p>
<p>This utility function allows any application for adding a printer using the KDEPrint powerful wizard. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>the parent widget for the wizard </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>1: success, 0: cancel, -1: error The <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object stores all its settings in an internal <a class="elRef" href="qmap.html">QMap</a> structure on <a class="elRef" href="qstring.html">QString</a>. This allows to store any property. This method allows an application to access any print option from the <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object, using the option name. For example if your application add a customized page to the print dialog, this page will saves its settings into the <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object using this <a class="elRef" href="qmap.html">QMap&lt;QString,QString&gt;</a> structure. After showing the print dialog, your application can then access these options using this method. The custom option name should follow the form "kde-appname-optionname". <div class="fragment"><pre class="fragment"> <span class="keywordtype">void</span> MyClass::doPrint()
 {
   <a class="code" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> prt;

   <span class="comment">// add my custom page</span>
   prt.<a class="code" href="classKPrinter.html#a53ad09a804a214109f206eaea58cade7" title="Adds a customized page to the print dialog.">addDialogPage</a>( <span class="keyword">new</span> MyDialogPage() );

   <span class="comment">// open print dialog</span>
   <span class="keywordflow">if</span> ( prt.<a class="code" href="classKPrinter.html#a26976f55d230788ebf1ad2172f2f6e6d" title="Sets up the KPrinter object using the print dialog, returns true if the user clicked OK...">setup</a>( <span class="keyword">this</span> ) )
   {
      <a class="codeRef" href="qstring.html">QString</a> fntname = prt.<a class="code" href="classKPrinter.html#a8aa402c9f0f6cea036252afb9a5c1057" title="Starts the add printer wizard.">option</a>( <span class="stringliteral">&quot;kde-myapp-fontname&quot;</span> );
      ...
      do_something;
      ...
   }
 }
</pre></div> </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>the option name (key) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the option value correponding to the key, or QString::null </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrintDialogPage.html" title="This class is intended to be used as base class for customized print dialog page.">KPrintDialogPage</a>, <a class="el" href="classKPrinter.html#acd9c70f6a4143fbcb084f08ff4e7441f" title="Adds or modifies an option in the KPrinter object.">setOption</a>, <a class="el" href="classKPrinter.html#ab74b06883bd3aeed3a0f8d1d22e5bcff" title="Returns the complete set of print options from the KPrinter object.">options()</a>, <a class="el" href="classKPrinter.html#a689ca281f262e253bd3b22ada060ec1c" title="Sets the option set in one operation.">setOptions()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00785">785</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab74b06883bd3aeed3a0f8d1d22e5bcff"></a><!-- doxytag: member="KPrinter::options" ref="ab74b06883bd3aeed3a0f8d1d22e5bcff" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="elRef" href="qmap.html">QMap</a>&lt; <a class="elRef" href="qstring.html">QString</a>, <a class="elRef" href="qstring.html">QString</a> &gt; &amp; KPrinter::options </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the complete set of print options from the <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object. </p>
<p>For internal use. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the option set as a <a class="elRef" href="qmap.html">QMap</a> object </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00897">897</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a254dc41b19b57f78276010ed80055341"></a><!-- doxytag: member="KPrinter::orientation" ref="a254dc41b19b57f78276010ed80055341" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKPrinter.html#af41ac751bb785b2c998255180035ad89">KPrinter::Orientation</a> KPrinter::orientation </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#orientation">QPrinter::orientation()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00818">818</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a17bb43798803db343148c43826c6924e"></a><!-- doxytag: member="KPrinter::outputFileName" ref="a17bb43798803db343148c43826c6924e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KPrinter::outputFileName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#outputFileName">QPrinter::outputFileName()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00913">913</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="adfe897914d6be489a7d70102496a8bae"></a><!-- doxytag: member="KPrinter::outputToFile" ref="adfe897914d6be489a7d70102496a8bae" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KPrinter::outputToFile </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#outputToFile">QPrinter::outputToFile()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00919">919</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a96ffeb8f69c66c5d30a67d96facc8c4d"></a><!-- doxytag: member="KPrinter::pageList" ref="a96ffeb8f69c66c5d30a67d96facc8c4d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qvaluelist.html">QValueList</a>&lt; int &gt; KPrinter::pageList </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the page list to be printed, correpsonding to the options selected by the user. </p>
<p>This takes into account collate, page order, page set, ranges, ... This is useful when the application does page selection itself. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#ae4bba3fd8cd042733814776c5c22326c" title="Sets the current page number.">setCurrentPage()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00470">470</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="acb61517a6f1fab18ccac4a3fbc618b6d"></a><!-- doxytag: member="KPrinter::pageOrder" ref="acb61517a6f1fab18ccac4a3fbc618b6d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKPrinter.html#ab2c3814253a64f1d9f318571e9cbe22f">KPrinter::PageOrder</a> KPrinter::pageOrder </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#pageOrder">QPrinter::pageOrder()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00821">821</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="acc152e94ba787c1c6460cab9daae8b17"></a><!-- doxytag: member="KPrinter::pageSelection" ref="acc152e94ba787c1c6460cab9daae8b17" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKPrinter.html#a7c59f005bf28b7cf7888b161f0b0cb4d">KPrinter::PageSelectionType</a> KPrinter::pageSelection </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the page selection mode of the current application. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the page selection mode </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#af575cae0694de359c43a147e983354bc" title="Sets the page selection mode of the application.">setPageSelection()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00260">260</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab08533094878a1cf2cb20a6216080b65"></a><!-- doxytag: member="KPrinter::pageSet" ref="ab08533094878a1cf2cb20a6216080b65" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKPrinter.html#a7f6940c97f979952f1099b0764e43961">KPrinter::PageSetType</a> KPrinter::pageSet </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the page set of the current <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00855">855</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a943525e8337dc7c1df37ce2e3033c2be"></a><!-- doxytag: member="KPrinter::pageSize" ref="a943525e8337dc7c1df37ce2e3033c2be" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKPrinter.html#a14bad784daffaf6f9722907ed3c0d35b">KPrinter::PageSize</a> KPrinter::pageSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#pageSize">QPrinter::pageSize()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00852">852</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a742f18961faec99d34b8da68975d994c"></a><!-- doxytag: member="KPrinter::previewOnly" ref="a742f18961faec99d34b8da68975d994c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KPrinter::previewOnly </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the preview-only state for this <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#aadfbba392035d311c4388ce00df0da7f" title="Sets the KPrinter object to preview mode if on is true.">setPreviewOnly()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l01020">1020</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a3535ad8e5bcb9f71983085ac40b4dab0"></a><!-- doxytag: member="KPrinter::printerName" ref="a3535ad8e5bcb9f71983085ac40b4dab0" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KPrinter::printerName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#printerName">QPrinter::printerName()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00864">864</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a6002c82515146f05c7966c446af0a61c"></a><!-- doxytag: member="KPrinter::printerSelectionOption" ref="a6002c82515146f05c7966c446af0a61c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KPrinter::printerSelectionOption </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#printerSelectionOption">QPrinter::printerSelectionOption()</a>. </p>
<p>Unused. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00891">891</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ae592e741799547bb58f044fc04ea1543"></a><!-- doxytag: member="KPrinter::printFiles" ref="ae592e741799547bb58f044fc04ea1543" args="(const QStringList &amp;files, bool removeafter=false, bool startviewer=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KPrinter::printFiles </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstringlist.html">QStringList</a> &amp;&#160;</td>
          <td class="paramname"><em>files</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>removeafter</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>startviewer</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Prints the files given in argument. </p>
<p>This will first filter the files accorsing to the filtering options selected by the user in the print dialog, then send the filtered files to the printer with the print options selected. This function is called automatically when calling <a class="elRef" href="qpainter.html#end">QPainter::end()</a> for a painter object constructed on <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a>. In normal use, you don't need this use this function explicitly. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00358">358</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a234a9844c16dafa1cbc544f41acd62a3"></a><!-- doxytag: member="KPrinter::printProgram" ref="a234a9844c16dafa1cbc544f41acd62a3" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KPrinter::printProgram </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the print program as set by <a class="el" href="classKPrinter.html#a31fe9e053c99b4e88e042a0500e62192" title="Sets the command line to use when printing.">setPrintProgram()</a> or by the print dialog if a special printer has been selected. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the print command line </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#a31fe9e053c99b4e88e042a0500e62192" title="Sets the command line to use when printing.">setPrintProgram()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00870">870</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a35bc5ba02ab26f22a3b0c6f93f881adb"></a><!-- doxytag: member="KPrinter::realDrawableArea" ref="a35bc5ba02ab26f22a3b0c6f93f881adb" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qrect.html">QRect</a> KPrinter::realDrawableArea </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>DO NOT USE, WILL BE REMOVED. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000007">Deprecated:</a></b></dt><dd></dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00998">998</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a7b939b57da4d5d247c49fb0a85f5ab99"></a><!-- doxytag: member="KPrinter::realPageSize" ref="a7b939b57da4d5d247c49fb0a85f5ab99" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qsize.html">QSize</a> KPrinter::realPageSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the page size in dot unit ( 1 dot = 1/72th in ). </p>
<p>This method is intended for internal use, if you want to access actual page size, use a <a class="elRef" href="qpaintdevicemetrics.html">QPaintDeviceMetrics</a> object instead. Note that the size returned by this method does not take resolution into account, and that it can returns invalid size if no page metric was found in the printer driver. DO NOT USE, WILL BE REMOVED. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#a2aed8fa276ace8a2a1b17ad8459f9331" title="DO NOT USE, WILL BE REMOVED.">setRealPageSize</a> </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000004">Deprecated:</a></b></dt><dd></dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00953">953</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a149d52b98c0bfb8a56fa02b13c6eefdc"></a><!-- doxytag: member="KPrinter::removeStandardPage" ref="a149d52b98c0bfb8a56fa02b13c6eefdc" args="(int p)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::removeStandardPage </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Removes a standard page from the print dialog. </p>
<p>If your application doesn't want a standard page in the dialog, simply call this method with the correct identifier. By default, the print dialog includes the <code>CopiesPage</code> page. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>the page identifier </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#a5aac9a81bc890f76dce1b3e59e8e3755" title="Defines the standard pages available for the print dialog:">StandardPageType</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00245">245</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a5fc70b55c17254190eed4545f11488c5"></a><!-- doxytag: member="KPrinter::resolution" ref="a5fc70b55c17254190eed4545f11488c5" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KPrinter::resolution </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Resturns the resolution of the current <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object. </p>
<p>The resolution is given in DPI. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>resolution in DPI </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#aaf40b2a20707f8b043e85fd8c0274109" title="Set the resolution of the current KPrinter object.">setResolution()</a>, <a class="el" href="classKPrinter.html#a1f8ea151e7b11fa0b252747a9d57e014" title="Constructor.">KPrinter()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l01041">1041</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a4fa5ba95b3fe452e27f5c4ad84b25a05"></a><!-- doxytag: member="KPrinter::searchName" ref="a4fa5ba95b3fe452e27f5c4ad84b25a05" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KPrinter::searchName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the search name of the printer selected by the user. </p>
<p>Each printer is identified by a unique name. This method is mainly used for state restoration. For internal use. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the unique printer search name </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#ae4ebbe35a92ba37bc7500c2ee2034389" title="Sets the search name of the KPrinter object.">setSearchName</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00900">900</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ad42130fc4bc2630cf16dfc0c92e044c7"></a><!-- doxytag: member="KPrinter::setApplicationType" ref="ad42130fc4bc2630cf16dfc0c92e044c7" args="(ApplicationType type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setApplicationType </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classKPrinter.html#a42d86b7b7d9c88237937748d7c128355">ApplicationType</a>&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the application type concerning the print dialog. </p>
<p>You probably don't want to use it. For internal use only. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>the type for this application </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#adb4716090b361f154a9b9dbc328b74d2" title="Returns the application type concerning the print dialog.">applicationType()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00265">265</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="afe9b2f314d6221066a970eab974da18c"></a><!-- doxytag: member="KPrinter::setCollate" ref="afe9b2f314d6221066a970eab974da18c" args="(CollateType type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setCollate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classKPrinter.html#aa6719cf21322ecd0bca4fc764d7ecd7c">CollateType</a>&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the collate status for the current <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> to <code>type</code>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00830">830</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a7896574c528e84b29d696f0268056dae"></a><!-- doxytag: member="KPrinter::setColorMode" ref="a7896574c528e84b29d696f0268056dae" args="(ColorMode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setColorMode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classKPrinter.html#acfe1b1ece0fa03e0758697feade17c20">ColorMode</a>&#160;</td>
          <td class="paramname"><em>m</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#setColorMode">QPrinter::setColorMode()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00812">812</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af1739e0dcfb11bd6c01f1fe859d8ce1a"></a><!-- doxytag: member="KPrinter::setCreator" ref="af1739e0dcfb11bd6c01f1fe859d8ce1a" args="(const QString &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setCreator </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>d</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#setCreator">QPrinter::setCreator()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00800">800</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ae4bba3fd8cd042733814776c5c22326c"></a><!-- doxytag: member="KPrinter::setCurrentPage" ref="ae4bba3fd8cd042733814776c5c22326c" args="(int p=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setCurrentPage </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>p</em> = <code>0</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the current page number. </p>
<p>This page number will be used if the user selected "current page" in the print dialog. This option will only be enabled if the application does page selection itself and the application has called <a class="el" href="classKPrinter.html#ae4bba3fd8cd042733814776c5c22326c" title="Sets the current page number.">setCurrentPage()</a> before opening the print dialog: </p>
<div class="fragment"><pre class="fragment"> MyClass::MyClass()
 {
   <span class="comment">// declares my application able to do page selection</span>
   <a class="code" href="classKPrinter.html#af575cae0694de359c43a147e983354bc" title="Sets the page selection mode of the application.">KPrinter::setPageSelection</a>( KPrinter::ApplicationSide );
 }

 <span class="keywordtype">void</span> MyClass::doPrint()
 {
   <a class="code" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> printer;

   printer.<a class="code" href="classKPrinter.html#ae4bba3fd8cd042733814776c5c22326c" title="Sets the current page number.">setCurrentPage</a>( mycurrentpage );
   <span class="keywordflow">if</span> ( printer.<a class="code" href="classKPrinter.html#a26976f55d230788ebf1ad2172f2f6e6d" title="Sets up the KPrinter object using the print dialog, returns true if the user clicked OK...">setup</a>( <span class="keyword">this</span> ) )
   {
     <a class="codeRef" href="qvaluelist.html">QValueList&lt;int&gt;</a> pages = printer.<a class="code" href="classKPrinter.html#a96ffeb8f69c66c5d30a67d96facc8c4d" title="Returns the page list to be printed, correpsonding to the options selected by the user...">pageList</a>();
     <span class="comment">// print the pages</span>
     ...
   }
 }
</pre></div> <dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>the current page number (starting from 1) </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00861">861</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a3f630e9701046916835f0d7796704a6f"></a><!-- doxytag: member="KPrinter::setDocDirectory" ref="a3f630e9701046916835f0d7796704a6f" args="(const QString &amp;dir)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setDocDirectory </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>dir</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the default document directory. </p>
<p>This directory will be used as the default location for any output file. If not set, $HOME directory is used instead. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">dir</td><td>the new default output directory </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#a32d22be3b5e589e04ccf00c00e80c66e" title="Get the default document directory, that is the directory used for any output file.">docDirectory()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l01029">1029</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a8c00510380a19b1474adbf158108b8ec"></a><!-- doxytag: member="KPrinter::setDocFileName" ref="a8c00510380a19b1474adbf158108b8ec" args="(const QString &amp;filename)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setDocFileName </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the default document filename. </p>
<p>This filename will be used as the default basename for the output file, instead of the default "print". For example, by using setDocFileName("my_document"), the default output file will be $HOME/my_document.ps. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">filename</td><td>the default document basename to use </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#a1c1086eecac25c93a800367e50da1739" title="Get the default document filename, that is the default basename used for the output file...">docFileName()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l01023">1023</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a5308d52128c3a2054799cf9afc13ddbf"></a><!-- doxytag: member="KPrinter::setDocName" ref="a5308d52128c3a2054799cf9afc13ddbf" args="(const QString &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setDocName </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>d</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#setDocName">QPrinter::setDocName()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00794">794</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a9a3c2e6176797e69b158edac2f6a7868"></a><!-- doxytag: member="KPrinter::setErrorMessage" ref="a9a3c2e6176797e69b158edac2f6a7868" args="(const QString &amp;msg)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setErrorMessage </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>msg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the last error message. </p>
<p>For internal use. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">msg</td><td>the error message </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l01010">1010</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a55e81218bb26d3986d1a01e04cbb64a9"></a><!-- doxytag: member="KPrinter::setFromTo" ref="a55e81218bb26d3986d1a01e04cbb64a9" args="(int, int)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setFromTo </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>M</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the first and last page to be printed. </p>
<p>See <a class="elRef" href="qprinter.html#setFromTo">QPrinter::setFromTo()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00848">848</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a3f550f10ccc358ad06de1299ce66a2b9"></a><!-- doxytag: member="KPrinter::setFullPage" ref="a3f550f10ccc358ad06de1299ce66a2b9" args="(bool)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setFullPage </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>on</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#setFullPage">QPrinter::setFullPage()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00806">806</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a18784d6f47e2213b172d405492c85ffe"></a><!-- doxytag: member="KPrinter::setMargins" ref="a18784d6f47e2213b172d405492c85ffe" args="(QSize m)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setMargins </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qsize.html">QSize</a>&#160;</td>
          <td class="paramname"><em>m</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Not used yet. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00938">938</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ac8d702b046bbbd7a2c46db7940fdc08f"></a><!-- doxytag: member="KPrinter::setMinMax" ref="ac8d702b046bbbd7a2c46db7940fdc08f" args="(int, int)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setMinMax </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>M</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#setMinMax">QPrinter::setMinMax()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00839">839</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a5f2cbb7d800ca1872880fbc36531a679"></a><!-- doxytag: member="KPrinter::setNumCopies" ref="a5f2cbb7d800ca1872880fbc36531a679" args="(int n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setNumCopies </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#setNumCopies">QPrinter::setNumCopies()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00815">815</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="acd9c70f6a4143fbcb084f08ff4e7441f"></a><!-- doxytag: member="KPrinter::setOption" ref="acd9c70f6a4143fbcb084f08ff4e7441f" args="(const QString &amp;key, const QString &amp;value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setOption </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds or modifies an option in the <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object. </p>
<p>You probably don't need to use this function explicitly. This will be done implicitely for example when reimplementing <a class="el" href="classKPrintDialogPage.html#a6cfede3399798190bb7d25a715591e0d" title="This function is called to fill the structure opts with the selected options from this dialog page...">KPrintDialogPage::getOptions()</a>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>the option name </td></tr>
    <tr><td class="paramname">value</td><td>the option value </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#a8aa402c9f0f6cea036252afb9a5c1057" title="Starts the add printer wizard.">option()</a>, <a class="el" href="classKPrintDialogPage.html" title="This class is intended to be used as base class for customized print dialog page.">KPrintDialogPage</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00788">788</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a689ca281f262e253bd3b22ada060ec1c"></a><!-- doxytag: member="KPrinter::setOptions" ref="a689ca281f262e253bd3b22ada060ec1c" args="(const QMap&lt; QString, QString &gt; &amp;opts)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setOptions </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qmap.html">QMap</a>&lt; <a class="elRef" href="qstring.html">QString</a>, <a class="elRef" href="qstring.html">QString</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>opts</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the option set in one operation. </p>
<p>This method has some side effects like merging the internal map with the one given in argument, but only for option in the form "kde-...". For internal use only. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">opts</td><td>the option set to be merged in the <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00622">622</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af18187b482d5996f32d34ac67caa4ee8"></a><!-- doxytag: member="KPrinter::setOrientation" ref="af18187b482d5996f32d34ac67caa4ee8" args="(Orientation)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setOrientation </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classKPrinter.html#af41ac751bb785b2c998255180035ad89">Orientation</a>&#160;</td>
          <td class="paramname"><em>o</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#setOrientation">QPrinter::setOrientation()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00600">600</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af2602407b1ee43d2b8dd53d5e71b0a50"></a><!-- doxytag: member="KPrinter::setOutputFileName" ref="af2602407b1ee43d2b8dd53d5e71b0a50" args="(const QString &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setOutputFileName </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>f</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#setOutputFileName">QPrinter::setOutputFileName()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00916">916</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a726f87792683bdcb335164d2fade151b"></a><!-- doxytag: member="KPrinter::setOutputToFile" ref="a726f87792683bdcb335164d2fade151b" args="(bool)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setOutputToFile </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>on</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#setOutputToFile">QPrinter::setOutputToFile()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00922">922</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a6f889a07ae2693cd8b896066df49bec0"></a><!-- doxytag: member="KPrinter::setPageOrder" ref="a6f889a07ae2693cd8b896066df49bec0" args="(PageOrder)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setPageOrder </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classKPrinter.html#ab2c3814253a64f1d9f318571e9cbe22f">PageOrder</a>&#160;</td>
          <td class="paramname"><em>o</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#setPageOrder">QPrinter::setPageOrder()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00824">824</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af575cae0694de359c43a147e983354bc"></a><!-- doxytag: member="KPrinter::setPageSelection" ref="af575cae0694de359c43a147e983354bc" args="(PageSelectionType _mode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setPageSelection </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classKPrinter.html#a7c59f005bf28b7cf7888b161f0b0cb4d">PageSelectionType</a>&#160;</td>
          <td class="paramname"><em>_mode</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the page selection mode of the application. </p>
<p>If needed, call this method somewhere at the beginning of your code. The default value is <code>SystemSide</code>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_mode</td><td>the mode for the application </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#acc152e94ba787c1c6460cab9daae8b17" title="Returns the page selection mode of the current application.">pageSelection()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00255">255</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a2053831dec48bf330b41547ca72227c6"></a><!-- doxytag: member="KPrinter::setPageSize" ref="a2053831dec48bf330b41547ca72227c6" args="(PageSize)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setPageSize </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classKPrinter.html#a14bad784daffaf6f9722907ed3c0d35b">PageSize</a>&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#setPageSize">QPrinter::setPageSize()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00615">615</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aadfbba392035d311c4388ce00df0da7f"></a><!-- doxytag: member="KPrinter::setPreviewOnly" ref="aadfbba392035d311c4388ce00df0da7f" args="(bool on)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setPreviewOnly </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>on</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object to preview mode if <code>on</code> is true. </p>
<p>In this mode, nothing will be printed but only a preview dialog will be popped up with the single "Close" action. Using this mode, any application can easily implement a preview action: </p>
<div class="fragment"><pre class="fragment"> <span class="keywordtype">void</span> MyClass:doPreview()
 {
   <span class="comment">// use a &quot;clean&quot; KPrinter object (independent from previous print jobs),</span>
   <span class="comment">// this is not necessary, it depends on the application</span>
   <a class="code" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> prt( <span class="keyword">false</span> );
   prt.<a class="code" href="classKPrinter.html#aadfbba392035d311c4388ce00df0da7f" title="Sets the KPrinter object to preview mode if on is true.">setPreviewOnly</a>( <span class="keyword">true</span> );

   <a class="codeRef" href="qpainter.html">QPainter</a> painter( &amp;prt );
   doPrint( &amp;painter );
 }
</pre></div> <dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">on</td><td>the preview-only state </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#a742f18961faec99d34b8da68975d994c" title="Returns the preview-only state for this KPrinter object.">previewOnly()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l01017">1017</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aad4149a203b4c77dc959e1c30b80acbc"></a><!-- doxytag: member="KPrinter::setPrinterName" ref="aad4149a203b4c77dc959e1c30b80acbc" args="(const QString &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setPrinterName </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#setPrinterName">QPrinter::setPrinterName()</a>. </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00867">867</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a25cd794aa9c09ea1c20d80dfadf8a6ab"></a><!-- doxytag: member="KPrinter::setPrinterSelectionOption" ref="a25cd794aa9c09ea1c20d80dfadf8a6ab" args="(const QString &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setPrinterSelectionOption </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>See <a class="elRef" href="qprinter.html#setPrinterSelectionOption">QPrinter::setPrinterSelectionOption()</a>. </p>
<p>Unused </p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00894">894</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a31fe9e053c99b4e88e042a0500e62192"></a><!-- doxytag: member="KPrinter::setPrintProgram" ref="a31fe9e053c99b4e88e042a0500e62192" args="(const QString &amp;cmd)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setPrintProgram </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>cmd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the command line to use when printing. </p>
<p>This function is useful when using a <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object without the print dialog, to control what to print and how to do it. The command line may contain the following tags: </p>
<ul>
<li>in : the input file to the print program. It is required and automatically appended at the end of the command line if not present. </li>
<li>out : the output file. Use this tag in conjunction with <a class="el" href="classKPrinter.html#a726f87792683bdcb335164d2fade151b" title="See QPrinter::setOutputToFile().">setOutputToFile()</a> and <a class="el" href="classKPrinter.html#af2602407b1ee43d2b8dd53d5e71b0a50" title="See QPrinter::setOutputFileName().">setOutputFileName()</a> </li>
<li>psl : the page size in lower case. This may be useful with some programs like gs. <div class="fragment"><pre class="fragment"> <span class="keywordtype">void</span> createPNGOutputFile(<span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; filename)
 {
   <span class="comment">// use a clean KPrinter object</span>
   <a class="code" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> prt(<span class="keyword">false</span>);

   prt.<a class="code" href="classKPrinter.html#a726f87792683bdcb335164d2fade151b" title="See QPrinter::setOutputToFile().">setOutputToFile</a>( <span class="keyword">true</span> );
   prt.<a class="code" href="classKPrinter.html#af2602407b1ee43d2b8dd53d5e71b0a50" title="See QPrinter::setOutputFileName().">setOutputFileName</a>( filename );
   prt.<a class="code" href="classKPrinter.html#a31fe9e053c99b4e88e042a0500e62192" title="Sets the command line to use when printing.">setPrintProgram</a>( <span class="stringliteral">&quot;gs -sDEVICE=png256 -sPAPERSIZE=%psl -sOutputFile=%out %in&quot;</span> );

   <a class="codeRef" href="qpainter.html">QPainter</a> painter( &amp;prt );
   doPaint( &amp;painter );
 }
</pre></div> <dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">cmd</td><td>the print command line (containing at least the <code>in</code> tag) </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#a234a9844c16dafa1cbc544f41acd62a3" title="Returns the print program as set by setPrintProgram() or by the print dialog if a special printer has...">printProgram()</a> </dd></dl>
</li>
</ul>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00873">873</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="acf58fa896b6dbb4fdcf8b42ae744dcce"></a><!-- doxytag: member="KPrinter::setRealDrawableArea" ref="acf58fa896b6dbb4fdcf8b42ae744dcce" args="(const QRect &amp;r)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setRealDrawableArea </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qrect.html">QRect</a> &amp;&#160;</td>
          <td class="paramname"><em>r</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>DO NOT USE, WILL BE REMOVED. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000006">Deprecated:</a></b></dt><dd></dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00992">992</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a2aed8fa276ace8a2a1b17ad8459f9331"></a><!-- doxytag: member="KPrinter::setRealPageSize" ref="a2aed8fa276ace8a2a1b17ad8459f9331" args="(QSize p)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setRealPageSize </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qsize.html">QSize</a>&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>DO NOT USE, WILL BE REMOVED. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000005">Deprecated:</a></b></dt><dd></dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00986">986</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aaf40b2a20707f8b043e85fd8c0274109"></a><!-- doxytag: member="KPrinter::setResolution" ref="aaf40b2a20707f8b043e85fd8c0274109" args="(int dpi)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setResolution </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dpi</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the resolution of the current <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object. </p>
<p>The resolution is given in DPI. This resolution mainly affects the accuracy for object positionning on the paint device, and does not influence the real resolution that will be used by the printer (this should be set in the driver settings). The resolution is usually defined in the constructor. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">dpi</td><td>the resolution in DPI </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#a1f8ea151e7b11fa0b252747a9d57e014" title="Constructor.">KPrinter()</a>, <a class="el" href="classKPrinter.html#a5fc70b55c17254190eed4545f11488c5" title="Resturns the resolution of the current KPrinter object.">resolution()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l01035">1035</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ae4ebbe35a92ba37bc7500c2ee2034389"></a><!-- doxytag: member="KPrinter::setSearchName" ref="ae4ebbe35a92ba37bc7500c2ee2034389" args="(const QString &amp;n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setSearchName </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>n</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the search name of the <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object. </p>
<p>For internal use. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">n</td><td>the unique printer search name </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#a4fa5ba95b3fe452e27f5c4ad84b25a05" title="Returns the search name of the printer selected by the user.">searchName()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00903">903</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a26976f55d230788ebf1ad2172f2f6e6d"></a><!-- doxytag: member="KPrinter::setup" ref="a26976f55d230788ebf1ad2172f2f6e6d" args="(QWidget *parent=0, const QString &amp;caption=QString::null, bool forceExpand=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KPrinter::setup </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qwidget.html">QWidget</a> *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>caption</em> = <code>QString::null</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>forceExpand</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets up the <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object using the print dialog, returns true if the user clicked OK. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>the parent widget to use for the print dialog </td></tr>
    <tr><td class="paramname">caption</td><td>the caption to use in the print dialog </td></tr>
    <tr><td class="paramname">forceExpand</td><td>force the expansion of the dialog (the show/hide button will be hidden) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>boolean value corresponding to the button clicked by the user </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00219">219</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ae94c9f3aa6a72ddaf2a80454c0c1813d"></a><!-- doxytag: member="KPrinter::setUsePrinterResolution" ref="ae94c9f3aa6a72ddaf2a80454c0c1813d" args="(bool on)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::setUsePrinterResolution </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>on</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Define the <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object to use the actual printer resolution. </p>
<p>Under some print systems (CUPS, Foomatic, PostScript printers), it is possible to know the actual resolution that is used by the printer, as selected by the user in the driver settings. If <code>on</code> is true, this <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object will use the actual printer resolution if it is able to extract it. If nothing can be found, the default resolution will be the one defined by the PrinterMode argument used in the <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> constructor, or set explicitly by <a class="el" href="classKPrinter.html#aaf40b2a20707f8b043e85fd8c0274109" title="Set the resolution of the current KPrinter object.">setResolution()</a>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">on</td><td>true if the <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object should use the actual printer resolution </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#a5fc70b55c17254190eed4545f11488c5" title="Resturns the resolution of the current KPrinter object.">resolution()</a>, <a class="el" href="classKPrinter.html#aaf40b2a20707f8b043e85fd8c0274109" title="Set the resolution of the current KPrinter object.">setResolution()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l01044">1044</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ae17368cf1218e437fa4181449656fbd9"></a><!-- doxytag: member="KPrinter::toPage" ref="ae17368cf1218e437fa4181449656fbd9" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KPrinter::toPage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the last page to be printed. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000003">Deprecated:</a></b></dt><dd>Applications should use <a class="el" href="classKPrinter.html#a96ffeb8f69c66c5d30a67d96facc8c4d" title="Returns the page list to be printed, correpsonding to the options selected by the user...">pageList()</a> instead, which takes into account all options: collate, page order, ranges, page set, ...</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html#a96ffeb8f69c66c5d30a67d96facc8c4d" title="Returns the page list to be printed, correpsonding to the options selected by the user...">pageList()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00845">845</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a0891873329771d4e9f34459e85e7a554"></a><!-- doxytag: member="KPrinter::translateQtOptions" ref="a0891873329771d4e9f34459e85e7a554" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrinter::translateQtOptions </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><p>Scale margings as the margin widget always stores values in dot units ( 1/72th in ), to be resolution independent when specified by the user ( who usually specifies margins in metric units ).</p>
</p>

<p>Definition at line <a class="el" href="kprinter_8cpp_source.html#l00296">296</a> of file <a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="kprinter_8h_source.html">kprinter.h</a></li>
<li><a class="el" href="kprinter_8cpp_source.html">kprinter.cpp</a></li>
</ul>
</div>
    </div></div>


      </td>
  </tr>
  <tr>
    <td valign="top" id="leftmenu" width="25%">
      <a name="navigation"></a>
      <div class="menu_box"><h2>kdeprint</h2>
<div class="nav_list">
<ul><li><a href="index.html">Main Page</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="functions.html">Class Members</a></li><li><a href="pages.html">Related Pages</a></li></ul>
<!--
<h2>Class Picker</h2>
<div style="text-align: center;">
<form name="guideform">
<select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value">
<option value="annotated.html">-- Choose --</option>
  <option value="classKPrintDialogPage.html">kprintdialogpage</option>,  <option value="classKPrinter.html">kprinter</option>,  <option value="classTreeComboBox.html">treecombobox</option>,  <option value="classTreeListBox.html">treelistbox</option>,  <option value="classTreeListBoxItem.html">treelistboxitem</option>,
</select>
</form>
</div>
-->
</div></div>
<div class="menu_box"><h2>API Dox</h2>
<div class="nav_list">
<ul>
<li><a href="../../arts/html/index.html">arts</a></li><li><a href="../../dcop/html/index.html">dcop</a></li><li><a href="../../dnssd/html/index.html">dnssd</a></li><li><a href="../../interfaces/html/index.html">interfaces</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/library/html/index.html">library</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/kspeech/html/index.html">kspeech</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/ktexteditor/html/index.html">ktexteditor</a></li><li><a href="../../kabc/html/index.html">kabc</a></li><li><a href="../../kate/html/index.html">kate</a></li><li><a href="../../kcmshell/html/index.html">kcmshell</a></li><li><a href="../../kdecore/html/index.html">kdecore</a></li><li><a href="../../kded/html/index.html">kded</a></li><li><a href="../../kdefx/html/index.html">kdefx</a></li><li><a href="../../kdeprint/html/index.html">kdeprint</a></li><li><a href="../../kdesu/html/index.html">kdesu</a></li><li><a href="../../kdeui/html/index.html">kdeui</a></li><li><a href="../../kdoctools/html/index.html">kdoctools</a></li><li><a href="../../khtml/html/index.html">khtml</a></li><li><a href="../../kimgio/html/index.html">kimgio</a></li><li><a href="../../kinit/html/index.html">kinit</a></li><li><a href="../../kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/bookmarks/html/index.html">bookmarks</a></li><li>&nbsp;&nbsp;<a href="../../kio/httpfilter/html/index.html">httpfilter</a></li><li>&nbsp;&nbsp;<a href="../../kio/kfile/html/index.html">kfile</a></li><li>&nbsp;&nbsp;<a href="../../kio/kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/kioexec/html/index.html">kioexec</a></li><li>&nbsp;&nbsp;<a href="../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li>&nbsp;&nbsp;<a href="../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../kioslave/html/index.html">kioslave</a></li><li>&nbsp;&nbsp;<a href="../../kioslave/http/html/index.html">http</a></li><li><a href="../../kjs/html/index.html">kjs</a></li><li><a href="../../kmdi/html/index.html">kmdi</a></li><li>&nbsp;&nbsp;<a href="../../kmdi/kmdi/html/index.html">kmdi</a></li><li><a href="../../knewstuff/html/index.html">knewstuff</a></li><li><a href="../../kparts/html/index.html">kparts</a></li><li><a href="../../kresources/html/index.html">kresources</a></li><li><a href="../../kspell2/html/index.html">kspell2</a></li><li><a href="../../kunittest/html/index.html">kunittest</a></li><li><a href="../../kutils/html/index.html">kutils</a></li><li><a href="../../kwallet/html/index.html">kwallet</a></li><li><a href="../../libkmid/html/index.html">libkmid</a></li><li><a href="../../libkscreensaver/html/index.html">libkscreensaver</a></li>
</ul></div></div>


        </td>
</tr>
</table>

<span class="doNotDisplay">
  <a href="http://www.kde.org/" accesskey="8">KDE Home</a> |
  <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> |
  <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a>
</span>


<div style="height: 8px"></div>

<div id="footer">
  <div id="footer_left">
    Maintained by <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;groo&#116;&#64;kde&#46;or&#x67;">Adriaan de Groot</a>
and
<a href="&#109;a&#105;&#108;&#116;&#111;&#58;w&#105;nter&#64;kde&#46;or&#x67">Allen Winter</a>.
<br/>
    KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> |
    <a href="http://www.kde.org/contact/impressum.php">Legal</a>
  </div>
  <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div>
</div>

<!--
WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL
BE BLOCKED INSTANTLY AND PERMANENTLY!
<a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a>
WARNING END
-->

</body>
</html>