summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1bc7ff4)
raw | patch | inline | side by side (parent: 1bc7ff4)
author | ishmal <ishmal@users.sourceforge.net> | |
Thu, 20 Apr 2006 22:24:13 +0000 (22:24 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Thu, 20 Apr 2006 22:24:13 +0000 (22:24 +0000) |
src/extension/internal/odf.cpp | patch | blob | history |
index 704d388fde68f5cd673ebd40d5cf6de9930fa36e..ff2946af0edc93837b4e5168176b49170184d917 100644 (file)
snprintf(buf, 15, "#%02x%02x%02x", r, g, b);
si.fillColor = buf;
si.fill = "solid";
+ double opacityPercent = 100.0;
+ snprintf(buf, 15, "%.2f%%", opacityPercent);
+ si.fillOpacity = buf;
}
if (style->stroke.type == SP_PAINT_TYPE_COLOR)
{
snprintf(buf, 15, "%.2fpt", style->stroke_width.value);
si.strokeWidth = buf;
si.stroke = "solid";
+ double opacityPercent = 100.0;
+ snprintf(buf, 15, "%.2f%%", opacityPercent);
+ si.strokeOpacity = buf;
}
//Look for existing identical style;
{
//map to existing styleTable entry
std::string styleName = iter->first;
- g_message("found duplicate style:%s", styleName.c_str());
+ //g_message("found duplicate style:%s", styleName.c_str());
styleLookupTable[id] = styleName;
styleMatch = true;
break;
outs.printf(" <style:graphic-properties");
outs.printf(" draw:fill=\"%s\" ", s.fill.c_str());
if (s.fill != "none")
+ {
outs.printf(" draw:fill-color=\"%s\" ", s.fillColor.c_str());
+ outs.printf(" draw:fill-opacity=\"%s\" ", s.fillOpacity.c_str());
+ }
outs.printf(" draw:stroke=\"%s\" ", s.stroke.c_str());
if (s.stroke != "none")
{
outs.printf(" svg:stroke-width=\"%s\" ", s.strokeWidth.c_str());
outs.printf(" svg:stroke-color=\"%s\" ", s.strokeColor.c_str());
+ outs.printf(" svg:stroke-opacity=\"%s\" ", s.strokeOpacity.c_str());
}
outs.printf("/>\n");
outs.printf("</style:style>\n");