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 <!-- ##### SECTION Image ##### -->
85 <!-- ##### STRUCT GtkPrintUnixDialog ##### -->
91 <!-- ##### ARG GtkPrintUnixDialog:current-page ##### -->
96 <!-- ##### ARG GtkPrintUnixDialog:embed-page-setup ##### -->
101 <!-- ##### ARG GtkPrintUnixDialog:has-selection ##### -->
106 <!-- ##### ARG GtkPrintUnixDialog:manual-capabilities ##### -->
111 <!-- ##### ARG GtkPrintUnixDialog:page-setup ##### -->
116 <!-- ##### ARG GtkPrintUnixDialog:print-settings ##### -->
121 <!-- ##### ARG GtkPrintUnixDialog:selected-printer ##### -->
126 <!-- ##### ARG GtkPrintUnixDialog:support-selection ##### -->
131 <!-- ##### FUNCTION gtk_print_unix_dialog_new ##### -->
141 <!-- ##### FUNCTION gtk_print_unix_dialog_set_page_setup ##### -->
150 <!-- ##### FUNCTION gtk_print_unix_dialog_get_page_setup ##### -->
159 <!-- ##### FUNCTION gtk_print_unix_dialog_set_current_page ##### -->
168 <!-- ##### FUNCTION gtk_print_unix_dialog_get_current_page ##### -->
177 <!-- ##### FUNCTION gtk_print_unix_dialog_set_settings ##### -->
186 <!-- ##### FUNCTION gtk_print_unix_dialog_get_settings ##### -->
195 <!-- ##### FUNCTION gtk_print_unix_dialog_get_selected_printer ##### -->
204 <!-- ##### FUNCTION gtk_print_unix_dialog_add_custom_tab ##### -->
214 <!-- ##### FUNCTION gtk_print_unix_dialog_set_support_selection ##### -->
223 <!-- ##### FUNCTION gtk_print_unix_dialog_get_support_selection ##### -->
232 <!-- ##### FUNCTION gtk_print_unix_dialog_set_has_selection ##### -->
241 <!-- ##### FUNCTION gtk_print_unix_dialog_get_has_selection ##### -->
250 <!-- ##### FUNCTION gtk_print_unix_dialog_set_embed_page_setup ##### -->
259 <!-- ##### FUNCTION gtk_print_unix_dialog_get_embed_page_setup ##### -->
268 <!-- ##### FUNCTION gtk_print_unix_dialog_get_page_setup_set ##### -->
277 <!-- ##### ENUM GtkPrintCapabilities ##### -->
279 An enum for specifying which features the print dialog should offer.
280 If neither %GTK_PRINT_CAPABILITY_GENERATE_PDF nor
281 %GTK_PRINT_CAPABILITY_GENERATE_PS is specified, GTK+ assumes that all
282 formats are supported.
285 @GTK_PRINT_CAPABILITY_PAGE_SET: Print dialog will offer printing even/odd pages.
286 @GTK_PRINT_CAPABILITY_COPIES: Print dialog will allow to print multiple copies.
287 @GTK_PRINT_CAPABILITY_COLLATE: Print dialog will allow to collate multiple copies.
288 @GTK_PRINT_CAPABILITY_REVERSE: Print dialog will allow to print pages in reverse order.
289 @GTK_PRINT_CAPABILITY_SCALE: Print dialog will allow to scale the output.
290 @GTK_PRINT_CAPABILITY_GENERATE_PDF: The program will send the document to
291 the printer in PDF format
292 @GTK_PRINT_CAPABILITY_GENERATE_PS: The program will send the document to
293 the printer in Postscript format
294 @GTK_PRINT_CAPABILITY_PREVIEW: Print dialog will offer a preview
295 @GTK_PRINT_CAPABILITY_NUMBER_UP: Print dialog will offer printing multiple
296 pages per sheet. Since 2.12
297 @GTK_PRINT_CAPABILITY_NUMBER_UP_LAYOUT: Print dialog will allow to rearrange
298 pages when printing multiple pages per sheet. Since 2.14
300 <!-- ##### FUNCTION gtk_print_unix_dialog_set_manual_capabilities ##### -->
309 <!-- ##### FUNCTION gtk_print_unix_dialog_get_manual_capabilities ##### -->