#include "wx/dc.h"
#include "wx/settings.h"
#include "wx/msgdlg.h"
+ #include "wx/module.h"
#endif
#include "wx/print.h"
#include "wx/html/htmprint.h"
#include "wx/wxhtml.h"
#include "wx/wfstream.h"
-#include "wx/module.h"
//--------------------------------------------------------------------------------
bool wxHtmlPrintout::HasPage(int pageNum)
{
- return (pageNum >= 1 && pageNum-1 <= (signed)m_PageBreaks.Count());
+ return pageNum > 0 && (unsigned)pageNum < m_PageBreaks.Count();
}
num.Printf(wxT("%lu"), (unsigned long)(m_PageBreaks.Count() - 1));
r.Replace(wxT("@PAGESCNT@"), num);
+ const wxDateTime now = wxDateTime::Now();
+ r.Replace(wxT("@DATE@"), now.FormatDate());
+ r.Replace(wxT("@TIME@"), now.FormatTime());
+
+ r.Replace(wxT("@TITLE@"), GetTitle());
+
return r;
}