summaryrefslogtreecommitdiff
path: root/writerperfect
diff options
context:
space:
mode:
authorLaurent Alonso <laurent.alonso@inria.fr>2012-04-15 15:30:31 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2012-05-07 11:01:08 +0200
commit916b0a18acf0cabb01988a8162b9545aeee838a9 (patch)
tree26da9f19a6b2b39c2d1e29ee67a06b0e019ccc2b /writerperfect
parent1c2529ee738148f95f0f80df25950979ea89910f (diff)
Check for frame borders and frame background
Diffstat (limited to 'writerperfect')
-rw-r--r--writerperfect/source/filter/OdtGenerator.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/writerperfect/source/filter/OdtGenerator.cxx b/writerperfect/source/filter/OdtGenerator.cxx
index 8f6ae1bc4395..10443b90371e 100644
--- a/writerperfect/source/filter/OdtGenerator.cxx
+++ b/writerperfect/source/filter/OdtGenerator.cxx
@@ -1192,6 +1192,14 @@ void OdtGenerator::openFrame(const WPXPropertyList &propList)
if (propList["fo:max-height"])
frameAutomaticStylePropertiesElement->addAttribute("fo:max-height", propList["fo:max-height"]->getStr());
+ // check if the frame has border, background attributes
+ if (propList["fo:border"])
+ frameAutomaticStylePropertiesElement->addAttribute("fo:border", propList["fo:border"]->getStr());
+ if (propList["style:border-line-width"])
+ frameAutomaticStylePropertiesElement->addAttribute("style:border-line-width", propList["style:border-line-width"]->getStr());
+ if (propList["fo:background-color"])
+ frameAutomaticStylePropertiesElement->addAttribute("fo:background-color", propList["fo:background-color"]->getStr());
+
frameAutomaticStylePropertiesElement->addAttribute("draw:ole-draw-aspect", "1");
mpImpl->mFrameAutomaticStyles.push_back(frameAutomaticStylePropertiesElement);