diff options
author | Tommi Komulainen <tko@litl.com> | 2009-08-25 16:04:59 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marcopg@litl.com> | 2010-07-27 22:04:22 (GMT) |
commit | 84cc52bd4fd197ec4aad845d9b09bcd5b74453d5 (patch) | |
tree | 5ac772b302a3c5bcf38e4212d43e8bb7ee39f71e /browser-plugin/plugin.h | |
parent | aded6eb5272ccb4f9b90ee529bdb014ffaa59031 (diff) |
browser-plugin: add clipboard copy support
Only supporting copy, evince doesn't support editing (at least the API
is lacking cut and paste)
Using property access workaround.
Example:
if (plugin.canCopy) {
plugin.canCopy = 42; (workaround) copy selection to clipboard
}
Diffstat (limited to 'browser-plugin/plugin.h')
-rw-r--r-- | browser-plugin/plugin.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/browser-plugin/plugin.h b/browser-plugin/plugin.h index 7ea940e..7da0aa3 100644 --- a/browser-plugin/plugin.h +++ b/browser-plugin/plugin.h @@ -39,6 +39,7 @@ class Plugin { void SetZoom (double); void FindNext (const char *text); void FindPrevious (const char *text); + void CopyClipboard (); void ShowLoadingError (); NPObject *GetScriptableNPObject (); @@ -51,6 +52,9 @@ class Plugin { static void SizingModeCallback (EvView *view, GParamSpec *pspec, gpointer data); + static void HasSelectionCallback (EvView *view, + GParamSpec *pspec, + gpointer data); static void ExternalLinkCallback (EvView *view, EvLinkAction *action, gpointer data); @@ -66,6 +70,7 @@ class Plugin { public: char *mTitle; + bool mHasSelection; }; void* NPN_MemDup (const void *aMem, uint32 aLen); |