diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-09-10 13:09:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-09-10 17:17:51 +0200 |
commit | 5cd1f77618ec3d74c8c9c0743b9daef7108bc80a (patch) | |
tree | 791123b0b0fffab4b0259a77afc625f5726d3116 /vcl/source/edit | |
parent | b922fb69982f41962740f2abebaccf13e8c357a4 (diff) |
use more concrete UNO type in vcl
Change-Id: I157109d11b349e1304a3279471d4ab90b65b5841
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173138
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/edit')
-rw-r--r-- | vcl/source/edit/textview.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/vcl/source/edit/textview.cxx b/vcl/source/edit/textview.cxx index 3a4be751c234..d87213a413c3 100644 --- a/vcl/source/edit/textview.cxx +++ b/vcl/source/edit/textview.cxx @@ -133,7 +133,7 @@ struct ImpTextView std::unique_ptr<SelectionEngine> mpSelEngine; std::unique_ptr<TextSelFunctionSet> mpSelFuncSet; - css::uno::Reference< css::datatransfer::dnd::XDragSourceListener > mxDnDListener; + rtl::Reference< vcl::unohelper::DragAndDropWrapper > mxDnDListener; sal_uInt16 mnTravelXPos; @@ -182,10 +182,8 @@ TextView::TextView( ExtTextEngine* pEng, vcl::Window* pWindow ) : { mpImpl->mxDnDListener = new vcl::unohelper::DragAndDropWrapper( this ); - css::uno::Reference< css::datatransfer::dnd::XDragGestureListener> xDGL( mpImpl->mxDnDListener, css::uno::UNO_QUERY ); - pWindow->GetDragGestureRecognizer()->addDragGestureListener( xDGL ); - css::uno::Reference< css::datatransfer::dnd::XDropTargetListener> xDTL( xDGL, css::uno::UNO_QUERY ); - pWindow->GetDropTarget()->addDropTargetListener( xDTL ); + pWindow->GetDragGestureRecognizer()->addDragGestureListener( mpImpl->mxDnDListener ); + pWindow->GetDropTarget()->addDropTargetListener( mpImpl->mxDnDListener ); pWindow->GetDropTarget()->setActive( true ); pWindow->GetDropTarget()->setDefaultActions( css::datatransfer::dnd::DNDConstants::ACTION_COPY_OR_MOVE ); } |