summaryrefslogtreecommitdiff
path: root/sc/source/ui/app/scmod.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/app/scmod.cxx')
-rw-r--r--sc/source/ui/app/scmod.cxx28
1 files changed, 0 insertions, 28 deletions
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index c0f8a33b8367..687ced15ef33 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -659,34 +659,6 @@ void ScModule::SetDragJump(
m_pDragData->aJumpText = rText;
}
-ScDocument* ScModule::GetClipDoc()
-{
- // called from document
- SfxViewFrame* pViewFrame = nullptr;
- ScTabViewShell* pViewShell = nullptr;
- css::uno::Reference<css::datatransfer::XTransferable2> xTransferable;
-
- if ((pViewShell = dynamic_cast<ScTabViewShell*>(SfxViewShell::Current())))
- xTransferable.set(pViewShell->GetClipData());
- else if ((pViewShell = dynamic_cast<ScTabViewShell*>(SfxViewShell::GetFirst())))
- xTransferable.set(pViewShell->GetClipData());
- else if ((pViewFrame = SfxViewFrame::GetFirst()))
- {
- css::uno::Reference<css::datatransfer::clipboard::XClipboard> xClipboard =
- pViewFrame->GetWindow().GetClipboard();
- xTransferable.set(xClipboard.is() ? xClipboard->getContents() : nullptr, css::uno::UNO_QUERY);
- }
-
- const ScTransferObj* pObj = ScTransferObj::GetOwnClipboard(xTransferable);
- if (pObj)
- {
- ScDocument* pDoc = pObj->GetDocument();
- assert((!pDoc || pDoc->IsClipboard()) && "Document is not clipboard, how can that be?");
- return pDoc;
- }
-
- return nullptr;
-}
void ScModule::SetSelectionTransfer( ScSelectionTransferObj* pNew )
{