Implement undo and redo for the ie and gtk webkit backends. Extend the sample to show their use.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Steve Lamerton
2011-07-02 15:07:46 +00:00
parent ae26e17b93
commit 97e49559fb
6 changed files with 81 additions and 0 deletions

View File

@@ -539,6 +539,25 @@ void wxWebViewIE::Paste()
ExecCommand("Paste");
}
bool wxWebViewIE::CanUndo()
{
return CanExecCommand("Undo");
}
bool wxWebViewIE::CanRedo()
{
return CanExecCommand("Redo");
}
void wxWebViewIE::Undo()
{
ExecCommand("Undo");
}
void wxWebViewIE::Redo()
{
ExecCommand("Redo");
}
bool wxWebViewIE::CanExecCommand(wxString command)
{
wxVariant documentVariant = m_ie.GetProperty("Document");