|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /usr/share/gtk-doc/html/gtk/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>GtkPrintUnixDialog</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<link rel="start" href="index.html" title="GTK+ Reference Manual">
<link rel="up" href="Printing.html" title="Printing">
<link rel="prev" href="GtkPrintJob.html" title="GtkPrintJob">
<link rel="next" href="GtkPageSetupUnixDialog.html" title="GtkPageSetupUnixDialog">
<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="gtk.html" title="Part I. GTK+ Overview">
<link rel="part" href="gtkbase.html" title="Part II. GTK+ Core Reference">
<link rel="part" href="gtkobjects.html" title="Part III. GTK+ Widgets and Objects">
<link rel="chapter" href="ch01.html" title="Object Hierarchy">
<link rel="chapter" href="ch02.html" title="Widget Gallery">
<link rel="chapter" href="WindowWidgets.html" title="Windows">
<link rel="chapter" href="DisplayWidgets.html" title="Display Widgets">
<link rel="chapter" href="ButtonWidgets.html" title="Buttons and Toggles">
<link rel="chapter" href="NumericEntry.html" title="Numeric/Text Data Entry">
<link rel="chapter" href="TextWidgetObjects.html" title="Multiline Text Editor">
<link rel="chapter" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
<link rel="chapter" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar">
<link rel="chapter" href="Actions.html" title="Action-based menus and toolbars">
<link rel="chapter" href="SelectorWidgets.html" title="Selectors (File/Font/Color/Input Devices)">
<link rel="chapter" href="LayoutContainers.html" title="Layout Containers">
<link rel="chapter" href="Ornaments.html" title="Ornaments">
<link rel="chapter" href="ScrollingWidgets.html" title="Scrolling">
<link rel="chapter" href="Printing.html" title="Printing">
<link rel="chapter" href="MiscObjects.html" title="Miscellaneous">
<link rel="chapter" href="AbstractObjects.html" title="Abstract Base Classes">
<link rel="chapter" href="PlugSocket.html" title="Cross-process Embedding">
<link rel="chapter" href="SpecialObjects.html" title="Special-purpose features">
<link rel="chapter" href="RecentDocuments.html" title="Recently Used Documents">
<link rel="chapter" href="DeprecatedObjects.html" title="Deprecated">
<link rel="part" href="migrating.html" title="Part IV. Migrating from Previous Versions of GTK+">
<link rel="chapter" href="gtk-migrating-checklist.html" title="Migration Checklist">
<link rel="chapter" href="gtk-migrating-GtkFileChooser.html" title="Migrating from GtkFileSelection to GtkFileChooser">
<link rel="chapter" href="gtk-migrating-GtkAction.html" title="Migrating from old menu and toolbar systems to GtkAction">
<link rel="chapter" href="gtk-migrating-GtkComboBox.html" title="Migrating from GtkOptionMenu and GtkCombo to GtkComboBox and
GtkComboBoxEntry">
<link rel="chapter" href="gtk-migrating-GtkIconView.html" title="Migrating from GnomeIconList to GtkIconView">
<link rel="chapter" href="gtk-migrating-GtkAboutDialog.html" title="Migrating from GnomeAbout to GtkAboutDialog">
<link rel="chapter" href="gtk-migrating-GtkColorButton.html" title="Migrating from GnomeColorPicker to GtkColorButton">
<link rel="chapter" href="gtk-migrating-GtkAssistant.html" title="Migrating from GnomeDruid to GtkAssistant">
<link rel="chapter" href="gtk-migrating-GtkRecentChooser.html" title="Migrating from EggRecent to GtkRecentChooser">
<link rel="chapter" href="gtk-migrating-GtkLinkButton.html" title="Migrating from GnomeHRef to GtkLinkButton">
<link rel="part" href="pt05.html" title="Part V. GTK+ Tools">
<link rel="glossary" href="glossary.html" title="Glossary">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
<link rel="index" href="ix03.html" title="Index of new symbols in 2.2">
<link rel="index" href="ix04.html" title="Index of new symbols in 2.4">
<link rel="index" href="ix05.html" title="Index of new symbols in 2.6">
<link rel="index" href="ix06.html" title="Index of new symbols in 2.8">
<link rel="index" href="ix07.html" title="Index of new symbols in 2.10">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="GtkPrintJob.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="Printing.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ Reference Manual</th>
<td><a accesskey="n" href="GtkPageSetupUnixDialog.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id3584032" class="shortcut">Top</a>
 | 
