projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't release the DC which we don't own in wxUSE_UXTHEME case
[wxWidgets.git]
/
src
/
html
/
htmprint.cpp
diff --git
a/src/html/htmprint.cpp
b/src/html/htmprint.cpp
index 8b957076f13a3a40eab225e1abfb4be964350982..80fa77356431fa679e6ac7b32d953c5303a6cdb9 100644
(file)
--- 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/dc.h"
#include "wx/settings.h"
#include "wx/msgdlg.h"
+ #include "wx/module.h"
#endif
#include "wx/print.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/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);
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;
}
return r;
}