diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-04-09 16:27:17 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-04-10 07:32:17 +0200 |
commit | 5c706a48ba834f4d573950664bacde5076b1579e (patch) | |
tree | 39e5025e9ff5f6e00477a66a65550cacc69313a6 | |
parent | 7c50826d9a233499277da83fd57bafd834262ec6 (diff) |
RTF import of d{x,y}Text* shape properties
Change-Id: I6ce85cc4fd7bb317be002f5aa7295a03f0d0e7dd
-rw-r--r-- | writerfilter/source/rtftok/rtfsdrimport.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/writerfilter/source/rtftok/rtfsdrimport.cxx b/writerfilter/source/rtftok/rtfsdrimport.cxx index 5fdfeb4c769a..56e1618504e6 100644 --- a/writerfilter/source/rtftok/rtfsdrimport.cxx +++ b/writerfilter/source/rtftok/rtfsdrimport.cxx @@ -324,6 +324,15 @@ void RTFSdrImport::resolve(RTFShape& rShape) aViewBox.Height = i->second.toInt32(); else if ( i->first == "dhgt" ) resolveDhgt(xPropertySet, i->second.toInt32()); + // These are in EMU, convert to mm100. + else if (i->first == "dxTextLeft") + xPropertySet->setPropertyValue("LeftBorderDistance", uno::makeAny(i->second.toInt32() / 360)); + else if (i->first == "dyTextTop") + xPropertySet->setPropertyValue("TopBorderDistance", uno::makeAny(i->second.toInt32() / 360)); + else if (i->first == "dxTextRight") + xPropertySet->setPropertyValue("RightBorderDistance", uno::makeAny(i->second.toInt32() / 360)); + else if (i->first == "dyTextBottom") + xPropertySet->setPropertyValue("BottomBorderDistance", uno::makeAny(i->second.toInt32() / 360)); else SAL_INFO("writerfilter", OSL_THIS_FUNC << ": TODO handle shape property '" << OUStringToOString( i->first, RTL_TEXTENCODING_UTF8 ).getStr() << "':'" << |