<?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.h Source File (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 class="header"> <div class="headertitle"> <div class="title">kprinter.h</div> </div> </div> <div class="contents"> <div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span> <a name="l00002"></a>00002 <span class="comment"> * This file is part of the KDE libraries</span> <a name="l00003"></a>00003 <span class="comment"> * Copyright (c) 2001 Michael Goffioul <kdeprint@swing.be></span> <a name="l00004"></a>00004 <span class="comment"> *</span> <a name="l00005"></a>00005 <span class="comment"> *</span> <a name="l00006"></a>00006 <span class="comment"> * This library is free software; you can redistribute it and/or</span> <a name="l00007"></a>00007 <span class="comment"> * modify it under the terms of the GNU Library General Public</span> <a name="l00008"></a>00008 <span class="comment"> * License version 2 as published by the Free Software Foundation.</span> <a name="l00009"></a>00009 <span class="comment"> *</span> <a name="l00010"></a>00010 <span class="comment"> * This library is distributed in the hope that it will be useful,</span> <a name="l00011"></a>00011 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <a name="l00012"></a>00012 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span> <a name="l00013"></a>00013 <span class="comment"> * Library General Public License for more details.</span> <a name="l00014"></a>00014 <span class="comment"> *</span> <a name="l00015"></a>00015 <span class="comment"> * You should have received a copy of the GNU Library General Public License</span> <a name="l00016"></a>00016 <span class="comment"> * along with this library; see the file COPYING.LIB. If not, write to</span> <a name="l00017"></a>00017 <span class="comment"> * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span> <a name="l00018"></a>00018 <span class="comment"> * Boston, MA 02110-1301, USA.</span> <a name="l00019"></a>00019 <span class="comment"> **/</span> <a name="l00020"></a>00020 <a name="l00021"></a>00021 <span class="preprocessor">#ifndef KPRINTER_H</span> <a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#define KPRINTER_H</span> <a name="l00023"></a>00023 <span class="preprocessor"></span> <a name="l00024"></a>00024 <span class="preprocessor">#include <qpaintdevice.h></span> <a name="l00025"></a>00025 <span class="preprocessor">#include <qprinter.h></span> <a name="l00026"></a>00026 <span class="preprocessor">#include <qmap.h></span> <a name="l00027"></a>00027 <span class="preprocessor">#include <qstring.h></span> <a name="l00028"></a>00028 <span class="preprocessor">#include <qstringlist.h></span> <a name="l00029"></a>00029 <span class="preprocessor">#include <qvaluelist.h></span> <a name="l00030"></a>00030 <span class="preprocessor">#include <kdemacros.h></span> <a name="l00031"></a>00031 <span class="preprocessor">#include <kdelibs_export.h></span> <a name="l00032"></a>00032 <a name="l00033"></a>00033 <span class="preprocessor">#include <kdeprint/kpreloadobject.h></span> <a name="l00034"></a>00034 <a name="l00035"></a>00035 <span class="keyword">class </span>KPrinterImpl; <a name="l00036"></a>00036 <span class="keyword">class </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>; <a name="l00037"></a>00037 <span class="keyword">class </span>KPrinterPrivate; <a name="l00038"></a>00038 <span class="keyword">class </span>DrPageSize; <a name="l00039"></a>00039 <a name="l00088"></a><a class="code" href="classKPrinter.html">00088</a> <span class="keyword">class </span>KDEPRINT_EXPORT <a class="code" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a> : <span class="keyword">public</span> <a class="codeRef" href="qpaintdevice.html">QPaintDevice</a>, <span class="keyword">public</span> KPReloadObject <a name="l00089"></a>00089 { <a name="l00090"></a>00090 <span class="keyword">friend</span> <span class="keyword">class </span>KPrinterWrapper; <a name="l00091"></a>00091 <span class="keyword">friend</span> <span class="keyword">class </span>KPrinterImpl; <a name="l00092"></a>00092 <span class="keyword">public</span>: <a name="l00093"></a>00093 <span class="comment">// Print global settings (set via static functions)</span> <a name="l00102"></a><a class="code" href="classKPrinter.html#a5aac9a81bc890f76dce1b3e59e8e3755">00102</a> <span class="comment"></span> <span class="keyword">enum</span> <a class="code" href="classKPrinter.html#a5aac9a81bc890f76dce1b3e59e8e3755" title="Defines the standard pages available for the print dialog:">StandardPageType</a> { CopiesPage = 0x01, FilesPage = 0x02, Custom = 0x10 }; <a name="l00116"></a><a class="code" href="classKPrinter.html#a7c59f005bf28b7cf7888b161f0b0cb4d">00116</a> <span class="keyword">enum</span> <a class="code" href="classKPrinter.html#a7c59f005bf28b7cf7888b161f0b0cb4d" title="Defines whether the application can perform page selection itself or not.">PageSelectionType</a> { ApplicationSide = 0x01, SystemSide = 0x02 }; <a name="l00126"></a><a class="code" href="classKPrinter.html#a42d86b7b7d9c88237937748d7c128355">00126</a> <span class="keyword">enum</span> <a class="code" href="classKPrinter.html#a42d86b7b7d9c88237937748d7c128355" title="Defines the type of the application, this affects the GUI of the print dialog:">ApplicationType</a> { Dialog = 0x00, StandAlone = 0x01, StandAlonePersistent = 0x02 }; <a name="l00127"></a>00127 <a name="l00128"></a>00128 <span class="comment">// QPrinter extension</span> <a name="l00137"></a><a class="code" href="classKPrinter.html#a7f6940c97f979952f1099b0764e43961">00137</a> <span class="comment"></span> <span class="keyword">enum</span> <a class="code" href="classKPrinter.html#a7f6940c97f979952f1099b0764e43961" title="Defines the page set to print:">PageSetType</a> { AllPages = 0x00, OddPages = 0x01, EvenPages = 0x02 }; <a name="l00145"></a><a class="code" href="classKPrinter.html#aa6719cf21322ecd0bca4fc764d7ecd7c">00145</a> <span class="keyword">enum</span> <a class="code" href="classKPrinter.html#aa6719cf21322ecd0bca4fc764d7ecd7c" title="Defines the collate property of the printer (if supported by the print system):">CollateType</a> { Collate = 0x00, Uncollate = 0x01 }; <a name="l00146"></a>00146 <a name="l00147"></a>00147 <span class="comment">// from QPrinter class</span> <a name="l00152"></a><a class="code" href="classKPrinter.html#acfe1b1ece0fa03e0758697feade17c20">00152</a> <span class="comment"></span> <span class="keyword">enum</span> <a class="code" href="classKPrinter.html#acfe1b1ece0fa03e0758697feade17c20" title="Defines the color mode of the printer.">ColorMode</a> { GrayScale = QPrinter::GrayScale, Color = QPrinter::Color }; <a name="l00157"></a><a class="code" href="classKPrinter.html#af41ac751bb785b2c998255180035ad89">00157</a> <span class="keyword">enum</span> <a class="code" href="classKPrinter.html#af41ac751bb785b2c998255180035ad89" title="Defines the orientation of the paper.">Orientation</a> { Portrait = QPrinter::Portrait, Landscape = QPrinter::Landscape }; <a name="l00162"></a><a class="code" href="classKPrinter.html#ab2c3814253a64f1d9f318571e9cbe22f">00162</a> <span class="keyword">enum</span> <a class="code" href="classKPrinter.html#ab2c3814253a64f1d9f318571e9cbe22f" title="Defines the page order of the print job.">PageOrder</a> { FirstPageFirst = QPrinter::FirstPageFirst, LastPageFirst = QPrinter::LastPageFirst }; <a name="l00167"></a><a class="code" href="classKPrinter.html#a14bad784daffaf6f9722907ed3c0d35b">00167</a> <span class="keyword">enum</span> <a class="code" href="classKPrinter.html#a14bad784daffaf6f9722907ed3c0d35b" title="Defines the paper size to use.">PageSize</a> <a name="l00168"></a>00168 { <a name="l00169"></a>00169 A4 = QPrinter::A4, <a name="l00170"></a>00170 B5 = QPrinter::B5, <a name="l00171"></a>00171 Letter = QPrinter::Letter, <a name="l00172"></a>00172 Legal = QPrinter::Legal, <a name="l00173"></a>00173 Executive = QPrinter::Executive, <a name="l00174"></a>00174 A0 = QPrinter::A0, <a name="l00175"></a>00175 A1 = QPrinter::A1, <a name="l00176"></a>00176 A2 = QPrinter::A2, <a name="l00177"></a>00177 A3 = QPrinter::A3, <a name="l00178"></a>00178 A5 = QPrinter::A5, <a name="l00179"></a>00179 A6 = QPrinter::A6, <a name="l00180"></a>00180 A7 = QPrinter::A7, <a name="l00181"></a>00181 A8 = QPrinter::A8, <a name="l00182"></a>00182 A9 = QPrinter::A9, <a name="l00183"></a>00183 B0 = QPrinter::B0, <a name="l00184"></a>00184 B1 = QPrinter::B1, <a name="l00185"></a>00185 B10 = QPrinter::B10, <a name="l00186"></a>00186 B2 = QPrinter::B2, <a name="l00187"></a>00187 B3 = QPrinter::B3, <a name="l00188"></a>00188 B4 = QPrinter::B4, <a name="l00189"></a>00189 B6 = QPrinter::B6, <a name="l00190"></a>00190 B7 = QPrinter::B7, <a name="l00191"></a>00191 B8 = QPrinter::B8, <a name="l00192"></a>00192 B9 = QPrinter::B9, <a name="l00193"></a>00193 C5E = QPrinter::C5E, <a name="l00194"></a>00194 Comm10E = QPrinter::Comm10E, <a name="l00195"></a>00195 DLE = QPrinter::DLE, <a name="l00196"></a>00196 Folio = QPrinter::Folio, <a name="l00197"></a>00197 Ledger = QPrinter::Ledger, <a name="l00198"></a>00198 Tabloid = QPrinter::Tabloid, <a name="l00199"></a>00199 NPageSize = QPrinter::NPageSize <a name="l00200"></a>00200 }; <a name="l00201"></a>00201 <a name="l00202"></a>00202 <span class="comment">// constructors / destructor</span> <a name="l00210"></a>00210 <span class="comment"></span> <a class="code" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a>(<span class="keywordtype">bool</span> restore = <span class="keyword">true</span>, QPrinter::PrinterMode m = QPrinter::ScreenResolution ); <a name="l00214"></a>00214 ~<a class="code" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a>(); <a name="l00215"></a>00215 <a name="l00216"></a>00216 <span class="comment">// QPrinter interface (+ some extensions)</span> <a name="l00220"></a>00220 <span class="comment"></span> <span class="keywordtype">bool</span> newPage(); <a name="l00224"></a>00224 <span class="keywordtype">bool</span> abort(); <a name="l00228"></a>00228 <span class="keywordtype">bool</span> aborted() <span class="keyword">const</span>; <a name="l00232"></a>00232 <span class="keywordtype">bool</span> outputToFile() <span class="keyword">const</span>; <a name="l00236"></a>00236 <span class="keywordtype">void</span> setOutputToFile(<span class="keywordtype">bool</span>); <a name="l00240"></a>00240 <a class="codeRef" href="qstring.html">QString</a> outputFileName() <span class="keyword">const</span>; <a name="l00244"></a>00244 <span class="keywordtype">void</span> setOutputFileName(<span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&); <a name="l00248"></a>00248 <a class="codeRef" href="qstring.html">QString</a> docName() <span class="keyword">const</span>; <a name="l00252"></a>00252 <span class="keywordtype">void</span> setDocName(<span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&); <a name="l00256"></a>00256 <a class="codeRef" href="qstring.html">QString</a> creator() <span class="keyword">const</span>; <a name="l00260"></a>00260 <span class="keywordtype">void</span> setCreator(<span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&); <a name="l00264"></a>00264 <span class="keywordtype">bool</span> fullPage() <span class="keyword">const</span>; <a name="l00268"></a>00268 <span class="keywordtype">void</span> setFullPage(<span class="keywordtype">bool</span>); <a name="l00272"></a>00272 ColorMode colorMode() <span class="keyword">const</span>; <a name="l00276"></a>00276 <span class="keywordtype">void</span> setColorMode(ColorMode); <a name="l00280"></a>00280 <span class="keywordtype">int</span> numCopies() <span class="keyword">const</span>; <a name="l00284"></a>00284 <span class="keywordtype">void</span> setNumCopies(<span class="keywordtype">int</span> n); <a name="l00288"></a>00288 Orientation orientation() <span class="keyword">const</span>; <a name="l00292"></a>00292 <span class="keywordtype">void</span> setOrientation(Orientation); <a name="l00296"></a>00296 PageOrder pageOrder() <span class="keyword">const</span>; <a name="l00300"></a>00300 <span class="keywordtype">void</span> setPageOrder(PageOrder); <a name="l00304"></a>00304 CollateType collate() <span class="keyword">const</span>; <a name="l00308"></a>00308 <span class="keywordtype">void</span> setCollate(CollateType type); <a name="l00312"></a>00312 <span class="keywordtype">int</span> minPage() <span class="keyword">const</span>; <a name="l00316"></a>00316 <span class="keywordtype">int</span> maxPage() <span class="keyword">const</span>; <a name="l00320"></a>00320 <span class="keywordtype">void</span> setMinMax(<span class="keywordtype">int</span>, <span class="keywordtype">int</span>); <a name="l00329"></a>00329 <span class="keywordtype">int</span> fromPage() const KDE_DEPRECATED; <a name="l00338"></a>00338 <span class="keywordtype">int</span> toPage() const; <a name="l00342"></a>00342 <span class="keywordtype">void</span> setFromTo(<span class="keywordtype">int</span>, <span class="keywordtype">int</span>); <a name="l00346"></a>00346 PageSize pageSize() const; <a name="l00350"></a>00350 <span class="keywordtype">void</span> setPageSize(PageSize); <a name="l00354"></a>00354 <a class="codeRef" href="qstring.html">QString</a> printerName() const; <a name="l00358"></a>00358 <span class="keywordtype">void</span> setPrinterName(const <a class="codeRef" href="qstring.html">QString</a>&); <a name="l00365"></a>00365 QString printProgram() const; <a name="l00394"></a>00394 <span class="keywordtype">void</span> setPrintProgram(const QString& cmd); <a name="l00398"></a>00398 QString printerSelectionOption() const; <a name="l00402"></a>00402 <span class="keywordtype">void</span> setPrinterSelectionOption(const QString&); <a name="l00407"></a>00407 <span class="keywordtype">int</span> currentPage() const; <a name="l00435"></a>00435 <span class="keywordtype">void</span> setCurrentPage(<span class="keywordtype">int</span> p = 0); <a name="l00439"></a>00439 PageSetType pageSet() const; <a name="l00447"></a>00447 <span class="keywordtype">bool</span> setup(<a class="codeRef" href="qwidget.html">QWidget</a> *parent = 0, const QString& caption = QString::null, <span class="keywordtype">bool</span> forceExpand = false); <a name="l00451"></a>00451 <a class="codeRef" href="qsize.html">QSize</a> margins() const; <a name="l00455"></a>00455 <span class="keywordtype">void</span> setMargins(<a class="codeRef" href="qsize.html">QSize</a> m); <a name="l00465"></a>00465 <a class="codeRef" href="qsize.html">QSize</a> realPageSize() const; <a name="l00470"></a>00470 <span class="keywordtype">void</span> setRealPageSize( <a class="codeRef" href="qsize.html">QSize</a> p ); <a name="l00475"></a>00475 <span class="keywordtype">void</span> setRealDrawableArea( const <a class="codeRef" href="qrect.html">QRect</a>& r ); <a name="l00480"></a>00480 <a class="codeRef" href="qrect.html">QRect</a> realDrawableArea() const; <a name="l00481"></a>00481 <a name="l00482"></a>00482 <span class="keywordtype">void</span> margins( uint *top, uint *left, uint *bottom, uint *right ) const; <a name="l00483"></a>00483 <span class="keywordtype">void</span> setMargins( uint top, uint left, uint bottom, uint right ); <a name="l00484"></a>00484 <a name="l00491"></a>00491 <a class="codeRef" href="qvaluelist.html">QValueList</a><<span class="keywordtype">int</span>> pageList() const; <a name="l00511"></a>00511 <span class="keywordtype">void</span> setPreviewOnly(<span class="keywordtype">bool</span> on); <a name="l00516"></a>00516 <span class="keywordtype">bool</span> previewOnly() const; <a name="l00525"></a>00525 <span class="keywordtype">void</span> setResolution(<span class="keywordtype">int</span> dpi); <a name="l00531"></a>00531 <span class="keywordtype">int</span> resolution() const; <a name="l00532"></a>00532 <a name="l00543"></a>00543 <span class="keywordtype">void</span> setUsePrinterResolution( <span class="keywordtype">bool</span> on ); <a name="l00544"></a>00544 <a name="l00548"></a>00548 KPrinterImpl* implementation() const; <a name="l00556"></a>00556 <span class="keywordtype">bool</span> printFiles(const <a class="codeRef" href="qstringlist.html">QStringList</a>& files, <span class="keywordtype">bool</span> removeafter = false, <span class="keywordtype">bool</span> startviewer = true); <a name="l00557"></a>00557 <a name="l00567"></a>00567 static <span class="keywordtype">void</span> addDialogPage(<a class="code" href="classKPrintDialogPage.html" title="This class is intended to be used as base class for customized print dialog page.">KPrintDialogPage</a>* _page); <a name="l00574"></a>00574 static <span class="keywordtype">void</span> setPageSelection(PageSelectionType _mode); <a name="l00580"></a>00580 static PageSelectionType pageSelection(); <a name="l00587"></a>00587 static <span class="keywordtype">void</span> setApplicationType(ApplicationType type); <a name="l00593"></a>00593 static ApplicationType applicationType(); <a name="l00600"></a>00600 static <span class="keywordtype">void</span> addStandardPage(<span class="keywordtype">int</span> p); <a name="l00608"></a>00608 static <span class="keywordtype">void</span> removeStandardPage(<span class="keywordtype">int</span> p); <a name="l00615"></a>00615 <span class="comment">//static int addPrinterWizard(QWidget *parent = 0);</span> <a name="l00616"></a>00616 <a name="l00647"></a>00647 const QString& option(const QString& key) const; <a name="l00656"></a>00656 <span class="keywordtype">void</span> setOption(const QString& key, const QString& value); <a name="l00661"></a>00661 const <a class="codeRef" href="qmap.html">QMap</a><QString,QString>& options() const; <a name="l00668"></a>00668 <span class="keywordtype">void</span> setOptions(const <a class="codeRef" href="qmap.html">QMap</a><QString,QString>& opts); <a name="l00675"></a>00675 <span class="keywordtype">void</span> initOptions(const <a class="codeRef" href="qmap.html">QMap</a><QString,QString>& opts); <a name="l00676"></a>00676 <a name="l00683"></a>00683 QString searchName() const; <a name="l00689"></a>00689 <span class="keywordtype">void</span> setSearchName(const QString& n); <a name="l00694"></a>00694 QString errorMessage() const; <a name="l00699"></a>00699 <span class="keywordtype">void</span> setErrorMessage(const QString& msg); <a name="l00717"></a>00717 <span class="keywordtype">bool</span> autoConfigure(const QString& prname = QString::null, <a class="codeRef" href="qwidget.html">QWidget</a> *parent = 0); <a name="l00726"></a>00726 <span class="keywordtype">void</span> setDocFileName(const QString& filename); <a name="l00733"></a>00733 QString docFileName() const; <a name="l00741"></a>00741 <span class="keywordtype">void</span> setDocDirectory( const QString& dir ); <a name="l00748"></a>00748 QString docDirectory() const; <a name="l00749"></a>00749 <a name="l00750"></a>00750 protected: <a name="l00751"></a>00751 virtual <span class="keywordtype">bool</span> cmd(<span class="keywordtype">int</span>, <a class="codeRef" href="qpainter.html">QPainter</a>*, QPDevCmdParam*); <a name="l00752"></a>00752 virtual <span class="keywordtype">int</span> metric(<span class="keywordtype">int</span>) const; <a name="l00753"></a>00753 <span class="keywordtype">void</span> translateQtOptions(); <a name="l00754"></a>00754 <span class="keywordtype">void</span> loadSettings(); <a name="l00755"></a>00755 <span class="keywordtype">void</span> saveSettings(); <a name="l00756"></a>00756 <span class="keywordtype">void</span> preparePrinting(); <a name="l00757"></a>00757 <span class="keywordtype">void</span> finishPrinting(); <a name="l00758"></a>00758 <span class="keywordtype">void</span> reload(); <a name="l00759"></a>00759 <span class="keywordtype">void</span> init(<span class="keywordtype">bool</span> restore = true, <a class="codeRef" href="qprinter.html">QPrinter</a>::PrinterMode m = <a class="codeRef" href="qprinter.html">QPrinter</a>::ScreenResolution); <a name="l00760"></a>00760 <span class="keywordtype">bool</span> doPreview(const QString& file); <a name="l00761"></a>00761 <span class="keywordtype">void</span> setRealPageSize(DrPageSize* p); <a name="l00762"></a>00762 <span class="keywordtype">void</span> setOption( const QString& key, const QString& value, <span class="keywordtype">bool</span> broadcast ); <a name="l00763"></a>00763 <a name="l00764"></a>00764 protected: <a name="l00765"></a>00765 KPrinterPrivate *d; <a name="l00766"></a>00766 }; <a name="l00767"></a>00767 <a name="l00768"></a>00768 <span class="comment">//**************************************************************************************</span> <a name="l00769"></a>00769 <a name="l00770"></a>00770 <span class="comment">// Utility functions</span> <a name="l00771"></a>00771 <a name="l00772"></a>00772 KDEPRINT_EXPORT <a class="code" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a>::PageSize pageNameToPageSize(const QString& name); <a name="l00773"></a>00773 KDEPRINT_EXPORT const <span class="keywordtype">char</span>* pageSizeToPageName(<a class="code" href="classKPrinter.html" title="This class is the main interface to access the KDE print framework.">KPrinter</a>::PageSize s); <a name="l00778"></a>00778 <a class="codeRef" href="qsize.html">QSize</a> rangeToSize( const QString& ); <a name="l00779"></a>00779 <a name="l00780"></a>00780 <span class="preprocessor">#endif</span> </pre></div></div> </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> <a href="../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li> <a href="../../interfaces/kimproxy/library/html/index.html">library</a></li><li> <a href="../../interfaces/kspeech/html/index.html">kspeech</a></li><li> <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> <a href="../../kio/bookmarks/html/index.html">bookmarks</a></li><li> <a href="../../kio/httpfilter/html/index.html">httpfilter</a></li><li> <a href="../../kio/kfile/html/index.html">kfile</a></li><li> <a href="../../kio/kio/html/index.html">kio</a></li><li> <a href="../../kio/kioexec/html/index.html">kioexec</a></li><li> <a href="../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li> <a href="../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../kioslave/html/index.html">kioslave</a></li><li> <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> <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="mailto:groot@kde.org">Adriaan de Groot</a> and <a href="mailto:winter@kde.org">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>