« Return to Thread: Calc: Extension providing custom cell rendering - possible ?

Re: Calc: Extension providing custom cell rendering - possible ?

by Niklas Nebel :: Rate this Message:

Reply to Author | View in Thread

On 06/13/09 11:45, Jan Holst Jensen wrote:

> I would like to be able to render cell content in an owner-draw fashion.
>
> An intuitive way to control this for the end-user (or at least for me)
> would be to add a new format to "Format Cells". I was thinking along the
> lines of adding an item to "Numbers"->"Category", say "SVG image", and
> cells containing SVG instructions would display the SVG graphics instead
> of the SVG text. Alternatively a "Format" could be added to the
> "User-defined" category ?
>
> The actual rendering instructions that I would like to support are not
> SVG but "protein rendering info" as shown at
> http://www.biochemfusion.com/downloads/protein_renderer.html. However,
> the two problems are equivalent and the rendering info could easily be
> translated to SVG if necessary.
>
> Can this be done as an UNO extension or would this need to added
> directly into Calc as native functionality ?
>
> PS: I've seen this implemented by a number of vendors in Excel but trust
> me - you don't really want to know how they do it (seriously fun hacking
> necessary) :-).

There is no such API available. But an extension could register as a
listener for value changes, and then insert shapes into the document for
the desired output. Or would that already fall into the "don't really
want to know" category?

Niklas

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

 « Return to Thread: Calc: Extension providing custom cell rendering - possible ?