Kaydet (Commit) 7b9aa420 authored tarafından Miklos Vajna's avatar Miklos Vajna

SwXShape: implement reading the Relative*Relation properties

Change-Id: I1e99a2ff08c83ac361ab001e90047d9b8d5524fc
üst 9fadea73
...@@ -1576,7 +1576,9 @@ uno::Any SwXShape::getPropertyValue(const OUString& rPropertyName) ...@@ -1576,7 +1576,9 @@ uno::Any SwXShape::getPropertyValue(const OUString& rPropertyName)
} }
else if (pEntry->nWID == RES_FRM_SIZE && else if (pEntry->nWID == RES_FRM_SIZE &&
(pEntry->nMemberId == MID_FRMSIZE_REL_HEIGHT || (pEntry->nMemberId == MID_FRMSIZE_REL_HEIGHT ||
pEntry->nMemberId == MID_FRMSIZE_REL_WIDTH)) pEntry->nMemberId == MID_FRMSIZE_REL_WIDTH ||
pEntry->nMemberId == MID_FRMSIZE_REL_HEIGHT_RELATION ||
pEntry->nMemberId == MID_FRMSIZE_REL_WIDTH_RELATION))
{ {
SvxShape* pSvxShape = GetSvxShape(); SvxShape* pSvxShape = GetSvxShape();
SAL_WARN_IF(!pSvxShape, "sw.uno", "No SvxShape found!"); SAL_WARN_IF(!pSvxShape, "sw.uno", "No SvxShape found!");
...@@ -1594,6 +1596,12 @@ uno::Any SwXShape::getPropertyValue(const OUString& rPropertyName) ...@@ -1594,6 +1596,12 @@ uno::Any SwXShape::getPropertyValue(const OUString& rPropertyName)
if (pObj->GetRelativeHeight()) if (pObj->GetRelativeHeight())
nRet = *pObj->GetRelativeHeight() * 100; nRet = *pObj->GetRelativeHeight() * 100;
break; break;
case MID_FRMSIZE_REL_WIDTH_RELATION:
nRet = pObj->GetRelativeWidthRelation();
break;
case MID_FRMSIZE_REL_HEIGHT_RELATION:
nRet = pObj->GetRelativeHeightRelation();
break;
} }
} }
aRet = uno::makeAny(nRet); aRet = uno::makeAny(nRet);
......
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