summaryrefslogtreecommitdiff
path: root/include/editeng
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-05-06 11:32:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-05-06 17:06:50 +0200
commit130486015f03087aa4c2c43709ce95fb494df44b (patch)
treefdfc094a8ebc20e4a2e511928c7b53e4bc733475 /include/editeng
parented7271d9d44fe1a0195ae669644f23c01b6960d8 (diff)
use Widget::get_clipboard
there's no different from GetSystemClipboard except potentially for the libreofficekit case where per-frame clipboards are possible Change-Id: I3173e39f81a03a7cbe114ebca6020d5ed36a659a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115179 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/editeng')
-rw-r--r--include/editeng/editview.hxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/editeng/editview.hxx b/include/editeng/editview.hxx
index cbc65bf93e1c..6ba2e01b285a 100644
--- a/include/editeng/editview.hxx
+++ b/include/editeng/editview.hxx
@@ -66,6 +66,9 @@ namespace sun {
namespace star {
namespace datatransfer {
class XTransferable;
+ namespace clipboard {
+ class XClipboard;
+ }
namespace dnd {
class XDropTarget;
}
@@ -128,6 +131,9 @@ public:
{
}
+ // Access to clipboard
+ virtual css::uno::Reference<css::datatransfer::clipboard::XClipboard> GetClipboard() const = 0;
+
// implemented if drag and drop support is wanted
virtual css::uno::Reference<css::datatransfer::dnd::XDropTarget> GetDropTarget()
{
@@ -273,7 +279,8 @@ public:
void InsertText( const EditTextObject& rTextObject );
void InsertText( css::uno::Reference< css::datatransfer::XTransferable > const & xDataObj, const OUString& rBaseURL, bool bUseSpecial );
- css::uno::Reference< css::datatransfer::XTransferable > GetTransferable() const;
+ css::uno::Reference<css::datatransfer::clipboard::XClipboard> GetClipboard() const;
+ css::uno::Reference<css::datatransfer::XTransferable> GetTransferable() const;
// An EditView, so that when TRUE the update will be free from flickering:
void SetEditEngineUpdateMode( bool bUpdate );