Lines Matching refs:nEntry
174 const ScOutlineEntry* ScOutlineWindow::GetOutlineEntry( size_t nLevel, size_t nEntry ) const in GetOutlineEntry()
177 …Entry( sal::static_int_cast<sal_uInt16>(nLevel), sal::static_int_cast<sal_uInt16>(nEntry) ) : NULL; in GetOutlineEntry()
279 size_t nLevel, size_t nEntry, in GetEntryPos() argument
282 const ScOutlineEntry* pEntry = GetOutlineEntry( nLevel, nEntry ); in GetEntryPos()
311 if ( !bHidden && nEntry ) in GetEntryPos()
313 const ScOutlineEntry* pPrevEntry = GetOutlineEntry( nLevel, nEntry - 1 ); in GetEntryPos()
344 bool ScOutlineWindow::GetImagePos( size_t nLevel, size_t nEntry, Point& rPos ) const in GetImagePos() argument
350 if ( nEntry == SC_OL_HEADERENTRY ) in GetImagePos()
355 bRet = GetEntryPos( nLevel, nEntry, nStartPos, nEndPos, nImagePos ); in GetImagePos()
362 bool ScOutlineWindow::IsButtonVisible( size_t nLevel, size_t nEntry ) const in IsButtonVisible()
365 if ( nEntry == SC_OL_HEADERENTRY ) in IsButtonVisible()
369 const ScOutlineEntry* pEntry = GetOutlineEntry( nLevel, nEntry ); in IsButtonVisible()
412 size_t nEntry = pArray->GetCount( sal::static_int_cast<sal_uInt16>(nLevel) ); in ItemHit() local
413 while ( nEntry ) in ItemHit()
415 --nEntry; in ItemHit()
418 sal::static_int_cast<sal_uInt16>(nEntry) ); in ItemHit()
425 if ( GetEntryPos( nLevel, nEntry, nStartPos, nEndPos, nImagePos ) ) in ItemHit()
428 rnEntry = nEntry; in ItemHit()
466 void ScOutlineWindow::DoFunction( size_t nLevel, size_t nEntry ) const in DoFunction()
469 if ( nEntry == SC_OL_HEADERENTRY ) in DoFunction()
473 const ScOutlineEntry* pEntry = GetOutlineEntry( nLevel, nEntry ); in DoFunction()
477 …ine( mbHoriz, sal::static_int_cast<sal_uInt16>(nLevel), sal::static_int_cast<sal_uInt16>(nEntry) ); in DoFunction()
479 …ine( mbHoriz, sal::static_int_cast<sal_uInt16>(nLevel), sal::static_int_cast<sal_uInt16>(nEntry) ); in DoFunction()
484 void ScOutlineWindow::DoExpand( size_t nLevel, size_t nEntry ) const in DoExpand()
486 const ScOutlineEntry* pEntry = GetOutlineEntry( nLevel, nEntry ); in DoExpand()
488 DoFunction( nLevel, nEntry ); in DoExpand()
491 void ScOutlineWindow::DoCollapse( size_t nLevel, size_t nEntry ) const in DoCollapse()
493 const ScOutlineEntry* pEntry = GetOutlineEntry( nLevel, nEntry ); in DoCollapse()
495 DoFunction( nLevel, nEntry ); in DoCollapse()
552 void ScOutlineWindow::DrawBorderRel( size_t nLevel, size_t nEntry, bool bPressed ) in DrawBorderRel() argument
555 if ( GetImagePos( nLevel, nEntry, aPos ) ) in DrawBorderRel()
559 bool bClip = (nEntry != SC_OL_HEADERENTRY); in DrawBorderRel()
652 size_t nEntry; in Paint() local
657 for ( nEntry = 0; nEntry < nEntryCount; ++nEntry ) in Paint()
660 … sal::static_int_cast<sal_uInt16>(nEntry) ); in Paint()
668 bDraw = GetEntryPos( nLevel, nEntry, nEntryPos1, nEntryPos2, nImagePos ); in Paint()
687 nEntry = nEntryCount; in Paint()
688 while ( nEntry ) in Paint()
690 --nEntry; in Paint()
693 … sal::static_int_cast<sal_uInt16>(nEntry) ); in Paint()
701 bDraw = GetEntryPos( nLevel, nEntry, nEntryPos1, nEntryPos2, nImagePos ); in Paint()
923 void ScOutlineWindow::StartMouseTracking( size_t nLevel, size_t nEntry ) in StartMouseTracking() argument
927 mnMTEntry = nEntry; in StartMouseTracking()
928 DrawBorderRel( nLevel, nEntry, true ); in StartMouseTracking()
942 size_t nLevel, nEntry; in MouseMove() local
945 if ( ButtonHit( rMEvt.GetPosPixel(), nLevel, nEntry ) ) in MouseMove()
946 bHit = (nLevel == mnMTLevel) && (nEntry == mnMTEntry); in MouseMove()
959 size_t nLevel, nEntry; in MouseButtonUp() local
960 if ( ButtonHit( rMEvt.GetPosPixel(), nLevel, nEntry ) ) in MouseButtonUp()
961 if ( (nLevel == mnMTLevel) && (nEntry == mnMTEntry) ) in MouseButtonUp()
962 DoFunction( nLevel, nEntry ); in MouseButtonUp()
968 size_t nLevel, nEntry; in MouseButtonDown() local
969 bool bHit = ButtonHit( rMEvt.GetPosPixel(), nLevel, nEntry ); in MouseButtonDown()
971 StartMouseTracking( nLevel, nEntry ); in MouseButtonDown()
974 bHit = LineHit( rMEvt.GetPosPixel(), nLevel, nEntry ); in MouseButtonDown()
976 DoFunction( nLevel, nEntry ); in MouseButtonDown()
984 mnFocusEntry = nEntry; in MouseButtonDown()