Add support for retrieving the currently selected text. Implement on all backends, document and unit test.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -142,6 +142,7 @@ public:
|
||||
virtual void DeleteSelection();
|
||||
virtual bool HasSelection();
|
||||
virtual void SelectAll();
|
||||
virtual wxString GetSelectedText();
|
||||
|
||||
/** FIXME: hack to work around signals being received too early */
|
||||
bool m_ready;
|
||||
|
@@ -101,6 +101,7 @@ public:
|
||||
virtual void SelectAll();
|
||||
virtual bool HasSelection();
|
||||
virtual void DeleteSelection();
|
||||
virtual wxString GetSelectedText();
|
||||
|
||||
|
||||
// ---- IE-specific methods
|
||||
|
@@ -106,10 +106,9 @@ public:
|
||||
virtual void DeleteSelection();
|
||||
virtual bool HasSelection() { return false };
|
||||
virtual void SelectAll() {};
|
||||
virtual wxString GetSelectedText();
|
||||
|
||||
// ---- methods not from the parent (common) interface
|
||||
wxString GetSelectedText();
|
||||
|
||||
wxString RunScript(const wxString& javascript);
|
||||
|
||||
bool CanGetPageSource();
|
||||
|
@@ -287,11 +287,9 @@ public:
|
||||
virtual void SelectAll() = 0;
|
||||
virtual bool HasSelection() = 0;
|
||||
virtual void DeleteSelection() = 0;
|
||||
virtual wxString GetSelectedText() = 0;
|
||||
|
||||
// TODO:
|
||||
// wxString GetSelection(); // maybe?
|
||||
// void SetSelection(...); // maybe?
|
||||
|
||||
// void EnableJavascript(bool enabled); // maybe?
|
||||
// wxString RunScript(const wxString& javascript); // maybe?
|
||||
|
||||
|
Reference in New Issue
Block a user