[Libreoffice-commits] .: writerperfect/source

Fridrich Strba fridrich at kemper.freedesktop.org
Sat Oct 15 03:18:01 PDT 2011


 writerperfect/source/filter/OdgGenerator.cxx |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

New commits:
commit 33a43d55e6ec5db047dee076589b147fc5126d9d
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date:   Sat Oct 15 12:16:38 2011 +0200

    Try to handle more text-box properties

diff --git a/writerperfect/source/filter/OdgGenerator.cxx b/writerperfect/source/filter/OdgGenerator.cxx
index 65c72f8..56a9c6b 100644
--- a/writerperfect/source/filter/OdgGenerator.cxx
+++ b/writerperfect/source/filter/OdgGenerator.cxx
@@ -1329,6 +1329,26 @@ void OdgGenerator::startTextObject(WPXPropertyList const &propList, WPXPropertyL
         pDrawFrameOpenElement->addAttribute("fo:padding-right", propList["fo:padding-right"]->getStr());
         pStyleGraphicPropertiesOpenElement->addAttribute("fo:padding-right", propList["fo:padding-right"]->getStr());
     }
+    if (propList["draw:textarea-vertical-align"])
+    {
+        pDrawFrameOpenElement->addAttribute("draw:textarea-vertical-align", propList["draw:textarea-vertical-align"]->getStr());
+        pStyleGraphicPropertiesOpenElement->addAttribute("draw:textarea-vertical-align", propList["draw:textarea-vertical-align"]->getStr());
+    }
+    if (propList["draw:fill"])
+    {
+        pDrawFrameOpenElement->addAttribute("draw:fill", propList["draw:fill"]->getStr());
+        pStyleGraphicPropertiesOpenElement->addAttribute("draw:fill", propList["draw:fill"]->getStr());
+    }
+    if (propList["draw:fill-color"])
+    {
+        pDrawFrameOpenElement->addAttribute("draw:fill-color", propList["draw:fill-color"]->getStr());
+        pStyleGraphicPropertiesOpenElement->addAttribute("draw:fill-color", propList["draw:fill-color"]->getStr());
+    }
+    if (propList["draw:opacity"])
+    {
+        pDrawFrameOpenElement->addAttribute("draw:opacity", propList["draw:opacity"]->getStr());
+        pStyleGraphicPropertiesOpenElement->addAttribute("draw:opacity", propList["draw:opacity"]->getStr());
+    }
     mpImpl->mBodyElements.push_back(pDrawFrameOpenElement);
     mpImpl->mBodyElements.push_back(new TagOpenElement("draw:text-box"));
     mpImpl->mGraphicsAutomaticStyles.push_back(pStyleGraphicPropertiesOpenElement);


More information about the Libreoffice-commits mailing list