summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-11-17 18:28:57 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-11-17 18:29:22 +0100
commit7b69161302bd12bf383671749e67b7d04ac4f41e (patch)
tree621ff790a047acfcde18714e157410622e1825ee /sw
parentdc148335a6a438848325f24c49198fba81043279 (diff)
sw lok comments: implement clipboard copy
Change-Id: I0f45b1a6ab198a8403073eea05497e76f758250c
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/uno/unotxdoc.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index 2331a972cad4..1d1830a631e7 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -134,6 +134,8 @@
#include <srcview.hxx>
#include <edtwin.hxx>
#include <swdtflvr.hxx>
+#include <SidebarWin.hxx>
+#include <PostItMgr.hxx>
#include <svtools/langtab.hxx>
#include <svtools/miscopt.hxx>
@@ -3324,6 +3326,16 @@ OString SwXTextDocument::getTextSelection(const char* pMimeType, OString& rUsedM
}
}
+ if (SwPostItMgr* pPostItMgr = pDocShell->GetView()->GetPostItMgr())
+ {
+ if (sw::sidebarwindows::SwSidebarWin* pWin = pPostItMgr->GetActiveSidebarWin())
+ {
+ // Editing postit text.
+ EditView& rEditView = pWin->GetOutlinerView()->GetEditView();
+ xTransferable = rEditView.GetEditEngine()->CreateTransferable(rEditView.GetSelection());
+ }
+ }
+
if (!xTransferable.is())
xTransferable = new SwTransferable(*pWrtShell);