X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b9048c56f0aa04b2adbb7813f9698abdda15184..17256d1ed028fadca9ba5ebe076f961353a15310:/wxPython/src/_printfw.i diff --git a/wxPython/src/_printfw.i b/wxPython/src/_printfw.i index 48708018bc..140a336d84 100644 --- a/wxPython/src/_printfw.i +++ b/wxPython/src/_printfw.i @@ -32,7 +32,8 @@ enum wxPrintMode wxPRINT_MODE_NONE = 0, wxPRINT_MODE_PREVIEW = 1, // Preview in external application wxPRINT_MODE_FILE = 2, // Print to file - wxPRINT_MODE_PRINTER = 3 // Send to printer + wxPRINT_MODE_PRINTER = 3, // Send to printer + wxPRINT_MODE_STREAM = 4 // Send postscript data into a stream }; @@ -92,6 +93,9 @@ public: void SetPrinterTranslation(long x, long y); void SetPrintMode(wxPrintMode printMode); + wxOutputStream* GetOutputStream(); + void SetOutputStream(wxOutputStream* outputstream); + %pythoncode { def __nonzero__(self): return self.Ok() } };