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:
@@ -134,6 +134,10 @@ public:
|
||||
virtual void Undo();
|
||||
virtual void Redo();
|
||||
|
||||
//Editing functions
|
||||
virtual void SetEditable(bool enable = true);
|
||||
virtual bool IsEditable();
|
||||
|
||||
/** FIXME: hack to work around signals being received too early */
|
||||
bool m_ready;
|
||||
|
||||
|
@@ -93,6 +93,10 @@ public:
|
||||
virtual void Undo();
|
||||
virtual void Redo();
|
||||
|
||||
//Editing functions
|
||||
virtual void SetEditable(bool enable = true);
|
||||
virtual bool IsEditable();
|
||||
|
||||
// ---- IE-specific methods
|
||||
|
||||
// FIXME: I seem to be able to access remote webpages even in offline mode...
|
||||
|
@@ -97,6 +97,10 @@ public:
|
||||
virtual void Cut();
|
||||
virtual void Copy();
|
||||
virtual void Paste();
|
||||
|
||||
//Editing functions
|
||||
void SetEditable(bool enable = true);
|
||||
bool IsEditable();
|
||||
|
||||
// ---- methods not from the parent (common) interface
|
||||
wxString GetSelectedText();
|
||||
@@ -108,9 +112,6 @@ public:
|
||||
void SetScrollPos(int pos);
|
||||
int GetScrollPos();
|
||||
|
||||
void MakeEditable(bool enable = true);
|
||||
bool IsEditable();
|
||||
|
||||
wxString GetSelection();
|
||||
|
||||
bool CanIncreaseTextSize();
|
||||
|
@@ -281,13 +281,13 @@ public:
|
||||
SetPage(stream.GetString(), baseUrl);
|
||||
}
|
||||
|
||||
virtual void SetEditable(bool enable = true) = 0;
|
||||
virtual bool IsEditable() = 0;
|
||||
|
||||
// TODO:
|
||||
// wxString GetSelection(); // maybe?
|
||||
// void SetSelection(...); // maybe?
|
||||
|
||||
// void MakeEditable(bool enable = true); // maybe?
|
||||
// bool IsEditable(); // maybe?
|
||||
|
||||
// void EnableJavascript(bool enabled); // maybe?
|
||||
// wxString RunScript(const wxString& javascript); // maybe?
|
||||
|
||||
|
Reference in New Issue
Block a user