Sophie

Sophie

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

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: KPrintDialogPage 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-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">KPrintDialogPage Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="KPrintDialogPage" --><!-- doxytag: inherits="QWidget" -->
<p>This class is intended to be used as base class for customized print dialog page.  
 <a href="classKPrintDialogPage.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="kprintdialogpage_8h_source.html">kprintdialogpage.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for KPrintDialogPage:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classKPrintDialogPage.png" usemap="#KPrintDialogPage_map" alt=""/>
  <map id="KPrintDialogPage_map" name="KPrintDialogPage_map">
<area href="qwidget.html" alt="QWidget" shape="rect" coords="0,0,111,24"/>
</map>
 </div></div>

<p><a href="classKPrintDialogPage-members.html">List of all members.</a></p>
<table class="memberdecls">
<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="classKPrintDialogPage.html#ab40296b6b2558376e1ac52b718ce24cb">KPrintDialogPage</a> (<a class="elRef" href="qwidget.html">QWidget</a> *parent=0, const char *name=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrintDialogPage.html#afabd3a93e44be0d376c85542af0c7044">KPrintDialogPage</a> (KMPrinter *pr, DrMain *dr=0, <a class="elRef" href="qwidget.html">QWidget</a> *parent=0, const char *name=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrintDialogPage.html#a87324d4abc0b7f5aa28a565045d1b7a8">~KPrintDialogPage</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrintDialogPage.html#a6cfede3399798190bb7d25a715591e0d">getOptions</a> (<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, bool incldef=false)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrintDialogPage.html#a65f9bc8e1a12b23b13d53b5a4d759cc1">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">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrintDialogPage.html#a47591b47982460566c9a26b7a9c82d01">isValid</a> (<a class="elRef" href="qstring.html">QString</a> &amp;msg)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrintDialogPage.html#acdf5ca0fc0cb472d3c77009a5209cdde">id</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrintDialogPage.html#a8b395bd2d1834fb194ec2481f1ac7645">setId</a> (int ID)</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="classKPrintDialogPage.html#a23ffdf44657b534777b8a6ea1a1a0b0b">title</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrintDialogPage.html#a846c1211df5304330e9c37d5db4ead71">setTitle</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;txt)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrintDialogPage.html#ad5dafb6f577abd935be73896abb77f17">onlyRealPrinters</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrintDialogPage.html#a8b36298bf3c763e51be81fcbe7cb85bf">setOnlyRealPrinters</a> (bool on=true)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">DrMain *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrintDialogPage.html#a1a2878bcf3806713c034d811f45034f6">driver</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">KMPrinter *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPrintDialogPage.html#a1af4972c7a96c1b49ab985549019760a">printer</a> ()</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="acd54be176acd99739dfed8e09671f3d1"></a><!-- doxytag: member="KPrintDialogPage::m_printer" ref="acd54be176acd99739dfed8e09671f3d1" args="" -->
KMPrinter *&#160;</td><td class="memItemRight" valign="bottom"><b>m_printer</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab1d938f96f1a536a3489b04dbd236d71"></a><!-- doxytag: member="KPrintDialogPage::m_driver" ref="ab1d938f96f1a536a3489b04dbd236d71" args="" -->
DrMain *&#160;</td><td class="memItemRight" valign="bottom"><b>m_driver</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac07d3a7a265d15f8dafef79ddf741afd"></a><!-- doxytag: member="KPrintDialogPage::m_ID" ref="ac07d3a7a265d15f8dafef79ddf741afd" args="" -->
int&#160;</td><td class="memItemRight" valign="bottom"><b>m_ID</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a60094aef942a87a931c8cad47ae4762d"></a><!-- doxytag: member="KPrintDialogPage::m_title" ref="a60094aef942a87a931c8cad47ae4762d" args="" -->
<a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><b>m_title</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a240413fae8156b336bb46d3fbcb1a248"></a><!-- doxytag: member="KPrintDialogPage::m_onlyreal" ref="a240413fae8156b336bb46d3fbcb1a248" args="" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>m_onlyreal</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>This class is intended to be used as base class for customized print dialog page. </p>
<p>One of the feature of the KDE print framework is to allow to customize the print dialog to add some 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 reimplementing the 3 virtual functions getOptions, setOptions and <a class="el" href="classKPrintDialogPage.html#a47591b47982460566c9a26b7a9c82d01" title="Returns true if options selected in the page are valid (no conflict), false otherwise.">isValid()</a>. The print options will be stored in the <a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> object, and will be accessible via <a class="el" href="classKPrinter.html#a8aa402c9f0f6cea036252afb9a5c1057" title="Starts the add printer wizard.">KPrinter::option()</a>. The option name should follow the form "kde-appname-optionname" for internal reasons.</p>
<div class="fragment"><pre class="fragment"><span class="preprocessor"> #include &lt;kdeprint/kprintdialogpage.h&gt;</span>

 <span class="keyword">class </span>MyDialogPage : <span class="keyword">public</span> <a class="code" href="classKPrintDialogPage.html" title="This class is intended to be used as base class for customized print dialog page.">KPrintDialogPage</a>
 {
 <span class="keyword">public</span>:
   MyDialogPage( <a class="codeRef" href="qwidget.html">QWidget</a> *parent = 0, <span class="keyword">const</span> <span class="keywordtype">char</span> *name = 0 );

   <span class="comment">//reimplement virtual functions</span>
   <span class="keywordtype">void</span> <a class="code" href="classKPrintDialogPage.html#a6cfede3399798190bb7d25a715591e0d" title="This function is called to fill the structure opts with the selected options from this dialog page...">getOptions</a>( <a class="codeRef" href="qmap.html">QMap&lt;QString,QString&gt;</a>&amp; opts, <span class="keywordtype">bool</span> incldef = <span class="keyword">false</span> );
   <span class="keywordtype">void</span> <a class="code" href="classKPrintDialogPage.html#a65f9bc8e1a12b23b13d53b5a4d759cc1" title="This function is called to update the current page with the options contained in opts.">setOptions</a>( <span class="keyword">const</span> <a class="codeRef" href="qmap.html">QMap&lt;QString,QString&gt;</a>&amp; opts );
   <span class="keywordtype">bool</span> <a class="code" href="classKPrintDialogPage.html#a47591b47982460566c9a26b7a9c82d01" title="Returns true if options selected in the page are valid (no conflict), false otherwise.">isValid</a>( <a class="codeRef" href="qstring.html">QString</a>&amp; msg );

 <span class="keyword">private</span>:
   <a class="codeRef" href="qcombobox.html">QComboBox</a> *m_fontcombo;
 };

 MyDialogPage::MyDialogPage( <a class="codeRef" href="qwidget.html">QWidget</a> *parent, <span class="keyword">const</span> <span class="keywordtype">char</span> *name )
 : <a class="code" href="classKPrintDialogPage.html" title="This class is intended to be used as base class for customized print dialog page.">KPrintDialogPage</a>( parent, name )
 {
   setTitle( i18n( <span class="stringliteral">&quot;My Page&quot;</span> ) );
 }

 <span class="keywordtype">void</span> <a class="code" href="classKPrintDialogPage.html#a6cfede3399798190bb7d25a715591e0d" title="This function is called to fill the structure opts with the selected options from this dialog page...">MyDialogPage::getOptions</a>( <a class="codeRef" href="qmap.html">QMap&lt;QString,QString&gt;</a>&amp; opts, <span class="keywordtype">bool</span> incldef )
 {
   <span class="keywordflow">if</span> ( incldef || m_fontcombo-&gt;currentText() != mydefaultvalue )
     opts[ <span class="stringliteral">&quot;kde-myapp-fontname&quot;</span> ] = m_fontcombo-&gt;currentText();
 }

 <span class="keywordtype">void</span> <a class="code" href="classKPrintDialogPage.html#a65f9bc8e1a12b23b13d53b5a4d759cc1" title="This function is called to update the current page with the options contained in opts.">MyDialogPage::setOptions</a>( <span class="keyword">const</span> <a class="codeRef" href="qmap.html">QMap&lt;QString,QString&gt;</a>&amp; opts )
 {
   <a class="codeRef" href="qstring.html">QString</a> fntname = opts[ <span class="stringliteral">&quot;kde-myapp-fontname&quot;</span> ];
   m_fontcombo-&gt;setEditText( fntname );
 }

 <span class="keywordtype">bool</span> <a class="code" href="classKPrintDialogPage.html#a47591b47982460566c9a26b7a9c82d01" title="Returns true if options selected in the page are valid (no conflict), false otherwise.">MyDialogPage::isValid</a>( <a class="codeRef" href="qstring.html">QString</a>&amp; msg)
 {
   <span class="keywordflow">if</span> ( m_fontcombo-&gt;currentText().isEmpty() )
   {
     msg = i18n( <span class="stringliteral">&quot;Font name cannot be empty.&quot;</span> );
     <span class="keywordflow">return</span> <span class="keyword">false</span>;
   }
   <span class="keywordflow">return</span> <span class="keyword">true</span>;
 }
</pre></div><p>Base class for customized print dialog pages. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> </dd></dl>

<p>Definition at line <a class="el" href="kprintdialogpage_8h_source.html#l00090">90</a> of file <a class="el" href="kprintdialogpage_8h_source.html">kprintdialogpage.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ab40296b6b2558376e1ac52b718ce24cb"></a><!-- doxytag: member="KPrintDialogPage::KPrintDialogPage" ref="ab40296b6b2558376e1ac52b718ce24cb" args="(QWidget *parent=0, const char *name=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KPrintDialogPage::KPrintDialogPage </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 char *&#160;</td>
          <td class="paramname"><em>name</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Standard constructor. </p>

<p>Definition at line <a class="el" href="kprintdialogpage_8cpp_source.html#l00023">23</a> of file <a class="el" href="kprintdialogpage_8cpp_source.html">kprintdialogpage.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="afabd3a93e44be0d376c85542af0c7044"></a><!-- doxytag: member="KPrintDialogPage::KPrintDialogPage" ref="afabd3a93e44be0d376c85542af0c7044" args="(KMPrinter *pr, DrMain *dr=0, QWidget *parent=0, const char *name=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KPrintDialogPage::KPrintDialogPage </td>
          <td>(</td>
          <td class="paramtype">KMPrinter *&#160;</td>
          <td class="paramname"><em>pr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">DrMain *&#160;</td>
          <td class="paramname"><em>dr</em> = <code>0</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>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

<p>Definition at line <a class="el" href="kprintdialogpage_8cpp_source.html#l00028">28</a> of file <a class="el" href="kprintdialogpage_8cpp_source.html">kprintdialogpage.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a87324d4abc0b7f5aa28a565045d1b7a8"></a><!-- doxytag: member="KPrintDialogPage::~KPrintDialogPage" ref="a87324d4abc0b7f5aa28a565045d1b7a8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KPrintDialogPage::~KPrintDialogPage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destructor. </p>

<p>Definition at line <a class="el" href="kprintdialogpage_8cpp_source.html#l00033">33</a> of file <a class="el" href="kprintdialogpage_8cpp_source.html">kprintdialogpage.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a1a2878bcf3806713c034d811f45034f6"></a><!-- doxytag: member="KPrintDialogPage::driver" ref="a1a2878bcf3806713c034d811f45034f6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DrMain* KPrintDialogPage::driver </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

<p>Definition at line <a class="el" href="kprintdialogpage_8h_source.html#l00176">176</a> of file <a class="el" href="kprintdialogpage_8h_source.html">kprintdialogpage.h</a>.</p>

</div>
</div>
<a class="anchor" id="a6cfede3399798190bb7d25a715591e0d"></a><!-- doxytag: member="KPrintDialogPage::getOptions" ref="a6cfede3399798190bb7d25a715591e0d" args="(QMap&lt; QString, QString &gt; &amp;opts, bool incldef=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrintDialogPage::getOptions </td>
          <td>(</td>
          <td class="paramtype"><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>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>incldef</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This function is called to fill the structure <code>opts</code> with the selected options from this dialog page. </p>
<p>If <code>incldef</code> is true, include also options with default values, otherwise discard them. Reimplement this function in subclasses. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">opts</td><td>the option set to fill </td></tr>
    <tr><td class="paramname">incldef</td><td>if true, include also options with default values </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.">setOptions()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprintdialogpage_8cpp_source.html#l00041">41</a> of file <a class="el" href="kprintdialogpage_8cpp_source.html">kprintdialogpage.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="acdf5ca0fc0cb472d3c77009a5209cdde"></a><!-- doxytag: member="KPrintDialogPage::id" ref="acdf5ca0fc0cb472d3c77009a5209cdde" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KPrintDialogPage::id </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the ID of the page. </p>
<p>Not used yet. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the page ID </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrintDialogPage.html#a8b395bd2d1834fb194ec2481f1ac7645" title="Set the ID of the page.">setId()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprintdialogpage_8h_source.html#l00135">135</a> of file <a class="el" href="kprintdialogpage_8h_source.html">kprintdialogpage.h</a>.</p>

</div>
</div>
<a class="anchor" id="a47591b47982460566c9a26b7a9c82d01"></a><!-- doxytag: member="KPrintDialogPage::isValid" ref="a47591b47982460566c9a26b7a9c82d01" args="(QString &amp;msg)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KPrintDialogPage::isValid </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>msg</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns true if options selected in the page are valid (no conflict), false otherwise. </p>
<p>When returning false, <code>msg</code> should contain an error message explaining what is wrong in the selected options. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">msg</td><td>should contain an error message when returning false </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>valid status </dd></dl>

<p>Definition at line <a class="el" href="kprintdialogpage_8cpp_source.html#l00045">45</a> of file <a class="el" href="kprintdialogpage_8cpp_source.html">kprintdialogpage.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ad5dafb6f577abd935be73896abb77f17"></a><!-- doxytag: member="KPrintDialogPage::onlyRealPrinters" ref="ad5dafb6f577abd935be73896abb77f17" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KPrintDialogPage::onlyRealPrinters </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tell wether or not the page should be disable if a non real printer (special printer) is selected in the print dialog. </p>
<p>Returns false by default. Application specific pages usually corresponds to printer-independent options, so the page should be kept enabled whatever the selected printer. The default value is then correct and your application doesn't to change anything. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the page should be disabled for non real printers </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrintDialogPage.html#a8b36298bf3c763e51be81fcbe7cb85bf" title="Change the page state when a non real printer is selected in the print dialog.">setOnlyRealPrinters()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprintdialogpage_8h_source.html#l00164">164</a> of file <a class="el" href="kprintdialogpage_8h_source.html">kprintdialogpage.h</a>.</p>

</div>
</div>
<a class="anchor" id="a1af4972c7a96c1b49ab985549019760a"></a><!-- doxytag: member="KPrintDialogPage::printer" ref="a1af4972c7a96c1b49ab985549019760a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KMPrinter* KPrintDialogPage::printer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

<p>Definition at line <a class="el" href="kprintdialogpage_8h_source.html#l00180">180</a> of file <a class="el" href="kprintdialogpage_8h_source.html">kprintdialogpage.h</a>.</p>

</div>
</div>
<a class="anchor" id="a8b395bd2d1834fb194ec2481f1ac7645"></a><!-- doxytag: member="KPrintDialogPage::setId" ref="a8b395bd2d1834fb194ec2481f1ac7645" args="(int ID)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrintDialogPage::setId </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>ID</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the ID of the page. </p>
<p>Not used yet. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ID</td><td>the ID number </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrintDialogPage.html#acdf5ca0fc0cb472d3c77009a5209cdde" title="Get the ID of the page.">id()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprintdialogpage_8h_source.html#l00141">141</a> of file <a class="el" href="kprintdialogpage_8h_source.html">kprintdialogpage.h</a>.</p>

</div>
</div>
<a class="anchor" id="a8b36298bf3c763e51be81fcbe7cb85bf"></a><!-- doxytag: member="KPrintDialogPage::setOnlyRealPrinters" ref="a8b36298bf3c763e51be81fcbe7cb85bf" args="(bool on=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrintDialogPage::setOnlyRealPrinters </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>on</em> = <code>true</code></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Change the page state when a non real printer is selected in the print dialog. </p>
<p>Usually, the default value (false) is OK in most cases and you don't need to call this function explicitly. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">on</td><td>if true, then the page will be disabled if a non real printer is selected </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrintDialogPage.html#ad5dafb6f577abd935be73896abb77f17" title="Tell wether or not the page should be disable if a non real printer (special printer) is selected in ...">onlyRealPrinters()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprintdialogpage_8h_source.html#l00172">172</a> of file <a class="el" href="kprintdialogpage_8h_source.html">kprintdialogpage.h</a>.</p>

</div>
</div>
<a class="anchor" id="a65f9bc8e1a12b23b13d53b5a4d759cc1"></a><!-- doxytag: member="KPrintDialogPage::setOptions" ref="a65f9bc8e1a12b23b13d53b5a4d759cc1" args="(const QMap&lt; QString, QString &gt; &amp;opts)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrintDialogPage::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><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This function is called to update the current page with the options contained in <code>opts</code>. </p>
<p>Reimplement it in subclasses. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">opts</td><td>the structure containing the options to update the page </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kprintdialogpage_8cpp_source.html#l00037">37</a> of file <a class="el" href="kprintdialogpage_8cpp_source.html">kprintdialogpage.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a846c1211df5304330e9c37d5db4ead71"></a><!-- doxytag: member="KPrintDialogPage::setTitle" ref="a846c1211df5304330e9c37d5db4ead71" args="(const QString &amp;txt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPrintDialogPage::setTitle </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>txt</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the page title. </p>
<p>This title will be used as tab name for this page in the print dialog. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">txt</td><td>the page title </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrintDialogPage.html#a23ffdf44657b534777b8a6ea1a1a0b0b" title="Get the page title.">title()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprintdialogpage_8h_source.html#l00154">154</a> of file <a class="el" href="kprintdialogpage_8h_source.html">kprintdialogpage.h</a>.</p>

</div>
</div>
<a class="anchor" id="a23ffdf44657b534777b8a6ea1a1a0b0b"></a><!-- doxytag: member="KPrintDialogPage::title" ref="a23ffdf44657b534777b8a6ea1a1a0b0b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KPrintDialogPage::title </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the page title. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the page title </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPrintDialogPage.html#a846c1211df5304330e9c37d5db4ead71" title="Set the page title.">setTitle()</a> </dd></dl>

<p>Definition at line <a class="el" href="kprintdialogpage_8h_source.html#l00147">147</a> of file <a class="el" href="kprintdialogpage_8h_source.html">kprintdialogpage.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="kprintdialogpage_8h_source.html">kprintdialogpage.h</a></li>
<li><a class="el" href="kprintdialogpage_8cpp_source.html">kprintdialogpage.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>