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 707713 - Add support for dia diagrams
Add support for dia diagrams
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2013-09-08 11:12 UTC by Jan Danielsson
Modified: 2014-01-09 16:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Adds dia support to doxygen (38.55 KB, patch)
2013-09-08 11:12 UTC, Jan Danielsson
none Details | Review
Bug demonstration (5.43 KB, application/zip)
2014-01-06 22:02 UTC, Scott Hansohn
  Details

Description Jan Danielsson 2013-09-08 11:12:21 UTC
Created attachment 254391 [details] [review]
Adds dia support to doxygen

The attached patch adds support for including .dia-files directly in doxygen documentation using a \diafile keyword.

The support for dia-files is heavily based on \mscfile.

Notes:
- I don't think there's much point in supporting \dia \enddia, so there's only an \diafile.
- I only tested html and latex output. I am unsure how docbook output should look, but I added docbook-support modeled on the msc-support.

This patch was done as a part of my first serious look into the doxygen source code, so assume that there are things I have missed to update.
Comment 1 Dimitri van Heesch 2013-10-07 19:18:47 UTC
Thanks, I'll include the patch in the next GIT update.
Comment 2 Dimitri van Heesch 2013-12-24 19:00:10 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.6. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information 
that you think can be relevant (preferrably in the form of a self-contained example).
Comment 3 Scott Hansohn 2014-01-06 22:02:05 UTC
Created attachment 265479 [details]
Bug demonstration

Unzip and run doxygen.  View the generated html/index.html.
Comment 4 Scott Hansohn 2014-01-06 22:02:55 UTC
Re: previously attached attachment:

Png generated from Dia does not display correctly in FireFox 26.0, but does in IE 11.

The new Dia handler is inserting an absolute rather than relative path for the img src, which Firefox considers a security issue.
@see http://stackoverflow.com/questions/13802244/firefox-doesnt-show-image-on-ie-works-fine

Proposed Fix: Teach doxygen to use relative paths for Dia img src.
Comment 5 Scott Hansohn 2014-01-09 16:55:12 UTC
Corrected mistaken closed-bug-hijack by moving problem report to https://bugzilla.gnome.org/show_bug.cgi?id=721878.