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:embed-page-setup ##### -->
98 <!-- ##### ARG GtkPrintUnixDialog:has-selection ##### -->
103 <!-- ##### ARG GtkPrintUnixDialog:manual-capabilities ##### -->
108 <!-- ##### ARG GtkPrintUnixDialog:page-setup ##### -->
113 <!-- ##### ARG GtkPrintUnixDialog:print-settings ##### -->
118 <!-- ##### ARG GtkPrintUnixDialog:selected-printer ##### -->
123 <!-- ##### ARG GtkPrintUnixDialog:support-selection ##### -->
128 <!-- ##### FUNCTION gtk_print_unix_dialog_new ##### -->
138 <!-- ##### FUNCTION gtk_print_unix_dialog_set_page_setup ##### -->
147 <!-- ##### FUNCTION gtk_print_unix_dialog_get_page_setup ##### -->
156 <!-- ##### FUNCTION gtk_print_unix_dialog_set_current_page ##### -->
165 <!-- ##### FUNCTION gtk_print_unix_dialog_get_current_page ##### -->
174 <!-- ##### FUNCTION gtk_print_unix_dialog_set_settings ##### -->
183 <!-- ##### FUNCTION gtk_print_unix_dialog_get_settings ##### -->
192 <!-- ##### FUNCTION gtk_print_unix_dialog_get_selected_printer ##### -->
201 <!-- ##### FUNCTION gtk_print_unix_dialog_add_custom_tab ##### -->
211 <!-- ##### FUNCTION gtk_print_unix_dialog_set_support_selection ##### -->
220 <!-- ##### FUNCTION gtk_print_unix_dialog_get_support_selection ##### -->
229 <!-- ##### FUNCTION gtk_print_unix_dialog_set_has_selection ##### -->
238 <!-- ##### FUNCTION gtk_print_unix_dialog_get_has_selection ##### -->
247 <!-- ##### FUNCTION gtk_print_unix_dialog_set_embed_page_setup ##### -->
256 <!-- ##### FUNCTION gtk_print_unix_dialog_get_embed_page_setup ##### -->
265 <!-- ##### FUNCTION gtk_print_unix_dialog_get_page_setup_set ##### -->
274 <!-- ##### ENUM GtkPrintCapabilities ##### -->
276 An enum for specifying which features the print dialog should offer.
277 If neither %GTK_PRINT_CAPABILITY_GENERATE_PDF nor
278 %GTK_PRINT_CAPABILITY_GENERATE_PS is specified, GTK+ assumes that all
279 formats are supported.
282 @GTK_PRINT_CAPABILITY_PAGE_SET: Print dialog will offer printing even/odd pages.
283 @GTK_PRINT_CAPABILITY_COPIES: Print dialog will allow to print multiple copies.
284 @GTK_PRINT_CAPABILITY_COLLATE: Print dialog will allow to collate multiple copies.
285 @GTK_PRINT_CAPABILITY_REVERSE: Print dialog will allow to print pages in reverse order.
286 @GTK_PRINT_CAPABILITY_SCALE: Print dialog will allow to scale the output.
287 @GTK_PRINT_CAPABILITY_GENERATE_PDF: The program will send the document to
288 the printer in PDF format
289 @GTK_PRINT_CAPABILITY_GENERATE_PS: The program will send the document to
290 the printer in Postscript format
291 @GTK_PRINT_CAPABILITY_PREVIEW: Print dialog will offer a preview
292 @GTK_PRINT_CAPABILITY_NUMBER_UP: Print dialog will offer printing multiple
293 pages per sheet. Since 2.12
294 @GTK_PRINT_CAPABILITY_NUMBER_UP_LAYOUT: Print dialog will allow to rearrange
295 pages when printing multiple pages per sheet. Since 2.14
297 <!-- ##### FUNCTION gtk_print_unix_dialog_set_manual_capabilities ##### -->
306 <!-- ##### FUNCTION gtk_print_unix_dialog_get_manual_capabilities ##### -->