Lines Matching refs:nLevel
174 const ScOutlineEntry* ScOutlineWindow::GetOutlineEntry( size_t nLevel, size_t nEntry ) const in GetOutlineEntry() argument
177 …return pArray ? pArray->GetEntry( sal::static_int_cast<sal_uInt16>(nLevel), sal::static_int_cast<s… in GetOutlineEntry()
249 long ScOutlineWindow::GetLevelPos( size_t nLevel ) const in GetLevelPos()
252 long nPos = static_cast< long >( SC_OL_POSOFFSET + nLevel * SC_OL_BITMAPSIZE ); in GetLevelPos()
261 size_t nLevel = static_cast< size_t >( (nLevelPos - nStart) / SC_OL_BITMAPSIZE ); in GetLevelFromPos() local
262 return (nLevel < GetLevelCount()) ? nLevel : SC_OL_NOLEVEL; in GetLevelFromPos()
279 size_t nLevel, size_t nEntry, in GetEntryPos() argument
282 const ScOutlineEntry* pEntry = GetOutlineEntry( nLevel, 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
346 bool bRet = nLevel < GetLevelCount(); in GetImagePos()
349 long nLevelPos = GetLevelPos( nLevel ); 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() argument
366 bRet = (mnHeaderSize > 0) && (nLevel < GetLevelCount()); in IsButtonVisible()
369 const ScOutlineEntry* pEntry = GetOutlineEntry( nLevel, nEntry ); in IsButtonVisible()
388 size_t nLevel = GetLevelFromPos( mbHoriz ? rPos.Y() : rPos.X() ); in ItemHit() local
389 if ( nLevel == SC_OL_NOLEVEL ) in ItemHit()
402 rnLevel = nLevel; in ItemHit()
412 size_t nEntry = pArray->GetCount( sal::static_int_cast<sal_uInt16>(nLevel) ); in ItemHit()
417 const ScOutlineEntry* pEntry = pArray->GetEntry( sal::static_int_cast<sal_uInt16>(nLevel), in ItemHit()
425 if ( GetEntryPos( nLevel, nEntry, nStartPos, nEndPos, nImagePos ) ) in ItemHit()
427 rnLevel = nLevel; in ItemHit()
466 void ScOutlineWindow::DoFunction( size_t nLevel, size_t nEntry ) const in DoFunction() argument
470 rFunc.SelectLevel( mbHoriz, sal::static_int_cast<sal_uInt16>(nLevel) ); in DoFunction()
473 const ScOutlineEntry* pEntry = GetOutlineEntry( nLevel, nEntry ); in DoFunction()
477 …rFunc.ShowOutline( mbHoriz, sal::static_int_cast<sal_uInt16>(nLevel), sal::static_int_cast<sal_uIn… in DoFunction()
479 …rFunc.HideOutline( mbHoriz, sal::static_int_cast<sal_uInt16>(nLevel), sal::static_int_cast<sal_uIn… in DoFunction()
484 void ScOutlineWindow::DoExpand( size_t nLevel, size_t nEntry ) const in DoExpand() argument
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() argument
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()
631 for ( size_t nLevel = 0; nLevel < nLevelCount; ++nLevel ) in Paint() local
632 … DrawImageRel( GetLevelPos( nLevel ), nEntryPos, static_cast< sal_uInt16 >( nLevel + 1 ) ); in Paint()
646 for ( size_t nLevel = 0; nLevel + 1 < nLevelCount; ++nLevel ) in Paint() local
648 long nLevelPos = GetLevelPos( nLevel ); in Paint()
651 size_t nEntryCount = pArray->GetCount( sal::static_int_cast<sal_uInt16>(nLevel) ); in Paint()
659 … const ScOutlineEntry* pEntry = pArray->GetEntry( sal::static_int_cast<sal_uInt16>(nLevel), in Paint()
668 bDraw = GetEntryPos( nLevel, nEntry, nEntryPos1, nEntryPos2, nImagePos ); in Paint()
692 … const ScOutlineEntry* pEntry = pArray->GetEntry( sal::static_int_cast<sal_uInt16>(nLevel), 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
926 mnMTLevel = nLevel; 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()
983 mnFocusLevel = nLevel; in MouseButtonDown()
1023 size_t nLevel = static_cast< size_t >( nCode - KEY_1 ); in KeyInput() local
1024 if ( nLevel < GetLevelCount() ) in KeyInput()
1025 DoFunction( nLevel, SC_OL_HEADERENTRY ); in KeyInput()