[Libreoffice-commits] core.git: sw/source
Miklos Vajna
vmiklos at collabora.co.uk
Tue Nov 17 09:29:54 PST 2015
sw/source/uibase/uno/unotxdoc.cxx | 12 ++++++++++++
1 file changed, 12 insertions(+)
New commits:
commit 7b69161302bd12bf383671749e67b7d04ac4f41e
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Tue Nov 17 18:28:57 2015 +0100
sw lok comments: implement clipboard copy
Change-Id: I0f45b1a6ab198a8403073eea05497e76f758250c
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index 2331a97..1d1830a 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);
More information about the Libreoffice-commits
mailing list