#include "wx/defs.h"
-#if wxUSE_HTML
+#if wxUSE_HTML && wxUSE_STREAMS
#ifdef __BORDLANDC__
#pragma hdrstop
if (content.Left(19) == _T("text/html; charset="))
{
wxFontEncoding enc =
- wxTheFontMapper -> CharsetToEncoding(content.Mid(19));
+ wxTheFontMapper->CharsetToEncoding(content.Mid(19));
if (enc == wxFONTENCODING_SYSTEM) return FALSE;
- if (enc == m_WParser -> GetInputEncoding()) return FALSE;
+ if (enc == m_WParser->GetInputEncoding()) return FALSE;
- m_WParser -> SetInputEncoding(enc);
- m_WParser -> GetContainer() -> InsertCell(
- new wxHtmlFontCell(m_WParser -> CreateCurrentFont()));
+ m_WParser->SetInputEncoding(enc);
+ m_WParser->GetContainer()->InsertCell(
+ new wxHtmlFontCell(m_WParser->CreateCurrentFont()));
}
}
return FALSE;