virtual bool HasSelection();
virtual void SelectAll();
virtual wxString GetSelectedText();
- virtual wxString GetSelectedHTML();
+ virtual wxString GetSelectedSource();
/** FIXME: hack to work around signals being received too early */
bool m_ready;
virtual bool HasSelection();
virtual void DeleteSelection();
virtual wxString GetSelectedText();
- virtual wxString GetSelectedHTML();
+ virtual wxString GetSelectedSource();
// ---- IE-specific methods
virtual bool HasSelection() { return false };
virtual void SelectAll() {};
virtual wxString GetSelectedText();
- virtual wxString GetSelectedHTML() { return ""; }
+ virtual wxString GetSelectedSource() { return ""; }
// ---- methods not from the parent (common) interface
wxString RunScript(const wxString& javascript);
virtual bool HasSelection() = 0;
virtual void DeleteSelection() = 0;
virtual wxString GetSelectedText() = 0;
- virtual wxString GetSelectedHTML() = 0;
+ virtual wxString GetSelectedSource() = 0;
// TODO:
// void EnableJavascript(bool enabled); // maybe?
virtual void DeleteSelection() = 0;
/**
- Returns the currently selected HTML, if any.
+ Returns the currently selected source, if any.
*/
- virtual wxString GetSelectedHTML() = 0;
+ virtual wxString GetSelectedSource() = 0;
/**
Returns the currently selected text, if any.
wxConvUTF8);
}
-wxString wxWebViewWebKit::GetSelectedHTML()
+wxString wxWebViewWebKit::GetSelectedSource()
{
WebKitDOMDocument* doc;
WebKitDOMDOMWindow* win;
return selected;
}
-wxString wxWebViewIE::GetSelectedHTML()
+wxString wxWebViewIE::GetSelectedSource()
{
IHTMLDocument2* document = GetDocument();
IHTMLSelectionObject* selection;