From da16b278eeb5b3e2994de68e49d88a64fdb7ac5b Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 12 Apr 2013 16:29:25 +0200 Subject: [PATCH] RTF import: initial handling of posrelh and posrelv shape properties Change-Id: Id576d6df4b7a6144507e5f8230ac62a953b5c050 --- writerfilter/source/rtftok/rtfsdrimport.cxx | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/writerfilter/source/rtftok/rtfsdrimport.cxx b/writerfilter/source/rtftok/rtfsdrimport.cxx index 0aa36563ff0c..1b31faaa61d4 100644 --- a/writerfilter/source/rtftok/rtfsdrimport.cxx +++ b/writerfilter/source/rtftok/rtfsdrimport.cxx @@ -411,6 +411,28 @@ void RTFSdrImport::resolve(RTFShape& rShape) else if (i->first == "shadowOffsetX") // EMUs to points aShadowModel.moOffset.set(OUString::number(i->second.toDouble() / 12700) + "pt"); + else if (i->first == "posrelh") + { + switch (i->second.toInt32()) + { + case 1: + rShape.nHoriOrientRelation = text::RelOrientation::PAGE_FRAME; + break; + default: + break; + } + } + else if (i->first == "posrelv") + { + switch (i->second.toInt32()) + { + case 1: + rShape.nVertOrientRelation = text::RelOrientation::PAGE_FRAME; + break; + default: + break; + } + } else SAL_INFO("writerfilter", "TODO handle shape property '" << i->first << "':'" << i->second << "'"); }