summaryrefslogtreecommitdiff
path: root/writerperfect
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2012-01-12 12:15:29 +0100
committerFridrich Štrba <fridrich.strba@bluewin.ch>2012-01-12 15:16:58 +0100
commit8d5d687354bb470033ed9ab63d8875bc4e34c096 (patch)
treed6f8ecdce8470305ccec3d630338bd359243eb4e /writerperfect
parent55f45dbf89233f0d529c4c6659c50c05f683add7 (diff)
Consider the style:mirror property
Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
Diffstat (limited to 'writerperfect')
-rw-r--r--writerperfect/source/filter/OdgGenerator.cxx8
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"));