incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 120481] F4 no drag and drop an head of colomn into writer document
Date Wed, 15 Aug 2012 09:58:27 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=120481

--- Comment #7 from Andre <awf.aoo@googlemail.com> ---
I dug a little deeper.  Here is what I found out.

The aqua DropTarget class in its initialize() method registers the set of data
flavors it wants to be called for by the system, when a drag-and-drop operation
is active that supports at least one these data flavors.  This set consists of
what DataFlavorMapper::getAllSupportedPboardTypes() returns plus
NSFilenamesPboardType.
When the transferable does not contain any of the registered flavors then the
DropTarget is never called.

The attached patch works because it adds one of the registered flavors to every
transferable that does not yet have any registered flavor.  Once the
transferable is accepted and is dropped on a receiver (drop target) the other,
not registered, flavors can be used to extract information that then is pasted.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message