diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-01-12 12:15:29 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-01-12 12:19:33 +0100 |
commit | b9e50a307122b6d16f43581f128a782ba10e3f7f (patch) | |
tree | 48799ad85a4d0418979a8f4761a4d76dbabd9166 /writerperfect/source | |
parent | 7d42c86f660b65f86a864a6b674dc8cba107911c (diff) |
Consider the style:mirror property
Diffstat (limited to 'writerperfect/source')
-rw-r--r-- | writerperfect/source/filter/OdgGenerator.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/writerperfect/source/filter/OdgGenerator.cxx b/writerperfect/source/filter/OdgGenerator.cxx index 4d70f8d41ea5..584e8cc8e74a 100644 --- a/writerperfect/source/filter/OdgGenerator.cxx +++ b/writerperfect/source/filter/OdgGenerator.cxx @@ -950,10 +950,16 @@ void OdgGenerator::drawGraphicObject(const ::WPXPropertyList &propList, const :: { if (!propList["libwpg:mime-type"] && propList["libwpg:mime-type"]->getStr().len() <= 0) return; + + mpImpl->_writeGraphicsStyle(); + TagOpenElement *pDrawFrameElement = new TagOpenElement("draw:frame"); WPXString sValue; + sValue.sprintf("gr%i", mpImpl->miGraphicsStyleIndex-1); + pDrawFrameElement->addAttribute("draw:style-name", sValue); + if (propList["svg:x"]) pDrawFrameElement->addAttribute("svg:x", propList["svg:x"]->getStr()); if (propList["svg:y"]) @@ -1280,6 +1286,8 @@ void OdgGeneratorPrivate::_writeGraphicsStyle() else pStyleGraphicsPropertiesElement->addAttribute("draw:marker-end-width", "0.118in"); } + if (mxStyle["style:mirror"]) + pStyleGraphicsPropertiesElement->addAttribute("style:mirror", mxStyle["style:mirror"]->getStr()); mGraphicsAutomaticStyles.push_back(pStyleGraphicsPropertiesElement); mGraphicsAutomaticStyles.push_back(new TagCloseElement("style:graphic-properties")); |