GNOME Bugzilla – Bug 336304
cannot copy and past dia diagram outside the dia application
Last modified: 2014-03-02 12:03:59 UTC
It is really helpful if Dia supports "copy and paste" functionality which allows to copy any portion of the dia digrams from dia application to another application such as openoffice or clipboard directly without using export/save function. Other than that it is really an outstanding application. Kudo to the dia team. Best Regards, dungmai98@yahoo.com
Yes, that would be nice. Would require figuring out a good common interchange format.
pushing forward to a still relevant version, *-pre* to be removed (please close your bug if you can't reproduce with the released version)
*** Bug 517161 has been marked as a duplicate of this bug. ***
*** Bug 507872 has been marked as a duplicate of this bug. ***
*** Bug 564054 has been marked as a duplicate of this bug. ***
*** Bug 592598 has been marked as a duplicate of this bug. ***
Created attachment 186065 [details] [review] Experimental clipboard copy For testing the current state of clipboard suppor on Linux I'm attaching a simple patch. It registers PNG and SVG for clipboard copy, but on Windows I do not have any application actually using SVG from clipboard. Re-reading my comments on duplicates, there is also no proper support for these on Linux, but this should be checked again. Also there are some useability issues with the patch, before it should go into master. Currently the whole diagram gets copy en passant if any selection is copied. On Windows the "Edit/Copy Diagram" implmentation (providing EMF) should be streamlined with it somehow.
Still I did not find any vector format which is exchangeable via clipboard between Dia and OOo or Inkscape (both are ignoring the image/svg Dia is offering). Also there is no vector exchange between OOo and Inkscape, so I'm giving up for the moment. But beside SVG Dia is now advertizing to deliver a PNG of the copied selection (Updated every time with Edit/Copy in Dia). And that can be used with OOo and Inkscape and GIMP and ... So I'm resolvin this report as fixed. See: http://git.gnome.org/browse/dia/commit/?id=4145cf9d28101bd4470b4129e77965c728fa1ce6 for implementation details. BTW: on windoze there still is "Edit/Copy Diagram" to transfer the whole diagram (all layers rendered) via clipboard. It is using Enhanced Metafile created with cairo on win32.
Update: Bug 336304 - global clipboard copy now working as intended - there was a stupid bug for file content transfer (now tested;) - using transparent background when asked for PNG - the debug spew is directed to dia_log now - "image/svg+xml" working with Inkscape http://git.gnome.org/browse/dia/commit/?id=79a8b7dba1d932fe5041e317494b16c26a22f84f svg: allow to paste from clipboard via 'Edit/Paste Image' - API extension to support in memory transfer of data to a plug-in; implemented in svg-import.c - use "image/svg+xml" atom to identify SVG clipboard data and transfer it to ImportFilter::import_mem_func - implement special undo handling for import into diagram case - listening to additions and recording them regarding added layers and objects Tested with Inkscape and Internet Explorer 10 - seems to work flawlessly. For Firefox see https://bugzilla.mozilla.org/show_bug.cgi?id=334801 http://git.gnome.org/browse/dia/commit/?id=10a3da6272bc91d32d77e4ff7df6ff49d0395002
*** Bug 439275 has been marked as a duplicate of this bug. ***