After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 336304 - cannot copy and past dia diagram outside the dia application
cannot copy and past dia diagram outside the dia application
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: general
0.95
Other All
: Normal enhancement
: 0.98
Assigned To: Dia maintainers
Dia maintainers
: 439275 507872 517161 564054 592598 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-03-28 07:39 UTC by dung mai
Modified: 2014-03-02 12:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Experimental clipboard copy (4.02 KB, patch)
2011-04-16 10:03 UTC, Hans Breuer
none Details | Review

Description dung mai 2006-03-28 07:39:06 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
Comment 1 Lars Clausen 2006-05-26 19:58:05 UTC
Yes, that would be nice.  Would require figuring out a good common interchange format.
Comment 2 Hans Breuer 2006-07-15 16:17:06 UTC
pushing forward to a still relevant version, *-pre* to be removed
(please close your bug if you can't reproduce with the released version)
Comment 3 Hans Breuer 2008-04-27 13:38:55 UTC
*** Bug 517161 has been marked as a duplicate of this bug. ***
Comment 4 Hans Breuer 2008-04-27 13:59:14 UTC
*** Bug 507872 has been marked as a duplicate of this bug. ***
Comment 5 Hans Breuer 2009-01-31 21:57:22 UTC
*** Bug 564054 has been marked as a duplicate of this bug. ***
Comment 6 Hans Breuer 2009-09-19 15:05:15 UTC
*** Bug 592598 has been marked as a duplicate of this bug. ***
Comment 7 Hans Breuer 2011-04-16 10:03:06 UTC
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.
Comment 8 Hans Breuer 2011-04-17 12:37:23 UTC
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.
Comment 9 Hans Breuer 2012-10-08 07:11:36 UTC
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
Comment 10 Hans Breuer 2014-03-02 12:03:59 UTC
*** Bug 439275 has been marked as a duplicate of this bug. ***