Lines Matching refs:nSubSelPos
396 sal_uIntPtr nSubSelPos = ImplFindSubSelection( nIndex ); in Select() local
401 if ( nSubSelPos < aSels.Count() && in Select()
402 aSels.GetObject(nSubSelPos)->IsInside( nIndex ) ) in Select()
410 if ( nSubSelPos > 0 && in Select()
411 aSels.GetObject(nSubSelPos-1)->Max() == (nIndex-1) ) in Select()
414 aSels.GetObject(nSubSelPos-1)->Max() = nIndex; in Select()
417 ImplMergeSubSelections( nSubSelPos-1, nSubSelPos ); in Select()
420 else if ( nSubSelPos < aSels.Count() && in Select()
421 aSels.GetObject(nSubSelPos)->Min() == (nIndex+1) ) in Select()
423 aSels.GetObject(nSubSelPos)->Min() = nIndex; in Select()
427 aSels.Insert( new Range( nIndex, nIndex ), nSubSelPos ); in Select()
428 if ( bCurValid && nCurSubSel >= nSubSelPos ) in Select()
435 if ( nSubSelPos >= aSels.Count() || in Select()
436 !aSels.GetObject(nSubSelPos)->IsInside( nIndex ) ) in Select()
447 if ( aSels.GetObject(nSubSelPos)->Len() == 1 ) in Select()
450 delete aSels.Remove( nSubSelPos ); in Select()
456 if ( aSels.GetObject(nSubSelPos)->Min() == nIndex ) in Select()
457 ++aSels.GetObject(nSubSelPos)->Min(); in Select()
459 else if ( aSels.GetObject(nSubSelPos)->Max() == nIndex ) in Select()
460 --aSels.GetObject(nSubSelPos)->Max(); in Select()
466 new Range( aSels.GetObject(nSubSelPos)->Min(), nIndex-1 ), in Select()
467 nSubSelPos ); in Select()
468 aSels.GetObject(nSubSelPos+1)->Min() = nIndex + 1; in Select()
562 sal_uIntPtr nSubSelPos = ImplFindSubSelection( nIndex ); in IsSelected() local
564 return nSubSelPos < aSels.Count() && in IsSelected()
565 aSels.GetObject(nSubSelPos)->IsInside(nIndex); in IsSelected()
575 sal_uIntPtr nSubSelPos = ImplFindSubSelection( nIndex ); in Insert() local
578 if ( nSubSelPos < aSels.Count() ) in Insert()
581 if ( !bSelectNew && aSels.GetObject(nSubSelPos)->Min() != nIndex && in Insert()
582 aSels.GetObject(nSubSelPos)->IsInside(nIndex) ) in Insert()
586 new Range( aSels.GetObject(nSubSelPos)->Min(), nIndex-1 ), in Insert()
587 nSubSelPos ); in Insert()
588 ++nSubSelPos; in Insert()
589 aSels.GetObject(nSubSelPos)->Min() = nIndex; in Insert()
593 else if ( bSelectNew && nSubSelPos > 0 && in Insert()
594 aSels.GetObject(nSubSelPos)->Max() == nIndex-1 ) in Insert()
596 aSels.GetObject(nSubSelPos-1)->Max() += nCount; in Insert()
599 else if ( bSelectNew && aSels.GetObject(nSubSelPos)->Min() == nIndex ) in Insert()
602 aSels.GetObject(nSubSelPos)->Max() += nCount; in Insert()
603 ++nSubSelPos; in Insert()
607 for ( sal_uIntPtr nPos = nSubSelPos; nPos < aSels.Count(); ++nPos ) in Insert()
629 sal_uIntPtr nSubSelPos = ImplFindSubSelection( nIndex ); in Remove() local
632 if ( nSubSelPos < aSels.Count() && in Remove()
633 aSels.GetObject(nSubSelPos)->IsInside(nIndex) ) in Remove()
636 if ( aSels.GetObject(nSubSelPos)->Len() == 1 ) in Remove()
638 aSels.Remove(nSubSelPos); in Remove()
641 --( aSels.GetObject(nSubSelPos++)->Max() ); in Remove()
648 for ( sal_uIntPtr nPos = nSubSelPos; nPos < aSels.Count(); ++nPos ) in Remove()