Apache OpenOffice (AOO) Bugzilla – Issue 120481
F4 no drag and drop an head of colomn into writer document
Last modified: 2018-11-28 19:25:02 UTC
AOO 3.4.1 r 1369843 as Bug 10260 - Can not drag and drop fields from database into writer document but only with MacOsX 10.8 (or before?) No problem with Windows Vista or Seven. Cannot drag and drop heads of colum from database(F4)into writer document Steps to Reproduce Open a New Document Writer F4 Select Bibliography > Tables > biblio Drag and drop "Author" such as head of the column No copy, regular copy cursor not displayed.
Created attachment 78873 [details] Example on Bibliography F4
r1372282 On Windows Vista or Seven, no problem On Mac 10.8.0, US version or Fr version, it is not solved: not drag and drop of the name of column (the drag and drop works with one of the datas of the same column) works correctly with LibO 3.6
Hello, AOO 3.4.1 r1372282 with MaxOsX 10.7.4 Lion same problem : F4 : I can't drag and drop of the name of column on writer document.
Confirmed.
The problem is caused by a recent change that leads to a drag-and-drop object (aka transferable) being created with a different set of supported data flavors. It looks like the drag-and-drop operation is aborted by some, yet unknown, entity. The drag is initiated but the drop never takes place and the AcceptDrop() method of the edit window is never called. Adding the flavor application/x-openoffice-internal fixes this bug. Previously this was the only flavor used for drag-and-drop of the table column. I still have to understand why exactly the drag-and-drop operation is aborted.
Created attachment 78940 [details] Add additional data flavor application/x-openoffice-internal Add the application/x-openoffice-internal data flavor always when no system flavor is part of the transferable. First tests showed no problems with other drag-and-drop operations but an exhaustive test of all combinations of drag sources and drop targets is nearly impossible.
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.
"af" committed SVN revision 1375940 into trunk: #i120481# Add registered transferable flavor to make the Writer accept
Checked in the patch.
verified on the build aoo3.5_r1378446
Hello, MacOsX 10.8.2 No fixed with 3.4.1 ! And I Can not drag and drop Styles from Template to Document http://forum.openoffice.org/fr/forum/download/file.php?id=50307&t=1 Sorry !
Need a volunteer running macOS to verify if this is still a problem.
Reset assigne to the default "issues@openoffice.apache.org".
Since there has been no response in close to 2 years I am closing as obsolete.