Add GetPageText to MSW IE and to GTK WebKit. Add stub for OSX and document.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Steve Lamerton
2011-07-13 17:25:05 +00:00
parent 97ba4d81a8
commit 241b769f96
7 changed files with 35 additions and 0 deletions

View File

@@ -768,6 +768,17 @@ wxString wxWebViewWebKit::GetSelectedSource()
wxConvUTF8);
}
wxString wxWebViewWebKit::GetPageText()
{
WebKitDOMDocument* doc;
WebKitDOMHTMLElement* body;
doc = webkit_web_view_get_dom_document(WEBKIT_WEB_VIEW(web_view));
body = webkit_dom_document_get_body(WEBKIT_DOM_DOCUMENT(doc));
return wxString(webkit_dom_html_element_get_inner_text(WEBKIT_DOM_HTML_ELEMENT(body)),
wxConvUTF8);
}
// static
wxVisualAttributes
wxWebViewWebKit::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))