diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-10-28 09:44:37 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-10-28 09:45:11 +0100 |
commit | bfd79be417358822023691cf7b7b2946906100ca (patch) | |
tree | 71b1854ff333bab5c7286609ebb96746308c8bb8 /sc/source/ui/unoobj/docuno.cxx | |
parent | a827957f3f559738c221450e3e691361096ac9a4 (diff) |
vcl: getWindow() -> setClipboard() in ITiledRenderable
It's cleaner to let the apps do this themselves than exposing their
underlying vcl::Window.
Change-Id: Iff2442dd325fa65a0cf3ad4aa7f918542dab1e4c
Diffstat (limited to 'sc/source/ui/unoobj/docuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 8391905ba969..c6070f1dfe82 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -845,15 +845,15 @@ void ScModelObj::resetSelection() pDocShell->GetDocument().GetDrawLayer()->libreOfficeKitCallback(LOK_CALLBACK_TEXT_SELECTION, ""); } -vcl::Window* ScModelObj::getWindow() +void ScModelObj::setClipboard(const uno::Reference<datatransfer::clipboard::XClipboard>& xClipboard) { SolarMutexGuard aGuard; ScViewData* pViewData = ScDocShell::GetViewData(); if (!pViewData) - return 0; + return; - return pViewData->GetActiveWin(); + pViewData->GetActiveWin()->SetClipboard(xClipboard); } bool ScModelObj::isMimeTypeSupported() |