X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/67df97839655a9388d4339a8872b71671889f4f9..f377a3b58c509ceba8c9335dbe45d100cca615ad:/src/generic/printps.cpp diff --git a/src/generic/printps.cpp b/src/generic/printps.cpp index 599715179f..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" @@ -168,7 +170,7 @@ bool wxPostScriptPrinter::Print(wxWindow *parent, wxPrintout *printout, bool pro wxBeginBusyCursor(); int - pagesPerCopy = maxPage-minPage+1, + pagesPerCopy = m_printDialogData.GetToPage()-m_printDialogData.GetFromPage()+1, totalPages = pagesPerCopy * m_printDialogData.GetNoCopies(), printedPages = 0; // Open the progress bar dialog @@ -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