add @DATE@, @TIME@ and @TITLE@ macros to HTML printing (extended/modified patch 1528679)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user