X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/706e740f5025073df75acbb8ed115f4898696f70..1f5cf9cc23f7763e9ee7984b171bb4b6a3ce3ffb:/src/html/htmprint.cpp diff --git a/src/html/htmprint.cpp b/src/html/htmprint.cpp index 739b1e4e1c..0dd8817e52 100644 --- a/src/html/htmprint.cpp +++ b/src/html/htmprint.cpp @@ -440,9 +440,15 @@ wxString wxHtmlPrintout::TranslateHeader(const wxString& instr, int page) num.Printf(wxT("%i"), page); r.Replace(wxT("@PAGENUM@"), num); - num.Printf(wxT("%i"), m_PageBreaks.Count()-1); + 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; }