]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/printfw.py
wxPython 2.1b1: Very minor changes needed for wxGTK
[wxWidgets.git] / utils / wxPython / src / msw / printfw.py
1 # This file was created automatically by SWIG.
2 import printfwc
3
4 from misc import *
5
6 from windows import *
7
8 from gdi import *
9
10 from cmndlgs import *
11
12 from frames import *
13
14 from stattool import *
15
16 from controls import *
17
18 from events import *
19 import wx
20 class wxPrintDataPtr :
21 def __init__(self,this):
22 self.this = this
23 self.thisown = 0
24 def __del__(self):
25 if self.thisown == 1 :
26 printfwc.delete_wxPrintData(self.this)
27 def GetNoCopies(self):
28 val = printfwc.wxPrintData_GetNoCopies(self.this)
29 return val
30 def GetCollate(self):
31 val = printfwc.wxPrintData_GetCollate(self.this)
32 return val
33 def GetOrientation(self):
34 val = printfwc.wxPrintData_GetOrientation(self.this)
35 return val
36 def GetPrinterName(self):
37 val = printfwc.wxPrintData_GetPrinterName(self.this)
38 return val
39 def GetColour(self):
40 val = printfwc.wxPrintData_GetColour(self.this)
41 return val
42 def GetDuplex(self):
43 val = printfwc.wxPrintData_GetDuplex(self.this)
44 return val
45 def GetPaperId(self):
46 val = printfwc.wxPrintData_GetPaperId(self.this)
47 return val
48 def GetPaperSize(self):
49 val = printfwc.wxPrintData_GetPaperSize(self.this)
50 val = wxSizePtr(val)
51 return val
52 def GetQuality(self):
53 val = printfwc.wxPrintData_GetQuality(self.this)
54 return val
55 def SetNoCopies(self,arg0):
56 val = printfwc.wxPrintData_SetNoCopies(self.this,arg0)
57 return val
58 def SetCollate(self,arg0):
59 val = printfwc.wxPrintData_SetCollate(self.this,arg0)
60 return val
61 def SetOrientation(self,arg0):
62 val = printfwc.wxPrintData_SetOrientation(self.this,arg0)
63 return val
64 def SetPrinterName(self,arg0):
65 val = printfwc.wxPrintData_SetPrinterName(self.this,arg0)
66 return val
67 def SetColour(self,arg0):
68 val = printfwc.wxPrintData_SetColour(self.this,arg0)
69 return val
70 def SetDuplex(self,arg0):
71 val = printfwc.wxPrintData_SetDuplex(self.this,arg0)
72 return val
73 def SetPaperId(self,arg0):
74 val = printfwc.wxPrintData_SetPaperId(self.this,arg0)
75 return val
76 def SetPaperSize(self,arg0):
77 val = printfwc.wxPrintData_SetPaperSize(self.this,arg0.this)
78 return val
79 def SetQuality(self,arg0):
80 val = printfwc.wxPrintData_SetQuality(self.this,arg0)
81 return val
82 def __repr__(self):
83 return "<C wxPrintData instance>"
84 class wxPrintData(wxPrintDataPtr):
85 def __init__(self) :
86 self.this = printfwc.new_wxPrintData()
87 self.thisown = 1
88
89
90
91
92 class wxPageSetupDialogDataPtr :
93 def __init__(self,this):
94 self.this = this
95 self.thisown = 0
96 def __del__(self):
97 if self.thisown == 1 :
98 printfwc.delete_wxPageSetupDialogData(self.this)
99 def EnableHelp(self,arg0):
100 val = printfwc.wxPageSetupDialogData_EnableHelp(self.this,arg0)
101 return val
102 def EnableMargins(self,arg0):
103 val = printfwc.wxPageSetupDialogData_EnableMargins(self.this,arg0)
104 return val
105 def EnableOrientation(self,arg0):
106 val = printfwc.wxPageSetupDialogData_EnableOrientation(self.this,arg0)
107 return val
108 def EnablePaper(self,arg0):
109 val = printfwc.wxPageSetupDialogData_EnablePaper(self.this,arg0)
110 return val
111 def EnablePrinter(self,arg0):
112 val = printfwc.wxPageSetupDialogData_EnablePrinter(self.this,arg0)
113 return val
114 def GetDefaultMinMargins(self):
115 val = printfwc.wxPageSetupDialogData_GetDefaultMinMargins(self.this)
116 return val
117 def GetEnableMargins(self):
118 val = printfwc.wxPageSetupDialogData_GetEnableMargins(self.this)
119 return val
120 def GetEnableOrientation(self):
121 val = printfwc.wxPageSetupDialogData_GetEnableOrientation(self.this)
122 return val
123 def GetEnablePaper(self):
124 val = printfwc.wxPageSetupDialogData_GetEnablePaper(self.this)
125 return val
126 def GetEnablePrinter(self):
127 val = printfwc.wxPageSetupDialogData_GetEnablePrinter(self.this)
128 return val
129 def GetEnableHelp(self):
130 val = printfwc.wxPageSetupDialogData_GetEnableHelp(self.this)
131 return val
132 def GetDefaultInfo(self):
133 val = printfwc.wxPageSetupDialogData_GetDefaultInfo(self.this)
134 return val
135 def GetMarginTopLeft(self):
136 val = printfwc.wxPageSetupDialogData_GetMarginTopLeft(self.this)
137 val = wxPointPtr(val)
138 val.thisown = 1
139 return val
140 def GetMarginBottomRight(self):
141 val = printfwc.wxPageSetupDialogData_GetMarginBottomRight(self.this)
142 val = wxPointPtr(val)
143 val.thisown = 1
144 return val
145 def GetMinMarginTopLeft(self):
146 val = printfwc.wxPageSetupDialogData_GetMinMarginTopLeft(self.this)
147 val = wxPointPtr(val)
148 val.thisown = 1
149 return val
150 def GetMinMarginBottomRight(self):
151 val = printfwc.wxPageSetupDialogData_GetMinMarginBottomRight(self.this)
152 val = wxPointPtr(val)
153 val.thisown = 1
154 return val
155 def GetPaperId(self):
156 val = printfwc.wxPageSetupDialogData_GetPaperId(self.this)
157 return val
158 def GetPaperSize(self):
159 val = printfwc.wxPageSetupDialogData_GetPaperSize(self.this)
160 val = wxSizePtr(val)
161 val.thisown = 1
162 return val
163 def GetPrintData(self):
164 val = printfwc.wxPageSetupDialogData_GetPrintData(self.this)
165 val = wxPrintDataPtr(val)
166 val.thisown = 1
167 return val
168 def SetDefaultInfo(self,arg0):
169 val = printfwc.wxPageSetupDialogData_SetDefaultInfo(self.this,arg0)
170 return val
171 def SetDefaultMinMargins(self,arg0):
172 val = printfwc.wxPageSetupDialogData_SetDefaultMinMargins(self.this,arg0)
173 return val
174 def SetMarginTopLeft(self,arg0):
175 val = printfwc.wxPageSetupDialogData_SetMarginTopLeft(self.this,arg0.this)
176 return val
177 def SetMarginBottomRight(self,arg0):
178 val = printfwc.wxPageSetupDialogData_SetMarginBottomRight(self.this,arg0.this)
179 return val
180 def SetMinMarginTopLeft(self,arg0):
181 val = printfwc.wxPageSetupDialogData_SetMinMarginTopLeft(self.this,arg0.this)
182 return val
183 def SetMinMarginBottomRight(self,arg0):
184 val = printfwc.wxPageSetupDialogData_SetMinMarginBottomRight(self.this,arg0.this)
185 return val
186 def SetPaperId(self,arg0):
187 val = printfwc.wxPageSetupDialogData_SetPaperId(self.this,arg0)
188 return val
189 def SetPaperSize(self,arg0):
190 val = printfwc.wxPageSetupDialogData_SetPaperSize(self.this,arg0.this)
191 return val
192 def SetPrintData(self,arg0):
193 val = printfwc.wxPageSetupDialogData_SetPrintData(self.this,arg0.this)
194 return val
195 def __repr__(self):
196 return "<C wxPageSetupDialogData instance>"
197 class wxPageSetupDialogData(wxPageSetupDialogDataPtr):
198 def __init__(self) :
199 self.this = printfwc.new_wxPageSetupDialogData()
200 self.thisown = 1
201
202
203
204
205 class wxPageSetupDialogPtr(wxDialogPtr):
206 def __init__(self,this):
207 self.this = this
208 self.thisown = 0
209 def GetPageSetupData(self):
210 val = printfwc.wxPageSetupDialog_GetPageSetupData(self.this)
211 val = wxPageSetupDialogDataPtr(val)
212 return val
213 def ShowModal(self):
214 val = printfwc.wxPageSetupDialog_ShowModal(self.this)
215 return val
216 def __repr__(self):
217 return "<C wxPageSetupDialog instance>"
218 class wxPageSetupDialog(wxPageSetupDialogPtr):
219 def __init__(self,arg0,*args) :
220 argl = map(None,args)
221 try: argl[0] = argl[0].this
222 except: pass
223 args = tuple(argl)
224 self.this = apply(printfwc.new_wxPageSetupDialog,(arg0.this,)+args)
225 self.thisown = 1
226 wx._StdDialogCallbacks(self)
227
228
229
230
231 class wxPrintDialogDataPtr :
232 def __init__(self,this):
233 self.this = this
234 self.thisown = 0
235 def __del__(self):
236 if self.thisown == 1 :
237 printfwc.delete_wxPrintDialogData(self.this)
238 def EnableHelp(self,arg0):
239 val = printfwc.wxPrintDialogData_EnableHelp(self.this,arg0)
240 return val
241 def EnablePageNumbers(self,arg0):
242 val = printfwc.wxPrintDialogData_EnablePageNumbers(self.this,arg0)
243 return val
244 def EnablePrintToFile(self,arg0):
245 val = printfwc.wxPrintDialogData_EnablePrintToFile(self.this,arg0)
246 return val
247 def EnableSelection(self,arg0):
248 val = printfwc.wxPrintDialogData_EnableSelection(self.this,arg0)
249 return val
250 def GetAllPages(self):
251 val = printfwc.wxPrintDialogData_GetAllPages(self.this)
252 return val
253 def GetCollate(self):
254 val = printfwc.wxPrintDialogData_GetCollate(self.this)
255 return val
256 def GetFromPage(self):
257 val = printfwc.wxPrintDialogData_GetFromPage(self.this)
258 return val
259 def GetMaxPage(self):
260 val = printfwc.wxPrintDialogData_GetMaxPage(self.this)
261 return val
262 def GetMinPage(self):
263 val = printfwc.wxPrintDialogData_GetMinPage(self.this)
264 return val
265 def GetNoCopies(self):
266 val = printfwc.wxPrintDialogData_GetNoCopies(self.this)
267 return val
268 def GetPrintData(self):
269 val = printfwc.wxPrintDialogData_GetPrintData(self.this)
270 val = wxPrintDataPtr(val)
271 val.thisown = 1
272 return val
273 def GetPrintToFile(self):
274 val = printfwc.wxPrintDialogData_GetPrintToFile(self.this)
275 return val
276 def GetToPage(self):
277 val = printfwc.wxPrintDialogData_GetToPage(self.this)
278 return val
279 def SetCollate(self,arg0):
280 val = printfwc.wxPrintDialogData_SetCollate(self.this,arg0)
281 return val
282 def SetFromPage(self,arg0):
283 val = printfwc.wxPrintDialogData_SetFromPage(self.this,arg0)
284 return val
285 def SetMaxPage(self,arg0):
286 val = printfwc.wxPrintDialogData_SetMaxPage(self.this,arg0)
287 return val
288 def SetMinPage(self,arg0):
289 val = printfwc.wxPrintDialogData_SetMinPage(self.this,arg0)
290 return val
291 def SetNoCopies(self,arg0):
292 val = printfwc.wxPrintDialogData_SetNoCopies(self.this,arg0)
293 return val
294 def SetPrintData(self,arg0):
295 val = printfwc.wxPrintDialogData_SetPrintData(self.this,arg0.this)
296 return val
297 def SetPrintToFile(self,arg0):
298 val = printfwc.wxPrintDialogData_SetPrintToFile(self.this,arg0)
299 return val
300 def SetSetupDialog(self,arg0):
301 val = printfwc.wxPrintDialogData_SetSetupDialog(self.this,arg0)
302 return val
303 def SetToPage(self,arg0):
304 val = printfwc.wxPrintDialogData_SetToPage(self.this,arg0)
305 return val
306 def __repr__(self):
307 return "<C wxPrintDialogData instance>"
308 class wxPrintDialogData(wxPrintDialogDataPtr):
309 def __init__(self) :
310 self.this = printfwc.new_wxPrintDialogData()
311 self.thisown = 1
312
313
314
315
316 class wxPrintDialogPtr(wxDialogPtr):
317 def __init__(self,this):
318 self.this = this
319 self.thisown = 0
320 def GetPrintDialogData(self):
321 val = printfwc.wxPrintDialog_GetPrintDialogData(self.this)
322 val = wxPrintDialogDataPtr(val)
323 return val
324 def GetPrintDC(self):
325 val = printfwc.wxPrintDialog_GetPrintDC(self.this)
326 val = wxDCPtr(val)
327 val.thisown = 1
328 return val
329 def ShowModal(self):
330 val = printfwc.wxPrintDialog_ShowModal(self.this)
331 return val
332 def __repr__(self):
333 return "<C wxPrintDialog instance>"
334 class wxPrintDialog(wxPrintDialogPtr):
335 def __init__(self,arg0,*args) :
336 argl = map(None,args)
337 try: argl[0] = argl[0].this
338 except: pass
339 args = tuple(argl)
340 self.this = apply(printfwc.new_wxPrintDialog,(arg0.this,)+args)
341 self.thisown = 1
342 wx._StdDialogCallbacks(self)
343
344
345
346
347 class wxPrintoutPtr :
348 def __init__(self,this):
349 self.this = this
350 self.thisown = 0
351 def _setSelf(self,arg0):
352 val = printfwc.wxPrintout__setSelf(self.this,arg0)
353 return val
354 def Destroy(self):
355 val = printfwc.wxPrintout_Destroy(self.this)
356 return val
357 def GetDC(self):
358 val = printfwc.wxPrintout_GetDC(self.this)
359 val = wxDCPtr(val)
360 return val
361 def GetPageSizeMM(self):
362 val = printfwc.wxPrintout_GetPageSizeMM(self.this)
363 return val
364 def GetPageSizePixels(self):
365 val = printfwc.wxPrintout_GetPageSizePixels(self.this)
366 return val
367 def GetPPIPrinter(self):
368 val = printfwc.wxPrintout_GetPPIPrinter(self.this)
369 return val
370 def GetPPIScreen(self):
371 val = printfwc.wxPrintout_GetPPIScreen(self.this)
372 return val
373 def IsPreview(self):
374 val = printfwc.wxPrintout_IsPreview(self.this)
375 return val
376 def base_OnBeginDocument(self,arg0,arg1):
377 val = printfwc.wxPrintout_base_OnBeginDocument(self.this,arg0,arg1)
378 return val
379 def base_OnEndDocument(self):
380 val = printfwc.wxPrintout_base_OnEndDocument(self.this)
381 return val
382 def base_OnBeginPrinting(self):
383 val = printfwc.wxPrintout_base_OnBeginPrinting(self.this)
384 return val
385 def base_OnEndPrinting(self):
386 val = printfwc.wxPrintout_base_OnEndPrinting(self.this)
387 return val
388 def base_OnPreparePrinting(self):
389 val = printfwc.wxPrintout_base_OnPreparePrinting(self.this)
390 return val
391 def base_GetPageInfo(self):
392 val = printfwc.wxPrintout_base_GetPageInfo(self.this)
393 return val
394 def base_HasPage(self,arg0):
395 val = printfwc.wxPrintout_base_HasPage(self.this,arg0)
396 return val
397 def __repr__(self):
398 return "<C wxPrintout instance>"
399 class wxPrintout(wxPrintoutPtr):
400 def __init__(self,*args) :
401 self.this = apply(printfwc.new_wxPrintout,()+args)
402 self.thisown = 1
403 self._setSelf(self)
404
405
406
407
408 class wxPrinterPtr :
409 def __init__(self,this):
410 self.this = this
411 self.thisown = 0
412 def __del__(self):
413 if self.thisown == 1 :
414 printfwc.delete_wxPrinter(self.this)
415 def CreateAbortWindow(self,arg0,arg1):
416 val = printfwc.wxPrinter_CreateAbortWindow(self.this,arg0.this,arg1.this)
417 return val
418 def GetPrintDialogData(self):
419 val = printfwc.wxPrinter_GetPrintDialogData(self.this)
420 val = wxPrintDialogDataPtr(val)
421 return val
422 def Print(self,arg0,arg1,*args):
423 val = apply(printfwc.wxPrinter_Print,(self.this,arg0.this,arg1.this,)+args)
424 return val
425 def PrintDialog(self,arg0):
426 val = printfwc.wxPrinter_PrintDialog(self.this,arg0.this)
427 val = wxDCPtr(val)
428 return val
429 def ReportError(self,arg0,arg1,arg2):
430 val = printfwc.wxPrinter_ReportError(self.this,arg0.this,arg1.this,arg2)
431 return val
432 def Setup(self,arg0):
433 val = printfwc.wxPrinter_Setup(self.this,arg0.this)
434 return val
435 def __repr__(self):
436 return "<C wxPrinter instance>"
437 class wxPrinter(wxPrinterPtr):
438 def __init__(self,*args) :
439 argl = map(None,args)
440 try: argl[0] = argl[0].this
441 except: pass
442 args = tuple(argl)
443 self.this = apply(printfwc.new_wxPrinter,()+args)
444 self.thisown = 1
445
446
447
448
449 class wxPrintPreviewPtr :
450 def __init__(self,this):
451 self.this = this
452 self.thisown = 0
453 def GetCanvas(self):
454 val = printfwc.wxPrintPreview_GetCanvas(self.this)
455 val = wxWindowPtr(val)
456 return val
457 def GetCurrentPage(self):
458 val = printfwc.wxPrintPreview_GetCurrentPage(self.this)
459 return val
460 def GetFrame(self):
461 val = printfwc.wxPrintPreview_GetFrame(self.this)
462 val = wxFramePtr(val)
463 return val
464 def GetMaxPage(self):
465 val = printfwc.wxPrintPreview_GetMaxPage(self.this)
466 return val
467 def GetMinPage(self):
468 val = printfwc.wxPrintPreview_GetMinPage(self.this)
469 return val
470 def GetPrintDialogData(self):
471 val = printfwc.wxPrintPreview_GetPrintDialogData(self.this)
472 val = wxPrintDialogDataPtr(val)
473 return val
474 def GetPrintout(self):
475 val = printfwc.wxPrintPreview_GetPrintout(self.this)
476 val = wxPrintoutPtr(val)
477 return val
478 def GetPrintoutForPrinting(self):
479 val = printfwc.wxPrintPreview_GetPrintoutForPrinting(self.this)
480 val = wxPrintoutPtr(val)
481 return val
482 def GetZoom(self):
483 val = printfwc.wxPrintPreview_GetZoom(self.this)
484 return val
485 def Ok(self):
486 val = printfwc.wxPrintPreview_Ok(self.this)
487 return val
488 def Print(self,arg0):
489 val = printfwc.wxPrintPreview_Print(self.this,arg0)
490 return val
491 def SetCanvas(self,arg0):
492 val = printfwc.wxPrintPreview_SetCanvas(self.this,arg0.this)
493 return val
494 def SetCurrentPage(self,arg0):
495 val = printfwc.wxPrintPreview_SetCurrentPage(self.this,arg0)
496 return val
497 def SetFrame(self,arg0):
498 val = printfwc.wxPrintPreview_SetFrame(self.this,arg0.this)
499 return val
500 def SetPrintout(self,arg0):
501 val = printfwc.wxPrintPreview_SetPrintout(self.this,arg0.this)
502 return val
503 def SetZoom(self,arg0):
504 val = printfwc.wxPrintPreview_SetZoom(self.this,arg0)
505 return val
506 def __repr__(self):
507 return "<C wxPrintPreview instance>"
508 class wxPrintPreview(wxPrintPreviewPtr):
509 def __init__(self,arg0,arg1,*args) :
510 argl = map(None,args)
511 try: argl[0] = argl[0].this
512 except: pass
513 args = tuple(argl)
514 self.this = apply(printfwc.new_wxPrintPreview,(arg0.this,arg1.this,)+args)
515 self.thisown = 1
516
517
518
519
520 class wxPreviewFramePtr(wxFramePtr):
521 def __init__(self,this):
522 self.this = this
523 self.thisown = 0
524 def Initialize(self):
525 val = printfwc.wxPreviewFrame_Initialize(self.this)
526 return val
527 def __repr__(self):
528 return "<C wxPreviewFrame instance>"
529 class wxPreviewFrame(wxPreviewFramePtr):
530 def __init__(self,arg0,arg1,arg2,*args) :
531 argl = map(None,args)
532 try: argl[0] = argl[0].this
533 except: pass
534 try: argl[1] = argl[1].this
535 except: pass
536 args = tuple(argl)
537 self.this = apply(printfwc.new_wxPreviewFrame,(arg0.this,arg1.this,arg2,)+args)
538 self.thisown = 1
539 wx._StdFrameCallbacks(self)
540
541
542
543
544
545
546 #-------------- FUNCTION WRAPPERS ------------------
547
548
549
550 #-------------- VARIABLE WRAPPERS ------------------
551