X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9416aa89ca06d0fb20b1002e026d2c7ac7aa6a17..32b70aec1ff90877ae0ce2ce82967f698218fbdc:/wxPython/src/msw/printfw.py diff --git a/wxPython/src/msw/printfw.py b/wxPython/src/msw/printfw.py index bafd68b021..7a77c24f2b 100644 --- a/wxPython/src/msw/printfw.py +++ b/wxPython/src/msw/printfw.py @@ -7,17 +7,19 @@ 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(wxObjectPtr): def __init__(self,this): @@ -176,6 +178,32 @@ def wxPrinterDC2(*_args,**_kwargs): return val +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 + + + +def wxPostScriptDC2(*_args,**_kwargs): + val = wxPostScriptDCPtr(apply(printfwc.new_wxPostScriptDC2,_args,_kwargs)) + val.thisown = 1 + return val + + class wxPageSetupDialogDataPtr(wxObjectPtr): def __init__(self,this): self.this = this @@ -418,8 +446,8 @@ 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) @@ -469,7 +497,7 @@ 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) @@ -586,7 +614,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) @@ -595,6 +623,10 @@ class wxPreviewFrame(wxPreviewFramePtr): #-------------- FUNCTION WRAPPERS ------------------ +wxPostScriptDC_SetResolution = printfwc.wxPostScriptDC_SetResolution + +wxPostScriptDC_GetResolution = printfwc.wxPostScriptDC_GetResolution + #-------------- VARIABLE WRAPPERS ------------------