[Libreoffice-commits] core.git: include/svx svx/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Jan 22 14:50:18 UTC 2021


 include/svx/svdedxv.hxx       |    1 +
 svx/source/svdraw/svdedxv.cxx |    7 +++++++
 2 files changed, 8 insertions(+)

New commits:
commit bc9478602d81dcd0a3bbddd8658c1f0d54d10a7a
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Jan 22 11:22:41 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Jan 22 15:49:34 2021 +0100

    tdf#139590 Drag and drop doesn't work in SdrObjEditView
    
    Change-Id: Id8deeee0c1a919f330bc6623f708453279a214c8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109785
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/include/svx/svdedxv.hxx b/include/svx/svdedxv.hxx
index ce8bf4b1f480..35c4be3282c1 100644
--- a/include/svx/svdedxv.hxx
+++ b/include/svx/svdedxv.hxx
@@ -68,6 +68,7 @@ class SVXCORE_DLLPUBLIC SdrObjEditView : public SdrGlueEditView, public EditView
     virtual void EditViewInvalidate(const tools::Rectangle& rRect) override;
     virtual void EditViewSelectionChange() override;
     virtual OutputDevice& EditViewOutputDevice() const override;
+    virtual css::uno::Reference<css::datatransfer::dnd::XDropTarget> GetDropTarget() override;
     virtual void EditViewInputContext(const InputContext& rInputContext) override;
     virtual void EditViewCursorRect(const tools::Rectangle& rRect, int nExtTextInputWidth) override;
 
diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx
index 5106702a4502..a2fd9a692472 100644
--- a/svx/source/svdraw/svdedxv.cxx
+++ b/svx/source/svdraw/svdedxv.cxx
@@ -655,6 +655,13 @@ void SdrObjEditView::EditViewSelectionChange()
 
 OutputDevice& SdrObjEditView::EditViewOutputDevice() const { return *pTextEditWin; }
 
+css::uno::Reference<css::datatransfer::dnd::XDropTarget> SdrObjEditView::GetDropTarget()
+{
+    if (!pTextEditWin)
+        return nullptr;
+    return pTextEditWin->GetDropTarget();
+}
+
 void SdrObjEditView::EditViewInputContext(const InputContext& rInputContext)
 {
     if (!pTextEditWin)


More information about the Libreoffice-commits mailing list