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 /desktop/source | |
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 'desktop/source')
-rw-r--r-- | desktop/source/lib/init.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 85ed95d17dc6..8f12ee2b8d00 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -1009,14 +1009,7 @@ static bool doc_paste(LibreOfficeKitDocument* pThis, const char* pMimeType, cons uno::Reference<datatransfer::XTransferable> xTransferable(new LOKTransferable(pMimeType, pData, nSize)); uno::Reference<datatransfer::clipboard::XClipboard> xClipboard(new LOKClipboard()); xClipboard->setContents(xTransferable, uno::Reference<datatransfer::clipboard::XClipboardOwner>()); - vcl::Window* pWindow = pDoc->getWindow(); - if (!pWindow) - { - gImpl->maLastExceptionMsg = "Document did not provide a window"; - return false; - } - - pWindow->SetClipboard(xClipboard); + pDoc->setClipboard(xClipboard); if (!pDoc->isMimeTypeSupported()) { if (gImpl) |