Kaydet (Commit) 5c706a48 authored tarafından Miklos Vajna's avatar Miklos Vajna

RTF import of d{x,y}Text* shape properties

Change-Id: I6ce85cc4fd7bb317be002f5aa7295a03f0d0e7dd
üst 7c50826d
......@@ -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() << "':'" <<
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment