Add ClearSelection for msw ie and gtk webkit, with a stub for osx webkit. Document and add to unit tests.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Steve Lamerton
2011-07-15 09:36:08 +00:00
parent 0609769d3b
commit 41933aa5a0
8 changed files with 39 additions and 0 deletions

View File

@@ -655,6 +655,20 @@ wxString wxWebViewIE::GetSelectedSource()
return selected;
}
void wxWebViewIE::ClearSelection()
{
IHTMLDocument2* document = GetDocument();
IHTMLSelectionObject* selection;
wxString selected;
HRESULT hr = document->get_selection(&selection);
if(SUCCEEDED(hr))
{
selection->empty();
selection->Release();
}
document->Release();
}
wxString wxWebViewIE::GetPageText()
{
IHTMLDocument2* document = GetDocument();