git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68571
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
//Selection
virtual void DeleteSelection();
virtual bool HasSelection();
- virtual void SelectAll() {};
+ virtual void SelectAll();
virtual wxString GetSelectedText();
virtual wxString GetSelectedSource() { return ""; }
virtual void ClearSelection();
RunScript("window.getSelection().removeAllRanges();");
}
+void wxWebViewWebKit::SelectAll()
+{
+ RunScript("window.getSelection().selectAllChildren(document.body);");
+}
+
wxString wxWebViewWebKit::GetPageText()
{
id result = [[m_webView windowScriptObject]