Kaydet (Commit) fc0c91c2 authored tarafından Oliver-Rainer Wittmann's avatar Oliver-Rainer Wittmann

124474: on change of User Field via UNO-API trigger update to get dependent Input Fields updated.

üst df00256f
......@@ -540,18 +540,29 @@ void SwXFieldMaster::setPropertyValue( const OUString& rPropertyName,
}
}
}
if( bSetValue )
if ( bSetValue )
{
// nothing special to be done here for the properties
// UNO_NAME_DATA_BASE_NAME and UNO_NAME_DATA_BASE_URL.
// We just call PutValue (empty string is allowed).
// Thus the last property set will be used as Data Source.
sal_uInt16 nMId = GetFieldTypeMId( rPropertyName, *pType );
if( USHRT_MAX != nMId )
pType->PutValue( rValue, nMId );
const sal_uInt16 nMemberValueId = GetFieldTypeMId( rPropertyName, *pType );
if ( USHRT_MAX != nMemberValueId )
{
pType->PutValue( rValue, nMemberValueId );
if ( pType->Which() == RES_USERFLD )
{
// trigger update of User field in order to get depending Input Fields updated.
pType->UpdateFlds();
}
}
else
throw beans::UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
{
throw beans::UnknownPropertyException(
OUString( RTL_CONSTASCII_USTRINGPARAM( "Unknown property: " ) ) + rPropertyName,
static_cast< cppu::OWeakObject * >( this ) );
}
}
}
else if(!pType && m_pDoc &&
......
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