From 1e698bb7f1614f69caa5a30df64a47d18435c89b Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Sun, 21 Apr 2013 20:25:13 +0200 Subject: [PATCH] Use (get|set)ControlValue instead of manipulating the property directly Change-Id: Ice58cf4f67fae6a26548bae6569ae0c0993a7e84 --- forms/source/component/ListBox.cxx | 10 +++++----- 1 file 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& )