Lines Matching refs:nSelect

848     sal_uInt16 nSelect = mnTop;  in GetEntryPosForPoint()  local
849 const ImplEntryType* pEntry = mpEntryList->GetEntryPtr( nSelect ); in GetEntryPosForPoint()
853 pEntry = mpEntryList->GetEntryPtr( ++nSelect ); in GetEntryPosForPoint()
856 nSelect = LISTBOX_ENTRY_NOTFOUND; in GetEntryPosForPoint()
858 return nSelect; in GetEntryPosForPoint()
910 sal_uInt16 nSelect = GetEntryPosForPoint( rMEvt.GetPosPixel() ); in MouseButtonDown() local
911 if( nSelect != LISTBOX_ENTRY_NOTFOUND ) in MouseButtonDown()
918 mnCurrentPos = nSelect; in MouseButtonDown()
920 sal_Bool bCurPosChange = (mnCurrentPos != nSelect); in MouseButtonDown()
922 SelectEntries( nSelect, LET_MBDOWN, rMEvt.IsShift(), rMEvt.IsMod1() ,bCurPosChange); in MouseButtonDown()
973 sal_uInt16 nSelect = GetEntryPosForPoint( rMEvt.GetPosPixel() ); in MouseMove() local
974 if( nSelect == LISTBOX_ENTRY_NOTFOUND ) in MouseMove()
975 nSelect = mpEntryList->GetEntryCount() - 1; in MouseMove()
976 nSelect = Min( nSelect, GetLastVisibleEntry() ); in MouseMove()
977 nSelect = Min( nSelect, (sal_uInt16) ( mpEntryList->GetEntryCount() - 1 ) ); in MouseMove()
979 if ( IsVisible( nSelect ) && in MouseMove()
980 mpEntryList->IsEntrySelectable( nSelect ) && in MouseMove()
981 …( ( nSelect != mnCurrentPos ) || !GetEntryList()->GetSelectEntryCount() || ( nSelect != GetEntryLi… in MouseMove()
984 if ( SelectEntries( nSelect, LET_TRACKING, sal_False, sal_False ) ) in MouseMove()
1086 sal_Bool ImplListBoxWindow::SelectEntries( sal_uInt16 nSelect, LB_EVENT_TYPE eLET, sal_Bool bShift,… in SelectEntries() argument
1091 if( IsEnabled() && mpEntryList->IsEntrySelectable( nSelect ) ) in SelectEntries()
1097 if( nSelect != nDeselect ) in SelectEntries()
1099 SelectEntry( nSelect, sal_True ); in SelectEntries()
1100 mpEntryList->SetLastSelected( nSelect ); in SelectEntries()
1111 sal_Bool bSelect = nPos == nSelect; in SelectEntries()
1119 mpEntryList->SetLastSelected( nSelect ); in SelectEntries()
1120 mpEntryList->SetSelectionAnchor( nSelect ); in SelectEntries()
1128 … = ( mbStackMode && IsMouseMoveSelect() ) ? sal_True : !mpEntryList->IsEntryPosSelected( nSelect ); in SelectEntries()
1135 for ( n = 0; n < nSelect; n++ ) in SelectEntries()
1140 for ( n = nSelect+1; n < mpEntryList->GetEntryCount(); n++ ) in SelectEntries()
1144 SelectEntry( nSelect, bSelect ); in SelectEntries()
1145 mpEntryList->SetLastSelected( nSelect ); in SelectEntries()
1146 mpEntryList->SetSelectionAnchor( mbStackMode ? 0 : nSelect ); in SelectEntries()
1147 if ( !mpEntryList->IsEntryPosSelected( nSelect ) ) in SelectEntries()
1152 else if( ( ( eLET == LET_TRACKING ) && ( nSelect != mnCurrentPos ) ) || in SelectEntries()
1155 mnCurrentPos = nSelect; in SelectEntries()
1166 sal_uInt16 nStart = Min( nSelect, nAnchor ); in SelectEntries()
1167 sal_uInt16 nEnd = Max( nSelect, nAnchor ); in SelectEntries()
1181 if ( ( nLast > nSelect ) && ( nLast > nAnchor ) ) in SelectEntries()
1183 for ( sal_uInt16 n = nSelect+1; n <= nLast; n++ ) in SelectEntries()
1192 else if ( ( nLast < nSelect ) && ( nLast < nAnchor ) ) in SelectEntries()
1194 for ( sal_uInt16 n = nLast; n < nSelect; n++ ) in SelectEntries()
1204 mpEntryList->SetLastSelected( nSelect ); in SelectEntries()
1210 ImplPaint( nSelect, sal_True ); in SelectEntries()
1224 long nHeightDiff = mpEntryList->GetAddedHeight( nSelect, mnTop, 0 ); in SelectEntries()
1227 mpEntryList->GetEntryHeight( nSelect ) ); in SelectEntries()
1233 maFocusHdl.Call(reinterpret_cast<void*>(nSelect)); in SelectEntries()
1303 sal_uInt16 nSelect = LISTBOX_ENTRY_NOTFOUND; in Tracking() local
1308 nSelect = mnCurrentPos ? ( mnCurrentPos - 1 ) : 0; in Tracking()
1309 if( nSelect < mnTop ) in Tracking()
1317 nSelect = Min( (sal_uInt16)(mnCurrentPos+1), (sal_uInt16)(mpEntryList->GetEntryCount()-1) ); in Tracking()
1318 if( nSelect >= GetLastVisibleEntry() ) in Tracking()
1324 nSelect = (sal_uInt16) ( ( aPt.Y() + mnBorder ) / mnMaxHeight ) + (sal_uInt16) mnTop; in Tracking()
1325 nSelect = Min( nSelect, GetLastVisibleEntry() ); in Tracking()
1326 nSelect = Min( nSelect, (sal_uInt16) ( mpEntryList->GetEntryCount() - 1 ) ); in Tracking()
1331 if ( ( nSelect != mnCurrentPos ) || !GetEntryList()->GetSelectEntryCount() ) in Tracking()
1334 if ( SelectEntries( nSelect, LET_TRACKING, bShift, bCtrl ) ) in Tracking()
1369 nSelect = LISTBOX_ENTRY_NOTFOUND; in Tracking()
1376 … bSelectionChanged = SelectEntries( nSelect, LET_TRACKING, bShift, bCtrl ); in Tracking()
1392 mnCurrentPos = nSelect; in Tracking()
1427 sal_uInt16 nSelect = LISTBOX_ENTRY_NOTFOUND; in ProcessKeyInput() local
1450 nSelect = mpEntryList->FindFirstSelectable( 0, true ); in ProcessKeyInput()
1455 nSelect = mpEntryList->FindFirstSelectable( mnCurrentPos - 1, false ); in ProcessKeyInput()
1458 if( ( nSelect != LISTBOX_ENTRY_NOTFOUND ) && ( nSelect < mnTop ) ) in ProcessKeyInput()
1477 nSelect = mpEntryList->FindFirstSelectable( 0, true ); in ProcessKeyInput()
1482 nSelect = mpEntryList->FindFirstSelectable( mnCurrentPos + 1, true ); in ProcessKeyInput()
1485 if( ( nSelect != LISTBOX_ENTRY_NOTFOUND ) && ( nSelect >= GetLastVisibleEntry() ) ) in ProcessKeyInput()
1506 nSelect = mpEntryList->FindFirstSelectable( 0, true ); in ProcessKeyInput()
1517 nSelect = mpEntryList->FindFirstSelectable( mnTop, true ); in ProcessKeyInput()
1535 nSelect = mpEntryList->FindFirstSelectable( 0, true ); in ProcessKeyInput()
1551 nSelect = mpEntryList->FindFirstSelectable( nTmp, false ); in ProcessKeyInput()
1569nSelect = mpEntryList->FindFirstSelectable( mpEntryList->GetEntryCount() ? 0 : LISTBOX_ENTRY_NOTFO… in ProcessKeyInput()
1590 nSelect = mpEntryList->FindFirstSelectable( 0, true ); in ProcessKeyInput()
1595 nSelect = mpEntryList->FindFirstSelectable( nCount - 1, false ); in ProcessKeyInput()
1646 nSelect = mnCurrentPos; in ProcessKeyInput()
1688 if ( ( nSelect != LISTBOX_ENTRY_NOTFOUND ) in ProcessKeyInput()
1689 && ( ( !mpEntryList->IsEntryPosSelected( nSelect ) ) in ProcessKeyInput()
1694 …DBG_ASSERT( !mpEntryList->IsEntryPosSelected( nSelect ) || mbMulti, "ImplListBox: Selecting same E… in ProcessKeyInput()
1695 if( nSelect >= mpEntryList->GetEntryCount() ) in ProcessKeyInput()
1696 nSelect = mpEntryList->GetEntryCount()-1; in ProcessKeyInput()
1697 sal_Bool bCurPosChange = (mnCurrentPos != nSelect); in ProcessKeyInput()
1698 mnCurrentPos = nSelect; in ProcessKeyInput()
1700 if(SelectEntries( nSelect, eLET, bShift, bCtrl ,bCurPosChange)) in ProcessKeyInput()
1751 sal_uInt16 nSelect = lcl_getEntryPos( _entry ); in SelectEntry() local
1752 if ( mpEntryList->IsEntryPosSelected( nSelect ) ) in SelectEntry()
1760 … OSL_ENSURE( nSelect < mpEntryList->GetEntryCount(), "ImplListBoxWindow::SelectEntry: how that?" ); in SelectEntry()
1761 if( nSelect >= mpEntryList->GetEntryCount() ) in SelectEntry()
1762 nSelect = mpEntryList->GetEntryCount()-1; in SelectEntry()
1765 ShowProminentEntry( nSelect ); in SelectEntry()
1768 mnCurrentPos = nSelect; in SelectEntry()
1769 if ( SelectEntries( nSelect, LET_KEYMOVE, sal_False, sal_False ) ) in SelectEntry()