<div dir="ltr">It is now confirmed that this is the function that is called when an image is dragged. Now the problem, I think there's something wrong with <div><pre style="padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">

 <a href="http://opengrok.libreoffice.org/s?defs=DropTargetDropEvent&project=core" style="color:rgb(16,88,2);text-decoration:none">DropTargetDropEvent</a> <a href="http://opengrok.libreoffice.org/s?defs=dtde&project=core" style="color:rgb(16,88,2);text-decoration:none">dtde</a>(<a href="http://opengrok.libreoffice.org/s?defs=static_cast&project=core" style="color:rgb(16,88,2);text-decoration:none">static_cast</a><<a href="http://opengrok.libreoffice.org/s?defs=OWeakObject&project=core" style="color:rgb(16,88,2);text-decoration:none">OWeakObject</a>*>(<a href="http://opengrok.libreoffice.org/s?defs=this&project=core" style="color:rgb(16,88,2);text-decoration:none">this</a>),
<a class="" name="345" href="http://opengrok.libreoffice.org/xref/core/vcl/aqua/source/dtrans/DropTarget.cxx#345" style="color:rgb(136,136,136);text-decoration:none;background-color:rgb(221,221,221);padding-right:0.1em;margin-right:0.2em;text-align:right">    345 </a>                               <span class="" style="color:rgb(165,42,42)">0</span>,
<a class="" name="346" href="http://opengrok.libreoffice.org/xref/core/vcl/aqua/source/dtrans/DropTarget.cxx#346" style="color:rgb(136,136,136);text-decoration:none;background-color:rgb(221,221,221);padding-right:0.1em;margin-right:0.2em;text-align:right">    346 </a>                               <a href="http://opengrok.libreoffice.org/s?defs=this&project=core" style="color:rgb(16,88,2);text-decoration:none">this</a>,
<a class="" name="347" href="http://opengrok.libreoffice.org/xref/core/vcl/aqua/source/dtrans/DropTarget.cxx#347" style="color:rgb(136,136,136);text-decoration:none;background-color:rgb(221,221,221);padding-right:0.1em;margin-right:0.2em;text-align:right">    347 </a>                               <a class="" name="mSelectedDropAction" style="color:rgb(153,0,153);font-weight:bold;font-style:italic"></a><a href="http://opengrok.libreoffice.org/s?refs=mSelectedDropAction&project=core" class="" style="color:rgb(153,0,153);text-decoration:none;font-weight:bold;font-style:italic">mSelectedDropAction</a>,
<a class="" name="348" href="http://opengrok.libreoffice.org/xref/core/vcl/aqua/source/dtrans/DropTarget.cxx#348" style="color:rgb(136,136,136);text-decoration:none;background-color:rgb(221,221,221);padding-right:0.1em;margin-right:0.2em;text-align:right">    348 </a>                               <a class="" name="posX" style="color:rgb(153,0,153);font-weight:bold;font-style:italic"></a><a href="http://opengrok.libreoffice.org/s?refs=posX&project=core" class="" style="color:rgb(153,0,153);text-decoration:none;font-weight:bold;font-style:italic">posX</a>,
<a class="" name="349" href="http://opengrok.libreoffice.org/xref/core/vcl/aqua/source/dtrans/DropTarget.cxx#349" style="color:rgb(136,136,136);text-decoration:none;background-color:rgb(221,221,221);padding-right:0.1em;margin-right:0.2em;text-align:right">    349 </a>                               <a class="" name="posY" style="color:rgb(153,0,153);font-weight:bold;font-style:italic"></a><a href="http://opengrok.libreoffice.org/s?refs=posY&project=core" class="" style="color:rgb(153,0,153);text-decoration:none;font-weight:bold;font-style:italic">posY</a>,
<a class="" name="350" href="http://opengrok.libreoffice.org/xref/core/vcl/aqua/source/dtrans/DropTarget.cxx#350" style="color:rgb(0,0,0);text-decoration:none;background-color:rgb(221,221,221);padding-right:0.1em;margin-right:0.2em;text-align:right">    350 </a>                               <a class="" name="mDragSourceSupportedActions" style="color:rgb(153,0,153);font-weight:bold;font-style:italic"></a><a href="http://opengrok.libreoffice.org/s?refs=mDragSourceSupportedActions&project=core" class="" style="color:rgb(153,0,153);text-decoration:none;font-weight:bold;font-style:italic">mDragSourceSupportedActions</a>,
<a class="" name="351" href="http://opengrok.libreoffice.org/xref/core/vcl/aqua/source/dtrans/DropTarget.cxx#351" style="color:rgb(136,136,136);text-decoration:none;background-color:rgb(221,221,221);padding-right:0.1em;margin-right:0.2em;text-align:right">    351 </a>                               <a class="" name="xTransferable" style="color:rgb(153,0,153);font-weight:bold;font-style:italic"></a><a href="http://opengrok.libreoffice.org/s?refs=xTransferable&project=core" class="" style="color:rgb(153,0,153);text-decoration:none;font-weight:bold;font-style:italic">xTransferable</a>);</pre>

<pre style="padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)"><br></pre><pre style="padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">The 3rd argument is the current drop context. </pre><pre style="padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">

