X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e0eeb9b3e7620893d174267dbd2caa6f57ebeecb..78bd7ed38ccdfdd5f2cf6cf77089046b9e3993b5:/src/generic/printps.cpp diff --git a/src/generic/printps.cpp b/src/generic/printps.cpp index 56f95f3067..3317b1df0a 100644 --- a/src/generic/printps.cpp +++ b/src/generic/printps.cpp @@ -30,6 +30,8 @@ #include "wx/defs.h" +#if wxUSE_PRINTING_ARCHITECTURE + #ifndef WX_PRECOMP #include "wx/utils.h" #include "wx/dc.h" @@ -177,8 +179,7 @@ bool wxPostScriptPrinter::Print(wxWindow *parent, wxPrintout *printout, bool pro _("Printing..."), totalPages, parent, - /* disable parent only */ true, - /* show abort button */ true); + wxPD_CAN_ABORT|wxPD_AUTO_HIDE|wxPD_APP_MODAL); printout->OnBeginPrinting(); @@ -217,10 +218,11 @@ bool wxPostScriptPrinter::Print(wxWindow *parent, wxPrintout *printout, bool pro } else { - sm_abortIt = true; - keepGoing = false; + sm_abortIt = TRUE; + keepGoing = FALSE; } } + wxYield(); } printout->OnEndDocument(); } @@ -347,3 +349,4 @@ void wxPostScriptPrintPreview::DetermineScaling() } } +#endif