2006-04-21 15:09:32 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
GtkPrintOperation
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
|
|
High-level Printing API
|
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
|
|
|
GtkPrintOperation is the high-level, portable printing API. It looks
|
|
|
|
a bit different than other GTK+ dialogs such as the #GtkFileChooser,
|
|
|
|
since some platforms don't expose enough infrastructure to implement
|
|
|
|
a good print dialog. On such platforms, GtkPrintOperation uses the
|
|
|
|
native print dialog. On platforms which do not provide a native
|
|
|
|
print dialog, GTK+ uses its own, see #GtkPrintUnixDialog.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The typical way to use the high-level printing API is to create a
|
|
|
|
#GtkPrintOperation object with gtk_print_operation_new() when the user
|
|
|
|
selects to print. Then you set some properties on it, e.g. the page size,
|
|
|
|
any #GtkPrintSettings from previous print operations, the number of pages,
|
|
|
|
the current page, etc.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
Then you start the print operation by calling gtk_print_operation_run().
|
|
|
|
It will then show a dialog, let the user select a printer and options.
|
|
|
|
When the user finished the dialog various signals will be emitted on the
|
|
|
|
#GtkPrintOperation, the main one being ::draw-page, which you are supposed
|
|
|
|
to catch and render the page on the provided #GtkPrintContext using Cairo.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<example>
|
|
|
|
<title>The high-level printing API</title>
|
|
|
|
<programlisting>
|
|
|
|
static GtkPrintSettings *settings = NULL;
|
|
|
|
|
|
|
|
static void
|
|
|
|
do_print (void)
|
|
|
|
{
|
|
|
|
GtkPrintOperation *print;
|
|
|
|
GtkPrintOperationResult res;
|
|
|
|
|
|
|
|
print = gtk_print_operation_new (<!-- -->);
|
|
|
|
|
|
|
|
if (settings != NULL)
|
|
|
|
gtk_print_operation_set_print_settings (print, settings);
|
|
|
|
|
|
|
|
g_signal_connect (print, "begin_print", G_CALLBACK (begin_print), NULL);
|
|
|
|
g_signal_connect (print, "draw_page", G_CALLBACK (draw_page), NULL);
|
|
|
|
|
2006-06-08 03:47:29 +00:00
|
|
|
res = gtk_print_operation_run (print, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG,
|
|
|
|
GTK_WINDOW (main_window), NULL);
|
2006-04-21 15:09:32 +00:00
|
|
|
|
|
|
|
if (res == GTK_PRINT_OPERATION_RESULT_APPLY)
|
|
|
|
{
|
|
|
|
if (settings != NULL)
|
|
|
|
g_object_unref (settings);
|
|
|
|
settings = g_object_ref (gtk_print_operation_get_print_settings (print));
|
|
|
|
}
|
|
|
|
|
|
|
|
g_object_unref (print);
|
|
|
|
}
|
|
|
|
|
|
|
|
</programlisting>
|
|
|
|
</example>
|
|
|
|
|
2006-08-15 19:49:27 +00:00
|
|
|
<para>
|
|
|
|
By default GtkPrintOperation uses an external application to do
|
|
|
|
print preview. To implement a custom print preview, an application
|
|
|
|
must connect to the preview signal. The functions
|
|
|
|
gtk_print_operation_print_preview_render_page(),
|
|
|
|
gtk_print_operation_preview_end_preview() and
|
|
|
|
gtk_print_operation_preview_is_selected() are useful
|
|
|
|
when implementing a print preview.
|
|
|
|
</para>
|
|
|
|
|
2006-04-21 15:09:32 +00:00
|
|
|
<para>
|
|
|
|
Printing support was added in GTK+ 2.10.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
|
|
|
#GtkPrintContext, #GtkPrintUnixDialog
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION Stability_Level ##### -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### STRUCT GtkPrintOperation ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### SIGNAL GtkPrintOperation::begin-print ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2006-06-08 03:47:29 +00:00
|
|
|
@printoperation:
|
|
|
|
@context:
|
2006-04-21 15:09:32 +00:00
|
|
|
|
2006-06-05 19:33:40 +00:00
|
|
|
<!-- ##### SIGNAL GtkPrintOperation::create-custom-widget ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2006-06-08 03:47:29 +00:00
|
|
|
@printoperation:
|
2006-06-05 19:33:40 +00:00
|
|
|
@Returns:
|
|
|
|
|
|
|
|
<!-- ##### SIGNAL GtkPrintOperation::custom-widget-apply ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2006-06-08 03:47:29 +00:00
|
|
|
@printoperation:
|
2006-06-05 19:33:40 +00:00
|
|
|
@widget:
|
|
|
|
|
2006-06-08 03:47:29 +00:00
|
|
|
<!-- ##### SIGNAL GtkPrintOperation::done ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@printoperation: the object which received the signal.
|
|
|
|
@arg1:
|
|
|
|
|
2006-04-21 15:09:32 +00:00
|
|
|
<!-- ##### SIGNAL GtkPrintOperation::draw-page ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@printoperation: the object which received the signal.
|
|
|
|
@arg1:
|
|
|
|
@arg2:
|
|
|
|
|
|
|
|
<!-- ##### SIGNAL GtkPrintOperation::end-print ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@printoperation: the object which received the signal.
|
|
|
|
@arg1:
|
|
|
|
|
2006-06-05 19:33:40 +00:00
|
|
|
<!-- ##### SIGNAL GtkPrintOperation::paginate ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@printoperation: the object which received the signal.
|
|
|
|
@arg1:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
<!-- ##### SIGNAL GtkPrintOperation::preview ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@printoperation: the object which received the signal.
|
|
|
|
@arg1:
|
|
|
|
@arg2:
|
|
|
|
@arg3:
|
|
|
|
@Returns:
|
|
|
|
|
2006-04-21 15:09:32 +00:00
|
|
|
<!-- ##### SIGNAL GtkPrintOperation::request-page-setup ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@printoperation: the object which received the signal.
|
|
|
|
@arg1:
|
|
|
|
@arg2:
|
|
|
|
@arg3:
|
|
|
|
|
|
|
|
<!-- ##### SIGNAL GtkPrintOperation::status-changed ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@printoperation: the object which received the signal.
|
|
|
|
|
2009-05-04 05:54:06 +00:00
|
|
|
<!-- ##### SIGNAL GtkPrintOperation::update-custom-widget ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@printoperation: the object which received the signal.
|
|
|
|
@widget:
|
|
|
|
@arg1:
|
|
|
|
@arg2:
|
|
|
|
|
2006-06-08 03:47:29 +00:00
|
|
|
<!-- ##### ARG GtkPrintOperation:allow-async ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2006-04-24 05:40:24 +00:00
|
|
|
<!-- ##### ARG GtkPrintOperation:current-page ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2006-06-05 19:33:40 +00:00
|
|
|
<!-- ##### ARG GtkPrintOperation:custom-tab-label ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2006-04-24 05:40:24 +00:00
|
|
|
<!-- ##### ARG GtkPrintOperation:default-page-setup ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2009-07-10 23:02:32 +00:00
|
|
|
<!-- ##### ARG GtkPrintOperation:embed-page-setup ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2006-06-13 05:15:01 +00:00
|
|
|
<!-- ##### ARG GtkPrintOperation:export-filename ##### -->
|
2006-04-24 05:40:24 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2009-06-16 01:45:40 +00:00
|
|
|
<!-- ##### ARG GtkPrintOperation:has-selection ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2006-06-13 05:15:01 +00:00
|
|
|
<!-- ##### ARG GtkPrintOperation:job-name ##### -->
|
2006-04-24 05:40:24 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2006-06-13 05:15:01 +00:00
|
|
|
<!-- ##### ARG GtkPrintOperation:n-pages ##### -->
|
2006-04-24 05:40:24 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2009-08-11 19:06:02 +00:00
|
|
|
<!-- ##### ARG GtkPrintOperation:n-pages-to-print ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2006-04-24 05:40:24 +00:00
|
|
|
<!-- ##### ARG GtkPrintOperation:print-settings ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2006-06-05 19:33:40 +00:00
|
|
|
<!-- ##### ARG GtkPrintOperation:show-progress ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2006-04-24 05:40:24 +00:00
|
|
|
<!-- ##### ARG GtkPrintOperation:status ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkPrintOperation:status-string ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2009-06-16 01:45:40 +00:00
|
|
|
<!-- ##### ARG GtkPrintOperation:support-selection ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2006-05-17 00:33:57 +00:00
|
|
|
<!-- ##### ARG GtkPrintOperation:track-print-status ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2006-04-24 05:40:24 +00:00
|
|
|
<!-- ##### ARG GtkPrintOperation:unit ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkPrintOperation:use-full-page ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2006-04-21 15:09:32 +00:00
|
|
|
<!-- ##### ENUM GtkPrintStatus ##### -->
|
|
|
|
<para>
|
2006-06-08 03:47:29 +00:00
|
|
|
The status gives a rough indication of the completion
|
|
|
|
of a running print operation.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@GTK_PRINT_STATUS_INITIAL: The printing has not started yet; this
|
|
|
|
status is set initially, and while the print dialog is shown.
|
|
|
|
@GTK_PRINT_STATUS_PREPARING: This status is set while the begin-print
|
|
|
|
signal is emitted and during pagination.
|
|
|
|
@GTK_PRINT_STATUS_GENERATING_DATA: This status is set while the
|
|
|
|
pages are being rendered.
|
|
|
|
@GTK_PRINT_STATUS_SENDING_DATA: The print job is being sent off to the
|
|
|
|
printer.
|
|
|
|
@GTK_PRINT_STATUS_PENDING: The print job has been sent to the printer,
|
|
|
|
but is not printed for some reason, e.g. the printer may be stopped.
|
|
|
|
@GTK_PRINT_STATUS_PENDING_ISSUE: Some problem has occurred during
|
|
|
|
printing, e.g. a paper jam.
|
|
|
|
@GTK_PRINT_STATUS_PRINTING: The printer is processing the print job.
|
|
|
|
@GTK_PRINT_STATUS_FINISHED: The printing has been completed successfully.
|
|
|
|
@GTK_PRINT_STATUS_FINISHED_ABORTED: The printing has been aborted.
|
2006-04-21 15:09:32 +00:00
|
|
|
|
2006-06-08 03:47:29 +00:00
|
|
|
<!-- ##### ENUM GtkPrintOperationAction ##### -->
|
|
|
|
<para>
|
|
|
|
The @action parameter to gtk_print_operation_run()
|
|
|
|
determines what action the print operation should perform.
|
2006-04-21 15:09:32 +00:00
|
|
|
</para>
|
|
|
|
|
2006-06-08 16:32:22 +00:00
|
|
|
@GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG: Show the print dialog.
|
2006-06-08 03:47:29 +00:00
|
|
|
@GTK_PRINT_OPERATION_ACTION_PRINT: Start to print without showing
|
2006-06-08 16:32:22 +00:00
|
|
|
the print dialog, based on the current print settings.
|
|
|
|
@GTK_PRINT_OPERATION_ACTION_PREVIEW: Show the print preview.
|
2006-06-08 03:47:29 +00:00
|
|
|
@GTK_PRINT_OPERATION_ACTION_EXPORT: Export to a file. This requires
|
2006-06-08 16:40:31 +00:00
|
|
|
the export-filename property to be set.
|
2006-04-21 15:09:32 +00:00
|
|
|
|
|
|
|
<!-- ##### ENUM GtkPrintOperationResult ##### -->
|
|
|
|
<para>
|
2006-06-08 03:47:29 +00:00
|
|
|
A value of this type is returned by gtk_print_operation_run().
|
2006-04-21 15:09:32 +00:00
|
|
|
</para>
|
|
|
|
|
2006-06-08 03:47:29 +00:00
|
|
|
@GTK_PRINT_OPERATION_RESULT_ERROR: An error has occured.
|
|
|
|
@GTK_PRINT_OPERATION_RESULT_APPLY: The print settings should be stored.
|
|
|
|
@GTK_PRINT_OPERATION_RESULT_CANCEL: The print operation has been canceled,
|
|
|
|
the print settings should not be stored.
|
2008-08-28 02:07:30 +00:00
|
|
|
@GTK_PRINT_OPERATION_RESULT_IN_PROGRESS: The print operation is not complete
|
2006-06-08 03:47:29 +00:00
|
|
|
yet. This value will only be returned when running asynchronously.
|
2006-04-21 15:09:32 +00:00
|
|
|
|
|
|
|
<!-- ##### ENUM GtkPrintError ##### -->
|
|
|
|
<para>
|
2008-12-30 05:40:18 +00:00
|
|
|
Error codes that identify various errors that can occur while
|
|
|
|
using the GTK+ printing support.
|
2006-04-21 15:09:32 +00:00
|
|
|
</para>
|
|
|
|
|
2008-12-30 05:40:18 +00:00
|
|
|
@GTK_PRINT_ERROR_GENERAL: An unspecified error occurred.
|
|
|
|
@GTK_PRINT_ERROR_INTERNAL_ERROR: An internal error occurred.
|
|
|
|
@GTK_PRINT_ERROR_NOMEM: A memory allocation failed.
|
|
|
|
@GTK_PRINT_ERROR_INVALID_FILE: An error occurred while loading a page setup
|
|
|
|
or paper size from a key file.
|
2006-04-21 15:09:32 +00:00
|
|
|
|
|
|
|
<!-- ##### MACRO GTK_PRINT_ERROR ##### -->
|
|
|
|
<para>
|
2006-04-24 05:40:24 +00:00
|
|
|
The #GQuark used for #GtkPrintError errors.
|
2006-04-21 15:09:32 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_print_operation_new ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2006-06-08 03:47:29 +00:00
|
|
|
<!-- ##### FUNCTION gtk_print_operation_set_allow_async ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
@allow_async:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_print_operation_get_error ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
2006-06-13 05:15:01 +00:00
|
|
|
@error:
|
2006-06-08 03:47:29 +00:00
|
|
|
|
|
|
|
|
2006-04-21 15:09:32 +00:00
|
|
|
<!-- ##### FUNCTION gtk_print_operation_set_default_page_setup ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
@default_page_setup:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_print_operation_get_default_page_setup ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_print_operation_set_print_settings ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
@print_settings:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_print_operation_get_print_settings ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_print_operation_set_job_name ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
@job_name:
|
|
|
|
|
|
|
|
|
2006-06-05 19:33:40 +00:00
|
|
|
<!-- ##### FUNCTION gtk_print_operation_set_n_pages ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
@n_pages:
|
|
|
|
|
|
|
|
|
2009-08-11 19:06:02 +00:00
|
|
|
<!-- ##### FUNCTION gtk_print_operation_get_n_pages_to_print ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2006-04-21 15:09:32 +00:00
|
|
|
<!-- ##### FUNCTION gtk_print_operation_set_current_page ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
@current_page:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_print_operation_set_use_full_page ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
@full_page:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_print_operation_set_unit ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
@unit:
|
|
|
|
|
|
|
|
|
2006-06-08 16:40:31 +00:00
|
|
|
<!-- ##### FUNCTION gtk_print_operation_set_export_filename ##### -->
|
2006-04-21 15:09:32 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
@filename:
|
|
|
|
|
|
|
|
|
2006-06-05 19:33:40 +00:00
|
|
|
<!-- ##### FUNCTION gtk_print_operation_set_show_progress ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
@show_progress:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_print_operation_set_track_print_status ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
@track_status:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_print_operation_set_custom_tab_label ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
@label:
|
|
|
|
|
|
|
|
|
2006-04-21 15:09:32 +00:00
|
|
|
<!-- ##### FUNCTION gtk_print_operation_run ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
2006-06-08 03:47:29 +00:00
|
|
|
@action:
|
2006-04-21 15:09:32 +00:00
|
|
|
@parent:
|
|
|
|
@error:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2006-06-08 03:47:29 +00:00
|
|
|
<!-- ##### FUNCTION gtk_print_operation_cancel ##### -->
|
2006-05-05 16:21:19 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
|
|
|
|
|
2008-12-30 05:40:18 +00:00
|
|
|
<!-- ##### FUNCTION gtk_print_operation_draw_page_finish ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_print_operation_set_defer_drawing ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
|
|
|
|
|
2006-06-08 03:47:29 +00:00
|
|
|
<!-- ##### FUNCTION gtk_print_operation_get_status ##### -->
|
2006-06-05 19:33:40 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
2006-06-08 03:47:29 +00:00
|
|
|
@Returns:
|
2006-06-05 19:33:40 +00:00
|
|
|
|
|
|
|
|
2006-06-08 03:47:29 +00:00
|
|
|
<!-- ##### FUNCTION gtk_print_operation_get_status_string ##### -->
|
2006-04-21 15:09:32 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2006-06-08 03:47:29 +00:00
|
|
|
<!-- ##### FUNCTION gtk_print_operation_is_finished ##### -->
|
2006-04-24 05:40:24 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2009-06-16 01:45:40 +00:00
|
|
|
<!-- ##### FUNCTION gtk_print_operation_set_support_selection ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
@support_selection:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_print_operation_get_support_selection ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_print_operation_set_has_selection ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
@has_selection:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_print_operation_get_has_selection ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2009-07-10 23:02:32 +00:00
|
|
|
<!-- ##### FUNCTION gtk_print_operation_set_embed_page_setup ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
@embed:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_print_operation_get_embed_page_setup ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@op:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2006-04-21 15:09:32 +00:00
|
|
|
<!-- ##### FUNCTION gtk_print_run_page_setup_dialog ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@parent:
|
|
|
|
@page_setup:
|
|
|
|
@settings:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2006-05-05 16:21:19 +00:00
|
|
|
<!-- ##### USER_FUNCTION GtkPageSetupDoneFunc ##### -->
|
|
|
|
<para>
|
2006-06-08 03:47:29 +00:00
|
|
|
The type of function that is passed to gtk_print_run_page_setup_dialog_async().
|
|
|
|
This function will be called when the page setup dialog is dismissed, and
|
|
|
|
also serves as destroy notify for @data.
|
2006-05-05 16:21:19 +00:00
|
|
|
</para>
|
|
|
|
|
2006-06-08 03:47:29 +00:00
|
|
|
@page_setup: the #GtkPageSetup that has been
|
|
|
|
@data: user data that has been passed to
|
|
|
|
gtk_print_run_page_setup_dialog_async().
|
2006-05-05 16:21:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_print_run_page_setup_dialog_async ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@parent:
|
|
|
|
@page_setup:
|
|
|
|
@settings:
|
|
|
|
@done_cb:
|
|
|
|
@data:
|
|
|
|
|
|
|
|
|
2006-06-08 03:47:29 +00:00
|
|
|
<!-- ##### STRUCT GtkPrintOperationPreview ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
2008-06-03 23:44:33 +00:00
|
|
|
<!-- ##### SIGNAL GtkPrintOperationPreview::got-page-size ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@printoperationpreview: the object which received the signal.
|
|
|
|
@arg1:
|
|
|
|
@arg2:
|
|
|
|
|
|
|
|
<!-- ##### SIGNAL GtkPrintOperationPreview::ready ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@printoperationpreview: the object which received the signal.
|
|
|
|
@arg1:
|
|
|
|
|
2006-06-08 03:47:29 +00:00
|
|
|
<!-- ##### FUNCTION gtk_print_operation_preview_end_preview ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@preview:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_print_operation_preview_is_selected ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@preview:
|
|
|
|
@page_nr:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_print_operation_preview_render_page ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@preview:
|
|
|
|
@page_nr:
|
|
|
|
|
|
|
|
|