RTF import: initial handling of posrelh and posrelv shape properties
Change-Id: Id576d6df4b7a6144507e5f8230ac62a953b5c050
This commit is contained in:
parent
1f39925c4c
commit
da16b278ee
1 changed files with 22 additions and 0 deletions
|
@ -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 << "'");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue