summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2ce5b3e)
raw | patch | inline | side by side (parent: 2ce5b3e)
| author | ishmal <ishmal@users.sourceforge.net> | |
| Wed, 3 May 2006 22:33:56 +0000 (22:33 +0000) | ||
| committer | ishmal <ishmal@users.sourceforge.net> | |
| Wed, 3 May 2006 22:33:56 +0000 (22:33 +0000) |
| src/extension/internal/odf.cpp | patch | blob | history |
index 27804397df2624eb1e42696c03982fec66efe52a..8d60f5fe01fd38b57a2a9c452b7491d835d2b977 100644 (file)
}
else if (style->fill.type == SP_PAINT_TYPE_PAINTSERVER)
{
+ //## Gradient. Look in writeStyle() below to see what info
+ // we need to read into GradientInfo.
if (!SP_IS_GRADIENT(SP_STYLE_FILL_SERVER(style)))
return;
isGradient = true;
{
GradientInfo gi(*giter);
outs.printf("<draw:gradient draw:name=\"%s\" ", gi.name.c_str());
- outs.printf("draw:display-name=\"%s\" ", gi.name.c_str());
outs.printf("draw:style=\"%s\" ", gi.style.c_str());
if (gi.style == "linear")
{
+ /*
+ ===================================================================
+ LINEAR gradient. We need something that looks like this:
+ <draw:gradient draw:name="Gradient_20_7"
+ draw:display-name="Gradient 7"
+ draw:style="linear"
+ draw:start-color="#008080" draw:end-color="#993366"
+ draw:start-intensity="100%" draw:end-intensity="100%"
+ draw:angle="150" draw:border="0%"/>
+ ===================================================================
+ */
+ outs.printf("draw:display-name=\"linear borderless\" ");
}
- else if (gi.style == "gradient")
+ else if (gi.style == "radial")
{
+ /*
+ ===================================================================
+ RADIAL gradient. We need something that looks like this:
+ <!-- radial gradient, light gray to white, centered, 0% border -->
+ <draw:gradient draw:name="radial_20_borderless"
+ draw:display-name="radial borderless"
+ draw:style="radial"
+ draw:cx="50%" draw:cy="50%"
+ draw:start-color="#999999" draw:end-color="#ffffff"
+ draw:border="0%"/>
+ ===================================================================
+ */
+ outs.printf("draw:display-name=\"radial borderless\" ");
outs.printf("draw:cx=\".2f%%\" draw:cy=\".2f%%\" ", gi.cx, gi.cy);
}
else