Lines Matching refs:nPos
121 void SvxListBox::InsertEntry(const SvxBoxEntry& rEntry, sal_uInt16 nPos) in InsertEntry() argument
123 if(nPos != LISTBOX_ENTRY_NOTFOUND) in InsertEntry()
126 ListBox::InsertEntry(pEntry->aName, nPos); in InsertEntry()
128 aEntryLst.C40_INSERT(SvxBoxEntry, pEntry, nPos); in InsertEntry()
138 void SvxListBox::RemoveEntry(sal_uInt16 nPos) in RemoveEntry() argument
140 if(nPos >= aEntryLst.Count()) in RemoveEntry()
144 SvxBoxEntry* pEntry = aEntryLst[nPos]; in RemoveEntry()
145 aEntryLst.Remove(nPos, 1); in RemoveEntry()
146 ListBox::RemoveEntry(nPos); in RemoveEntry()
162 sal_uInt16 nPos = ListBox::GetEntryPos(rEntry.aName); in RemoveEntry() local
163 RemoveEntry(nPos); in RemoveEntry()
190 const SvxBoxEntry& SvxListBox::GetSvxBoxEntry(sal_uInt16 nPos) const in GetSvxBoxEntry()
192 if(nPos < aEntryLst.Count()) in GetSvxBoxEntry()
193 return *aEntryLst[nPos]; in GetSvxBoxEntry()
236 void SvxListBox::ModifyEntry(sal_uInt16 nPos, const String& rName) in ModifyEntry() argument
238 if(nPos >= aEntryLst.Count()) in ModifyEntry()
241 SvxBoxEntry* pEntry = aEntryLst[nPos]; in ModifyEntry()
242 aEntryLst.Remove(nPos, 1); in ModifyEntry()
243 aEntryLst[nPos]->aName = rName; in ModifyEntry()
244 aEntryLst[nPos]->bModified = sal_True; in ModifyEntry()
245 ListBox::RemoveEntry(nPos); in ModifyEntry()
254 const SvxBoxEntry& SvxListBox::GetModifiedEntry(sal_uInt16 nPos) const in GetModifiedEntry()
260 { if(nMod == nPos) in GetModifiedEntry()
278 const SvxBoxEntry& SvxListBox::GetRemovedEntry(sal_uInt16 nPos) const in GetRemovedEntry()
280 if(nPos < aDelEntryLst.Count()) in GetRemovedEntry()
281 return *aDelEntryLst[nPos]; in GetRemovedEntry()
305 const SvxBoxEntry& SvxListBox::GetNewEntry(sal_uInt16 nPos) const in GetNewEntry()
311 { if(nNew == nPos) in GetNewEntry()
326 sal_uInt16 nPos = ListBox::GetEntryPos(pEntry->aName); in InsertSorted() local
327 aEntryLst.C40_INSERT(SvxBoxEntry, pEntry, nPos); in InsertSorted()
398 void SvxComboBox::RemoveEntry(sal_uInt16 nPos) in RemoveEntry() argument
400 if(nPos >= aEntryLst.Count()) in RemoveEntry()
404 SvxBoxEntry* pEntry = aEntryLst[nPos]; in RemoveEntry()
405 aEntryLst.Remove(nPos, 1); in RemoveEntry()
406 ComboBox::RemoveEntry(nPos); in RemoveEntry()
422 sal_uInt16 nPos = ComboBox::GetEntryPos(rEntry.aName); in RemoveEntry() local
423 RemoveEntry(nPos); in RemoveEntry()
451 const SvxBoxEntry& SvxComboBox::GetEntry(sal_uInt16 nPos) const in GetEntry()
453 if(nPos < aEntryLst.Count()) in GetEntry()
454 return *aEntryLst[nPos]; in GetEntry()
478 void SvxComboBox::ModifyEntry(sal_uInt16 nPos, const String& rName) in ModifyEntry() argument
480 if(nPos >= aEntryLst.Count()) in ModifyEntry()
483 SvxBoxEntry* pEntry = aEntryLst[nPos]; in ModifyEntry()
484 aEntryLst.Remove(nPos, 1); in ModifyEntry()
485 aEntryLst[nPos]->aName = rName; in ModifyEntry()
486 aEntryLst[nPos]->bModified = sal_True; in ModifyEntry()
487 ComboBox::RemoveEntry(nPos); in ModifyEntry()
496 const SvxBoxEntry& SvxComboBox::GetModifiedEntry(sal_uInt16 nPos) const in GetModifiedEntry()
502 { if(nMod == nPos) in GetModifiedEntry()
520 const SvxBoxEntry& SvxComboBox::GetRemovedEntry(sal_uInt16 nPos) const in GetRemovedEntry()
522 if(nPos < aDelEntryLst.Count()) in GetRemovedEntry()
523 return *aDelEntryLst[nPos]; in GetRemovedEntry()
547 const SvxBoxEntry& SvxComboBox::GetNewEntry(sal_uInt16 nPos) const in GetNewEntry()
553 { if(nNew == nPos) in GetNewEntry()
568 sal_uInt16 nPos = ComboBox::GetEntryPos(pEntry->aName); in InsertSorted() local
569 aEntryLst.C40_INSERT(SvxBoxEntry, pEntry, nPos); in InsertSorted()