Kaydet (Commit) f04f2f57 authored tarafından Miklos Vajna's avatar Miklos Vajna

sw lok comments: implement clipboard copy

Change-Id: I0f45b1a6ab198a8403073eea05497e76f758250c
(cherry picked from commit 4890ae51288c2c571e85a1536cb6c8f44681bd25)
üst 68808270
...@@ -134,6 +134,8 @@ ...@@ -134,6 +134,8 @@
#include <srcview.hxx> #include <srcview.hxx>
#include <edtwin.hxx> #include <edtwin.hxx>
#include <swdtflvr.hxx> #include <swdtflvr.hxx>
#include <SidebarWin.hxx>
#include <PostItMgr.hxx>
#include <svtools/langtab.hxx> #include <svtools/langtab.hxx>
#include <svtools/miscopt.hxx> #include <svtools/miscopt.hxx>
...@@ -3373,6 +3375,16 @@ OString SwXTextDocument::getTextSelection(const char* pMimeType, OString& rUsedM ...@@ -3373,6 +3375,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()) if (!xTransferable.is())
xTransferable = new SwTransferable(*pWrtShell); xTransferable = new SwTransferable(*pWrtShell);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment