[Libreoffice-bugs] [Bug 124633] Pivot table: Impossible to drag a field to top in Pivot Table Layout dialog

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Apr 10 08:11:38 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=124633

Mike Kaganski <mikekaganski at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |difficultyBeginner,
                   |                            |easyHack, skillCpp

--- Comment #2 from Mike Kaganski <mikekaganski at hotmail.com> ---
Code pointers:

the code to handle drag&drop in the list boxes is in
vcl/source/treelist/treelistbox.cxx. Look at SvTreeListBox::AcceptDrop, which
uses GetDropTarget to find out *below* which element to draw the drop cursor,
and which element to remember for actual drop. The drop method
(SvTreeListBox::ExecuteDrop), as well as drop cursor drawing method
(ImplShowTargetEmphasis), accept nullptr as target element, meaning "at the
top". So the question is how to make GetDropTarget return nullptr when mouse is
over top half of topmost element of the list (a hint: SvImpLBox::GetEntry might
need to be modified to take an optional out bool parameter telling if the pos
is at the top half of the element).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190410/74926409/attachment.html>


More information about the Libreoffice-bugs mailing list