Add new clipboard api and support for it in the ie backend. Also extend the sample to demonstrate the new functions.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Steve Lamerton
2011-07-02 11:45:19 +00:00
parent 19fc1a2f0d
commit 4681a3ea0d
4 changed files with 114 additions and 0 deletions

View File

@@ -77,6 +77,14 @@ public:
virtual wxWebViewZoom GetZoom();
virtual void SetZoom(wxWebViewZoom zoom);
//Clipboard functions
virtual bool CanCut();
virtual bool CanCopy();
virtual bool CanPaste();
virtual void Cut();
virtual void Copy();
virtual void Paste();
// ---- IE-specific methods
// FIXME: I seem to be able to access remote webpages even in offline mode...
@@ -124,6 +132,10 @@ private:
bool m_historyLoadingFromList;
bool m_historyEnabled;
//Generic helper functions for IHtmlDocument commands
bool CanExecCommand(wxString command);
void ExecCommand(wxString command);
};
#endif // wxUSE_WEBVIEW_IE