diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-10-12 01:57:50 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-10-12 02:00:09 +0200 |
commit | 7700e8e82084acb403eefce0d934bd339ffbca30 (patch) | |
tree | e90894f7eff9a31ea085f70f151fabad717b0abc /writerperfect | |
parent | a1c06ff4f270a7d240f08325198d967c09ce4c1b (diff) |
write out the text margins in text block
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 a848b3574faf..65c72f816832 100644 --- a/writerperfect/source/filter/OdgGenerator.cxx +++ b/writerperfect/source/filter/OdgGenerator.cxx @@ -1309,6 +1309,26 @@ void OdgGenerator::startTextObject(WPXPropertyList const &propList, WPXPropertyL pDrawFrameOpenElement->addAttribute("fo:max-height", propList["fo:max-height"]->getStr()); pStyleGraphicPropertiesOpenElement->addAttribute("fo:max-height", propList["fo:max-height"]->getStr()); } + if (propList["fo:padding-top"]) + { + pDrawFrameOpenElement->addAttribute("fo:padding-top", propList["fo:padding-top"]->getStr()); + pStyleGraphicPropertiesOpenElement->addAttribute("fo:padding-top", propList["fo:padding-top"]->getStr()); + } + if (propList["fo:padding-bottom"]) + { + pDrawFrameOpenElement->addAttribute("fo:padding-bottom", propList["fo:padding-bottom"]->getStr()); + pStyleGraphicPropertiesOpenElement->addAttribute("fo:padding-bottom", propList["fo:padding-bottom"]->getStr()); + } + if (propList["fo:padding-left"]) + { + pDrawFrameOpenElement->addAttribute("fo:padding-left", propList["fo:padding-left"]->getStr()); + pStyleGraphicPropertiesOpenElement->addAttribute("fo:padding-left", propList["fo:padding-left"]->getStr()); + } + if (propList["fo:padding-right"]) + { + pDrawFrameOpenElement->addAttribute("fo:padding-right", propList["fo:padding-right"]->getStr()); + pStyleGraphicPropertiesOpenElement->addAttribute("fo:padding-right", propList["fo:padding-right"]->getStr()); + } mpImpl->mBodyElements.push_back(pDrawFrameOpenElement); mpImpl->mBodyElements.push_back(new TagOpenElement("draw:text-box")); mpImpl->mGraphicsAutomaticStyles.push_back(pStyleGraphicPropertiesOpenElement); |