Re: Dia



Yes, I appreciate the OP request, and I'd like to emphasize, my post was a feature request to support "export selection" the rest was simply verbosity of the workflow that feature would simplify.


-g

On Sun, Nov 2, 2014 at 3:52 PM, Alejandro Imass <aimass yabarana com> wrote:


On Sun, Nov 2, 2014 at 3:44 PM, George Georgalis <george galis org> wrote:

On Sun, Nov 2, 2014 at 11:27 AM, Alejandro Imass <aimass yabarana com> wrote:

Clipboard actually works, just locally to DIA, to make it work beyond that would require specific target OS clipboard implementation for example what is the expected interchange format between those apps in that particular OS, probably WMF, WEM, or something like that. 



I achieve this functionality by selecting the desired object/group and copying it into a new temporary document. Export the tmp document as the desired file type, load the png or pdf file into the other app and discard the temporary document.

An "export selection" option in the save as dialogue would be of great conveinience in this regard.


Yeah I think that's what the OP wants to avoid. In any case you are correct and it would need to be something like export [to clipboard if they want to avoid the intermediate file].

One way to accomplish this is to just add a trigger to "save" and process the DIA file (which is just zipped XML) with an XSL transform into some temp file and pick it up from there. DIA also works with a de-compressed version of the DIA file and we use this for source control of what has changed in a diagram. One of the actual most valuable features of DIA is the structured objects that can be transformed into other things with tools like dia2code. But you don't really need dia2code because any XML/XSL programmer can easily do a lot of magic with just XSL and a some generic parser like Jame's Clark XP or libxml2. 

Another option would be to extend export into something like "export to clipboard" in some known exchange format for that platform (Windows Enhance Metafile?). Maybe GTK2 has some features/facilities to interact Win clipboard.

Best,
Alex


 

_______________________________________________
dia-list mailing list
dia-list gnome org
https://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia





--
George Georgalis, (415) 894-2710, http://www.galis.org/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]