X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/854e189f90dac9ba5e0239bca79aed64e8d6f46c..822e690b221486b63895b5f14a7fbee2bc966fe5:/contrib/src/xrc/xh_html.cpp?ds=sidebyside diff --git a/contrib/src/xrc/xh_html.cpp b/contrib/src/xrc/xh_html.cpp index 8fe80d2082..156370d27a 100644 --- a/contrib/src/xrc/xh_html.cpp +++ b/contrib/src/xrc/xh_html.cpp @@ -7,7 +7,7 @@ // Copyright: (c) 2000 Bob Mitchell and Verant Interactive // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// - + #ifdef __GNUG__ #pragma implementation "xh_html.h" #endif @@ -28,8 +28,8 @@ IMPLEMENT_DYNAMIC_CLASS(wxHtmlWindowXmlHandler, wxXmlResourceHandler) -wxHtmlWindowXmlHandler::wxHtmlWindowXmlHandler() -: wxXmlResourceHandler() +wxHtmlWindowXmlHandler::wxHtmlWindowXmlHandler() +: wxXmlResourceHandler() { XRC_ADD_STYLE(wxHW_SCROLLBAR_NEVER); XRC_ADD_STYLE(wxHW_SCROLLBAR_AUTO); @@ -56,7 +56,7 @@ wxObject *wxHtmlWindowXmlHandler::DoCreateResource() { wxString url = GetParamValue(wxT("url")); wxFileSystem& fsys = GetCurFileSystem(); - + wxFSFile *f = fsys.OpenFile(url); if (f) { @@ -66,14 +66,14 @@ wxObject *wxHtmlWindowXmlHandler::DoCreateResource() else control->LoadPage(url); } - + else if (HasParam(wxT("htmlcode"))) { control->SetPage(GetText(wxT("htmlcode"))); } SetupWindow(control); - + return control; }