I've tried using <a href="http://opengrok.libreoffice.org/s?defs=static_cast&project=core" style="color:rgb(16,88,2);text-decoration:none">static_cast</a><<a href="http://opengrok.libreoffice.org/s?defs=XDropTargetDragContext&project=core" style="color:rgb(16,88,2);text-decoration:none">XDropTargetDragContext</a>*>( <a href="http://opengrok.libreoffice.org/s?defs=this&project=core" style="color:rgb(16,88,2);text-decoration:none">this</a>)</pre>

<pre style="padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">Which gives an error and next step would be to use <a href="http://opengrok.libreoffice.org/s?defs=static_cast&project=core" style="color:rgb(16,88,2);text-decoration:none">static_cast</a><<a href="http://opengrok.libreoffice.org/s?defs=XDropTargetDragContext&project=core" style="color:rgb(16,88,2);text-decoration:none">XDropTargetDropContext</a>*>( <a href="http://opengrok.libreoffice.org/s?defs=this&project=core" style="color:rgb(16,88,2);text-decoration:none">this</a>)</pre>

<pre style="padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">Anyway,</pre><pre style="padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">Class DropTarget has a private field </pre><pre style="padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">

<pre style="padding:0px;margin-top:0px;margin-bottom:0px"><a class="" name="149" href="http://opengrok.libreoffice.org/xref/core/vcl/aqua/source/dtrans/DropTarget.hxx#149" style="color:rgb(136,136,136);text-decoration:none;background-color:rgb(221,221,221);padding-right:0.1em;margin-right:0.2em;text-align:right">    149 </a>  <a href="http://opengrok.libreoffice.org/s?defs=com&project=core" style="color:rgb(16,88,2);text-decoration:none">com</a>::<a href="http://opengrok.libreoffice.org/s?defs=sun&project=core" style="color:rgb(16,88,2);text-decoration:none">sun</a>::<a href="http://opengrok.libreoffice.org/s?defs=star&project=core" style="color:rgb(16,88,2);text-decoration:none">star</a>::<a href="http://opengrok.libreoffice.org/s?defs=uno&project=core" style="color:rgb(16,88,2);text-decoration:none">uno</a>::<a href="http://opengrok.libreoffice.org/s?defs=Reference&project=core" style="color:rgb(16,88,2);text-decoration:none">Reference</a>< <a href="http://opengrok.libreoffice.org/s?defs=com&project=core" style="color:rgb(16,88,2);text-decoration:none">com</a>::<a href="http://opengrok.libreoffice.org/s?defs=sun&project=core" style="color:rgb(16,88,2);text-decoration:none">sun</a>::<a href="http://opengrok.libreoffice.org/s?defs=star&project=core" style="color:rgb(16,88,2);text-decoration:none">star</a>::<a href="http://opengrok.libreoffice.org/s?defs=datatransfer&project=core" style="color:rgb(16,88,2);text-decoration:none">datatransfer</a>::<a href="http://opengrok.libreoffice.org/s?defs=dnd&project=core" style="color:rgb(16,88,2);text-decoration:none">dnd</a>::<a href="http://opengrok.libreoffice.org/s?defs=XDropTargetDropContext&project=core" style="color:rgb(16,88,2);text-decoration:none">XDropTargetDropContext</a> > <a class="" name="mXCurrentDropContext" style="color:rgb(153,0,153);font-weight:bold;font-style:italic"></a><a href="http://opengrok.libreoffice.org/s?refs=mXCurrentDropContext&project=core" class="" style="color:rgb(153,0,153);text-decoration:none;font-weight:bold;font-style:italic">mXCurrentDropContext</a>;
</pre><pre style="padding:0px;margin-top:0px;margin-bottom:0px">Shouldn't this be passed to the constructor.</pre><pre style="padding:0px;margin-top:0px;margin-bottom:0px">I've tried it and what happens is that drag drop operation doesn't work anymore (Draw isn't opened either).</pre>

<pre style="padding:0px;margin-top:0px;margin-bottom:0px"><br></pre><pre style="padding:0px;margin-top:0px;margin-bottom:0px">It is also really annoying to build everything every time since building vcl doesn't work, is there any other way than building dev-install ?</pre>

<pre style="padding:0px;margin-top:0px;margin-bottom:0px"><br></pre></pre></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 6, 2013 at 11:15 AM, Thorsten Behrens <span dir="ltr"><<a href="mailto:thb@documentfoundation.org" target="_blank">thb@documentfoundation.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">Manik Malhotra wrote:<br>
> I'm not really sure which module is taking care of this, I found<br>
> these two files:<br>
> <a href="http://opengrok.libreoffice.org/xref/core/vcl/aqua/source/dtrans/DropTarget.cxx" target="_blank">http://opengrok.libreoffice.org/xref/core/vcl/aqua/source/dtrans/DropTarget.cxx</a><br>
><br>
</div>Yep, that sounds about right - DropTarget::performDragOperation seems<br>
to be the method performing the actual drop. I'd start with a<br>
breakpoint there.<br>
<br>
HTH,<br>
<br>
-- Thorsten<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Manik Malhotra<br><div><font color="#ff0000"><Space For Ad><br></font><br></div>
</div>