Re: DIA: improving existing and developing new templates



Le 07/02/2013 16:59, darrrylctx a écrit :
I would like to change/add functionality to some existing DIA templates and possible create some new ones.

How is this done, and what is the best resource for learning how to do it?


Dia format uses a subset of svg 1.1 specification from W3C.

For the "static" ones you would author by hand or in an svg editor, the easiest way is to follow the "custom shapes" chapter provided by the manual :)

In short, "custom shapes" are an svg 1.1 xml subset, which is embedded in a <shape> xml tag with, at option, one text tag.

For dynamic ones (what you have eg with lines or UML), the current way is C programming.

Any shapes set can be ~sorted in "sheets", which are also xml.

There are also a menu item in "save as" to export a diagram as a shape, and a button opening a toolbox to edit sheets.

This last method is limited to your "home" directory, especially for "sheets".

Best Regards, and good authoring,
TSFH



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