]>
git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/printfw.py
1 # This file was created automatically by SWIG.
14 from stattool
import *
16 from controls
import *
20 class wxPrintDataPtr
:
21 def __init__(self
,this
):
24 def __del__(self
, printfwc
=printfwc
):
25 if self
.thisown
== 1 :
26 printfwc
.delete_wxPrintData(self
.this
)
27 def GetNoCopies(self
):
28 val
= printfwc
.wxPrintData_GetNoCopies(self
.this
)
31 val
= printfwc
.wxPrintData_GetCollate(self
.this
)
33 def GetOrientation(self
):
34 val
= printfwc
.wxPrintData_GetOrientation(self
.this
)
36 def GetPrinterName(self
):
37 val
= printfwc
.wxPrintData_GetPrinterName(self
.this
)
40 val
= printfwc
.wxPrintData_GetColour(self
.this
)
43 val
= printfwc
.wxPrintData_GetDuplex(self
.this
)
46 val
= printfwc
.wxPrintData_GetPaperId(self
.this
)
48 def GetPaperSize(self
):
49 val
= printfwc
.wxPrintData_GetPaperSize(self
.this
)
53 val
= printfwc
.wxPrintData_GetQuality(self
.this
)
55 def SetNoCopies(self
,arg0
):
56 val
= printfwc
.wxPrintData_SetNoCopies(self
.this
,arg0
)
58 def SetCollate(self
,arg0
):
59 val
= printfwc
.wxPrintData_SetCollate(self
.this
,arg0
)
61 def SetOrientation(self
,arg0
):
62 val
= printfwc
.wxPrintData_SetOrientation(self
.this
,arg0
)
64 def SetPrinterName(self
,arg0
):
65 val
= printfwc
.wxPrintData_SetPrinterName(self
.this
,arg0
)
67 def SetColour(self
,arg0
):
68 val
= printfwc
.wxPrintData_SetColour(self
.this
,arg0
)
70 def SetDuplex(self
,arg0
):
71 val
= printfwc
.wxPrintData_SetDuplex(self
.this
,arg0
)
73 def SetPaperId(self
,arg0
):
74 val
= printfwc
.wxPrintData_SetPaperId(self
.this
,arg0
)
76 def SetPaperSize(self
,arg0
):
77 val
= printfwc
.wxPrintData_SetPaperSize(self
.this
,arg0
.this
)
79 def SetQuality(self
,arg0
):
80 val
= printfwc
.wxPrintData_SetQuality(self
.this
,arg0
)
83 return "<C wxPrintData instance>"
84 class wxPrintData(wxPrintDataPtr
):
86 self
.this
= printfwc
.new_wxPrintData()
92 class wxPageSetupDialogDataPtr
:
93 def __init__(self
,this
):
96 def __del__(self
, printfwc
=printfwc
):
97 if self
.thisown
== 1 :
98 printfwc
.delete_wxPageSetupDialogData(self
.this
)
99 def EnableHelp(self
,arg0
):
100 val
= printfwc
.wxPageSetupDialogData_EnableHelp(self
.this
,arg0
)
102 def EnableMargins(self
,arg0
):
103 val
= printfwc
.wxPageSetupDialogData_EnableMargins(self
.this
,arg0
)
105 def EnableOrientation(self
,arg0
):
106 val
= printfwc
.wxPageSetupDialogData_EnableOrientation(self
.this
,arg0
)
108 def EnablePaper(self
,arg0
):
109 val
= printfwc
.wxPageSetupDialogData_EnablePaper(self
.this
,arg0
)
111 def EnablePrinter(self
,arg0
):
112 val
= printfwc
.wxPageSetupDialogData_EnablePrinter(self
.this
,arg0
)
114 def GetDefaultMinMargins(self
):
115 val
= printfwc
.wxPageSetupDialogData_GetDefaultMinMargins(self
.this
)
117 def GetEnableMargins(self
):
118 val
= printfwc
.wxPageSetupDialogData_GetEnableMargins(self
.this
)
120 def GetEnableOrientation(self
):
121 val
= printfwc
.wxPageSetupDialogData_GetEnableOrientation(self
.this
)
123 def GetEnablePaper(self
):
124 val
= printfwc
.wxPageSetupDialogData_GetEnablePaper(self
.this
)
126 def GetEnablePrinter(self
):
127 val
= printfwc
.wxPageSetupDialogData_GetEnablePrinter(self
.this
)
129 def GetEnableHelp(self
):
130 val
= printfwc
.wxPageSetupDialogData_GetEnableHelp(self
.this
)
132 def GetDefaultInfo(self
):
133 val
= printfwc
.wxPageSetupDialogData_GetDefaultInfo(self
.this
)
135 def GetMarginTopLeft(self
):
136 val
= printfwc
.wxPageSetupDialogData_GetMarginTopLeft(self
.this
)
137 val
= wxPointPtr(val
)
140 def GetMarginBottomRight(self
):
141 val
= printfwc
.wxPageSetupDialogData_GetMarginBottomRight(self
.this
)
142 val
= wxPointPtr(val
)
145 def GetMinMarginTopLeft(self
):
146 val
= printfwc
.wxPageSetupDialogData_GetMinMarginTopLeft(self
.this
)
147 val
= wxPointPtr(val
)
150 def GetMinMarginBottomRight(self
):
151 val
= printfwc
.wxPageSetupDialogData_GetMinMarginBottomRight(self
.this
)
152 val
= wxPointPtr(val
)
155 def GetPaperId(self
):
156 val
= printfwc
.wxPageSetupDialogData_GetPaperId(self
.this
)
158 def GetPaperSize(self
):
159 val
= printfwc
.wxPageSetupDialogData_GetPaperSize(self
.this
)
163 def GetPrintData(self
):
164 val
= printfwc
.wxPageSetupDialogData_GetPrintData(self
.this
)
165 val
= wxPrintDataPtr(val
)
168 def SetDefaultInfo(self
,arg0
):
169 val
= printfwc
.wxPageSetupDialogData_SetDefaultInfo(self
.this
,arg0
)
171 def SetDefaultMinMargins(self
,arg0
):
172 val
= printfwc
.wxPageSetupDialogData_SetDefaultMinMargins(self
.this
,arg0
)
174 def SetMarginTopLeft(self
,arg0
):
175 val
= printfwc
.wxPageSetupDialogData_SetMarginTopLeft(self
.this
,arg0
.this
)
177 def SetMarginBottomRight(self
,arg0
):
178 val
= printfwc
.wxPageSetupDialogData_SetMarginBottomRight(self
.this
,arg0
.this
)
180 def SetMinMarginTopLeft(self
,arg0
):
181 val
= printfwc
.wxPageSetupDialogData_SetMinMarginTopLeft(self
.this
,arg0
.this
)
183 def SetMinMarginBottomRight(self
,arg0
):
184 val
= printfwc
.wxPageSetupDialogData_SetMinMarginBottomRight(self
.this
,arg0
.this
)
186 def SetPaperId(self
,arg0
):
187 val
= printfwc
.wxPageSetupDialogData_SetPaperId(self
.this
,arg0
)
189 def SetPaperSize(self
,arg0
):
190 val
= printfwc
.wxPageSetupDialogData_SetPaperSize(self
.this
,arg0
.this
)
192 def SetPrintData(self
,arg0
):
193 val
= printfwc
.wxPageSetupDialogData_SetPrintData(self
.this
,arg0
.this
)
196 return "<C wxPageSetupDialogData instance>"
197 class wxPageSetupDialogData(wxPageSetupDialogDataPtr
):
199 self
.this
= printfwc
.new_wxPageSetupDialogData()
205 class wxPageSetupDialogPtr(wxDialogPtr
):
206 def __init__(self
,this
):
209 def GetPageSetupData(self
):
210 val
= printfwc
.wxPageSetupDialog_GetPageSetupData(self
.this
)
211 val
= wxPageSetupDialogDataPtr(val
)
214 val
= printfwc
.wxPageSetupDialog_ShowModal(self
.this
)
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
224 self
.this
= apply(printfwc
.new_wxPageSetupDialog
,(arg0
.this
,)+args
)
226 wx
._StdDialogCallbacks
(self
)
231 class wxPrintDialogDataPtr
:
232 def __init__(self
,this
):
235 def __del__(self
, printfwc
=printfwc
):
236 if self
.thisown
== 1 :
237 printfwc
.delete_wxPrintDialogData(self
.this
)
238 def EnableHelp(self
,arg0
):
239 val
= printfwc
.wxPrintDialogData_EnableHelp(self
.this
,arg0
)
241 def EnablePageNumbers(self
,arg0
):
242 val
= printfwc
.wxPrintDialogData_EnablePageNumbers(self
.this
,arg0
)
244 def EnablePrintToFile(self
,arg0
):
245 val
= printfwc
.wxPrintDialogData_EnablePrintToFile(self
.this
,arg0
)
247 def EnableSelection(self
,arg0
):
248 val
= printfwc
.wxPrintDialogData_EnableSelection(self
.this
,arg0
)
250 def GetAllPages(self
):
251 val
= printfwc
.wxPrintDialogData_GetAllPages(self
.this
)
253 def GetCollate(self
):
254 val
= printfwc
.wxPrintDialogData_GetCollate(self
.this
)
256 def GetFromPage(self
):
257 val
= printfwc
.wxPrintDialogData_GetFromPage(self
.this
)
259 def GetMaxPage(self
):
260 val
= printfwc
.wxPrintDialogData_GetMaxPage(self
.this
)
262 def GetMinPage(self
):
263 val
= printfwc
.wxPrintDialogData_GetMinPage(self
.this
)
265 def GetNoCopies(self
):
266 val
= printfwc
.wxPrintDialogData_GetNoCopies(self
.this
)
268 def GetPrintData(self
):
269 val
= printfwc
.wxPrintDialogData_GetPrintData(self
.this
)
270 val
= wxPrintDataPtr(val
)
273 def GetPrintToFile(self
):
274 val
= printfwc
.wxPrintDialogData_GetPrintToFile(self
.this
)
277 val
= printfwc
.wxPrintDialogData_GetToPage(self
.this
)
279 def SetCollate(self
,arg0
):
280 val
= printfwc
.wxPrintDialogData_SetCollate(self
.this
,arg0
)
282 def SetFromPage(self
,arg0
):
283 val
= printfwc
.wxPrintDialogData_SetFromPage(self
.this
,arg0
)
285 def SetMaxPage(self
,arg0
):
286 val
= printfwc
.wxPrintDialogData_SetMaxPage(self
.this
,arg0
)
288 def SetMinPage(self
,arg0
):
289 val
= printfwc
.wxPrintDialogData_SetMinPage(self
.this
,arg0
)
291 def SetNoCopies(self
,arg0
):
292 val
= printfwc
.wxPrintDialogData_SetNoCopies(self
.this
,arg0
)
294 def SetPrintData(self
,arg0
):
295 val
= printfwc
.wxPrintDialogData_SetPrintData(self
.this
,arg0
.this
)
297 def SetPrintToFile(self
,arg0
):
298 val
= printfwc
.wxPrintDialogData_SetPrintToFile(self
.this
,arg0
)
300 def SetSetupDialog(self
,arg0
):
301 val
= printfwc
.wxPrintDialogData_SetSetupDialog(self
.this
,arg0
)
303 def SetToPage(self
,arg0
):
304 val
= printfwc
.wxPrintDialogData_SetToPage(self
.this
,arg0
)
307 return "<C wxPrintDialogData instance>"
308 class wxPrintDialogData(wxPrintDialogDataPtr
):
310 self
.this
= printfwc
.new_wxPrintDialogData()
316 class wxPrintDialogPtr(wxDialogPtr
):
317 def __init__(self
,this
):
320 def GetPrintDialogData(self
):
321 val
= printfwc
.wxPrintDialog_GetPrintDialogData(self
.this
)
322 val
= wxPrintDialogDataPtr(val
)
324 def GetPrintDC(self
):
325 val
= printfwc
.wxPrintDialog_GetPrintDC(self
.this
)
330 val
= printfwc
.wxPrintDialog_ShowModal(self
.this
)
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
340 self
.this
= apply(printfwc
.new_wxPrintDialog
,(arg0
.this
,)+args
)
342 wx
._StdDialogCallbacks
(self
)
347 class wxPrintoutPtr
:
348 def __init__(self
,this
):
351 def _setSelf(self
,arg0
):
352 val
= printfwc
.wxPrintout__setSelf(self
.this
,arg0
)
355 val
= printfwc
.wxPrintout_Destroy(self
.this
)
358 val
= printfwc
.wxPrintout_GetDC(self
.this
)
361 def GetPageSizeMM(self
):
362 val
= printfwc
.wxPrintout_GetPageSizeMM(self
.this
)
364 def GetPageSizePixels(self
):
365 val
= printfwc
.wxPrintout_GetPageSizePixels(self
.this
)
367 def GetPPIPrinter(self
):
368 val
= printfwc
.wxPrintout_GetPPIPrinter(self
.this
)
370 def GetPPIScreen(self
):
371 val
= printfwc
.wxPrintout_GetPPIScreen(self
.this
)
374 val
= printfwc
.wxPrintout_IsPreview(self
.this
)
376 def base_OnBeginDocument(self
,arg0
,arg1
):
377 val
= printfwc
.wxPrintout_base_OnBeginDocument(self
.this
,arg0
,arg1
)
379 def base_OnEndDocument(self
):
380 val
= printfwc
.wxPrintout_base_OnEndDocument(self
.this
)
382 def base_OnBeginPrinting(self
):
383 val
= printfwc
.wxPrintout_base_OnBeginPrinting(self
.this
)
385 def base_OnEndPrinting(self
):
386 val
= printfwc
.wxPrintout_base_OnEndPrinting(self
.this
)
388 def base_OnPreparePrinting(self
):
389 val
= printfwc
.wxPrintout_base_OnPreparePrinting(self
.this
)
391 def base_GetPageInfo(self
):
392 val
= printfwc
.wxPrintout_base_GetPageInfo(self
.this
)
394 def base_HasPage(self
,arg0
):
395 val
= printfwc
.wxPrintout_base_HasPage(self
.this
,arg0
)
398 return "<C wxPrintout instance>"
399 class wxPrintout(wxPrintoutPtr
):
400 def __init__(self
,*args
) :
401 self
.this
= apply(printfwc
.new_wxPrintout
,()+args
)
409 def __init__(self
,this
):
412 def __del__(self
, printfwc
=printfwc
):
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
)
418 def GetPrintDialogData(self
):
419 val
= printfwc
.wxPrinter_GetPrintDialogData(self
.this
)
420 val
= wxPrintDialogDataPtr(val
)
422 def Print(self
,arg0
,arg1
,*args
):
423 val
= apply(printfwc
.wxPrinter_Print
,(self
.this
,arg0
.this
,arg1
.this
,)+args
)
425 def PrintDialog(self
,arg0
):
426 val
= printfwc
.wxPrinter_PrintDialog(self
.this
,arg0
.this
)
429 def ReportError(self
,arg0
,arg1
,arg2
):
430 val
= printfwc
.wxPrinter_ReportError(self
.this
,arg0
.this
,arg1
.this
,arg2
)
432 def Setup(self
,arg0
):
433 val
= printfwc
.wxPrinter_Setup(self
.this
,arg0
.this
)
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
443 self
.this
= apply(printfwc
.new_wxPrinter
,()+args
)
449 class wxPrintPreviewPtr
:
450 def __init__(self
,this
):
454 val
= printfwc
.wxPrintPreview_GetCanvas(self
.this
)
455 val
= wxWindowPtr(val
)
457 def GetCurrentPage(self
):
458 val
= printfwc
.wxPrintPreview_GetCurrentPage(self
.this
)
461 val
= printfwc
.wxPrintPreview_GetFrame(self
.this
)
462 val
= wxFramePtr(val
)
464 def GetMaxPage(self
):
465 val
= printfwc
.wxPrintPreview_GetMaxPage(self
.this
)
467 def GetMinPage(self
):
468 val
= printfwc
.wxPrintPreview_GetMinPage(self
.this
)
470 def GetPrintDialogData(self
):
471 val
= printfwc
.wxPrintPreview_GetPrintDialogData(self
.this
)
472 val
= wxPrintDialogDataPtr(val
)
474 def GetPrintout(self
):
475 val
= printfwc
.wxPrintPreview_GetPrintout(self
.this
)
476 val
= wxPrintoutPtr(val
)
478 def GetPrintoutForPrinting(self
):
479 val
= printfwc
.wxPrintPreview_GetPrintoutForPrinting(self
.this
)
480 val
= wxPrintoutPtr(val
)
483 val
= printfwc
.wxPrintPreview_GetZoom(self
.this
)
486 val
= printfwc
.wxPrintPreview_Ok(self
.this
)
488 def Print(self
,arg0
):
489 val
= printfwc
.wxPrintPreview_Print(self
.this
,arg0
)
491 def SetCanvas(self
,arg0
):
492 val
= printfwc
.wxPrintPreview_SetCanvas(self
.this
,arg0
.this
)
494 def SetCurrentPage(self
,arg0
):
495 val
= printfwc
.wxPrintPreview_SetCurrentPage(self
.this
,arg0
)
497 def SetFrame(self
,arg0
):
498 val
= printfwc
.wxPrintPreview_SetFrame(self
.this
,arg0
.this
)
500 def SetPrintout(self
,arg0
):
501 val
= printfwc
.wxPrintPreview_SetPrintout(self
.this
,arg0
.this
)
503 def SetZoom(self
,arg0
):
504 val
= printfwc
.wxPrintPreview_SetZoom(self
.this
,arg0
)
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
514 self
.this
= apply(printfwc
.new_wxPrintPreview
,(arg0
.this
,arg1
.this
,)+args
)
520 class wxPreviewFramePtr(wxFramePtr
):
521 def __init__(self
,this
):
524 def Initialize(self
):
525 val
= printfwc
.wxPreviewFrame_Initialize(self
.this
)
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
534 try: argl
[1] = argl
[1].this
537 self
.this
= apply(printfwc
.new_wxPreviewFrame
,(arg0
.this
,arg1
.this
,arg2
,)+args
)
539 wx
._StdFrameCallbacks
(self
)
546 #-------------- FUNCTION WRAPPERS ------------------
550 #-------------- VARIABLE WRAPPERS ------------------