Properties for the GR_Graphics?

From: <msevior_at_physics.unimelb.edu.au>
Date: Wed May 02 2007 - 01:00:33 CEST

Hi folks,
         I propose an extension to the GR_Graphics API. I suggest we add a
method:

virtual void GR_Graphics::setPropeties(const char ** szProperties)

We can use this to set non-displayable properties of text. Things like
bookmarks, hyperlinks, animations or metadata.

Mordern graphics formats like pdf and svg allow these very useful
properties but we have no hooks to enable any graphics backend to generate
them.

With properties, we could for instance set a hyperlink property during a
call to fp_HyperlinkRun::draw() or fp_BookmarkRun::draw().

I presentation program could use properties to describe a slide transition
or animation that would be invisible in the compostion phase.

Making the method virtual means that the graphics implementation used for
compostion could just safely ignore the method, while classes used during
printing could use them to generate these additional features.

Opinions folks?

Cheers

Martin
Received on Wed May 2 00:59:45 2007

This archive was generated by hypermail 2.1.8 : Wed May 02 2007 - 00:59:45 CEST