X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1b62f00d8e3ec5437ab780cb3d73d299cc61e20c..a4353f07c6b37712634d4b2d86527b647a08044f:/wxPython/src/msw/printfw.py diff --git a/wxPython/src/msw/printfw.py b/wxPython/src/msw/printfw.py index ff628475d1..1800f47407 100644 --- a/wxPython/src/msw/printfw.py +++ b/wxPython/src/msw/printfw.py @@ -7,19 +7,21 @@ from windows import * from gdi import * +from fonts import * + from clip_dnd import * from cmndlgs import * +from events import * + from frames import * from stattool import * from controls import * - -from events import * import wx -class wxPrintDataPtr : +class wxPrintDataPtr(wxObjectPtr): def __init__(self,this): self.this = this self.thisown = 0 @@ -35,6 +37,9 @@ class wxPrintDataPtr : def GetOrientation(self, *_args, **_kwargs): val = apply(printfwc.wxPrintData_GetOrientation,(self,) + _args, _kwargs) return val + def Ok(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintData_Ok,(self,) + _args, _kwargs) + return val def GetPrinterName(self, *_args, **_kwargs): val = apply(printfwc.wxPrintData_GetPrinterName,(self,) + _args, _kwargs) return val @@ -81,6 +86,72 @@ class wxPrintDataPtr : def SetQuality(self, *_args, **_kwargs): val = apply(printfwc.wxPrintData_SetQuality,(self,) + _args, _kwargs) return val + def GetPrinterCommand(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintData_GetPrinterCommand,(self,) + _args, _kwargs) + return val + def GetPrinterOptions(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintData_GetPrinterOptions,(self,) + _args, _kwargs) + return val + def GetPreviewCommand(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintData_GetPreviewCommand,(self,) + _args, _kwargs) + return val + def GetFilename(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintData_GetFilename,(self,) + _args, _kwargs) + return val + def GetFontMetricPath(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintData_GetFontMetricPath,(self,) + _args, _kwargs) + return val + def GetPrinterScaleX(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintData_GetPrinterScaleX,(self,) + _args, _kwargs) + return val + def GetPrinterScaleY(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintData_GetPrinterScaleY,(self,) + _args, _kwargs) + return val + def GetPrinterTranslateX(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintData_GetPrinterTranslateX,(self,) + _args, _kwargs) + return val + def GetPrinterTranslateY(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintData_GetPrinterTranslateY,(self,) + _args, _kwargs) + return val + def GetPrintMode(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintData_GetPrintMode,(self,) + _args, _kwargs) + return val + def SetPrinterCommand(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintData_SetPrinterCommand,(self,) + _args, _kwargs) + return val + def SetPrinterOptions(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintData_SetPrinterOptions,(self,) + _args, _kwargs) + return val + def SetPreviewCommand(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintData_SetPreviewCommand,(self,) + _args, _kwargs) + return val + def SetFilename(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintData_SetFilename,(self,) + _args, _kwargs) + return val + def SetFontMetricPath(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintData_SetFontMetricPath,(self,) + _args, _kwargs) + return val + def SetPrinterScaleX(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintData_SetPrinterScaleX,(self,) + _args, _kwargs) + return val + def SetPrinterScaleY(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintData_SetPrinterScaleY,(self,) + _args, _kwargs) + return val + def SetPrinterScaling(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintData_SetPrinterScaling,(self,) + _args, _kwargs) + return val + def SetPrinterTranslateX(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintData_SetPrinterTranslateX,(self,) + _args, _kwargs) + return val + def SetPrinterTranslateY(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintData_SetPrinterTranslateY,(self,) + _args, _kwargs) + return val + def SetPrinterTranslation(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintData_SetPrinterTranslation,(self,) + _args, _kwargs) + return val + def SetPrintMode(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintData_SetPrintMode,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) class wxPrintData(wxPrintDataPtr): @@ -110,7 +181,28 @@ def wxPrinterDC2(*_args,**_kwargs): return val -class wxPageSetupDialogDataPtr : +class wxPostScriptDCPtr(wxDCPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def GetPrintData(self, *_args, **_kwargs): + val = apply(printfwc.wxPostScriptDC_GetPrintData,(self,) + _args, _kwargs) + if val: val = wxPrintDataPtr(val) + return val + def SetPrintData(self, *_args, **_kwargs): + val = apply(printfwc.wxPostScriptDC_SetPrintData,(self,) + _args, _kwargs) + return val + def __repr__(self): + return "" % (self.this,) +class wxPostScriptDC(wxPostScriptDCPtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(printfwc.new_wxPostScriptDC,_args,_kwargs) + self.thisown = 1 + + + + +class wxPageSetupDialogDataPtr(wxObjectPtr): def __init__(self,this): self.this = this self.thisown = 0 @@ -180,6 +272,9 @@ class wxPageSetupDialogDataPtr : val = apply(printfwc.wxPageSetupDialogData_GetPrintData,(self,) + _args, _kwargs) if val: val = wxPrintDataPtr(val) ; val.thisown = 1 return val + def Ok(self, *_args, **_kwargs): + val = apply(printfwc.wxPageSetupDialogData_Ok,(self,) + _args, _kwargs) + return val def SetDefaultInfo(self, *_args, **_kwargs): val = apply(printfwc.wxPageSetupDialogData_SetDefaultInfo,(self,) + _args, _kwargs) return val @@ -239,7 +334,7 @@ class wxPageSetupDialog(wxPageSetupDialogPtr): -class wxPrintDialogDataPtr : +class wxPrintDialogDataPtr(wxObjectPtr): def __init__(self,this): self.this = this self.thisown = 0 @@ -286,6 +381,9 @@ class wxPrintDialogDataPtr : def GetToPage(self, *_args, **_kwargs): val = apply(printfwc.wxPrintDialogData_GetToPage,(self,) + _args, _kwargs) return val + def Ok(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintDialogData_Ok,(self,) + _args, _kwargs) + return val def SetCollate(self, *_args, **_kwargs): val = apply(printfwc.wxPrintDialogData_SetCollate,(self,) + _args, _kwargs) return val @@ -333,7 +431,6 @@ class wxPrintDialogPtr(wxDialogPtr): return val def GetPrintDC(self, *_args, **_kwargs): val = apply(printfwc.wxPrintDialog_GetPrintDC,(self,) + _args, _kwargs) - if val: val = wxDCPtr(val) ; val.thisown = 1 return val def ShowModal(self, *_args, **_kwargs): val = apply(printfwc.wxPrintDialog_ShowModal,(self,) + _args, _kwargs) @@ -349,19 +446,18 @@ class wxPrintDialog(wxPrintDialogPtr): -class wxPrintoutPtr : +class wxPrintoutPtr(wxObjectPtr): def __init__(self,this): self.this = this self.thisown = 0 - def _setSelf(self, *_args, **_kwargs): - val = apply(printfwc.wxPrintout__setSelf,(self,) + _args, _kwargs) + def _setCallbackInfo(self, *_args, **_kwargs): + val = apply(printfwc.wxPrintout__setCallbackInfo,(self,) + _args, _kwargs) return val def Destroy(self, *_args, **_kwargs): val = apply(printfwc.wxPrintout_Destroy,(self,) + _args, _kwargs) return val def GetDC(self, *_args, **_kwargs): val = apply(printfwc.wxPrintout_GetDC,(self,) + _args, _kwargs) - if val: val = wxDCPtr(val) return val def GetPageSizeMM(self, *_args, **_kwargs): val = apply(printfwc.wxPrintout_GetPageSizeMM,(self,) + _args, _kwargs) @@ -405,12 +501,12 @@ class wxPrintout(wxPrintoutPtr): def __init__(self,*_args,**_kwargs): self.this = apply(printfwc.new_wxPrintout,_args,_kwargs) self.thisown = 1 - self._setSelf(self, wxPrintout) + self._setCallbackInfo(self, wxPrintout) -class wxPrinterPtr : +class wxPrinterPtr(wxObjectPtr): def __init__(self,this): self.this = this self.thisown = 0 @@ -429,7 +525,6 @@ class wxPrinterPtr : return val def PrintDialog(self, *_args, **_kwargs): val = apply(printfwc.wxPrinter_PrintDialog,(self,) + _args, _kwargs) - if val: val = wxDCPtr(val) return val def ReportError(self, *_args, **_kwargs): val = apply(printfwc.wxPrinter_ReportError,(self,) + _args, _kwargs) @@ -447,20 +542,18 @@ class wxPrinter(wxPrinterPtr): -class wxPrintPreviewPtr : +class wxPrintPreviewPtr(wxObjectPtr): def __init__(self,this): self.this = this self.thisown = 0 def GetCanvas(self, *_args, **_kwargs): val = apply(printfwc.wxPrintPreview_GetCanvas,(self,) + _args, _kwargs) - if val: val = wxWindowPtr(val) return val def GetCurrentPage(self, *_args, **_kwargs): val = apply(printfwc.wxPrintPreview_GetCurrentPage,(self,) + _args, _kwargs) return val def GetFrame(self, *_args, **_kwargs): val = apply(printfwc.wxPrintPreview_GetFrame,(self,) + _args, _kwargs) - if val: val = wxFramePtr(val) return val def GetMaxPage(self, *_args, **_kwargs): val = apply(printfwc.wxPrintPreview_GetMaxPage,(self,) + _args, _kwargs) @@ -474,11 +567,9 @@ class wxPrintPreviewPtr : return val def GetPrintout(self, *_args, **_kwargs): val = apply(printfwc.wxPrintPreview_GetPrintout,(self,) + _args, _kwargs) - if val: val = wxPrintoutPtr(val) return val def GetPrintoutForPrinting(self, *_args, **_kwargs): val = apply(printfwc.wxPrintPreview_GetPrintoutForPrinting,(self,) + _args, _kwargs) - if val: val = wxPrintoutPtr(val) return val def GetZoom(self, *_args, **_kwargs): val = apply(printfwc.wxPrintPreview_GetZoom,(self,) + _args, _kwargs) @@ -527,7 +618,7 @@ class wxPreviewFrame(wxPreviewFramePtr): def __init__(self,*_args,**_kwargs): self.this = apply(printfwc.new_wxPreviewFrame,_args,_kwargs) self.thisown = 1 - #wx._StdFrameCallbacks(self) + self._setOORInfo(self) @@ -536,6 +627,10 @@ class wxPreviewFrame(wxPreviewFramePtr): #-------------- FUNCTION WRAPPERS ------------------ +wxPostScriptDC_SetResolution = printfwc.wxPostScriptDC_SetResolution + +wxPostScriptDC_GetResolution = printfwc.wxPostScriptDC_GetResolution + #-------------- VARIABLE WRAPPERS ------------------