diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-10-15 12:16:38 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-10-15 12:17:31 +0200 |
commit | 33a43d55e6ec5db047dee076589b147fc5126d9d (patch) | |
tree | fa2e65f324d60ba0a22d85faf71141249e0b62c4 /writerperfect | |
parent | add lo-xlate-lang (formerly openoffice-xlate-lang in libreoffice-build) (diff) | |
download | core-33a43d55e6ec5db047dee076589b147fc5126d9d.tar.gz core-33a43d55e6ec5db047dee076589b147fc5126d9d.zip |
Try to handle more text-box properties
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/source/filter/OdgGenerator.cxx | 20 |
1 files changed, 20 insertions, 0 deletions
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); |