Lines Matching refs:nPos

131 void ImplEntryList::SelectEntry( sal_uInt16 nPos, sal_Bool bSelect )  in SelectEntry()  argument
133 ImplEntryType* pImplEntry = GetEntry( nPos ); in SelectEntry()
140 maSelectionChangedHdl.Call( (void*)sal_IntPtr(nPos) ); in SelectEntry()
157 sal_uInt16 ImplEntryList::InsertEntry( sal_uInt16 nPos, ImplEntryType* pNewEntry, sal_Bool bSort ) in InsertEntry() argument
164 Insert( pNewEntry, nPos ); in InsertEntry()
247 void ImplEntryList::RemoveEntry( sal_uInt16 nPos ) in RemoveEntry() argument
249 ImplEntryType* pImplEntry = (ImplEntryType*)List::Remove( nPos ); in RemoveEntry()
278 sal_uInt16 nPos = LISTBOX_ENTRY_NOTFOUND; in FindMatchingEntry() local
293 nPos = n; in FindMatchingEntry()
301 return nPos; in FindMatchingEntry()
308 sal_uInt16 nPos = LISTBOX_ENTRY_NOTFOUND; in FindEntry() local
314 nPos = n; in FindEntry()
318 return nPos; in FindEntry()
351 long ImplEntryList::GetEntryHeight( sal_uInt16 nPos ) const in GetEntryHeight()
353 ImplEntryType* pImplEntry = GetEntry( nPos ); in GetEntryHeight()
359 XubString ImplEntryList::GetEntryText( sal_uInt16 nPos ) const in GetEntryText()
362 ImplEntryType* pImplEntry = GetEntry( nPos ); in GetEntryText()
370 sal_Bool ImplEntryList::HasEntryImage( sal_uInt16 nPos ) const in HasEntryImage()
373 ImplEntryType* pImplEntry = (ImplEntryType*)List::GetObject( nPos ); in HasEntryImage()
381 Image ImplEntryList::GetEntryImage( sal_uInt16 nPos ) const in GetEntryImage()
384 ImplEntryType* pImplEntry = (ImplEntryType*)List::GetObject( nPos ); in GetEntryImage()
392 void ImplEntryList::SetEntryData( sal_uInt16 nPos, void* pNewData ) in SetEntryData() argument
394 ImplEntryType* pImplEntry = (ImplEntryType*)List::GetObject( nPos ); in SetEntryData()
401 void* ImplEntryList::GetEntryData( sal_uInt16 nPos ) const in GetEntryData()
403 ImplEntryType* pImplEntry = (ImplEntryType*)List::GetObject( nPos ); in GetEntryData()
409 void ImplEntryList::SetEntryFlags( sal_uInt16 nPos, long nFlags ) in SetEntryFlags() argument
411 ImplEntryType* pImplEntry = (ImplEntryType*)List::GetObject( nPos ); in SetEntryFlags()
418 long ImplEntryList::GetEntryFlags( sal_uInt16 nPos ) const in GetEntryFlags()
420 ImplEntryType* pImplEntry = (ImplEntryType*)List::GetObject( nPos ); in GetEntryFlags()
487 bool ImplEntryList::IsEntrySelectable( sal_uInt16 nPos ) const in IsEntrySelectable()
489 ImplEntryType* pImplEntry = GetEntry( nPos ); in IsEntrySelectable()
495 sal_uInt16 ImplEntryList::FindFirstSelectable( sal_uInt16 nPos, bool bForward /* = true */ ) in FindFirstSelectable() argument
497 if( IsEntrySelectable( nPos ) ) in FindFirstSelectable()
498 return nPos; in FindFirstSelectable()
502 for( nPos = nPos + 1; nPos < GetEntryCount(); nPos++ ) in FindFirstSelectable()
504 if( IsEntrySelectable( nPos ) ) in FindFirstSelectable()
505 return nPos; in FindFirstSelectable()
510 while( nPos ) in FindFirstSelectable()
512 nPos--; in FindFirstSelectable()
513 if( IsEntrySelectable( nPos ) ) in FindFirstSelectable()
514 return nPos; in FindFirstSelectable()
787 sal_uInt16 ImplListBoxWindow::InsertEntry( sal_uInt16 nPos, ImplEntryType* pNewEntry ) in InsertEntry() argument
790 sal_uInt16 nNewPos = mpEntryList->InsertEntry( nPos, pNewEntry, mbSort ); in InsertEntry()
801 void ImplListBoxWindow::RemoveEntry( sal_uInt16 nPos ) in RemoveEntry() argument
804 mpEntryList->RemoveEntry( nPos ); in RemoveEntry()
812 void ImplListBoxWindow::SetEntryFlags( sal_uInt16 nPos, long nFlags ) in SetEntryFlags() argument
814 mpEntryList->SetEntryFlags( nPos, nFlags ); in SetEntryFlags()
815 ImplEntryType* pEntry = mpEntryList->GetMutableEntryPtr( nPos ); in SetEntryFlags()
883 sal_uInt16 nPos = mnTop; in GetLastVisibleEntry() local
887 …for( nDiff = 0; nDiff < nWindowHeight && nPos < nCount; nDiff = mpEntryList->GetAddedHeight( nPos,… in GetLastVisibleEntry()
888 nPos++; in GetLastVisibleEntry()
890 if( nDiff > nWindowHeight && nPos > mnTop ) in GetLastVisibleEntry()
891 nPos--; in GetLastVisibleEntry()
893 if( nPos >= nCount ) in GetLastVisibleEntry()
894 nPos = nCount-1; in GetLastVisibleEntry()
896 return nPos; in GetLastVisibleEntry()
1035 void ImplListBoxWindow::SelectEntry( sal_uInt16 nPos, sal_Bool bSelect ) in SelectEntry() argument
1037 …if( (mpEntryList->IsEntryPosSelected( nPos ) != bSelect) && mpEntryList->IsEntrySelectable( nPos )… in SelectEntry()
1054 mpEntryList->SelectEntry( nPos, sal_True ); in SelectEntry()
1055 mnCurrentPos = nPos; in SelectEntry()
1056 if ( ( nPos != LISTBOX_ENTRY_NOTFOUND ) && IsUpdateMode() ) in SelectEntry()
1058 ImplPaint( nPos ); in SelectEntry()
1059 if ( !IsVisible( nPos ) ) in SelectEntry()
1063 if ( !nVisibleEntries || !IsReallyVisible() || ( nPos < GetTopEntry() ) ) in SelectEntry()
1066 ShowProminentEntry( nPos ); in SelectEntry()
1070 ShowProminentEntry( nPos ); in SelectEntry()
1077 mpEntryList->SelectEntry( nPos, sal_False ); in SelectEntry()
1078 ImplPaint( nPos, sal_True ); in SelectEntry()
1109 for ( sal_uInt16 nPos = 0; nPos < nEntryCount; nPos++ ) in SelectEntries() local
1111 sal_Bool bSelect = nPos == nSelect; in SelectEntries()
1112 if ( mpEntryList->IsEntryPosSelected( nPos ) != bSelect ) in SelectEntries()
1114 SelectEntry( nPos, bSelect ); in SelectEntries()
1780 void ImplListBoxWindow::ImplPaint( sal_uInt16 nPos, sal_Bool bErase, bool bLayout ) in ImplPaint() argument
1784 const ImplEntryType* pEntry = mpEntryList->GetEntryPtr( nPos ); in ImplPaint()
1789 long nY = mpEntryList->GetAddedHeight( nPos, mnTop ); in ImplPaint()
1794 if( mpEntryList->IsEntryPosSelected( nPos ) ) in ImplPaint()
1815 mnUserDrawEntry = nPos; in ImplPaint()
1817 if ( nPos < GetEntryList()->GetMRUCount() ) in ImplPaint()
1818 nPos = GetEntryList()->FindEntry( GetEntryList()->GetEntryText( nPos ) ); in ImplPaint()
1819 nPos = sal::static_int_cast<sal_uInt16>(nPos - GetEntryList()->GetMRUCount()); in ImplPaint()
1820 UserDrawEvent aUDEvt( this, aRect, nPos, 0 ); in ImplPaint()
1826 DrawEntry( nPos, sal_True, sal_True, sal_False, bLayout ); in ImplPaint()
1832 void ImplListBoxWindow::DrawEntry( sal_uInt16 nPos, sal_Bool bDrawImage, sal_Bool bDrawText, sal_Bo… in DrawEntry() argument
1834 const ImplEntryType* pEntry = mpEntryList->GetEntryPtr( nPos ); in DrawEntry()
1841 nPos = mnUserDrawEntry; // real entry, not the matching entry from MRU in DrawEntry()
1843 long nY = mpEntryList->GetAddedHeight( nPos, mnTop ); in DrawEntry()
1848 Image aImage = mpEntryList->GetEntryImage( nPos ); in DrawEntry()
1892 XubString aStr( mpEntryList->GetEntryText( nPos ) ); in DrawEntry()
1904 … if( !bDrawTextAtImagePos && ( mpEntryList->HasEntryImage(nPos) || IsUserDrawEnabled() ) ) in DrawEntry()
1935 ( ( nPos == mnSeparatorPos ) || ( nPos == mnSeparatorPos+1 ) ) ) in DrawEntry()
1940 if ( nPos == mnSeparatorPos ) in DrawEntry()
2039 sal_uInt16 nPos = mnCurrentPos; in GetFocus() local
2040 if ( nPos == LISTBOX_ENTRY_NOTFOUND ) in GetFocus()
2041 nPos = 0; in GetFocus()
2042 long nHeightDiff = mpEntryList->GetAddedHeight( nPos, mnTop, 0 ); in GetFocus()
2044 Size aSz( maFocusRect.GetWidth(), mpEntryList->GetEntryHeight( nPos ) ); in GetFocus()
2107 sal_uInt16 nPos = nEntryPos; in ShowProminentEntry() local
2109 while( nEntryPos > 0 && mpEntryList->GetAddedHeight( nPos+1, nEntryPos ) < nWHeight/2 ) in ShowProminentEntry()
2308 sal_uInt16 ImplListBox::InsertEntry( sal_uInt16 nPos, const XubString& rStr ) in InsertEntry() argument
2311 sal_uInt16 nNewPos = maLBWindow.InsertEntry( nPos, pNewEntry ); in InsertEntry()
2318 sal_uInt16 ImplListBox::InsertEntry( sal_uInt16 nPos, const Image& rImage ) in InsertEntry() argument
2321 sal_uInt16 nNewPos = maLBWindow.InsertEntry( nPos, pNewEntry ); in InsertEntry()
2328 sal_uInt16 ImplListBox::InsertEntry( sal_uInt16 nPos, const XubString& rStr, const Image& rImage ) in InsertEntry() argument
2331 sal_uInt16 nNewPos = maLBWindow.InsertEntry( nPos, pNewEntry ); in InsertEntry()
2338 void ImplListBox::RemoveEntry( sal_uInt16 nPos ) in RemoveEntry() argument
2340 maLBWindow.RemoveEntry( nPos ); in RemoveEntry()
2346 void ImplListBox::SetEntryFlags( sal_uInt16 nPos, long nFlags ) in SetEntryFlags() argument
2348 maLBWindow.SetEntryFlags( nPos, nFlags ); in SetEntryFlags()
2353 long ImplListBox::GetEntryFlags( sal_uInt16 nPos ) const in GetEntryFlags()
2355 return maLBWindow.GetEntryList()->GetEntryFlags( nPos ); in GetEntryFlags()
2360 void ImplListBox::SelectEntry( sal_uInt16 nPos, sal_Bool bSelect ) in SelectEntry() argument
2362 maLBWindow.SelectEntry( nPos, bSelect ); in SelectEntry()
2424 sal_uInt16 nPos = (sal_uInt16) pSB->GetThumbPos(); in IMPL_LINK() local
2426 SetTopEntry( nPos ); in IMPL_LINK()
2428 SetLeftIndent( nPos ); in IMPL_LINK()
3284 sal_uInt16 nPos = mpImplLB->GetEntryList()->GetSelectEntryPos( 0 ); in StartFloat() local
3285 mnPopupModeStartSaveSelection = nPos; in StartFloat()
3311 if( nPos != LISTBOX_ENTRY_NOTFOUND ) in StartFloat()
3312 mpImplLB->ShowProminentEntry( nPos ); in StartFloat()