X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3e729cbe15997180987992097e6d78c6b8de2b25..b6e5eaa59701315ca06996ff845872ca4122695f:/samples/html/test/test.cpp diff --git a/samples/html/test/test.cpp b/samples/html/test/test.cpp index faaf91d0f9..cd299a8bf3 100644 --- a/samples/html/test/test.cpp +++ b/samples/html/test/test.cpp @@ -21,10 +21,11 @@ #include #endif -#include -#include -#include -#include +#include "wx/image.h" +#include "wx/html/htmlwin.h" +#include "wx/html/htmlproc.h" +#include "wx/fs_inet.h" +#include "wx/filedlg.h" // ---------------------------------------------------------------------------- // private classes @@ -75,7 +76,6 @@ class BoldProcessor : public wxHtmlProcessor r.Replace(wxT(""), wxEmptyString); r.Replace(wxT(""), wxEmptyString); r.Replace(wxT(""), wxEmptyString); - printf("called\n"); return r; } }; @@ -130,6 +130,8 @@ class BoldProcessor : public wxHtmlProcessor // `Main program' equivalent: the program execution "starts" here bool MyApp::OnInit() { + wxLog::AddTraceMask(wxT("strconv")); + wxInitAllImageHandlers(); #if wxUSE_FS_INET && wxUSE_STREAMS && wxUSE_SOCKETS wxFileSystem::AddHandler(new wxInternetFSHandler); @@ -229,5 +231,4 @@ void MyFrame::OnProcessor(wxCommandEvent& WXUNUSED(event)) { m_Processor->Enable(!m_Processor->IsEnabled()); m_Html->LoadPage(m_Html->GetOpenedPage()); - printf("%i\n", m_Processor->IsEnabled()); }