diff options
author | Kurt Zenker <kz@openoffice.org> | 2007-02-14 14:35:00 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2007-02-14 14:35:00 +0000 |
commit | faf6ee4ca7f22a2fec744f82ad00a415711bcda5 (patch) | |
tree | 0b1f93c066a124d07b4507357a143bf1315f687f /toolkit/source | |
parent | 124412dc4f2c091a585b53a4babfa13c2247ac36 (diff) |
INTEGRATION: CWS fmtfield_SRC680 (1.79.28); FILE MERGED
2007/02/12 14:29:19 fs 1.79.28.1: #i74443# +ImplEnsureHabdleOrder
Diffstat (limited to 'toolkit/source')
-rw-r--r-- | toolkit/source/controls/unocontrols.cxx | 35 |
1 files changed, 3 insertions, 32 deletions
diff --git a/toolkit/source/controls/unocontrols.cxx b/toolkit/source/controls/unocontrols.cxx index 418c96850027..2df83a66c4a2 100644 --- a/toolkit/source/controls/unocontrols.cxx +++ b/toolkit/source/controls/unocontrols.cxx @@ -4,9 +4,9 @@ * * $RCSfile: unocontrols.cxx,v $ * - * $Revision: 1.79 $ + * $Revision: 1.80 $ * - * last change: $Author: hr $ $Date: 2007-01-02 15:35:43 $ + * last change: $Author: kz $ $Date: 2007-02-14 15:35:00 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -1860,36 +1860,7 @@ void UnoControlListBoxModel::ImplNormalizePropertySequence( const sal_Int32 _nCo { // dependencies we know: // BASEPROPERTY_STRINGITEMLIST->BASEPROPERTY_SELECTEDITEMS - // a more generic approach when it is needed would be nice .... - - for ( sal_Int32 i=0; i < _nCount; ++_pHandles, ++_pValues, ++i ) - { - if ( BASEPROPERTY_SELECTEDITEMS == *_pHandles ) - { - // look if the property SelectedItems depends on is _behind_ SelectedItems - sal_Int32* pLaterHandles = _pHandles + 1; - uno::Any* pLaterValues = _pValues + 1; - for ( sal_Int32 j = i + 1; j < _nCount; ++j, ++pLaterHandles, ++pLaterValues ) - { - if ( BASEPROPERTY_STRINGITEMLIST == *pLaterHandles ) - { - // indeed it is -> exchange the both places in the sequences - sal_Int32 nHandle( *_pHandles ); - *_pHandles = *pLaterHandles; - *pLaterHandles = nHandle; - - uno::Any aValue( *_pValues ); - *_pValues = *pLaterValues; - *pLaterValues = aValue; - - break; - // this will leave the inner loop, and continue with the outer loop. - // Note that this means we will encounter the SelectedItems handle, again, once we reached - // (in the outer loop) the place where we just put it. - } - } - } - } + ImplEnsureHandleOrder( _nCount, _pHandles, _pValues, BASEPROPERTY_STRINGITEMLIST, BASEPROPERTY_SELECTEDITEMS ); UnoControlModel::ImplNormalizePropertySequence( _nCount, _pHandles, _pValues, _pValidHandles ); } |