X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4f417130931f75a9ac6efae18d55b1a3b59423f0..e1146627e2bf16a48554e1c224f427dbd6247c5d:/include/wx/html/htmlwin.h?ds=sidebyside diff --git a/include/wx/html/htmlwin.h b/include/wx/html/htmlwin.h index c58d244feb..22466f4856 100644 --- a/include/wx/html/htmlwin.h +++ b/include/wx/html/htmlwin.h @@ -150,6 +150,11 @@ public: // Called when user clicked on hypertext link. Default behavior is to // call LoadPage(loc) virtual void OnLinkClicked(const wxHtmlLinkInfo& link); + + // Called when wxHtmlWindow wants to fetch data from an URL (e.g. when loading + // a page or loading an image). The data are downloaded if and only if + // OnOpeningURL returns TRUE. + virtual bool OnOpeningURL(const wxString& url) const { return TRUE; } // Returns a pointer to the parser. wxHtmlWinParser *GetParser() const { return m_Parser; }