From 509b8f9b5f00aa8a4ed105a66d149d80b0425883 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 2 Apr 2003 01:46:56 +0000 Subject: [PATCH] Added missing method git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/printfw.i | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/wxPython/src/printfw.i b/wxPython/src/printfw.i index 05293bade1..d543e132a1 100644 --- a/wxPython/src/printfw.i +++ b/wxPython/src/printfw.i @@ -339,18 +339,28 @@ public: //---------------------------------------------------------------------- +enum wxPrinterError +{ + wxPRINTER_NO_ERROR = 0, + wxPRINTER_CANCELLED, + wxPRINTER_ERROR +}; + + class wxPrinter : public wxObject { public: wxPrinter(wxPrintDialogData* data = NULL); ~wxPrinter(); -// bool Abort(); void CreateAbortWindow(wxWindow* parent, wxPyPrintout* printout); wxPrintDialogData& GetPrintDialogData(); bool Print(wxWindow *parent, wxPyPrintout *printout, int prompt=TRUE); wxDC* PrintDialog(wxWindow *parent); void ReportError(wxWindow *parent, wxPyPrintout *printout, const wxString& message); bool Setup(wxWindow *parent); + bool GetAbort(); + + static wxPrinterError GetLastError(); }; //----------------------------------------------------------------------