SwXShape::getPropertyStates(): handle textboxes

Change-Id: I5286a48e5e5dcb0140f1dcf5a5ae733e3881d2b2
This commit is contained in:
Miklos Vajna 2014-05-29 15:30:25 +02:00
parent b81cd3d116
commit 6828498283

View File

@ -1778,6 +1778,14 @@ uno::Sequence< beans::PropertyState > SwXShape::getPropertyStates(
(pEntry->nMemberId == MID_FRMSIZE_REL_HEIGHT_RELATION ||
pEntry->nMemberId == MID_FRMSIZE_REL_WIDTH_RELATION))
pRet[nProperty] = beans::PropertyState_DIRECT_VALUE;
else if (pEntry->nWID == FN_TEXT_BOX)
{
// The TextBox property is set, if we can find a textbox for this shape.
if (pFmt && SwTextBoxHelper::findTextBox(pFmt))
pRet[nProperty] = beans::PropertyState_DIRECT_VALUE;
else
pRet[nProperty] = beans::PropertyState_DEFAULT_VALUE;
}
else if(pFmt)
{
const SwAttrSet& rSet = pFmt->GetAttrSet();