Implement GetSelectedHTML for the ie and gtk webkit backends and document.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Steve Lamerton
2011-07-11 18:26:07 +00:00
parent 3dffc2aea2
commit 0fe8a1b6ca
7 changed files with 63 additions and 0 deletions

View File

@@ -145,6 +145,7 @@ public:
virtual bool HasSelection();
virtual void SelectAll();
virtual wxString GetSelectedText();
virtual wxString GetSelectedHTML();
/** FIXME: hack to work around signals being received too early */
bool m_ready;

View File

@@ -102,6 +102,7 @@ public:
virtual bool HasSelection();
virtual void DeleteSelection();
virtual wxString GetSelectedText();
virtual wxString GetSelectedHTML();
// ---- IE-specific methods

View File

@@ -107,6 +107,7 @@ public:
virtual bool HasSelection() { return false };
virtual void SelectAll() {};
virtual wxString GetSelectedText();
virtual wxString GetSelectedHTML() { return ""; }
// ---- methods not from the parent (common) interface
wxString RunScript(const wxString& javascript);

View File

@@ -288,6 +288,7 @@ public:
virtual bool HasSelection() = 0;
virtual void DeleteSelection() = 0;
virtual wxString GetSelectedText() = 0;
virtual wxString GetSelectedHTML() = 0;
// TODO:
// void EnableJavascript(bool enabled); // maybe?