Gradients

Fridrich Strba fridrich.strba at graduateinstitute.ch
Mon Sep 17 00:04:19 PDT 2012


Hello, Christina,

On 14/09/12 22:12, Christina Roßmanith wrote:
> 1. Created by LibreOffice (create rectangle in Draw, fill with a blue to
> green gradient, save as fodg)
>  <draw:gradient draw:name="Gradient_20_7" draw:display-name="Gradient 7"
> draw:style="linear" draw:start-color="#0000ff" draw:end-color="#00ff00"
> draw:start-intensity="100%" draw:end-intensity="100%" draw:angle="0"
> draw:border="0%"/>
> 2. Modified by me to use svg:linearGradient instead of draw:gradient
> (rendered as a grey to white gradient, clearly has to be improved :-)  )
>   <svg:linearGradient draw:name="Gradient_20_7"
> draw:display-name="Gradient 7">
>     <svg:stop svg:offset="0" svg:stop-color="#0000ff"
> svg:stop-opacity="100%" />
>     <svg:stop svg:offset="1" svg:stop-color="#00ff00"
> svg:stop-opacity="100%" />
>   </svg:linearGradient>

Now, the problem we have is that we don't parse the svg:xxxGradient
element and its nested elements. And since we still have in the shape
"fill:gradient", it will fill it with a default gradient which is
basically white to black.

The idea would be to make the xmloff understand that notation and at
least import it in the same way we import the gradients in svg files.

Cheers

Fridrich



More information about the LibreOffice mailing list