Kaydet (Commit) 4e0f9a35 authored tarafından Miklos Vajna's avatar Miklos Vajna

SwXShape: implement reading of the RelativeHeight property

Change-Id: I479eabcd45b741a633d7d00b2bdcbd3d0dcbf0ff
üst 146c7c5c
...@@ -1574,6 +1574,19 @@ uno::Any SwXShape::getPropertyValue(const OUString& rPropertyName) ...@@ -1574,6 +1574,19 @@ uno::Any SwXShape::getPropertyValue(const OUString& rPropertyName)
// without conversion to layout direction as below // without conversion to layout direction as below
aRet = _getPropAtAggrObj( OUString("EndPosition") ); aRet = _getPropAtAggrObj( OUString("EndPosition") );
} }
else if (pEntry->nWID == RES_FRM_SIZE && pEntry->nMemberId == MID_FRMSIZE_REL_HEIGHT)
{
SvxShape* pSvxShape = GetSvxShape();
SAL_WARN_IF(!pSvxShape, "sw.uno", "No SvxShape found!");
sal_Int16 nPercent = 0;
if (pSvxShape)
{
SdrObject* pObj = pSvxShape->GetSdrObject();
if (pObj->GetRelativeHeight())
nPercent = *pObj->GetRelativeHeight() * 100;
}
aRet = uno::makeAny(nPercent);
}
else else
{ {
const SwAttrSet& rSet = pFmt->GetAttrSet(); const SwAttrSet& rSet = pFmt->GetAttrSet();
......
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