summaryrefslogtreecommitdiff
path: root/writerperfect
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2011-10-15 12:16:38 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2011-10-15 12:17:31 +0200
commit33a43d55e6ec5db047dee076589b147fc5126d9d (patch)
treefa2e65f324d60ba0a22d85faf71141249e0b62c4 /writerperfect
parent8d153dc965379672321b7c351db4b9c41473f6cf (diff)
Try to handle more text-box properties
Diffstat (limited to 'writerperfect')
-rw-r--r--writerperfect/source/filter/OdgGenerator.cxx20
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);