Add the ability to enable / disable and check for the editable property of a rendering engine. Implement for all three backends and extend the sample, document and unit test.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Steve Lamerton
2011-07-08 19:34:56 +00:00
parent 3ce14be7b9
commit c7cbe308f6
10 changed files with 86 additions and 8 deletions

View File

@@ -229,7 +229,12 @@ public:
/**
Returns whether the web control is currently busy (e.g. loading a page).
*/
virtual bool IsBusy() = 0;
virtual bool IsBusy() = 0;
/**
Returns whether the web control is currently editable
*/
virtual bool IsEditable() = 0;
/**
Load a web page from a URL
@@ -251,6 +256,13 @@ public:
@param flags A bit array that may optionally contain reload options.
*/
virtual void Reload(wxWebViewReloadFlags flags = wxWEB_VIEW_RELOAD_DEFAULT) = 0;
/**
Set the editable property of the web control. Enabling allows the user
to edit the page even if the @c contenteditable attribute is not set.
The exact capabilities vary with the backend being used.
*/
virtual void SetEditable(bool enable = true) = 0;
/**
Set the displayed page source to the contents of the given string.