#include "wx/defs.h"
+#if wxUSE_PRINTING_ARCHITECTURE
+
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/dc.h"
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
_("Printing..."),
totalPages,
parent,
- /* disable parent only */ true,
- /* show abort button */ true);
+ wxPD_CAN_ABORT|wxPD_AUTO_HIDE|wxPD_APP_MODAL);
printout->OnBeginPrinting();
}
else
{
- sm_abortIt = true;
- keepGoing = false;
+ sm_abortIt = TRUE;
+ keepGoing = FALSE;
}
}
+ wxYield();
}
printout->OnEndDocument();
}
}
}
+#endif