<a href="#id3584550" class="shortcut">Description</a>
 | 
<a href="#id3584363" class="shortcut">Object Hierarchy</a>
 | 
<a href="#id3584440" class="shortcut">Implemented Interfaces</a>
 | 
<a href="#id3584463" class="shortcut">Properties</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="GtkPrintUnixDialog"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id3584032"></a><span class="refentrytitle">GtkPrintUnixDialog</span>
</h2>
<p>GtkPrintUnixDialog — A print dialog</p>
</td>
<td valign="top" align="right"><img src="printdialog.png"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">
#include <gtk/gtkprintunixdialog.h>
<a href="GtkPrintUnixDialog.html#GtkPrintUnixDialog-struct">GtkPrintUnixDialog</a>;
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* <a href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-new">gtk_print_unix_dialog_new</a> (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *title,
<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *parent);
void <a href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-set-page-setup">gtk_print_unix_dialog_set_page_setup</a>
(<a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog">GtkPrintUnixDialog</a> *dialog,
<a href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *page_setup);
<a href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a>* <a href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-get-page-setup">gtk_print_unix_dialog_get_page_setup</a>
(<a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog">GtkPrintUnixDialog</a> *dialog);
void <a href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-set-current-page">gtk_print_unix_dialog_set_current_page</a>
(<a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog">GtkPrintUnixDialog</a> *dialog,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> current_page);
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> <a href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-get-current-page">gtk_print_unix_dialog_get_current_page</a>
(<a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog">GtkPrintUnixDialog</a> *dialog);
void <a href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-set-settings">gtk_print_unix_dialog_set_settings</a>
(<a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog">GtkPrintUnixDialog</a> *dialog,
<a href="GtkPrintSettings.html" title="GtkPrintSettings">GtkPrintSettings</a> *settings);
<a href="GtkPrintSettings.html" title="GtkPrintSettings">GtkPrintSettings</a>* <a href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-get-settings">gtk_print_unix_dialog_get_settings</a>
(<a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog">GtkPrintUnixDialog</a> *dialog);
<a href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a>* <a href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-get-selected-printer">gtk_print_unix_dialog_get_selected_printer</a>
(<a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog">GtkPrintUnixDialog</a> *dialog);
void <a href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-add-custom-tab">gtk_print_unix_dialog_add_custom_tab</a>
(<a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog">GtkPrintUnixDialog</a> *dialog,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *tab_label);
enum <a href="GtkPrintUnixDialog.html#GtkPrintCapabilities">GtkPrintCapabilities</a>;
void <a href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-set-manual-capabilities">gtk_print_unix_dialog_set_manual_capabilities</a>
(<a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog">GtkPrintUnixDialog</a> *dialog,
<a href="GtkPrintUnixDialog.html#GtkPrintCapabilities">GtkPrintCapabilities</a> capabilities);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3584363"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
+----<a
href="../gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
>GInitiallyUnowned</a>
+----<a href="GtkObject.html" title="GtkObject">GtkObject</a>
+----<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
+----<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
+----<a href="GtkBin.html" title="GtkBin">GtkBin</a>
+----<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a>
+----<a href="GtkDialog.html" title="GtkDialog">GtkDialog</a>
+----GtkPrintUnixDialog
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3584440"></a><h2>Implemented Interfaces</h2>
<p>
GtkPrintUnixDialog implements
AtkImplementorIface.</p>
</div>
<div class="refsect1" lang="en">
<a name="id3584463"></a><h2>Properties</h2>
<pre class="synopsis">
"<a href="GtkPrintUnixDialog.html#GtkPrintUnixDialog--current-page">current-page</a>" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> : Read / Write
"<a href="GtkPrintUnixDialog.html#GtkPrintUnixDialog--page-setup">page-setup</a>" <a href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> : Read / Write
"<a href="GtkPrintUnixDialog.html#GtkPrintUnixDialog--print-settings">print-settings</a>" <a href="GtkPrintSettings.html" title="GtkPrintSettings">GtkPrintSettings</a> : Read / Write
"<a href="GtkPrintUnixDialog.html#GtkPrintUnixDialog--selected-printer">selected-printer</a>" <a href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> : Read
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3584550"></a><h2>Description</h2>
<p>
GtkPrintUnixDialog implements a print dialog for platforms
which don't provide a native print dialog, like Unix. It can
be used very much like any other GTK+ dialog, at the cost of
the portability offered by the <a href="gtk-High-level-Printing-API.html" title="GtkPrintOperation">high-level printing API</a>
</p>
<p>
In order to print something with <a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>, you need
to use <a href="GtkPrintUnixDialog.html#gtk-print-unix-dialog-get-selected-printer"><code class="function">gtk_print_unix_dialog_get_selected_printer()</code></a> to obtain
a <a href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a> object and use it to construct a <a href="GtkPrintJob.html" title="GtkPrintJob"><span class="type">GtkPrintJob</span></a> using
<a href="GtkPrintJob.html#gtk-print-job-new"><code class="function">gtk_print_job_new()</code></a>.
</p>
<p>
<a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> uses the following response values:
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><a href="GtkDialog.html#GTK-RESPONSE-OK:CAPS"><code class="literal">GTK_RESPONSE_OK</code></a></span></td>
<td><p>for the "Print" button</p></td>
</tr>
<tr>
<td>
<span class="term"><a href="GtkDialog.html#GTK-RESPONSE-APPLY:CAPS"><code class="literal">GTK_RESPONSE_APPLY</code></a></span></td>
<td><p>for the "Preview" button</p></td>
</tr>
<tr>
<td>
<span class="term"><a href="GtkDialog.html#GTK-RESPONSE-CANCEL:CAPS"><code class="literal">GTK_RESPONSE_CANCEL</code></a></span></td>
<td><p>for the "Cancel" button</p></td>
</tr>
</tbody>
</table></div>
<p>
</p>
<p>
Printing support was added in GTK+ 2.10.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id3584706"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id3584716"></a><h3>
<a name="GtkPrintUnixDialog-struct"></a>GtkPrintUnixDialog</h3>
<a class="indexterm" name="id3584729"></a><pre class="programlisting">typedef struct _GtkPrintUnixDialog GtkPrintUnixDialog;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3584745"></a><h3>
<a name="gtk-print-unix-dialog-new"></a>gtk_print_unix_dialog_new ()</h3>
<a class="indexterm" name="id3584761"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* gtk_print_unix_dialog_new (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *title,
<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *parent);</pre>
<p>
Creates a new <a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>title</code></em> :</span></td>
<td> Title of the dialog, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>parent</code></em> :</span></td>
<td> Transient parent of the dialog, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a new <a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3584884"></a><h3>
<a name="gtk-print-unix-dialog-set-page-setup"></a>gtk_print_unix_dialog_set_page_setup ()</h3>
<a class="indexterm" name="id3584900"></a><pre class="programlisting">void gtk_print_unix_dialog_set_page_setup
(<a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog">GtkPrintUnixDialog</a> *dialog,
<a href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *page_setup);</pre>
<p>
Sets the page setup of the <a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> a <a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>page_setup</code></em> :</span></td>
<td> a <a href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3585002"></a><h3>
<a name="gtk-print-unix-dialog-get-page-setup"></a>gtk_print_unix_dialog_get_page_setup ()</h3>
<a class="indexterm" name="id3585019"></a><pre class="programlisting"><a href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a>* gtk_print_unix_dialog_get_page_setup
(<a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog">GtkPrintUnixDialog</a> *dialog);</pre>
<p>
Gets the page setup that is used by the <a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> a <a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the page setup of <em class="parameter"><code>dialog</code></em>.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3585108"></a><h3>
<a name="gtk-print-unix-dialog-set-current-page"></a>gtk_print_unix_dialog_set_current_page ()</h3>
<a class="indexterm" name="id3585124"></a><pre class="programlisting">void gtk_print_unix_dialog_set_current_page
(<a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog">GtkPrintUnixDialog</a> *dialog,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> current_page);</pre>
<p>
Sets the current page number. If <em class="parameter"><code>current_page</code></em> is not -1, this enables
the current page choice for the range of pages to print.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> a <a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>current_page</code></em> :</span></td>
<td> the current page number.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3585218"></a><h3>
<a name="gtk-print-unix-dialog-get-current-page"></a>gtk_print_unix_dialog_get_current_page ()</h3>
<a class="indexterm" name="id3585234"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> gtk_print_unix_dialog_get_current_page
(<a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog">GtkPrintUnixDialog</a> *dialog);</pre>
<p>
Gets the current page of the <span class="type">GtkPrintDialog</span>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> a <a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the current page of <em class="parameter"><code>dialog</code></em>
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3585324"></a><h3>
<a name="gtk-print-unix-dialog-set-settings"></a>gtk_print_unix_dialog_set_settings ()</h3>
<a class="indexterm" name="id3585341"></a><pre class="programlisting">void gtk_print_unix_dialog_set_settings
(<a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog">GtkPrintUnixDialog</a> *dialog,
<a href="GtkPrintSettings.html" title="GtkPrintSettings">GtkPrintSettings</a> *settings);</pre>
<p>
Sets the <a href="GtkPrintSettings.html" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a> for the <a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>. Typically,
this is used to restore saved print settings from a previous print
operation before the print dialog is shown.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> a <a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>settings</code></em> :</span></td>
<td> a <a href="GtkPrintSettings.html" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a>, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3585463"></a><h3>
<a name="gtk-print-unix-dialog-get-settings"></a>gtk_print_unix_dialog_get_settings ()</h3>
<a class="indexterm" name="id3585480"></a><pre class="programlisting"><a href="GtkPrintSettings.html" title="GtkPrintSettings">GtkPrintSettings</a>* gtk_print_unix_dialog_get_settings
(<a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog">GtkPrintUnixDialog</a> *dialog);</pre>
<p>
Gets a new <a href="GtkPrintSettings.html" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a> object that represents the
current values in the print dialog. Note that this creates a
<span class="emphasis"><em>new object</em></span>, and you need to unref it
if don't want to keep it.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> a <a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a new <a href="GtkPrintSettings.html" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a> object with the values from <em class="parameter"><code>dialog</code></em>
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3585582"></a><h3>
<a name="gtk-print-unix-dialog-get-selected-printer"></a>gtk_print_unix_dialog_get_selected_printer ()</h3>
<a class="indexterm" name="id3585600"></a><pre class="programlisting"><a href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a>* gtk_print_unix_dialog_get_selected_printer
(<a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog">GtkPrintUnixDialog</a> *dialog);</pre>
<p>
Gets the currently selected printer.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> a <a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the currently selected printer
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3585674"></a><h3>
<a name="gtk-print-unix-dialog-add-custom-tab"></a>gtk_print_unix_dialog_add_custom_tab ()</h3>
<a class="indexterm" name="id3585691"></a><pre class="programlisting">void gtk_print_unix_dialog_add_custom_tab
(<a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog">GtkPrintUnixDialog</a> *dialog,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *tab_label);</pre>
<p>
Adds a custom tab to the print dialog.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> a <a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>child</code></em> :</span></td>
<td> the widget to put in the custom tab
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>tab_label</code></em> :</span></td>
<td> the widget to use as tab label
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3585799"></a><h3>
<a name="GtkPrintCapabilities"></a>enum GtkPrintCapabilities</h3>
<a class="indexterm" name="id3585812"></a><pre class="programlisting">typedef enum
{
GTK_PRINT_CAPABILITY_PAGE_SET = 1 << 0,
GTK_PRINT_CAPABILITY_COPIES = 1 << 1,
GTK_PRINT_CAPABILITY_COLLATE = 1 << 2,
GTK_PRINT_CAPABILITY_REVERSE = 1 << 3,
GTK_PRINT_CAPABILITY_SCALE = 1 << 4,
GTK_PRINT_CAPABILITY_GENERATE_PDF = 1 << 5,
GTK_PRINT_CAPABILITY_GENERATE_PS = 1 << 6,
GTK_PRINT_CAPABILITY_PREVIEW = 1 << 7
} GtkPrintCapabilities;
</pre>
<p>
An enum for specifying which features the print dialog should offer.
I neither <a href="GtkPrintUnixDialog.html#GTK-PRINT-CAPABILITY-GENERATE-PDF:CAPS"><code class="literal">GTK_PRINT_CAPABILITY_GENERATE_PDF</code></a> nor <a href="GtkPrintUnixDialog.html#GTK-PRINT-CAPABILITY-GENERATE-PS:CAPS"><code class="literal">GTK_PRINT_CAPABILITY_GENERATE_PS</code></a> is
specified, GTK+ assumes that all formats are supported.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><a name="GTK-PRINT-CAPABILITY-PAGE-SET:CAPS"></a><code class="literal">GTK_PRINT_CAPABILITY_PAGE_SET</code></span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-PRINT-CAPABILITY-COPIES:CAPS"></a><code class="literal">GTK_PRINT_CAPABILITY_COPIES</code></span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-PRINT-CAPABILITY-COLLATE:CAPS"></a><code class="literal">GTK_PRINT_CAPABILITY_COLLATE</code></span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-PRINT-CAPABILITY-REVERSE:CAPS"></a><code class="literal">GTK_PRINT_CAPABILITY_REVERSE</code></span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-PRINT-CAPABILITY-SCALE:CAPS"></a><code class="literal">GTK_PRINT_CAPABILITY_SCALE</code></span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-PRINT-CAPABILITY-GENERATE-PDF:CAPS"></a><code class="literal">GTK_PRINT_CAPABILITY_GENERATE_PDF</code></span></td>
<td>The program will send the document to the printer in PDF format
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-PRINT-CAPABILITY-GENERATE-PS:CAPS"></a><code class="literal">GTK_PRINT_CAPABILITY_GENERATE_PS</code></span></td>
<td>The program will send the document to the printer in Postscript format
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-PRINT-CAPABILITY-PREVIEW:CAPS"></a><code class="literal">GTK_PRINT_CAPABILITY_PREVIEW</code></span></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3586057"></a><h3>
<a name="gtk-print-unix-dialog-set-manual-capabilities"></a>gtk_print_unix_dialog_set_manual_capabilities ()</h3>
<a class="indexterm" name="id3586073"></a><pre class="programlisting">void gtk_print_unix_dialog_set_manual_capabilities
(<a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog">GtkPrintUnixDialog</a> *dialog,
<a href="GtkPrintUnixDialog.html#GtkPrintCapabilities">GtkPrintCapabilities</a> capabilities);</pre>
<p>
This lets you specify the printing capabilities your application
supports. For instance, if you can handle scaling the output then
you pass <a href="GtkPrintUnixDialog.html#GTK-PRINT-CAPABILITY-SCALE:CAPS"><span class="type">GTK_PRINT_CAPABILITY_SCALE</span></a>. If you don't pass that, then
the dialog will only let you select the scale if the printing
system automatically handles scaling.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> a <a href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>capabilities</code></em> :</span></td>
<td> the printing capabilities of your application
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3586177"></a><h2>Property Details</h2>
<div class="refsect2" lang="en">
<a name="id3586188"></a><h3>
<a name="GtkPrintUnixDialog--current-page"></a>The "<code class="literal">current-page</code>" property</h3>
<a class="indexterm" name="id3586203"></a><pre class="programlisting"> "current-page" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> : Read / Write</pre>
<p>The current page in the document.</p>
<p>Allowed values: >= -1</p>
<p>Default value: -1</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3586234"></a><h3>
<a name="GtkPrintUnixDialog--page-setup"></a>The "<code class="literal">page-setup</code>" property</h3>
<a class="indexterm" name="id3586251"></a><pre class="programlisting"> "page-setup" <a href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> : Read / Write</pre>
<p>The GtkPageSetup to use.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3586274"></a><h3>
<a name="GtkPrintUnixDialog--print-settings"></a>The "<code class="literal">print-settings</code>" property</h3>
<a class="indexterm" name="id3586291"></a><pre class="programlisting"> "print-settings" <a href="GtkPrintSettings.html" title="GtkPrintSettings">GtkPrintSettings</a> : Read / Write</pre>
<p>The GtkPrintSettings used for initializing the dialog.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3586315"></a><h3>
<a name="GtkPrintUnixDialog--selected-printer"></a>The "<code class="literal">selected-printer</code>" property</h3>
<a class="indexterm" name="id3586331"></a><pre class="programlisting"> "selected-printer" <a href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> : Read</pre>
<p>The GtkPrinter which is selected.</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3586356"></a><h2>See Also</h2>
<p>
<a href="GtkPageSetupUnixDialog.html" title="GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a>, <a href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>, <a href="GtkPrintJob.html" title="GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</p>
</div>
</div>
</body>
</html>