Use (get|set)ControlValue instead of manipulating the property directly
Change-Id: Ice58cf4f67fae6a26548bae6569ae0c0993a7e84
This commit is contained in:
parent
eb387dcf41
commit
1e698bb7f1
@ -350,7 +350,7 @@ namespace frm
|
|||||||
Sequence< const Any > v;
|
Sequence< const Any > v;
|
||||||
_rValue >>= v;
|
_rValue >>= v;
|
||||||
Any newSelectSeq(translateBindingValuesToControlValue(v));
|
Any newSelectSeq(translateBindingValuesToControlValue(v));
|
||||||
setPropertyValue( PROPERTY_SELECT_SEQ, newSelectSeq );
|
setControlValue( newSelectSeq, eOther );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -359,7 +359,7 @@ namespace frm
|
|||||||
ORowSetValue v;
|
ORowSetValue v;
|
||||||
v.fill(_rValue);
|
v.fill(_rValue);
|
||||||
Any newSelectSeq(translateDbValueToControlValue(v));
|
Any newSelectSeq(translateDbValueToControlValue(v));
|
||||||
setPropertyValue( PROPERTY_SELECT_SEQ, newSelectSeq );
|
setControlValue( newSelectSeq, eOther );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -1470,7 +1470,7 @@ namespace frm
|
|||||||
OSL_PRECOND( hasExternalValueBinding(), "OListBoxModel::translateControlValueToExternalValue: no binding!" );
|
OSL_PRECOND( hasExternalValueBinding(), "OListBoxModel::translateControlValueToExternalValue: no binding!" );
|
||||||
|
|
||||||
Sequence< sal_Int16 > aSelectSequence;
|
Sequence< sal_Int16 > aSelectSequence;
|
||||||
const_cast< OListBoxModel* >( this )->getPropertyValue( PROPERTY_SELECT_SEQ ) >>= aSelectSequence;
|
OSL_VERIFY( getControlValue() >>= aSelectSequence );
|
||||||
|
|
||||||
Any aReturn;
|
Any aReturn;
|
||||||
switch ( lcl_getCurrentExchangeType( getExternalValueType() ) )
|
switch ( lcl_getCurrentExchangeType( getExternalValueType() ) )
|
||||||
@ -1521,7 +1521,7 @@ namespace frm
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
Sequence< sal_Int16 > aSelectSequence;
|
Sequence< sal_Int16 > aSelectSequence;
|
||||||
OSL_VERIFY( const_cast< OListBoxModel* >( this )->getPropertyValue( PROPERTY_SELECT_SEQ ) >>= aSelectSequence );
|
OSL_VERIFY( getControlValue() >>= aSelectSequence );
|
||||||
aCurrentValue = lcl_getSingleSelectedEntryAny( aSelectSequence, impl_getValues() );
|
aCurrentValue = lcl_getSingleSelectedEntryAny( aSelectSequence, impl_getValues() );
|
||||||
}
|
}
|
||||||
catch( const Exception& )
|
catch( const Exception& )
|
||||||
@ -1539,7 +1539,7 @@ namespace frm
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
Sequence< sal_Int16 > aSelectSequence;
|
Sequence< sal_Int16 > aSelectSequence;
|
||||||
OSL_VERIFY( const_cast< OListBoxModel* >( this )->getPropertyValue( PROPERTY_SELECT_SEQ ) >>= aSelectSequence );
|
OSL_VERIFY( getControlValue() >>= aSelectSequence );
|
||||||
aCurrentValue = lcl_getMultiSelectedEntriesAny( aSelectSequence, impl_getValues() );
|
aCurrentValue = lcl_getMultiSelectedEntriesAny( aSelectSequence, impl_getValues() );
|
||||||
}
|
}
|
||||||
catch( const Exception& )
|
catch( const Exception& )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user