From c2078710a6d624104b449570802fcd50f2cb6c28 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 6 Jul 2011 11:42:08 +0200 Subject: [PATCH] implement boolean linestyle --- writerfilter/source/rtftok/rtfdocumentimpl.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index 169d640cc0e5..a4c8a508204f 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -46,6 +46,7 @@ #include #include #include +#include #define TWIP_TO_MM100(TWIP) ((TWIP) >= 0 ? (((TWIP)*127L+36L)/72L) : (((TWIP)*127L-36L)/72L)) @@ -2484,6 +2485,14 @@ void RTFDocumentImpl::resolveShapeProperties(std::vector< std::pairsetPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("RotateAngle")), aAny); } } + else if (i->first.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("fLine"))) + { + if (i->second.toInt32() == 0) + { + aAny <<= drawing::LineStyle_NONE; + xPropertySet->setPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("LineStyle")), aAny); + } + } else OSL_TRACE("%s: TODO handle shape property '%s':'%s'", OSL_THIS_FUNC, OUStringToOString( i->first, RTL_TEXTENCODING_UTF8 ).getStr(),