It derives from <GObject>.
Controls a print operation.
A <WebKitPrintOperation> controls a print
operation in WebKit. With a similar API to
<GtkPrintOperation>, it lets you set
the print settings with print-operation:set-print-settings or display the
print dialog with print-operation:run-dialog.
The initial <GtkPageSetup> for the print
operation.
Its value is a <GtkPageSetup>, or #f.
Set it with (set! (print-operation:page-setup self) value).
The initial <GtkPrintSettings> for the
print operation.
Its value is a <GtkPrintSettings>, or
#f.
Set it with (set! (print-operation:print-settings self) value).
The <WebKitWebView> that will be printed.
Its value is a <WebKitWebView>, or #f.
It can only be set when the object is made, with #:web-view.
Return the current page setup of self.
It returns #f until either print-operation:set-page-setup or
print-operation:run-dialog have
been called.
Passed: a <WebKitPrintOperation>.
Returned: a <GtkPageSetup>.
the current <GtkPageSetup> of self.
Return the current print settings of self.
It returns #f until either print-operation:set-print-settings or
print-operation:run-dialog have
been called.
Passed: a <WebKitPrintOperation>.
Returned: a <GtkPrintSettings>.
the current <GtkPrintSettings> of
self.
Create a new <WebKitPrintOperation> to
print web-view contents.
Passed: a <WebKitWebView>.
Returned: a <WebKitPrintOperation>.
a new <WebKitPrintOperation>.
Start a print operation using current print settings and page setup.
Start a print operation using current print settings and page setup
without showing the print dialog. If either print settings or page
setup are not set with print-operation:set-print-settings and
print-operation:set-page-setup, the default options
will be used and the print job will be sent to the default printer. The
print-operation:finished
signal is emitted when the printing operation finishes. If an error
occurs while printing the signal print-operation:failed is emitted before
print-operation:finished.
If the app is running in a sandbox, this function only works if printing to a file that is in a location accessible to the sandbox, usually acquired through the File Chooser portal. This function will not work for physical printers when running in a sandbox.
Passed: a <WebKitPrintOperation>.
Run the print dialog and start printing.
Run the print dialog and start printing using the options selected by
the user. This method returns when the print dialog is closed. If the
print dialog is cancelled cancel is
returned. If the user clicks on the print button,
print is returned and the print
operation starts. In this case, the print-operation:finished signal is emitted when the
operation finishes. If an error occurs while printing, the signal
print-operation:failed is
emitted before print-operation:finished. If the print dialog is not
cancelled current print settings and page setup of self are
updated with options selected by the user when Print button is pressed
in print dialog. You can get the updated print settings and page setup
by calling print-operation:get-print-settings and
print-operation:get-page-setup after this method.
Passed: a <WebKitPrintOperation>.
Passed, or left out: a <GtkWindow>, or
#f.
transient parent of the print dialog
Returned: a
<WebKitPrintOperationResponse>.
the <WebKitPrintOperationResponse>
of the print dialog
Set the current page setup of self.
Current page setup is used for the initial values of the print dialog
when print-operation:run-dialog
is called.
Passed: a <WebKitPrintOperation>.
Passed: a <GtkPageSetup>.
a <GtkPageSetup> to set
Set the current print settings of self.
Set the current print settings of self. Current print settings
are used for the initial values of the print dialog when
print-operation:run-dialog is
called.
Passed: a <WebKitPrintOperation>.
Passed: a <GtkPrintSettings>.
a <GtkPrintSettings> to set
Connect a handler with (connect object print-operation:failed
handler). It is called as (handler self error).
Emitted when an error occurs while printing. The given error, of
the domain WEBKIT_PRINT_ERROR, contains further details of the
failure. The print-operation:finished signal is emitted after this one.
Passed: a <WebKitPrintOperation>.
Passed: a <GError>.
the <GError> that was triggered
Connect a handler with (connect object print-operation:finished
handler). It is called as (handler self).
Emitted when the print operation has finished doing everything required for printing.
Passed: a <WebKitPrintOperation>.