summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
508bd16)
Instead, have two public non-virtual SetPage() methods forwarding to a private
DoSetPage(), as usual.
This avoids the need for "using wxWebView::SetPage" which is needed to avoid
warnings about hiding the other base class virtual when implementing one of
them and which was forgotten in wxMSW version resulting in warnings when using
g++ to compile it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72200
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual wxString GetCurrentTitle() const;
virtual wxString GetPageSource() const;
virtual wxString GetPageText() const;
virtual wxString GetCurrentTitle() const;
virtual wxString GetPageSource() const;
virtual wxString GetPageText() const;
- //We do not want to hide the other overloads
- using wxWebView::SetPage;
- virtual void SetPage(const wxString& html, const wxString& baseUrl);
virtual void Print();
virtual bool IsBusy() const;
virtual void Print();
virtual bool IsBusy() const;
+ virtual void DoSetPage(const wxString& html, const wxString& baseUrl);
virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
- virtual void SetPage(const wxString& html, const wxString& baseUrl);
-
virtual wxWebViewZoom GetZoom() const;
virtual void SetZoom(wxWebViewZoom zoom);
virtual wxWebViewZoom GetZoom() const;
virtual void SetZoom(wxWebViewZoom zoom);
+protected:
+ virtual void DoSetPage(const wxString& html, const wxString& baseUrl);
+
private:
wxIEContainer* m_container;
wxAutomationObject m_ie;
private:
wxIEContainer* m_container;
wxAutomationObject m_ie;
virtual wxString GetPageSource() const;
virtual wxString GetPageText() const;
virtual wxString GetPageSource() const;
virtual wxString GetPageText() const;
- //We do not want to hide the other overloads
- using wxWebView::SetPage;
- virtual void SetPage(const wxString& html, const wxString& baseUrl);
-
virtual void Print();
virtual void LoadURL(const wxString& url);
virtual void Print();
virtual void LoadURL(const wxString& url);
+ virtual void DoSetPage(const wxString& html, const wxString& baseUrl);
+
DECLARE_EVENT_TABLE()
void MacVisibilityChanged();
DECLARE_EVENT_TABLE()
void MacVisibilityChanged();
virtual void Reload(wxWebViewReloadFlags flags = wxWEB_VIEW_RELOAD_DEFAULT) = 0;
virtual void RunScript(const wxString& javascript) = 0;
virtual void SetEditable(bool enable = true) = 0;
virtual void Reload(wxWebViewReloadFlags flags = wxWEB_VIEW_RELOAD_DEFAULT) = 0;
virtual void RunScript(const wxString& javascript) = 0;
virtual void SetEditable(bool enable = true) = 0;
- virtual void SetPage(const wxString& html, const wxString& baseUrl) = 0;
- virtual void SetPage(wxInputStream& html, wxString baseUrl)
+ void SetPage(const wxString& html, const wxString& baseUrl)
+ {
+ DoSetPage(html, baseUrl);
+ }
+ void SetPage(wxInputStream& html, wxString baseUrl)
{
wxStringOutputStream stream;
stream.Write(html);
{
wxStringOutputStream stream;
stream.Write(html);
- SetPage(stream.GetString(), baseUrl);
+ DoSetPage(stream.GetString(), baseUrl);
}
virtual void Stop() = 0;
}
virtual void Stop() = 0;
virtual void Undo() = 0;
virtual void Redo() = 0;
virtual void Undo() = 0;
virtual void Redo() = 0;
+protected:
+ virtual void DoSetPage(const wxString& html, const wxString& baseUrl) = 0;
+
wxDECLARE_ABSTRACT_CLASS(wxWebView);
};
wxDECLARE_ABSTRACT_CLASS(wxWebView);
};
-void wxWebViewWebKit::SetPage(const wxString& html, const wxString& baseUri)
+void wxWebViewWebKit::DoSetPage(const wxString& html, const wxString& baseUri)
{
webkit_web_view_load_string (m_web_view,
html.mb_str(wxConvUTF8),
{
webkit_web_view_load_string (m_web_view,
html.mb_str(wxConvUTF8),
m_ie.CallMethod("Navigate", wxConvertStringToOle(url));
}
m_ie.CallMethod("Navigate", wxConvertStringToOle(url));
}
-void wxWebViewIE::SetPage(const wxString& html, const wxString& baseUrl)
+void wxWebViewIE::DoSetPage(const wxString& html, const wxString& baseUrl)
{
BSTR bstr = SysAllocString(OLESTR(""));
SAFEARRAY *psaStrings = SafeArrayCreateVector(VT_VARIANT, 0, 1);
{
BSTR bstr = SysAllocString(OLESTR(""));
SAFEARRAY *psaStrings = SafeArrayCreateVector(VT_VARIANT, 0, 1);
-void wxWebViewWebKit::SetPage(const wxString& src, const wxString& baseUrl)
+void wxWebViewWebKit::DoSetPage(const wxString& src, const wxString& baseUrl)
{
if ( !m_webView )
return;
{
if ( !m_webView )
return;