From: Robin Dunn Date: Thu, 12 Feb 2004 01:34:00 +0000 (+0000) Subject: PS can output to ta stream (but still need to make output streams more X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4cc5453b83932436c30ce3c7d650b0fb8dcda255?ds=inline PS can output to ta stream (but still need to make output streams more usable from wxPython...) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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() } }; diff --git a/wxPython/src/_windows_rename.i b/wxPython/src/_windows_rename.i index e72f8c2326..c20e838dd7 100644 --- a/wxPython/src/_windows_rename.i +++ b/wxPython/src/_windows_rename.i @@ -108,6 +108,7 @@ %rename(PRINT_MODE_PREVIEW) wxPRINT_MODE_PREVIEW; %rename(PRINT_MODE_FILE) wxPRINT_MODE_FILE; %rename(PRINT_MODE_PRINTER) wxPRINT_MODE_PRINTER; +%rename(PRINT_MODE_STREAM) wxPRINT_MODE_STREAM; %rename(PrintData) wxPrintData; %rename(PageSetupDialogData) wxPageSetupDialogData; %rename(PageSetupDialog) wxPageSetupDialog;