RTF import: initial handling of posrelh and posrelv shape properties

Change-Id: Id576d6df4b7a6144507e5f8230ac62a953b5c050
This commit is contained in:
Miklos Vajna 2013-04-12 16:29:25 +02:00
parent 1f39925c4c
commit da16b278ee

View file

@ -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 << "'");
}