Implement clipboard api in gtk.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -489,6 +489,36 @@ void wxWebViewWebKit::LoadHistoryItem(wxSharedPtr<wxWebHistoryItem> item)
|
||||
}
|
||||
}
|
||||
|
||||
bool wxWebViewWebKit::CanCut()
|
||||
{
|
||||
return webkit_web_view_can_cut_clipboard(WEBKIT_WEB_VIEW(web_view));
|
||||
}
|
||||
|
||||
bool wxWebViewWebKit::CanCopy()
|
||||
{
|
||||
return webkit_web_view_can_copy_clipboard(WEBKIT_WEB_VIEW(web_view));
|
||||
}
|
||||
|
||||
bool wxWebViewWebKit::CanPaste()
|
||||
{
|
||||
return webkit_web_view_can_paste_clipboard(WEBKIT_WEB_VIEW(web_view));
|
||||
}
|
||||
|
||||
void wxWebViewWebKit::Cut()
|
||||
{
|
||||
webkit_web_view_cut_clipboard(WEBKIT_WEB_VIEW(web_view));
|
||||
}
|
||||
|
||||
void wxWebViewWebKit::Copy()
|
||||
{
|
||||
webkit_web_view_copy_clipboard(WEBKIT_WEB_VIEW(web_view));
|
||||
}
|
||||
|
||||
void wxWebViewWebKit::Paste()
|
||||
{
|
||||
webkit_web_view_paste_clipboard(WEBKIT_WEB_VIEW(web_view));
|
||||
}
|
||||
|
||||
wxString wxWebViewWebKit::GetCurrentURL()
|
||||
{
|
||||
// FIXME: check which encoding the web kit control uses instead of
|
||||
|
Reference in New Issue
Block a user