git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11507
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#if wxUSE_HTML
#include "wx/html/htmlwin.h"
#if wxUSE_HTML
#include "wx/html/htmlwin.h"
wxHtmlWindowXmlHandler::wxHtmlWindowXmlHandler()
wxHtmlWindowXmlHandler::wxHtmlWindowXmlHandler()
if( HasParam( wxT("url") ))
{
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")) );
else if( HasParam( wxT("htmlcode") ))
{
control->SetPage( GetText(wxT("htmlcode")) );
#if wxUSE_HTML
#include "wx/html/htmlwin.h"
#if wxUSE_HTML
#include "wx/html/htmlwin.h"
wxHtmlWindowXmlHandler::wxHtmlWindowXmlHandler()
wxHtmlWindowXmlHandler::wxHtmlWindowXmlHandler()
if( HasParam( wxT("url") ))
{
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")) );
else if( HasParam( wxT("htmlcode") ))
{
control->SetPage( GetText(wxT("htmlcode")) );