/////////////////////////////////////////////////////////////////////////////
// Name: xh_html.cpp
-// Purpose: XML resource for wxHtmlWindow
+// Purpose: XRC resource for wxHtmlWindow
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
#if wxUSE_HTML
#include "wx/html/htmlwin.h"
+#include "wx/filesys.h"
wxHtmlWindowXmlHandler::wxHtmlWindowXmlHandler()
if( HasParam( wxT("url") ))
{
- control->LoadPage( GetParamValue( wxT("url" )));
+ wxString url = GetParamValue(wxT("url" ));
+ wxFileSystem& fsys = GetCurFileSystem();
+
+ wxFSFile *f = fsys.OpenFile(url);
+ if (f)
+ {
+ control->LoadPage(f->GetLocation());
+ delete f;
+ }
+ else
+ control->LoadPage(url);
}
+
else if( HasParam( wxT("htmlcode") ))
{
control->SetPage( GetText(wxT("htmlcode")) );