diff options
Diffstat (limited to 'svtools/source/control/valueset.cxx')
-rw-r--r-- | svtools/source/control/valueset.cxx | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index 07e24b7d2ce2..5834f59f722f 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -940,95 +940,6 @@ void ValueSet::ImplHighlightItem( sal_uInt16 nItemId, sal_Bool bIsSelection ) // ----------------------------------------------------------------------- -void ValueSet::ImplDrawDropPos( sal_Bool bShow ) -{ - if ( (mnDropPos != VALUESET_ITEM_NOTFOUND) && !mpImpl->mpItemList->empty() ) - { - size_t nItemPos = mnDropPos; - sal_uInt16 nItemId1; - sal_uInt16 nItemId2 = 0; - sal_Bool bRight; - if ( nItemPos >= mpImpl->mpItemList->size() ) - { - nItemPos = mpImpl->mpItemList->size() - 1; - bRight = sal_True; - } - else - bRight = sal_False; - - nItemId1 = GetItemId( nItemPos ); - if ( (nItemId1 != mnSelItemId) && (nItemId1 != mnHighItemId) ) - nItemId1 = 0; - Rectangle aRect2 = (*mpImpl->mpItemList)[ nItemPos ]->maRect; - Rectangle aRect1; - if ( bRight ) - { - aRect1 = aRect2; - aRect2.SetEmpty(); - } - else if ( nItemPos > 0 ) - { - aRect1 = (*mpImpl->mpItemList)[ nItemPos-1 ]->maRect; - nItemId2 = GetItemId( nItemPos-1 ); - if ( (nItemId2 != mnSelItemId) && (nItemId2 != mnHighItemId) ) - nItemId2 = 0; - } - - // Items ueberhaupt sichtbar (nur Erstes/Letztes) - if ( !aRect1.IsEmpty() || !aRect2.IsEmpty() ) - { - if ( nItemId1 ) - ImplHideSelect( nItemId1 ); - if ( nItemId2 ) - ImplHideSelect( nItemId2 ); - - if ( bShow ) - { - const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings(); - long nX; - long nY; - SetLineColor( rStyleSettings.GetButtonTextColor() ); - if ( !aRect1.IsEmpty() ) - { - Point aPos = aRect1.RightCenter(); - nX = aPos.X()-2; - nY = aPos.Y(); - for ( sal_uInt16 i = 0; i < 4; i++ ) - DrawLine( Point( nX-i, nY-i ), Point( nX-i, nY+i ) ); - } - if ( !aRect2.IsEmpty() ) - { - Point aPos = aRect2.LeftCenter(); - nX = aPos.X()+2; - nY = aPos.Y(); - for ( sal_uInt16 i = 0; i < 4; i++ ) - DrawLine( Point( nX+i, nY-i ), Point( nX+i, nY+i ) ); - } - } - else - { - if ( !aRect1.IsEmpty() ) - { - Point aPos = aRect1.TopLeft(); - Size aSize = aRect1.GetSize(); - DrawOutDev( aPos, aSize, aPos, aSize, maVirDev ); - } - if ( !aRect2.IsEmpty() ) - { - Point aPos = aRect2.TopLeft(); - Size aSize = aRect2.GetSize(); - DrawOutDev( aPos, aSize, aPos, aSize, maVirDev ); - } - } - - if ( nItemId1 || nItemId2 ) - ImplDrawSelect(); - } - } -} - -// ----------------------------------------------------------------------- - void ValueSet::ImplDraw() { if ( mbFormat ) |