On Thu, 27 Apr 2000, Jacek Pliszka wrote:
> Hi!
>
> Is there any basic info/howto write an export plug-in for dia?
> Or an export plug-in template?
>
> Just something very simple to start with.
> cgm.c file is a bit long and its Makefile is complicated for me.
>
> Dia for me is a perfect X interface for drawing
> pictures and then exporting them to LaTeX PStricks.
>
> If there were a plug-in template I could start writing
> export_pstricks function.
Fist of all, you will need to write an implementation of the renderer
interface. As you are targetting hybrid postscript/latex output, I would
start with the current postscript renderer (app/render_eps.c).
You may be able to get it to do what you want by just modifying the single
function that handles drawing text.
After you have created the renderer, you want to create a DiaExportFilter
structure for your new filter. Take a look at the last 20 lines of
app/render_svg.c for ideas on this.
Then you want to add the plugin initialisation code, which should register
the export filter.
As for the makefile, make sure you are looking at Makefile.am (which is
quite simple) -- the Makefile is autogenerated by automake.
>
> Best Regards,
>
> Jacek
>
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/