Issue 120481 - F4 no drag and drop an head of colomn into writer document
Summary: F4 no drag and drop an head of colomn into writer document
Status: CLOSED OBSOLETE
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: 4.0.0-dev
Hardware: Mac Mac OS X 10.7
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: needhelp
Depends on:
Blocks:
 
Reported: 2012-08-07 13:44 UTC by papayes
Modified: 2018-11-28 19:25 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Example on Bibliography F4 (135.22 KB, image/png)
2012-08-07 13:46 UTC, papayes
no flags Details
Add additional data flavor application/x-openoffice-internal (3.09 KB, patch)
2012-08-14 16:20 UTC, Andre
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description papayes 2012-08-07 13:44:30 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.
Comment 1 papayes 2012-08-07 13:46:06 UTC
Created attachment 78873 [details]
Example on Bibliography F4
Comment 2 papayes 2012-08-14 06:41:26 UTC
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
Comment 3 poivron5 2012-08-14 13:25:56 UTC
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.
Comment 4 Andre 2012-08-14 16:10:02 UTC
Confirmed.
Comment 5 Andre 2012-08-14 16:18:04 UTC
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.
Comment 6 Andre 2012-08-14 16:20:35 UTC
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.
Comment 7 Andre 2012-08-15 09:58:27 UTC
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.
Comment 8 SVN Robot 2012-08-22 08:37:41 UTC
"af" committed SVN revision 1375940 into trunk:
#i120481# Add registered transferable flavor to make the Writer accept
Comment 9 Andre 2012-08-22 08:38:44 UTC
Checked in the patch.
Comment 10 Du Jing 2012-08-30 07:55:58 UTC
verified  on the build aoo3.5_r1378446
Comment 11 papayes 2012-11-13 14:25:38 UTC
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 !
Comment 12 Keith N. McKenna 2016-10-23 14:17:28 UTC
Need a volunteer running macOS to verify if this is still a problem.
Comment 13 Marcus 2017-05-20 11:00:59 UTC
Reset assigne to the default "issues@openoffice.apache.org".
Comment 14 Keith N. McKenna 2018-11-28 19:24:49 UTC
Since there has been no response in close to 2 years I am closing as obsolete.