]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/printps.cpp
CanRead() now restores the stream to its previous state (potential
[wxWidgets.git] / src / generic / printps.cpp
index 5cb8272a26cdaf93ecb255ae51abb6a2e08d5391..ec2b99b5d3b3a31c80b24c51542a042f02081d99 100644 (file)
@@ -45,6 +45,7 @@
 #include "wx/dcprint.h"
 #include "wx/printdlg.h"
 #include "wx/generic/prntdlgg.h"
+#include "wx/generic/progdlgg.h"
 #include "wx/paper.h"
 
 #include <stdlib.h>
@@ -178,8 +179,9 @@ bool wxPostScriptPrinter::Print(wxWindow *parent, wxPrintout *printout, bool pro
        printout->GetTitle(),
        _("Printing..."),
        totalPages,
-       parent );
-    
+       parent,
+       wxPD_CAN_ABORT|wxPD_AUTO_HIDE|wxPD_APP_MODAL);
+
     printout->OnBeginPrinting();
 
     bool keepGoing = TRUE;
@@ -217,10 +219,11 @@ bool wxPostScriptPrinter::Print(wxWindow *parent, wxPrintout *printout, bool pro
                }
                else
                {
-                  sm_abortIt = true;
-                  keepGoing = false;
+                  sm_abortIt = TRUE;
+                  keepGoing = FALSE;
                }
             }
+           wxYield();
         }
         printout->OnEndDocument();
     }