diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2013-04-21 20:25:13 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2013-04-22 17:55:49 +0200 |
commit | 1e698bb7f1614f69caa5a30df64a47d18435c89b (patch) | |
tree | d6de439cad662050cf321b28218587f21b538bcf /forms | |
parent | eb387dcf416427d8ad415cde6186796cc6f2ae4e (diff) |
Use (get|set)ControlValue instead of manipulating the property directly
Change-Id: Ice58cf4f67fae6a26548bae6569ae0c0993a7e84
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/ListBox.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index 1d3848eee42b..18421abf8dfa 100644 --- a/forms/source/component/ListBox.cxx +++ b/forms/source/component/ListBox.cxx @@ -350,7 +350,7 @@ namespace frm Sequence< const Any > v; _rValue >>= v; Any newSelectSeq(translateBindingValuesToControlValue(v)); - setPropertyValue( PROPERTY_SELECT_SEQ, newSelectSeq ); + setControlValue( newSelectSeq, eOther ); } break; @@ -359,7 +359,7 @@ namespace frm ORowSetValue v; v.fill(_rValue); Any newSelectSeq(translateDbValueToControlValue(v)); - setPropertyValue( PROPERTY_SELECT_SEQ, newSelectSeq ); + setControlValue( newSelectSeq, eOther ); } break; @@ -1470,7 +1470,7 @@ namespace frm OSL_PRECOND( hasExternalValueBinding(), "OListBoxModel::translateControlValueToExternalValue: no binding!" ); Sequence< sal_Int16 > aSelectSequence; - const_cast< OListBoxModel* >( this )->getPropertyValue( PROPERTY_SELECT_SEQ ) >>= aSelectSequence; + OSL_VERIFY( getControlValue() >>= aSelectSequence ); Any aReturn; switch ( lcl_getCurrentExchangeType( getExternalValueType() ) ) @@ -1521,7 +1521,7 @@ namespace frm try { 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() ); } catch( const Exception& ) @@ -1539,7 +1539,7 @@ namespace frm try { 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() ); } catch( const Exception& ) |