=head1 NAME

Gtk2::PrintOperation

=head1 HIERARCHY

  Glib::Object
  +----Gtk2::PrintOperation

=head1 INTERFACES

  Gtk2::PrintOperationPreview


=head1 METHODS

=head2 printoperation = Gtk2::PrintOperation-E<gt>B<new> 

=over

=back

=head2 $op-E<gt>B<set_allow_async> ($allow_async)

=over

=over

=item * $allow_async (boolean) 

=back

=back

=head2 $op-E<gt>B<cancel> 

=over

=back

=head2 $op-E<gt>B<set_current_page> ($current_page)

=over

=over

=item * $current_page (integer) 

=back

=back

=head2 $op-E<gt>B<set_custom_tab_label> ($label)

=over

=over

=item * $label (string) 

=back

=back

=head2 pagesetup or undef = $op-E<gt>B<get_default_page_setup> 

=over

=back

=head2 $op-E<gt>B<set_default_page_setup> ($default_page_setup)

=over

=over

=item * $default_page_setup (Gtk2::PageSetup or undef) 

=back

=back

=head2 scalar = $op-E<gt>B<get_error> 

=over

=back

=head2 $op-E<gt>B<set_export_filename> ($filename)

=over

=over

=item * $filename (string) 

=back

=back

=head2 boolean = $op-E<gt>B<is_finished> 

=over

=back

=head2 $op-E<gt>B<set_job_name> ($job_name)

=over

=over

=item * $job_name (string) 

=back

=back

=head2 $op-E<gt>B<set_n_pages> ($n_pages)

=over

=over

=item * $n_pages (integer) 

=back

=back

=head2 printsettings or undef = $op-E<gt>B<get_print_settings> 

=over

=back

=head2 $op-E<gt>B<set_print_settings> ($print_settings)

=over

=over

=item * $print_settings (Gtk2::PrintSettings or undef) 

=back

=back

=head2 printoperationresult = $op-E<gt>B<run> ($action, $parent)

=over

=over

=item * $action (Gtk2::PrintOperationAction) 

=item * $parent (Gtk2::Window or undef) 

=back



May croak with a L<Glib::Error> in $@ on failure.

=back

=head2 $op-E<gt>B<set_show_progress> ($show_progress)

=over

=over

=item * $show_progress (boolean) 

=back

=back

=head2 printstatus = $op-E<gt>B<get_status> 

=over

=back

=head2 string = $op-E<gt>B<get_status_string> 

=over

=back

=head2 $op-E<gt>B<set_track_print_status> ($track_status)

=over

=over

=item * $track_status (boolean) 

=back

=back

=head2 $op-E<gt>B<set_unit> ($unit)

=over

=over

=item * $unit (Gtk2::Unit) 

=back

=back

=head2 $op-E<gt>B<set_use_full_page> ($full_page)

=over

=over

=item * $full_page (boolean) 

=back

=back


=head1 PROPERTIES

=over

=item 'allow-async' (boolean : readable / writable / private)

TRUE if print process may run asynchronous.

=item 'current-page' (integer : readable / writable / private)

The current page in the document

=item 'custom-tab-label' (string : readable / writable / private)

Label for the tab containing custom widgets.

=item 'default-page-setup' (Gtk2::PageSetup : readable / writable / private)

The GtkPageSetup used by default

=item 'export-filename' (string : readable / writable / private)

Export filename

=item 'job-name' (string : readable / writable / private)

A string used for identifying the print job.

=item 'n-pages' (integer : readable / writable / private)

The number of pages in the document.

=item 'print-settings' (Gtk2::PrintSettings : readable / writable / private)

The GtkPrintSettings used for initializing the dialog

=item 'show-progress' (boolean : readable / writable / private)

TRUE if a progress dialog is shown while printing.

=item 'status' (Gtk2::PrintStatus : readable / private)

The status of the print operation

=item 'status-string' (string : readable / private)

A human-readable description of the status

=item 'track-print-status' (boolean : readable / writable / private)

TRUE if the print operation will continue to report on the print job status after the print data has been sent to the printer or print server.

=item 'unit' (Gtk2::Unit : readable / writable / private)

The unit in which distances can be measured in the context

=item 'use-full-page' (boolean : readable / writable / private)

TRUE if the origin of the context should be at the corner of the page and not the corner of the imageable area

=back


=head1 SIGNALS

=over

=item B<done> (Gtk2::PrintOperation, Gtk2::PrintOperationResult)

=item B<begin-print> (Gtk2::PrintOperation, Gtk2::PrintContext)

=item boolean = B<paginate> (Gtk2::PrintOperation, Gtk2::PrintContext)

=item B<request-page-setup> (Gtk2::PrintOperation, Gtk2::PrintContext, integer, Gtk2::PageSetup)

=item B<draw-page> (Gtk2::PrintOperation, Gtk2::PrintContext, integer)

=item B<end-print> (Gtk2::PrintOperation, Gtk2::PrintContext)

=item B<status-changed> (Gtk2::PrintOperation)

=item Glib::Object = B<create-custom-widget> (Gtk2::PrintOperation)

=item B<custom-widget-apply> (Gtk2::PrintOperation, Gtk2::Widget)

=item boolean = B<preview> (Gtk2::PrintOperation, Gtk2::PrintOperationPreview, Gtk2::PrintContext, Gtk2::Window)

=back


=head1 ENUMS AND FLAGS

=head2 enum Gtk2::PrintOperationAction

=over

=item * 'print-dialog' / 'GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG'

=item * 'print' / 'GTK_PRINT_OPERATION_ACTION_PRINT'

=item * 'preview' / 'GTK_PRINT_OPERATION_ACTION_PREVIEW'

=item * 'export' / 'GTK_PRINT_OPERATION_ACTION_EXPORT'

=back


=head2 enum Gtk2::PrintOperationResult

=over

=item * 'error' / 'GTK_PRINT_OPERATION_RESULT_ERROR'

=item * 'apply' / 'GTK_PRINT_OPERATION_RESULT_APPLY'

=item * 'cancel' / 'GTK_PRINT_OPERATION_RESULT_CANCEL'

=item * 'in-progress' / 'GTK_PRINT_OPERATION_RESULT_IN_PROGRESS'

=back


=head2 enum Gtk2::PrintStatus

=over

=item * 'initial' / 'GTK_PRINT_STATUS_INITIAL'

=item * 'preparing' / 'GTK_PRINT_STATUS_PREPARING'

=item * 'generating-data' / 'GTK_PRINT_STATUS_GENERATING_DATA'

=item * 'sending-data' / 'GTK_PRINT_STATUS_SENDING_DATA'

=item * 'pending' / 'GTK_PRINT_STATUS_PENDING'

=item * 'pending-issue' / 'GTK_PRINT_STATUS_PENDING_ISSUE'

=item * 'printing' / 'GTK_PRINT_STATUS_PRINTING'

=item * 'finished' / 'GTK_PRINT_STATUS_FINISHED'

=item * 'finished-aborted' / 'GTK_PRINT_STATUS_FINISHED_ABORTED'

=back


=head2 enum Gtk2::Unit

=over

=item * 'pixel' / 'GTK_UNIT_PIXEL'

=item * 'points' / 'GTK_UNIT_POINTS'

=item * 'inch' / 'GTK_UNIT_INCH'

=item * 'mm' / 'GTK_UNIT_MM'

=back



=head1 SEE ALSO

L<Gtk2>, L<Glib::Object>

=head1 COPYRIGHT

Copyright (C) 2003-2007 by the gtk2-perl team.

This software is licensed under the LGPL.  See L<Gtk2> for a full notice.


=cut

