Lines Matching refs:nPos

215 		sal_uInt16 nPos = InsertEntry( ReadStringRes(), LISTBOX_APPEND );  in ImplLoadRes()  local
219 SetEntryData( nPos, (void *)nId ); // ID as UserData in ImplLoadRes()
254 IMPL_LINK( ListBox, ImplFocusHdl, void *, nPos ) in IMPL_LINK() argument
256 ImplCallEventListeners( VCLEVENT_LISTBOX_FOCUS , nPos); in IMPL_LINK()
1080 sal_uInt16 ListBox::InsertEntry( const XubString& rStr, sal_uInt16 nPos ) in InsertEntry() argument
1082 …sal_uInt16 nRealPos = mpImplLB->InsertEntry( nPos + mpImplLB->GetEntryList()->GetMRUCount(), rStr … in InsertEntry()
1090 sal_uInt16 ListBox::InsertEntry( const Image& rImage, sal_uInt16 nPos ) in InsertEntry() argument
1092 …sal_uInt16 nRealPos = mpImplLB->InsertEntry( nPos + mpImplLB->GetEntryList()->GetMRUCount(), rImag… in InsertEntry()
1100 sal_uInt16 ListBox::InsertEntry( const XubString& rStr, const Image& rImage, sal_uInt16 nPos ) in InsertEntry() argument
1102 …sal_uInt16 nRealPos = mpImplLB->InsertEntry( nPos + mpImplLB->GetEntryList()->GetMRUCount(), rStr,… in InsertEntry()
1117 void ListBox::RemoveEntry( sal_uInt16 nPos ) in RemoveEntry() argument
1119 mpImplLB->RemoveEntry( nPos + mpImplLB->GetEntryList()->GetMRUCount() ); in RemoveEntry()
1120 CallEventListeners( VCLEVENT_LISTBOX_ITEMREMOVED, (void*) sal_IntPtr(nPos) ); in RemoveEntry()
1125 Image ListBox::GetEntryImage( sal_uInt16 nPos ) const in GetEntryImage()
1127 if ( mpImplLB->GetEntryList()->HasEntryImage( nPos ) ) in GetEntryImage()
1128 return mpImplLB->GetEntryList()->GetEntryImage( nPos ); in GetEntryImage()
1136 sal_uInt16 nPos = mpImplLB->GetEntryList()->FindEntry( rStr ); in GetEntryPos() local
1137 if ( nPos != LISTBOX_ENTRY_NOTFOUND ) in GetEntryPos()
1138 nPos = sal::static_int_cast<sal_uInt16>(nPos - mpImplLB->GetEntryList()->GetMRUCount()); in GetEntryPos()
1139 return nPos; in GetEntryPos()
1146 sal_uInt16 nPos = mpImplLB->GetEntryList()->FindEntry( pData ); in GetEntryPos() local
1147 if ( nPos != LISTBOX_ENTRY_NOTFOUND ) in GetEntryPos()
1148 nPos = sal::static_int_cast<sal_uInt16>(nPos - mpImplLB->GetEntryList()->GetMRUCount()); in GetEntryPos()
1149 return nPos; in GetEntryPos()
1154 XubString ListBox::GetEntry( sal_uInt16 nPos ) const in GetEntry()
1156 return mpImplLB->GetEntryList()->GetEntryText( nPos + mpImplLB->GetEntryList()->GetMRUCount() ); in GetEntry()
1184 sal_uInt16 nPos = mpImplLB->GetEntryList()->GetSelectEntryPos( nIndex ); in GetSelectEntryPos() local
1185 if ( nPos != LISTBOX_ENTRY_NOTFOUND ) in GetSelectEntryPos()
1187 if ( nPos < mpImplLB->GetEntryList()->GetMRUCount() ) in GetSelectEntryPos()
1188 nPos = mpImplLB->GetEntryList()->FindEntry( mpImplLB->GetEntryList()->GetEntryText( nPos ) ); in GetSelectEntryPos()
1189 nPos = sal::static_int_cast<sal_uInt16>(nPos - mpImplLB->GetEntryList()->GetMRUCount()); in GetSelectEntryPos()
1191 return nPos; in GetSelectEntryPos()
1203 sal_Bool ListBox::IsEntryPosSelected( sal_uInt16 nPos ) const in IsEntryPosSelected()
1205 …return mpImplLB->GetEntryList()->IsEntryPosSelected( nPos + mpImplLB->GetEntryList()->GetMRUCount(… in IsEntryPosSelected()
1217 void ListBox::SelectEntryPos( sal_uInt16 nPos, sal_Bool bSelect ) in SelectEntryPos() argument
1219 if ( nPos < mpImplLB->GetEntryList()->GetEntryCount() ) in SelectEntryPos()
1222 mpImplLB->SelectEntry( nPos + mpImplLB->GetEntryList()->GetMRUCount(), bSelect ); in SelectEntryPos()
1227 if (nCurrentPos != nPos && bSelect) in SelectEntryPos()
1229 ImplCallEventListeners( VCLEVENT_LISTBOX_SELECT, reinterpret_cast<void*>(nPos)); in SelectEntryPos()
1231 ImplCallEventListeners( VCLEVENT_LISTBOX_FOCUS, reinterpret_cast<void*>(nPos)); in SelectEntryPos()
1238 void ListBox::SetEntryData( sal_uInt16 nPos, void* pNewData ) in SetEntryData() argument
1240 mpImplLB->SetEntryData( nPos + mpImplLB->GetEntryList()->GetMRUCount(), pNewData ); in SetEntryData()
1245 void* ListBox::GetEntryData( sal_uInt16 nPos ) const in GetEntryData()
1247 return mpImplLB->GetEntryList()->GetEntryData( nPos + mpImplLB->GetEntryList()->GetMRUCount() ); in GetEntryData()
1252 void ListBox::SetEntryFlags( sal_uInt16 nPos, long nFlags ) in SetEntryFlags() argument
1254 mpImplLB->SetEntryFlags( nPos + mpImplLB->GetEntryList()->GetMRUCount(), nFlags ); in SetEntryFlags()
1259 long ListBox::GetEntryFlags( sal_uInt16 nPos ) const in GetEntryFlags()
1261 return mpImplLB->GetEntryList()->GetEntryFlags( nPos + mpImplLB->GetEntryList()->GetMRUCount() ); in GetEntryFlags()
1266 void ListBox::SetTopEntry( sal_uInt16 nPos ) in SetTopEntry() argument
1268 mpImplLB->SetTopEntry( nPos + mpImplLB->GetEntryList()->GetMRUCount() ); in SetTopEntry()
1273 void ListBox::ShowProminentEntry( sal_uInt16 nPos ) in ShowProminentEntry() argument
1275 mpImplLB->ShowProminentEntry( nPos + mpImplLB->GetEntryList()->GetMRUCount() ); in ShowProminentEntry()
1282 sal_uInt16 nPos = GetEntryCount() ? mpImplLB->GetTopEntry() : LISTBOX_ENTRY_NOTFOUND; in GetTopEntry() local
1283 if ( nPos < mpImplLB->GetEntryList()->GetMRUCount() ) in GetTopEntry()
1284 nPos = 0; in GetTopEntry()
1285 return nPos; in GetTopEntry()