summaryrefslogtreecommitdiffstats
path: root/writerperfect
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2011-07-22 13:35:41 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2011-07-22 13:35:41 +0200
commit88e2bf5341228bac9d36aa88b07b090afd7e2e2c (patch)
tree0b9ec99a8ec2420c2bf4c80a45d6c6abe893d1e0 /writerperfect
parentDon't output opacity gradients if the stops are completely opaque (diff)
downloadcore-88e2bf5341228bac9d36aa88b07b090afd7e2e2c.tar.gz
core-88e2bf5341228bac9d36aa88b07b090afd7e2e2c.zip
Add shadow support
Diffstat (limited to 'writerperfect')
-rw-r--r--writerperfect/source/filter/OdgGenerator.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/writerperfect/source/filter/OdgGenerator.cxx b/writerperfect/source/filter/OdgGenerator.cxx
index 45facff4cb0a..159ef49f5311 100644
--- a/writerperfect/source/filter/OdgGenerator.cxx
+++ b/writerperfect/source/filter/OdgGenerator.cxx
@@ -1109,8 +1109,22 @@ void OdgGeneratorPrivate::_writeGraphicsStyle()
if(mxStyle["draw:fill"] && mxStyle["draw:fill"]->getStr() == "none")
pStyleGraphicsPropertiesElement->addAttribute("draw:fill", "none");
else
+ {
+ if (mxStyle["draw:shadow"])
+ pStyleGraphicsPropertiesElement->addAttribute("draw:shadow", mxStyle["draw:shadow"]->getStr());
+ else
+ pStyleGraphicsPropertiesElement->addAttribute("draw:shadow", "hidden");
+ if (mxStyle["draw:shadow-offset-x"])
+ pStyleGraphicsPropertiesElement->addAttribute("draw:shadow-offset-x", mxStyle["draw:shadow-offset-x"]->getStr());
+ if (mxStyle["draw:shadow-offset-y"])
+ pStyleGraphicsPropertiesElement->addAttribute("draw:shadow-offset-y", mxStyle["draw:shadow-offset-y"]->getStr());
+ if (mxStyle["draw:shadow-color"])
+ pStyleGraphicsPropertiesElement->addAttribute("draw:shadow-color", mxStyle["draw:shadow-color"]->getStr());
+ if (mxStyle["draw:shadow-opacity"])
+ pStyleGraphicsPropertiesElement->addAttribute("draw:shadow-opacity", mxStyle["draw:shadow-opacity"]->getStr());
if (mxStyle["svg:fill-rule"])
pStyleGraphicsPropertiesElement->addAttribute("svg:fill-rule", mxStyle["svg:fill-rule"]->getStr());
+ }
if(mxStyle["draw:fill"] && mxStyle["draw:fill"]->getStr() == "solid")
{