From 33a43d55e6ec5db047dee076589b147fc5126d9d Mon Sep 17 00:00:00 2001 From: Fridrich Štrba Date: Sat, 15 Oct 2011 12:16:38 +0200 Subject: Try to handle more text-box properties --- writerperfect/source/filter/OdgGenerator.cxx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/writerperfect/source/filter/OdgGenerator.cxx b/writerperfect/source/filter/OdgGenerator.cxx index 65c72f816832..56a9c6ba2729 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); -- cgit