1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
7 <!-- ##### SECTION Long_Description ##### -->
9 GtkPrintUnixDialog implements a print dialog for platforms
10 which don't provide a native print dialog, like Unix. It can
11 be used very much like any other GTK+ dialog, at the cost of
12 the portability offered by the <link
13 linkend="gtk-High-level-Printing-API">high-level printing API</link>
16 In order to print something with #GtkPrintUnixDialog, you need
17 to use gtk_print_unix_dialog_get_selected_printer() to obtain
18 a #GtkPrinter object and use it to construct a #GtkPrintJob using
22 #GtkPrintUnixDialog uses the following response values:
24 <varlistentry><term>%GTK_RESPONSE_OK</term>
25 <listitem><para>for the "Print" button</para></listitem>
27 <varlistentry><term>%GTK_RESPONSE_APPLY</term>
28 <listitem><para>for the "Preview" button</para></listitem>
30 <varlistentry><term>%GTK_RESPONSE_CANCEL</term>
31 <listitem><para>for the "Cancel" button</para></listitem>
36 <!-- FIXME example here -->
39 Printing support was added in GTK+ 2.10.
42 <refsect2 id="GtkPrintUnixDialog-BUILDER-UI"><title>GtkPrintUnixDialog as GtkBuildable</title>
44 The GtkPrintUnixDialog implementation of the GtkBuildable interface exposes its
45 @notebook internal children with the name "notebook".
48 <title>A <structname>GtkPrintUnixDialog</structname> UI definition fragment.</title>
49 <programlisting><![CDATA[
50 <object class="GtkPrintUnixDialog" id="dialog1">
51 <child internal-child="notebook">
52 <object class="GtkNotebook" id="notebook">
54 <object class="GtkLabel" id="tabcontent">
55 <property name="label">Content on notebook tab</property>
59 <object class="GtkLabel" id="tablabel">
60 <property name="label">Tab label</property>
63 <property name="tab_expand">False</property>
64 <property name="tab_fill">False</property>
74 <!-- ##### SECTION See_Also ##### -->
76 #GtkPageSetupUnixDialog, #GtkPrinter, #GtkPrintJob
79 <!-- ##### SECTION Stability_Level ##### -->
82 <!-- ##### STRUCT GtkPrintUnixDialog ##### -->
88 <!-- ##### ARG GtkPrintUnixDialog:current-page ##### -->
93 <!-- ##### ARG GtkPrintUnixDialog:has-selection ##### -->
98 <!-- ##### ARG GtkPrintUnixDialog:manual-capabilities ##### -->
103 <!-- ##### ARG GtkPrintUnixDialog:page-setup ##### -->
108 <!-- ##### ARG GtkPrintUnixDialog:print-settings ##### -->
113 <!-- ##### ARG GtkPrintUnixDialog:selected-printer ##### -->
118 <!-- ##### ARG GtkPrintUnixDialog:support-selection ##### -->
123 <!-- ##### FUNCTION gtk_print_unix_dialog_new ##### -->
133 <!-- ##### FUNCTION gtk_print_unix_dialog_set_page_setup ##### -->
142 <!-- ##### FUNCTION gtk_print_unix_dialog_get_page_setup ##### -->
151 <!-- ##### FUNCTION gtk_print_unix_dialog_set_current_page ##### -->
160 <!-- ##### FUNCTION gtk_print_unix_dialog_get_current_page ##### -->
169 <!-- ##### FUNCTION gtk_print_unix_dialog_set_settings ##### -->
178 <!-- ##### FUNCTION gtk_print_unix_dialog_get_settings ##### -->
187 <!-- ##### FUNCTION gtk_print_unix_dialog_get_selected_printer ##### -->
196 <!-- ##### FUNCTION gtk_print_unix_dialog_add_custom_tab ##### -->
206 <!-- ##### FUNCTION gtk_print_unix_dialog_set_support_selection ##### -->
215 <!-- ##### FUNCTION gtk_print_unix_dialog_get_support_selection ##### -->
224 <!-- ##### FUNCTION gtk_print_unix_dialog_set_has_selection ##### -->
233 <!-- ##### FUNCTION gtk_print_unix_dialog_get_has_selection ##### -->
242 <!-- ##### ENUM GtkPrintCapabilities ##### -->
244 An enum for specifying which features the print dialog should offer.
245 If neither %GTK_PRINT_CAPABILITY_GENERATE_PDF nor
246 %GTK_PRINT_CAPABILITY_GENERATE_PS is specified, GTK+ assumes that all
247 formats are supported.
250 @GTK_PRINT_CAPABILITY_PAGE_SET: Print dialog will offer printing even/odd pages.
251 @GTK_PRINT_CAPABILITY_COPIES: Print dialog will allow to print multiple copies.
252 @GTK_PRINT_CAPABILITY_COLLATE: Print dialog will allow to collate multiple copies.
253 @GTK_PRINT_CAPABILITY_REVERSE: Print dialog will allow to print pages in reverse order.
254 @GTK_PRINT_CAPABILITY_SCALE: Print dialog will allow to scale the output.
255 @GTK_PRINT_CAPABILITY_GENERATE_PDF: The program will send the document to
256 the printer in PDF format
257 @GTK_PRINT_CAPABILITY_GENERATE_PS: The program will send the document to
258 the printer in Postscript format
259 @GTK_PRINT_CAPABILITY_PREVIEW: Print dialog will offer a previe
260 @GTK_PRINT_CAPABILITY_NUMBER_UP: Print dialog will offer printing multiple
261 pages per sheet. Since 2.12
262 @GTK_PRINT_CAPABILITY_NUMBER_UP_LAYOUT: Print dialog will allow to rearrange
263 pages when printing multiple pages per sheet. Since 2.14
265 <!-- ##### FUNCTION gtk_print_unix_dialog_set_manual_capabilities ##### -->
274 <!-- ##### FUNCTION gtk_print_unix_dialog_get_manual_capabilities ##### -->