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
This commit is contained in:
@@ -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() }
|
||||
};
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user