Package ch.bailu.gtk.gtk
Klasse PrintOperation
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.gtk.PrintOperation
- Alle implementierten Schnittstellen:
PointerInterface
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 [class@Gtk.PrintUnixDialog].
The typical way to use the high-level printing API is to create
a `GtkPrintOperation` object with [ctor@Gtk.PrintOperation.new]
when the user selects to print. Then you set some properties on it,
e.g. the page size, any [class@Gtk.PrintSettings] from previous print
operations, the number of pages, the current page, etc.
Then you start the print operation by calling [method@Gtk.PrintOperation.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
[signal@Gtk.PrintOperation::draw-page], which you are supposed to handle
and render the page on the provided [class@Gtk.PrintContext] using Cairo.
# The high-level printing API
```c
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);
res = gtk_print_operation_run (print, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG,
GTK_WINDOW (main_window), NULL);
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);
}
```
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
[method@Gtk.PrintOperationPreview.render_page],
[method@Gtk.PrintOperationPreview.end_preview] and
[method@Gtk.PrintOperationPreview.is_selected]
are useful when implementing a print preview.
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 [class@Gtk.PrintUnixDialog].
The typical way to use the high-level printing API is to create
a `GtkPrintOperation` object with [ctor@Gtk.PrintOperation.new]
when the user selects to print. Then you set some properties on it,
e.g. the page size, any [class@Gtk.PrintSettings] from previous print
operations, the number of pages, the current page, etc.
Then you start the print operation by calling [method@Gtk.PrintOperation.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
[signal@Gtk.PrintOperation::draw-page], which you are supposed to handle
and render the page on the provided [class@Gtk.PrintContext] using Cairo.
# The high-level printing API
```c
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);
res = gtk_print_operation_run (print, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG,
GTK_WINDOW (main_window), NULL);
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);
}
```
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
[method@Gtk.PrintOperationPreview.render_page],
[method@Gtk.PrintOperationPreview.end_preview] and
[method@Gtk.PrintOperationPreview.is_selected]
are useful when implementing a print preview.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCreates a new `GtkPrintOperation`.PrintOperation
(PointerContainer pointer) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungImplements interfacePrintOperationPreview
.void
cancel()
Cancels a running print operation.void
Signal that drawing of particular page is complete.static ClassHandler
Returns the default page setup.boolean
Gets whether page setup selection combos are embeddedvoid
getError()
Call this when the result of a print operation is
%GTK_PRINT_OPERATION_RESULT_ERROR.boolean
Gets whether there is a selection.static int
int
Returns the number of pages that will be printed.static long
static TypeSystem.TypeSize
Returns the current print settings.int
Returns the status of the print operation.Returns a string representation of the status of the
print operation.boolean
Gets whether the application supports print of selectionstatic long
static TypeSystem.TypeSize
boolean
A convenience function to find out if the print operation
is finished.Connect to signal "begin-print".Connect to signal "create-custom-widget".Connect to signal "custom-widget-apply".onDone
(PrintOperation.OnDone signal) Connect to signal "done".onDrawPage
(PrintOperation.OnDrawPage signal) Connect to signal "draw-page".onEndPrint
(PrintOperation.OnEndPrint signal) Connect to signal "end-print".onPaginate
(PrintOperation.OnPaginate signal) Connect to signal "paginate".onPreview
(PrintOperation.OnPreview signal) Connect to signal "preview".Connect to signal "request-page-setup".Connect to signal "status-changed".Connect to signal "update-custom-widget".int
Runs the print operation.void
setAllowAsync
(boolean allow_async) Sets whether gtk_print_operation_run() may return
before the print operation is completed.void
setCurrentPage
(int current_page) Sets the current page.void
setCustomTabLabel
(Str label) Sets the label for the tab holding custom widgets.void
setCustomTabLabel
(String label) Sets the label for the tab holding custom widgets.void
setDefaultPageSetup
(PageSetup default_page_setup) Makes @default_page_setup the default page setup for @op.void
Sets up the `GtkPrintOperation` to wait for calling of
[method@Gtk.PrintOperation.draw_page_finish from application.void
setEmbedPageSetup
(boolean embed) Embed page size combo box and orientation combo box into page setup page.void
setExportFilename
(Str filename) Sets up the `GtkPrintOperation` to generate a file instead
of showing the print dialog.void
setExportFilename
(String filename) Sets up the `GtkPrintOperation` to generate a file instead
of showing the print dialog.void
setHasSelection
(boolean has_selection) Sets whether there is a selection to print.void
setJobName
(Str job_name) Sets the name of the print job.void
setJobName
(String job_name) Sets the name of the print job.void
setNPages
(int n_pages) Sets the number of pages in the document.void
setPrintSettings
(PrintSettings print_settings) Sets the print settings for @op.void
setShowProgress
(boolean show_progress) If @show_progress is %TRUE, the print operation will show
a progress dialog during the print operation.void
setSupportSelection
(boolean support_selection) Sets whether selection is supported by `GtkPrintOperation`.void
setTrackPrintStatus
(boolean track_status) If track_status is %TRUE, the print operation will try to continue
report on the status of the print job in the printer queues and printer.void
setUnit
(int unit) Sets up the transformation for the cairo context obtained from
`GtkPrintContext` in such a way that distances are measured in
units of @unit.void
setUseFullPage
(boolean full_page) If @full_page is %TRUE, the transformation for the cairo context
obtained from `GtkPrintContext` puts the origin at the top left
corner of the page.Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von Klasse geerbte Methoden ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
SIGNAL_ON_BEGIN_PRINT
- Siehe auch:
-
SIGNAL_ON_CREATE_CUSTOM_WIDGET
- Siehe auch:
-
SIGNAL_ON_CUSTOM_WIDGET_APPLY
- Siehe auch:
-
SIGNAL_ON_DONE
- Siehe auch:
-
SIGNAL_ON_DRAW_PAGE
- Siehe auch:
-
SIGNAL_ON_END_PRINT
- Siehe auch:
-
SIGNAL_ON_PAGINATE
- Siehe auch:
-
SIGNAL_ON_PREVIEW
- Siehe auch:
-
SIGNAL_ON_REQUEST_PAGE_SETUP
- Siehe auch:
-
SIGNAL_ON_STATUS_CHANGED
- Siehe auch:
-
SIGNAL_ON_UPDATE_CUSTOM_WIDGET
- Siehe auch:
-
-
Konstruktordetails
-
PrintOperation
-
PrintOperation
public PrintOperation()Creates a new `GtkPrintOperation`.
-
-
Methodendetails
-
getClassHandler
-
cancel
public void cancel()Cancels a running print operation.
This function may be called from a [signal@Gtk.PrintOperation::begin-print],
[signal@Gtk.PrintOperation::paginate] or [signal@Gtk.PrintOperation::draw-page]
signal handler to stop the currently running print operation. -
drawPageFinish
public void drawPageFinish()Signal that drawing of particular page is complete.
It is called after completion of page drawing (e.g. drawing
in another thread). If [method@Gtk.PrintOperation.set_defer_drawing]
was called before, then this function has to be called by application.
Otherwise it is called by GTK itself. -
getDefaultPageSetup
Returns the default page setup.- Gibt zurück:
- the default page setup
-
getEmbedPageSetup
public boolean getEmbedPageSetup()Gets whether page setup selection combos are embedded- Gibt zurück:
- whether page setup selection combos are embedded
-
getError
Call this when the result of a print operation is
%GTK_PRINT_OPERATION_RESULT_ERROR.
It can be called either after [method@Gtk.PrintOperation.run]
returns, or in the [signal@Gtk.PrintOperation::done] signal
handler.
The returned `GError` will contain more details on what went wrong.- Löst aus:
AllocationError
-
getHasSelection
public boolean getHasSelection()Gets whether there is a selection.- Gibt zurück:
- whether there is a selection
-
getNPagesToPrint
public int getNPagesToPrint()Returns the number of pages that will be printed.
Note that this value is set during print preparation phase
(%GTK_PRINT_STATUS_PREPARING), so this function should never be
called before the data generation phase (%GTK_PRINT_STATUS_GENERATING_DATA).
You can connect to the [signal@Gtk.PrintOperation::status-changed]
signal and call gtk_print_operation_get_n_pages_to_print() when
print status is %GTK_PRINT_STATUS_GENERATING_DATA.
This is typically used to track the progress of print operation.- Gibt zurück:
- the number of pages that will be printed
-
getPrintSettings
Returns the current print settings.
Note that the return value is %NULL until either
[method@Gtk.PrintOperation.set_print_settings] or
[method@Gtk.PrintOperation.run] have been called.- Gibt zurück:
- the current print settings of @op.
-
getStatus
public int getStatus()Returns the status of the print operation.
Also see [method@Gtk.PrintOperation.get_status_string].- Gibt zurück:
- the status of the print operation
-
getStatusString
Returns a string representation of the status of the
print operation.
The string is translated and suitable for displaying
the print status e.g. in a `GtkStatusbar`.
Use [method@Gtk.PrintOperation.get_status] to obtain
a status value that is suitable for programmatic use.- Gibt zurück:
- a string representation of the status of the print operation
-
getSupportSelection
public boolean getSupportSelection()Gets whether the application supports print of selection- Gibt zurück:
- whether the application supports print of selection
-
isFinished
public boolean isFinished()A convenience function to find out if the print operation
is finished.
a print operation is finished if its status is either
%GTK_PRINT_STATUS_FINISHED or %GTK_PRINT_STATUS_FINISHED_ABORTED.
Note: when you enable print status tracking the print operation
can be in a non-finished state even after done has been called, as
the operation status then tracks the print job status on the printer.- Gibt zurück:
- %TRUE, if the print operation is finished.
-
run
Runs the print operation.
Normally that this function does not return until the rendering
of all pages is complete. You can connect to the
[signal@Gtk.PrintOperation::status-changed] signal on @op to obtain
some information about the progress of the print operation.
Furthermore, it may use a recursive mainloop to show the print dialog.
If you set the [Gtk.PrintOperation:allow-async] property, the operation
will run asynchronously if this is supported on the platform. The
[signal@Gtk.PrintOperation::done] signal will be emitted with the result
of the operation when the it is done (i.e. when the dialog is canceled,
or when the print succeeds or fails).
```c
if (settings != NULL)
gtk_print_operation_set_print_settings (print, settings);
if (page_setup != NULL)
gtk_print_operation_set_default_page_setup (print, page_setup);
g_signal_connect (print, "begin-print",
G_CALLBACK (begin_print), &data);
g_signal_connect (print, "draw-page",
G_CALLBACK (draw_page), &data);
res = gtk_print_operation_run (print,
GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG,
parent,
&error);
if (res == GTK_PRINT_OPERATION_RESULT_ERROR)
{
error_dialog = gtk_message_dialog_new (GTK_WINDOW (parent),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR,
GTK_BUTTONS_CLOSE,
"Error printing file:\n%s",
error->message);
g_signal_connect (error_dialog, "response",
G_CALLBACK (gtk_window_destroy), NULL);
gtk_window_present (GTK_WINDOW (error_dialog));
g_error_free (error);
}
else 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));
}
```
Note that gtk_print_operation_run() can only be called once on a
given `GtkPrintOperation`.- Parameter:
action
- the action to startparent
- Transient parent of the dialog- Gibt zurück:
- the result of the print operation. A return value of %GTK_PRINT_OPERATION_RESULT_APPLY indicates that the printing was completed successfully. In this case, it is a good idea to obtain the used print settings with [method@Gtk.PrintOperation.get_print_settings] and store them for reuse with the next print operation. A value of %GTK_PRINT_OPERATION_RESULT_IN_PROGRESS means the operation is running asynchronously, and will emit the [signal@Gtk.PrintOperation::done] signal when done.
- Löst aus:
AllocationError
-
setAllowAsync
public void setAllowAsync(boolean allow_async) Sets whether gtk_print_operation_run() may return
before the print operation is completed.
Note that some platforms may not allow asynchronous
operation.- Parameter:
allow_async
- %TRUE to allow asynchronous operation
-
setCurrentPage
public void setCurrentPage(int current_page) Sets the current page.
If this is called before [method@Gtk.PrintOperation.run],
the user will be able to select to print only the current page.
Note that this only makes sense for pre-paginated documents.- Parameter:
current_page
- the current page, 0-based
-
setCustomTabLabel
Sets the label for the tab holding custom widgets.- Parameter:
label
- the label to use, or %NULL to use the default label
-
setCustomTabLabel
Sets the label for the tab holding custom widgets.- Parameter:
label
- the label to use, or %NULL to use the default label
-
setDefaultPageSetup
Makes @default_page_setup the default page setup for @op.
This page setup will be used by [method@Gtk.PrintOperation.run],
but it can be overridden on a per-page basis by connecting
to the [signal@Gtk.PrintOperation::request-page-setup] signal.- Parameter:
default_page_setup
- a `GtkPageSetup`
-
setDeferDrawing
public void setDeferDrawing()Sets up the `GtkPrintOperation` to wait for calling of
[method@Gtk.PrintOperation.draw_page_finish from application.
This can be used for drawing page in another thread.
This function must be called in the callback of the
[signal@Gtk.PrintOperation::draw-page] signal. -
setEmbedPageSetup
public void setEmbedPageSetup(boolean embed) Embed page size combo box and orientation combo box into page setup page.
Selected page setup is stored as default page setup in `GtkPrintOperation`.- Parameter:
embed
- %TRUE to embed page setup selection in the `GtkPrintUnixDialog`
-
setExportFilename
Sets up the `GtkPrintOperation` to generate a file instead
of showing the print dialog.
The intended use of this function is for implementing
“Export to PDF” actions. Currently, PDF is the only supported
format.
“Print to PDF” support is independent of this and is done
by letting the user pick the “Print to PDF” item from the list
of printers in the print dialog.- Parameter:
filename
- the filename for the exported file
-
setExportFilename
Sets up the `GtkPrintOperation` to generate a file instead
of showing the print dialog.
The intended use of this function is for implementing
“Export to PDF” actions. Currently, PDF is the only supported
format.
“Print to PDF” support is independent of this and is done
by letting the user pick the “Print to PDF” item from the list
of printers in the print dialog.- Parameter:
filename
- the filename for the exported file
-
setHasSelection
public void setHasSelection(boolean has_selection) Sets whether there is a selection to print.
Application has to set number of pages to which the selection
will draw by [method@Gtk.PrintOperation.set_n_pages] in a handler
for the [signal@Gtk.PrintOperation::begin-print] signal.- Parameter:
has_selection
- %TRUE indicates that a selection exists
-
setJobName
Sets the name of the print job.
The name is used to identify the job (e.g. in monitoring
applications like eggcups).
If you don’t set a job name, GTK picks a default one by
numbering successive print jobs.- Parameter:
job_name
- a string that identifies the print job
-
setJobName
Sets the name of the print job.
The name is used to identify the job (e.g. in monitoring
applications like eggcups).
If you don’t set a job name, GTK picks a default one by
numbering successive print jobs.- Parameter:
job_name
- a string that identifies the print job
-
setNPages
public void setNPages(int n_pages) Sets the number of pages in the document.
This must be set to a positive number before the rendering
starts. It may be set in a [signal@Gtk.PrintOperation::begin-print]
signal handler.
Note that the page numbers passed to the
[signal@Gtk.PrintOperation::request-page-setup]
and [signal@Gtk.PrintOperation::draw-page] signals are 0-based, i.e.
if the user chooses to print all pages, the last ::draw-page signal
will be for page @n_pages - 1.- Parameter:
n_pages
- the number of pages
-
setPrintSettings
Sets the print settings for @op.
This is typically used to re-establish print settings
from a previous print operation, see [method@Gtk.PrintOperation.run].- Parameter:
print_settings
- `GtkPrintSettings`
-
setShowProgress
public void setShowProgress(boolean show_progress) If @show_progress is %TRUE, the print operation will show
a progress dialog during the print operation.- Parameter:
show_progress
- %TRUE to show a progress dialog
-
setSupportSelection
public void setSupportSelection(boolean support_selection) Sets whether selection is supported by `GtkPrintOperation`.- Parameter:
support_selection
- %TRUE to support selection
-
setTrackPrintStatus
public void setTrackPrintStatus(boolean track_status) If track_status is %TRUE, the print operation will try to continue
report on the status of the print job in the printer queues and printer.
This can allow your application to show things like “out of paper”
issues, and when the print job actually reaches the printer.
This function is often implemented using some form of polling,
so it should not be enabled unless needed.- Parameter:
track_status
- %TRUE to track status after printing
-
setUnit
public void setUnit(int unit) Sets up the transformation for the cairo context obtained from
`GtkPrintContext` in such a way that distances are measured in
units of @unit.- Parameter:
unit
- the unit to use
-
setUseFullPage
public void setUseFullPage(boolean full_page) If @full_page is %TRUE, the transformation for the cairo context
obtained from `GtkPrintContext` puts the origin at the top left
corner of the page.
This may not be the top left corner of the sheet, depending on page
orientation and the number of pages per sheet). Otherwise, the origin
is at the top left corner of the imageable area (i.e. inside the margins).- Parameter:
full_page
- %TRUE to set up the `GtkPrintContext` for the full page
-
onBeginPrint
Connect to signal "begin-print".
SeePrintOperation.OnBeginPrint.onBeginPrint(ch.bailu.gtk.gtk.PrintContext)
for signal description.
FieldSIGNAL_ON_BEGIN_PRINT
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onCreateCustomWidget
Connect to signal "create-custom-widget".
SeePrintOperation.OnCreateCustomWidget.onCreateCustomWidget()
for signal description.
FieldSIGNAL_ON_CREATE_CUSTOM_WIDGET
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onCustomWidgetApply
Connect to signal "custom-widget-apply".
SeePrintOperation.OnCustomWidgetApply.onCustomWidgetApply(ch.bailu.gtk.gtk.Widget)
for signal description.
FieldSIGNAL_ON_CUSTOM_WIDGET_APPLY
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onDone
Connect to signal "done".
SeePrintOperation.OnDone.onDone(int)
for signal description.
FieldSIGNAL_ON_DONE
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onDrawPage
Connect to signal "draw-page".
SeePrintOperation.OnDrawPage.onDrawPage(ch.bailu.gtk.gtk.PrintContext, int)
for signal description.
FieldSIGNAL_ON_DRAW_PAGE
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onEndPrint
Connect to signal "end-print".
SeePrintOperation.OnEndPrint.onEndPrint(ch.bailu.gtk.gtk.PrintContext)
for signal description.
FieldSIGNAL_ON_END_PRINT
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onPaginate
Connect to signal "paginate".
SeePrintOperation.OnPaginate.onPaginate(ch.bailu.gtk.gtk.PrintContext)
for signal description.
FieldSIGNAL_ON_PAGINATE
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onPreview
Connect to signal "preview".
SeePrintOperation.OnPreview.onPreview(ch.bailu.gtk.gtk.PrintOperationPreview, ch.bailu.gtk.gtk.PrintContext, ch.bailu.gtk.gtk.Window)
for signal description.
FieldSIGNAL_ON_PREVIEW
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onRequestPageSetup
Connect to signal "request-page-setup".
SeePrintOperation.OnRequestPageSetup.onRequestPageSetup(ch.bailu.gtk.gtk.PrintContext, int, ch.bailu.gtk.gtk.PageSetup)
for signal description.
FieldSIGNAL_ON_REQUEST_PAGE_SETUP
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onStatusChanged
Connect to signal "status-changed".
SeePrintOperation.OnStatusChanged.onStatusChanged()
for signal description.
FieldSIGNAL_ON_STATUS_CHANGED
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onUpdateCustomWidget
Connect to signal "update-custom-widget".
SeePrintOperation.OnUpdateCustomWidget.onUpdateCustomWidget(ch.bailu.gtk.gtk.Widget, ch.bailu.gtk.gtk.PageSetup, ch.bailu.gtk.gtk.PrintSettings)
for signal description.
FieldSIGNAL_ON_UPDATE_CUSTOM_WIDGET
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
asPrintOperationPreview
Implements interfacePrintOperationPreview
. Call this to get access to interface functions.- Gibt zurück:
PrintOperationPreview
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-