X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fc4c80b8c0381873dbb2236c34cfa69e462cbe69..4322f94f29dd668540ba31a26d08402b7e849b23:/src/html/htmprint.cpp?ds=sidebyside diff --git a/src/html/htmprint.cpp b/src/html/htmprint.cpp index 8b957076f1..80fa773564 100644 --- a/src/html/htmprint.cpp +++ b/src/html/htmprint.cpp @@ -23,6 +23,7 @@ #include "wx/dc.h" #include "wx/settings.h" #include "wx/msgdlg.h" + #include "wx/module.h" #endif #include "wx/print.h" @@ -30,7 +31,6 @@ #include "wx/html/htmprint.h" #include "wx/wxhtml.h" #include "wx/wfstream.h" -#include "wx/module.h" //-------------------------------------------------------------------------------- @@ -443,6 +443,12 @@ wxString wxHtmlPrintout::TranslateHeader(const wxString& instr, int page) 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; }