summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-04-09 16:52:23 +0200
committerMiklos Vajna <vmiklos@suse.cz>2013-04-10 07:32:17 +0200
commite789c7f0f15a6b571de95b81e77e3a323e9f540e (patch)
treedb40311a0f96f0fa773ab70d04253fedfc949445 /writerfilter
parentc8988c87728f5331a8374d97f8849a47026cd2f1 (diff)
RTF import of d{x,y}WrapDist* shape properties
Change-Id: Id59c8dd91de2733cf0f3620d7b27e8a34f3034fc
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/rtftok/rtfsdrimport.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/writerfilter/source/rtftok/rtfsdrimport.cxx b/writerfilter/source/rtftok/rtfsdrimport.cxx
index 8bd8ef56d5c9..bbb6dd64ffe9 100644
--- a/writerfilter/source/rtftok/rtfsdrimport.cxx
+++ b/writerfilter/source/rtftok/rtfsdrimport.cxx
@@ -337,6 +337,14 @@ void RTFSdrImport::resolve(RTFShape& rShape)
xPropertySet->setPropertyValue("RightBorderDistance", uno::makeAny(i->second.toInt32() / 360));
else if (i->first == "dyTextBottom")
xPropertySet->setPropertyValue("BottomBorderDistance", uno::makeAny(i->second.toInt32() / 360));
+ else if (i->first == "dxWrapDistLeft")
+ xPropertySet->setPropertyValue("LeftMargin", uno::makeAny(i->second.toInt32() / 360));
+ else if (i->first == "dyWrapDistTop")
+ xPropertySet->setPropertyValue("TopMargin", uno::makeAny(i->second.toInt32() / 360));
+ else if (i->first == "dxWrapDistRight")
+ xPropertySet->setPropertyValue("RightMargin", uno::makeAny(i->second.toInt32() / 360));
+ else if (i->first == "dyWrapDistBottom")
+ xPropertySet->setPropertyValue("BottomMargin", uno::makeAny(i->second.toInt32() / 360));
else
SAL_INFO("writerfilter", OSL_THIS_FUNC << ": TODO handle shape property '" <<
OUStringToOString( i->first, RTL_TEXTENCODING_UTF8 ).getStr() << "':'" <<