Re: Abiword embedding
Jody Goldberg <[email protected]>
| Newsgroups | gmane.comp.gnome.apps.gnucash.devel,gmane.comp.gnome.office.general |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Mar 12, 2004 at 09:13:47AM -0600, Linas Vepstas wrote: > > My intent is not to prolong this thread forever & ever, > really, it isn't ... > > > > -- graphing. Jody is creating gog, we were looking at using that > > > for the graphs. Seeing how we currently embed graphs in html, > > > the question would be, 'will I be able to embed gog graphs in abi?' > > When this issue first came up, we wanted to embed guppi in gtkhtml. > The solution we arrived upon that time was to treat the embeded > object as if it was a block of pixels, e.g. like a png, and let > the layout engine treat it as such. i.e. it was "opaque" to gtkhtml, > and gtkhml only knew about its size and shape. > > To draw it, some draw callback wound its way back through a glue layer > to guppi, told it where to draw, and bingo, drawn. To print, something > similar. I guess (?) it asked generic wrapper (which we wraped > around guppi) to provide a png or ps of itself suitable for printing. The main rendering backend right now produces a GdkPixbuf that we wrap in a foocanvas item. Sticking it into something else should be trivial. We also have an svg and a gnome-print backend, which should cover printing.