+ int
+ pagesPerCopy = m_printDialogData.GetToPage()-m_printDialogData.GetFromPage()+1,
+ totalPages = pagesPerCopy * m_printDialogData.GetNoCopies(),
+ printedPages = 0;
+ // Open the progress bar dialog
+ wxProgressDialog *progressDialog = new wxProgressDialog (
+ printout->GetTitle(),
+ _("Printing..."),
+ totalPages,
+ parent,
+ wxPD_CAN_ABORT|wxPD_AUTO_HIDE|wxPD_APP_MODAL);
+