<meta> tag handler no longer needed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2002-11-09 00:23:46 +00:00
parent 36435f9c0f
commit 867be82e3a
3 changed files with 0 additions and 72 deletions

View File

@@ -743,7 +743,6 @@ m_list.cpp HTML
m_dflist.cpp HTML m_dflist.cpp HTML
m_pre.cpp HTML m_pre.cpp HTML
m_tables.cpp HTML m_tables.cpp HTML
m_meta.cpp HTML
m_style.cpp HTML m_style.cpp HTML
htmprint.cpp HTML htmprint.cpp HTML

View File

@@ -67,7 +67,6 @@ See mod_*.cpp and htmlwin.cpp for example :-)
FORCE_LINK(m_hline) \ FORCE_LINK(m_hline) \
FORCE_LINK(m_links) \ FORCE_LINK(m_links) \
FORCE_LINK(m_tables) \ FORCE_LINK(m_tables) \
FORCE_LINK(m_meta) \
FORCE_LINK(m_style) FORCE_LINK(m_style)

View File

@@ -1,70 +0,0 @@
/////////////////////////////////////////////////////////////////////////////
// Name: m_meta.cpp
// Purpose: wxHtml module for parsing <meta> tag
// Author: Vaclav Slavik
// RCS-ID: $Id$
// Copyright: (c) 2000 Vaclav Slavik
// Licence: wxWindows Licence
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
#pragma implementation
#endif
#include "wx/wxprec.h"
#include "wx/defs.h"
#if wxUSE_HTML && wxUSE_STREAMS
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifndef WXPRECOMP
#endif
#include "wx/fontmap.h"
#include "wx/html/forcelnk.h"
#include "wx/html/m_templ.h"
#include "wx/html/htmlcell.h"
FORCE_LINK_ME(m_meta)
TAG_HANDLER_BEGIN(META, wxT("META") )
TAG_HANDLER_PROC(tag)
{
if (tag.HasParam(_T("HTTP-EQUIV")) &&
tag.GetParam(_T("HTTP-EQUIV")) == _T("Content-Type") &&
tag.HasParam(_T("CONTENT")))
{
wxString content = tag.GetParam(_T("CONTENT"));
if (content.Left(19) == _T("text/html; charset="))
{
wxFontEncoding enc =
wxFontMapper::Get()->CharsetToEncoding(content.Mid(19));
if (enc == wxFONTENCODING_SYSTEM) return FALSE;
if (enc == m_WParser->GetInputEncoding()) return FALSE;
m_WParser->SetInputEncoding(enc);
m_WParser->GetContainer()->InsertCell(
new wxHtmlFontCell(m_WParser->CreateCurrentFont()));
}
}
return FALSE;
}
TAG_HANDLER_END(META)
TAGS_MODULE_BEGIN(MetaTag)
TAGS_MODULE_ADD(META)
TAGS_MODULE_END(MetaTag)
#endif