1Gtk2::PrintOperation(3)User Contributed Perl DocumentatioGntk2::PrintOperation(3)
2
3
4
6 Gtk2::PrintOperation
7
9 Glib::Object
10 +----Gtk2::PrintOperation
11
13 Gtk2::PrintOperationPreview
14
16 printoperation = Gtk2::PrintOperation->new
17 $op->set_allow_async ($allow_async)
18 · $allow_async (boolean)
19
20 $op->cancel
21 $op->set_current_page ($current_page)
22 · $current_page (integer)
23
24 $op->set_custom_tab_label ($label)
25 · $label (string)
26
27 pagesetup or undef = $op->get_default_page_setup
28 $op->set_default_page_setup ($default_page_setup)
29 · $default_page_setup (Gtk2::PageSetup or undef)
30
31 scalar = $op->get_error
32 $op->set_export_filename ($filename)
33 · $filename (string)
34
35 boolean = $op->is_finished
36 $op->set_job_name ($job_name)
37 · $job_name (string)
38
39 $op->set_n_pages ($n_pages)
40 · $n_pages (integer)
41
42 printsettings or undef = $op->get_print_settings
43 $op->set_print_settings ($print_settings)
44 · $print_settings (Gtk2::PrintSettings or undef)
45
46 printoperationresult = $op->run ($action, $parent)
47 · $action (Gtk2::PrintOperationAction)
48
49 · $parent (Gtk2::Window or undef)
50
51 May croak with a Glib::Error in $@ on failure.
52
53 $op->set_show_progress ($show_progress)
54 · $show_progress (boolean)
55
56 printstatus = $op->get_status
57 string = $op->get_status_string
58 $op->set_track_print_status ($track_status)
59 · $track_status (boolean)
60
61 $op->set_unit ($unit)
62 · $unit (Gtk2::Unit)
63
64 $op->set_use_full_page ($full_page)
65 · $full_page (boolean)
66
68 'allow-async' (boolean : readable / writable / private)
69 TRUE if print process may run asynchronous.
70
71 'current-page' (integer : readable / writable / private)
72 The current page in the document
73
74 'custom-tab-label' (string : readable / writable / private)
75 Label for the tab containing custom widgets.
76
77 'default-page-setup' (Gtk2::PageSetup : readable / writable / private)
78 The GtkPageSetup used by default
79
80 'embed-page-setup' (boolean : readable / writable / private)
81 TRUE if page setup combos are embedded in GtkPrintDialog
82
83 'export-filename' (string : readable / writable / private)
84 Export filename
85
86 'has-selection' (boolean : readable / writable / private)
87 TRUE if a selecion exists.
88
89 'job-name' (string : readable / writable / private)
90 A string used for identifying the print job.
91
92 'n-pages' (integer : readable / writable / private)
93 The number of pages in the document.
94
95 'n-pages-to-print' (integer : readable / private)
96 The number of pages that will be printed.
97
98 'print-settings' (Gtk2::PrintSettings : readable / writable / private)
99 The GtkPrintSettings used for initializing the dialog
100
101 'show-progress' (boolean : readable / writable / private)
102 TRUE if a progress dialog is shown while printing.
103
104 'status' (Gtk2::PrintStatus : readable / private)
105 The status of the print operation
106
107 'status-string' (string : readable / private)
108 A human-readable description of the status
109
110 'support-selection' (boolean : readable / writable / private)
111 TRUE if the print operation will support print of selection.
112
113 'track-print-status' (boolean : readable / writable / private)
114 TRUE if the print operation will continue to report on the print
115 job status after the print data has been sent to the printer or
116 print server.
117
118 'unit' (Gtk2::Unit : readable / writable / private)
119 The unit in which distances can be measured in the context
120
121 'use-full-page' (boolean : readable / writable / private)
122 TRUE if the origin of the context should be at the corner of the
123 page and not the corner of the imageable area
124
126 done (Gtk2::PrintOperation, Gtk2::PrintOperationResult)
127 begin-print (Gtk2::PrintOperation, Gtk2::PrintContext)
128 boolean = paginate (Gtk2::PrintOperation, Gtk2::PrintContext)
129 request-page-setup (Gtk2::PrintOperation, Gtk2::PrintContext, integer,
130 Gtk2::PageSetup)
131 draw-page (Gtk2::PrintOperation, Gtk2::PrintContext, integer)
132 end-print (Gtk2::PrintOperation, Gtk2::PrintContext)
133 status-changed (Gtk2::PrintOperation)
134 Glib::Object = create-custom-widget (Gtk2::PrintOperation)
135 update-custom-widget (Gtk2::PrintOperation, Gtk2::Widget,
136 Gtk2::PageSetup, Gtk2::PrintSettings)
137 custom-widget-apply (Gtk2::PrintOperation, Gtk2::Widget)
138 boolean = preview (Gtk2::PrintOperation, Gtk2::PrintOperationPreview,
139 Gtk2::PrintContext, Gtk2::Window)
140
142 enum Gtk2::PrintOperationAction
143 · 'print-dialog' / 'GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG'
144
145 · 'print' / 'GTK_PRINT_OPERATION_ACTION_PRINT'
146
147 · 'preview' / 'GTK_PRINT_OPERATION_ACTION_PREVIEW'
148
149 · 'export' / 'GTK_PRINT_OPERATION_ACTION_EXPORT'
150
151 enum Gtk2::PrintOperationResult
152 · 'error' / 'GTK_PRINT_OPERATION_RESULT_ERROR'
153
154 · 'apply' / 'GTK_PRINT_OPERATION_RESULT_APPLY'
155
156 · 'cancel' / 'GTK_PRINT_OPERATION_RESULT_CANCEL'
157
158 · 'in-progress' / 'GTK_PRINT_OPERATION_RESULT_IN_PROGRESS'
159
160 enum Gtk2::PrintStatus
161 · 'initial' / 'GTK_PRINT_STATUS_INITIAL'
162
163 · 'preparing' / 'GTK_PRINT_STATUS_PREPARING'
164
165 · 'generating-data' / 'GTK_PRINT_STATUS_GENERATING_DATA'
166
167 · 'sending-data' / 'GTK_PRINT_STATUS_SENDING_DATA'
168
169 · 'pending' / 'GTK_PRINT_STATUS_PENDING'
170
171 · 'pending-issue' / 'GTK_PRINT_STATUS_PENDING_ISSUE'
172
173 · 'printing' / 'GTK_PRINT_STATUS_PRINTING'
174
175 · 'finished' / 'GTK_PRINT_STATUS_FINISHED'
176
177 · 'finished-aborted' / 'GTK_PRINT_STATUS_FINISHED_ABORTED'
178
179 enum Gtk2::Unit
180 · 'pixel' / 'GTK_UNIT_PIXEL'
181
182 · 'points' / 'GTK_UNIT_POINTS'
183
184 · 'inch' / 'GTK_UNIT_INCH'
185
186 · 'mm' / 'GTK_UNIT_MM'
187
189 Gtk2, Glib::Object
190
192 Copyright (C) 2003-2008 by the gtk2-perl team.
193
194 This software is licensed under the LGPL. See Gtk2 for a full notice.
195
196
197
198perl v5.12.0 2010-05-02 Gtk2::PrintOperation(3)