Lines Matching refs:pEntry
822 SvLBoxEntry* pEntry = pModel->First(); in CheckAllSizes() local
823 while( pEntry ) in CheckAllSizes()
825 CheckSizes( pEntry ); in CheckAllSizes()
826 pEntry = pModel->Next( pEntry ); in CheckAllSizes()
830 void SvImpIconView::CheckSizes( SvLBoxEntry* pEntry, in CheckSizes() argument
836 pViewData = ICNVIEWDATA(pEntry); in CheckSizes()
838 SvLBoxString* pStringItem = (SvLBoxString*)(pEntry->GetFirstItem(SV_ITEM_ID_LBOXSTRING)); in CheckSizes()
841 aSize = GetItemSize( pView, pEntry, pStringItem, pViewData ); in CheckSizes()
849 SvLBoxContextBmp* pBmpItem = (SvLBoxContextBmp*)(pEntry->GetFirstItem(SV_ITEM_ID_LBOXCONTEXTBMP)); in CheckSizes()
852 aSize = GetItemSize( pView, pEntry, pBmpItem, pViewData ); in CheckSizes()
870 void SvImpIconView::EntryInserted( SvLBoxEntry* pEntry ) in EntryInserted() argument
872 if( pModel->GetParent(pEntry) == pCurParent ) in EntryInserted()
875 DBG_ASSERT(pZOrderList->GetPos(pEntry)==0xffff,"EntryInserted:ZOrder?"); in EntryInserted()
876 pZOrderList->Insert( pEntry, pZOrderList->Count() ); in EntryInserted()
881 SvIcnVwDataEntry* pViewData = ICNVIEWDATA(pEntry); in EntryInserted()
882 CheckSizes( pEntry, pViewData ); in EntryInserted()
885 FindBoundingRect( pEntry, pViewData ); in EntryInserted()
886 PaintEntry( pEntry, pViewData ); in EntryInserted()
893 void SvImpIconView::RemovingEntry( SvLBoxEntry* pEntry ) in RemovingEntry() argument
895 if( pModel->GetParent(pEntry) == pCurParent) in RemovingEntry()
898 DBG_ASSERT(pZOrderList->GetPos(pEntry)!=0xffff,"RemovingEntry:ZOrder?"); in RemovingEntry()
899 SvIcnVwDataEntry* pViewData = ICNVIEWDATA(pEntry); in RemovingEntry()
907 if( pEntry == pCursor ) in RemovingEntry()
914 sal_uInt16 nPos = pZOrderList->GetPos( (void*)pEntry ); in RemovingEntry()
934 void SvImpIconView::MovingEntry( SvLBoxEntry* pEntry ) in MovingEntry() argument
936 DBG_ASSERT(pEntry,"MovingEntry: 0!"); in MovingEntry()
939 if( pModel->GetParent(pEntry) == pCurParent ) in MovingEntry()
941 DBG_ASSERT(pZOrderList->GetPos(pEntry)!=0xffff,"MovingEntry:ZOrder?"); in MovingEntry()
943 SvIcnVwDataEntry* pViewData = ICNVIEWDATA(pEntry); in MovingEntry()
948 if( pEntry == pCursor ) in MovingEntry()
955 void SvImpIconView::EntryMoved( SvLBoxEntry* pEntry ) in EntryMoved() argument
958 SvIcnVwDataEntry* pViewData = ICNVIEWDATA(pEntry); in EntryMoved()
959 if( pModel->GetParent(pEntry)==pCurParent ) in EntryMoved()
966 ToTop( pEntry ); in EntryMoved()
971 pZOrderList->Insert( pEntry, pZOrderList->Count() ); in EntryMoved()
973 FindBoundingRect( pEntry, pViewData ); in EntryMoved()
975 PaintEntry( pEntry, pViewData ); in EntryMoved()
979 if( pEntry == pCursor ) in EntryMoved()
985 sal_uInt16 nPos = pZOrderList->GetPos( (void*)pEntry ); in EntryMoved()
987 pView->Select( pEntry, sal_False ); in EntryMoved()
995 void SvImpIconView::TreeInserted( SvLBoxEntry* pEntry ) in TreeInserted() argument
997 EntryMoved( pEntry ); // vorlaeufig in TreeInserted()
1012 void SvImpIconView::EntrySelected( SvLBoxEntry* pEntry, sal_Bool bSelect ) in EntrySelected() argument
1014 if( pModel->GetParent(pEntry) != pCurParent ) in EntrySelected()
1021 pEntry != pCursor ) in EntrySelected()
1023 SetCursor( pEntry ); in EntrySelected()
1028 ToTop( pEntry ); in EntrySelected()
1031 if( pEntry == pCursor ) in EntrySelected()
1034 PaintEntry( pEntry ); in EntrySelected()
1036 pView->Invalidate( GetBoundingRect( pEntry ) ); in EntrySelected()
1037 if( pEntry == pCursor ) in EntrySelected()
1258 SvLBoxEntry* pEntry = (SvLBoxEntry*)(pZOrderList->GetObject(nPos )); in Paint() local
1259 SvIcnVwDataEntry* pViewData = ICNVIEWDATA(pEntry); in Paint()
1260 const Rectangle& rBoundRect = GetBoundingRect( pEntry, pViewData ); in Paint()
1263 PaintEntry( pEntry, rBoundRect.TopLeft(), pViewData ); in Paint()
1265 pPaintedEntries->Insert( pEntry, pPaintedEntries->Count() ); in Paint()
1268 pNewZOrderList->Insert( pEntry, pNewZOrderList->Count() ); in Paint()
1320 SvLBoxItem* SvImpIconView::GetItem( SvLBoxEntry* pEntry, in GetItem() argument
1324 SvLBoxString* pStringItem = (SvLBoxString*)(pEntry->GetFirstItem(SV_ITEM_ID_LBOXSTRING)); in GetItem()
1327 aRect = CalcTextRect( pEntry, pStringItem ); in GetItem()
1331 SvLBoxContextBmp* pBmpItem = (SvLBoxContextBmp*)(pEntry->GetFirstItem(SV_ITEM_ID_LBOXCONTEXTBMP)); in GetItem()
1334 aRect = CalcBmpRect( pEntry ); in GetItem()
1354 SvLBoxEntry* pEntry = GetEntry( aDocPos ); in MouseButtonDown() local
1355 if( !pEntry ) in MouseButtonDown()
1373 sal_Bool bSelected = pView->IsSelected( pEntry ); in MouseButtonDown()
1378 DeselectAllBut( pEntry ); in MouseButtonDown()
1379 pView->pHdlEntry = pEntry; in MouseButtonDown()
1389 SvLBoxItem* pItem = GetItem(pEntry,aDocPos); in MouseButtonDown()
1391 pView->EditingRequest( pEntry, pItem, aDocPos); in MouseButtonDown()
1396 DeselectAllBut( pEntry ); in MouseButtonDown()
1397 SetCursor( pEntry ); in MouseButtonDown()
1398 pView->Select( pEntry, sal_True ); in MouseButtonDown()
1400 rMEvt.IsLeft() && IsTextHit( pEntry, aDocPos ) ) in MouseButtonDown()
1411 DeselectAllBut( pEntry ); in MouseButtonDown()
1412 SetCursor( pEntry ); in MouseButtonDown()
1413 pView->Select( pEntry, sal_True ); in MouseButtonDown()
1419 if( bEditingEnabled && IsTextHit( pEntry, aDocPos ) && in MouseButtonDown()
1448 SvLBoxEntry* pEntry = pView->GetEntry( rMEvt.GetPosPixel(), sal_True ); in MouseButtonUp() local
1449 if( pEntry ) in MouseButtonUp()
1454 ToggleSelection( pEntry ); in MouseButtonUp()
1455 SetCursor( pEntry ); in MouseButtonUp()
1459 DeselectAllBut( pEntry ); in MouseButtonUp()
1460 SetCursor( pEntry ); in MouseButtonUp()
1461 pView->Select( pEntry, sal_True ); in MouseButtonUp()
1908 SvLBoxEntry* pEntry = (SvLBoxEntry*)pZOrderList->operator[](nCur); in CheckHorScrollBar() local
1909 long nRight = GetBoundingRect(pEntry).Right(); in CheckHorScrollBar()
1946 SvLBoxEntry* pEntry = (SvLBoxEntry*)pZOrderList->operator[](nCur); in CheckVerScrollBar() local
1947 long nBottom = GetBoundingRect(pEntry).Bottom(); in CheckVerScrollBar()
2005 void SvImpIconView::PaintEntry( SvLBoxEntry* pEntry, SvIcnVwDataEntry* pViewData ) in PaintEntry() argument
2007 Point aPos( GetEntryPosition( pEntry ) ); in PaintEntry()
2008 PaintEntry( pEntry, aPos, pViewData ); in PaintEntry()
2050 SvLBoxItem* pItem, SvLBoxEntry* pEntry, sal_uInt16 nPaintFlags, in PaintItem() argument
2061 const Size& rSize = GetItemSize( pView, pEntry, pItem ); in PaintItem()
2066 pItem->Paint( aPos, *(SvLBox*)pOut, 0, pEntry ); in PaintItem()
2070 void SvImpIconView::PaintEntry( SvLBoxEntry* pEntry, const Point& rPos, in PaintEntry() argument
2081 pView->PreparePaint( pEntry ); in PaintEntry()
2084 pViewData = ICNVIEWDATA(pEntry); in PaintEntry()
2086 SvLBoxString* pStringItem = (SvLBoxString*)(pEntry->GetFirstItem(SV_ITEM_ID_LBOXSTRING)); in PaintEntry()
2101 Rectangle aTextRect( CalcTextRect(pEntry,pStringItem,&rPos,sal_False,pViewData)); in PaintEntry()
2102 Rectangle aBmpRect( CalcBmpRect(pEntry, &rPos, pViewData ) ); in PaintEntry()
2107 pBmpItem = (SvLBoxContextBmp*)(pEntry->GetFirstItem(SV_ITEM_ID_LBOXCONTEXTBMP)); in PaintEntry()
2109 PaintItem( aBmpRect, pBmpItem, pEntry, in PaintEntry()
2112 PaintItem( aTextRect, pStringItem, pEntry, PAINTFLAG_HOR_CENTERED, pOut ); in PaintEntry()
2116 pBmpItem = (SvLBoxContextBmp*)(pEntry->GetFirstItem(SV_ITEM_ID_LBOXCONTEXTBMP)); in PaintEntry()
2118 PaintItem( aBmpRect, pBmpItem, pEntry, PAINTFLAG_VER_CENTERED, pOut ); in PaintEntry()
2120 PaintItem( aTextRect, pStringItem, pEntry,PAINTFLAG_VER_CENTERED, pOut ); in PaintEntry()
2125 PaintItem( aTextRect, pStringItem, pEntry, PAINTFLAG_VER_CENTERED, pOut ); in PaintEntry()
2131 void SvImpIconView::SetEntryPosition( SvLBoxEntry* pEntry, const Point& rPos, in SetEntryPosition() argument
2134 if( pModel->GetParent(pEntry) == pCurParent ) in SetEntryPosition()
2137 SvIcnVwDataEntry* pViewData = ICNVIEWDATA(pEntry); in SetEntryPosition()
2138 Rectangle aBoundRect( GetBoundingRect( pEntry, pViewData )); in SetEntryPosition()
2140 ToTop( pEntry ); in SetEntryPosition()
2155 AdjustAtGrid( pEntry ); in SetEntryPosition()
2156 ToTop( pEntry ); in SetEntryPosition()
2161 PaintEntry( pEntry, pViewData ); in SetEntryPosition()
2170 void SvImpIconView::ModelHasEntryInvalidated( SvListEntry* pEntry ) in ModelHasEntryInvalidated() argument
2172 if( pEntry == pCursor ) in ModelHasEntryInvalidated()
2174 SvIcnVwDataEntry* pViewData = ICNVIEWDATA(pEntry); in ModelHasEntryInvalidated()
2178 Center( (SvLBoxEntry*)pEntry, pViewData ); in ModelHasEntryInvalidated()
2181 (SvLBoxEntry*)pEntry, pViewData ) ); in ModelHasEntryInvalidated()
2183 ViewDataInitialized( (SvLBoxEntry*)pEntry ); in ModelHasEntryInvalidated()
2185 if( pEntry == pCursor ) in ModelHasEntryInvalidated()
2190 void SvImpIconView::InvalidateEntry( SvLBoxEntry* pEntry ) in InvalidateEntry() argument
2192 const Rectangle& rRect = GetBoundingRect( pEntry ); in InvalidateEntry()
2232 SvLBoxEntry* pEntry = (SvLBoxEntry*)(pZOrderList->GetObject(nCount)); in GetEntry() local
2233 SvIcnVwDataEntry* pViewData = ICNVIEWDATA(pEntry); in GetEntry()
2236 pTarget = pEntry; in GetEntry()
2253 SvLBoxEntry* pEntry = (SvLBoxEntry*)(pZOrderList->GetObject(nCur)); in GetNextEntry() local
2254 SvIcnVwDataEntry* pViewData = ICNVIEWDATA(pEntry); in GetNextEntry()
2257 pTarget = pEntry; in GetNextEntry()
2275 SvLBoxEntry* pEntry = (SvLBoxEntry*)(pZOrderList->GetObject(nStartPos)); in GetPrevEntry() local
2276 SvIcnVwDataEntry* pViewData = ICNVIEWDATA(pEntry); in GetPrevEntry()
2279 pTarget = pEntry; in GetPrevEntry()
2288 Point SvImpIconView::GetEntryPosition( SvLBoxEntry* pEntry ) in GetEntryPosition() argument
2290 SvIcnVwDataEntry* pViewData = ICNVIEWDATA(pEntry); in GetEntryPosition()
2295 const Rectangle& SvImpIconView::GetBoundingRect( SvLBoxEntry* pEntry, SvIcnVwDataEntry* pViewData ) in GetBoundingRect() argument
2298 pViewData = ICNVIEWDATA(pEntry); in GetBoundingRect()
2301 FindBoundingRect( pEntry, pViewData ); in GetBoundingRect()
2311 Rectangle SvImpIconView::CalcBmpRect( SvLBoxEntry* pEntry, const Point* pPos, in CalcBmpRect() argument
2315 pViewData = ICNVIEWDATA(pEntry); in CalcBmpRect()
2317 Rectangle aBound = GetBoundingRect( pEntry, pViewData ); in CalcBmpRect()
2348 Rectangle SvImpIconView::CalcTextRect( SvLBoxEntry* pEntry, in CalcTextRect() argument
2355 pItem = (SvLBoxString*)(pEntry->GetFirstItem(SV_ITEM_ID_LBOXSTRING)); in CalcTextRect()
2358 pViewData = ICNVIEWDATA(pEntry); in CalcTextRect()
2360 Size aTextSize( GetItemSize( pView, pEntry, pItem, pViewData )); in CalcTextRect()
2363 Size aContextBmpSize(pEntry->GetFirstItem(SV_ITEM_ID_LBOXCONTEXTBMP)->GetSize(pView,pEntry)); in CalcTextRect()
2364 Rectangle aBound = GetBoundingRect( pEntry, pViewData ); in CalcTextRect()
2390 Rectangle aMaxGridTextRect = CalcMaxTextRect(pEntry, pViewData); in CalcTextRect()
2417 long SvImpIconView::CalcBoundingWidth( SvLBoxEntry* pEntry, in CalcBoundingWidth() argument
2420 DBG_ASSERT(pEntry->GetFirstItem(SV_ITEM_ID_LBOXCONTEXTBMP),"No Bitmaps"); in CalcBoundingWidth()
2421 DBG_ASSERT(pEntry->GetFirstItem(SV_ITEM_ID_LBOXSTRING),"No Text"); in CalcBoundingWidth()
2422 …long nStringWidth = GetItemSize( pView, pEntry, pEntry->GetFirstItem(SV_ITEM_ID_LBOXSTRING),pViewD… in CalcBoundingWidth()
2424 long nBmpWidth = pEntry->GetFirstItem(SV_ITEM_ID_LBOXCONTEXTBMP)->GetSize(pView,pEntry).Width(); in CalcBoundingWidth()
2447 long SvImpIconView::CalcBoundingHeight( SvLBoxEntry* pEntry, in CalcBoundingHeight() argument
2450 DBG_ASSERT(pEntry->GetFirstItem(SV_ITEM_ID_LBOXCONTEXTBMP),"No Bitmaps"); in CalcBoundingHeight()
2451 DBG_ASSERT(pEntry->GetFirstItem(SV_ITEM_ID_LBOXSTRING),"No Text"); in CalcBoundingHeight()
2452 …long nStringHeight = GetItemSize(pView,pEntry,pEntry->GetFirstItem(SV_ITEM_ID_LBOXSTRING),pViewDat… in CalcBoundingHeight()
2453 long nBmpHeight = pEntry->GetFirstItem(SV_ITEM_ID_LBOXCONTEXTBMP)->GetSize(pView,pEntry).Height(); in CalcBoundingHeight()
2482 Size SvImpIconView::CalcBoundingSize( SvLBoxEntry* pEntry, in CalcBoundingSize() argument
2486 pViewData = ICNVIEWDATA(pEntry); in CalcBoundingSize()
2487 return Size( CalcBoundingWidth(pEntry,pViewData), in CalcBoundingSize()
2488 CalcBoundingHeight(pEntry,pViewData) ); in CalcBoundingSize()
2495 SvLBoxEntry* pEntry = pModel->FirstChild( pCurParent ); in RecalcAllBoundingRects() local
2496 while( pEntry ) in RecalcAllBoundingRects()
2498 FindBoundingRect( pEntry ); in RecalcAllBoundingRects()
2499 pZOrderList->Insert( pEntry, pZOrderList->Count() ); in RecalcAllBoundingRects()
2500 pEntry = pModel->NextSibling( pEntry ); in RecalcAllBoundingRects()
2510 SvLBoxEntry* pEntry = pModel->FirstChild( pCurParent ); in RecalcAllBoundingRectsSmart() local
2511 while( pEntry ) in RecalcAllBoundingRectsSmart()
2513 SvIcnVwDataEntry* pViewData = ICNVIEWDATA(pEntry); in RecalcAllBoundingRectsSmart()
2519 pZOrderList->Insert( pEntry, pZOrderList->Count() ); in RecalcAllBoundingRectsSmart()
2523 FindBoundingRect( pEntry, pViewData ); in RecalcAllBoundingRectsSmart()
2525 pZOrderList->Insert( pEntry, pZOrderList->Count() ); in RecalcAllBoundingRectsSmart()
2526 pEntry = pModel->NextSibling( pEntry ); in RecalcAllBoundingRectsSmart()
2533 SvLBoxEntry* pEntry = pModel->FirstChild( pCurParent ); in UpdateBoundingRects() local
2534 while( pEntry ) in UpdateBoundingRects()
2536 GetBoundingRect( pEntry ); in UpdateBoundingRects()
2537 pEntry = pModel->NextSibling( pEntry ); in UpdateBoundingRects()
2541 void SvImpIconView::FindBoundingRect( SvLBoxEntry* pEntry, in FindBoundingRect() argument
2545 pViewData = ICNVIEWDATA(pEntry); in FindBoundingRect()
2547 Size aSize( CalcBoundingSize( pEntry, pViewData ) ); in FindBoundingRect()
2564 Center( pEntry, pViewData ); in FindBoundingRect()
2576 void SvImpIconView::SetCursor( SvLBoxEntry* pEntry ) in SetCursor() argument
2578 if( pEntry == pCursor ) in SetCursor()
2588 pCursor = pEntry; in SetCursor()
2773 void SvImpIconView::ShowTargetEmphasis( SvLBoxEntry* pEntry, sal_Bool ) in ShowTargetEmphasis() argument
2777 if( pEntry != pCurParent && in ShowTargetEmphasis()
2778 (pEntry->HasChilds() || pEntry->HasChildsOnDemand()) ) in ShowTargetEmphasis()
2779 aRect = CalcBmpRect( pEntry ); in ShowTargetEmphasis()
2793 sal_Bool SvImpIconView::NotifyMoving( SvLBoxEntry* pTarget, SvLBoxEntry* pEntry, in NotifyMoving() argument
2796 if( pTarget == pCurParent && pModel->GetParent(pEntry) == pCurParent ) in NotifyMoving()
2800 SvIcnVwDataEntry* pViewData = ICNVIEWDATA(pEntry); in NotifyMoving()
2804 SetEntryPosition( pEntry, aNewPos, sal_False, sal_True ); in NotifyMoving()
2807 return pView->SvLBox::NotifyMoving(pTarget,pEntry,rpNewPar,rNewChildPos); in NotifyMoving()
2810 sal_Bool SvImpIconView::NotifyCopying( SvLBoxEntry* pTarget, SvLBoxEntry* pEntry, in NotifyCopying() argument
2813 return pView->SvLBox::NotifyCopying(pTarget,pEntry,rpNewParent,rNewChildPos); in NotifyCopying()
2837 void SvImpIconView::InvalidateBoundingRect( SvLBoxEntry* pEntry ) in InvalidateBoundingRect() argument
2839 SvIcnVwDataEntry* pViewData = ICNVIEWDATA(pEntry); in InvalidateBoundingRect()
2848 SvLBoxEntry* pEntry = pView->GetEntry( rPt, sal_True ); in PrepareCommandEvent() local
2849 if( (nFlags & F_DOWN_CTRL) && pEntry && !pView->IsSelected(pEntry) ) in PrepareCommandEvent()
2850 pView->Select( pEntry, sal_True ); in PrepareCommandEvent()
2868 void SvImpIconView::ToTop( SvLBoxEntry* pEntry ) in ToTop() argument
2870 DBG_ASSERT(pZOrderList->GetPos(pEntry)!=0xffff,"ToTop:ZOrder?"); in ToTop()
2871 if( pZOrderList->GetObject( pZOrderList->Count() -1 ) != pEntry ) in ToTop()
2873 sal_uInt16 nPos = pZOrderList->GetPos( (void*)pEntry ); in ToTop()
2875 pZOrderList->Insert( pEntry, pZOrderList->Count() ); in ToTop()
3002 SvLBoxEntry* pEntry = pModel->FirstChild( pCurParent); in GetSelectionCount() local
3003 while( pEntry ) in GetSelectionCount()
3005 if( pView->IsSelected( pEntry ) ) in GetSelectionCount()
3007 pEntry = pModel->NextSibling( pEntry ); in GetSelectionCount()
3013 void SvImpIconView::ToggleSelection( SvLBoxEntry* pEntry ) in ToggleSelection() argument
3016 if( pView->IsSelected( pEntry ) ) in ToggleSelection()
3020 pView->Select( pEntry, bSel ); in ToggleSelection()
3026 SvLBoxEntry* pEntry = pModel->FirstChild( pCurParent ); in DeselectAllBut() local
3027 while( pEntry ) in DeselectAllBut()
3029 if( pEntry != pThisEntryNot && pView->IsSelected( pEntry )) in DeselectAllBut()
3030 pView->Select( pEntry, sal_False ); in DeselectAllBut()
3031 pEntry = pModel->NextSibling( pEntry ); in DeselectAllBut()
3100 SvLBoxEntry* pEntry = pModel->FirstChild( pView->pCurParent ); in ImplCreate() local
3101 while( pEntry ) in ImplCreate()
3103 SvIcnVwDataEntry* pViewData = ICNVIEWDATA2(pEntry); in ImplCreate()
3105 Rectangle rRect( pView->CalcBmpRect( pEntry,0,pViewData ) ); in ImplCreate()
3116 pColumns[ nX ].Insert( pEntry, nIns ); in ImplCreate()
3119 pRows[ nY ].Insert( pEntry, nIns ); in ImplCreate()
3124 pEntry = pModel->NextSibling( pEntry ); in ImplCreate()
3166 SvLBoxEntry* pEntry = pModel->FirstChild( pView->pCurParent ); in CreateGridMap() local
3167 while( pEntry ) in CreateGridMap()
3169 SvIcnVwDataEntry* pViewData = ICNVIEWDATA2(pEntry); in CreateGridMap()
3175 SetGridUsed( pView->GetBoundingRect( pEntry, pViewData ) ); in CreateGridMap()
3177 pEntry = pModel->NextSibling( pEntry ); in CreateGridMap()
3263 SvLBoxEntry* pEntry = (SvLBoxEntry*)pList->GetObject( nListPos ); in SearchCol() local
3264 const Rectangle& rRect = pView->GetBoundingRect( pEntry ); in SearchCol()
3266 return pEntry; in SearchCol()
3277 SvLBoxEntry* pEntry = (SvLBoxEntry*)pList->GetObject( nListPos ); in SearchCol() local
3278 const Rectangle& rRect = pView->GetBoundingRect( pEntry ); in SearchCol()
3280 return pEntry; in SearchCol()
3297 SvLBoxEntry* pEntry = (SvLBoxEntry*)(pList->GetObject( nCur )); in SearchCol() local
3298 if( pEntry != pCurEntry ) in SearchCol()
3300 SvIcnVwDataEntry* pViewData = ICNVIEWDATA2(pEntry); in SearchCol()
3304 const Rectangle& rRect = pView->GetBoundingRect( pEntry ); in SearchCol()
3311 pResult = pEntry; in SearchCol()
3339 SvLBoxEntry* pEntry = (SvLBoxEntry*)pList->GetObject( nListPos ); in SearchRow() local
3340 const Rectangle& rRect = pView->GetBoundingRect( pEntry ); in SearchRow()
3342 return pEntry; in SearchRow()
3353 SvLBoxEntry* pEntry = (SvLBoxEntry*)pList->GetObject( nListPos ); in SearchRow() local
3354 const Rectangle& rRect = pView->GetBoundingRect( pEntry ); in SearchRow()
3356 return pEntry; in SearchRow()
3373 SvLBoxEntry* pEntry = (SvLBoxEntry*)(pList->GetObject( nCur )); in SearchRow() local
3374 if( pEntry != pCurEntry ) in SearchRow()
3376 SvIcnVwDataEntry* pViewData = ICNVIEWDATA2(pEntry); in SearchRow()
3380 const Rectangle& rRect = pView->GetBoundingRect( pEntry ); in SearchRow()
3387 pResult = pEntry; in SearchRow()
3451 SvLBoxEntry* pEntry = SearchCol((sal_uInt16)nCurCol,nRowMin,nRowMax,nY,sal_True, sal_False); in GoLeftRight() local
3452 if( pEntry ) in GoLeftRight()
3453 return pEntry; in GoLeftRight()
3501 SvLBoxEntry* pEntry = SearchRow((sal_uInt16)nCurRow,nColMin,nColMax,nX,sal_True, sal_False); in GoUpDown() local
3502 if( pEntry ) in GoUpDown()
3503 return pEntry; in GoUpDown()
3613 SvLBoxEntry* pEntry = pView->pModel->FirstChild( pView->pCurParent ); in CreateGridAjustData() local
3614 while( pEntry ) in CreateGridAjustData()
3616 const Rectangle& rRect = pView->GetBoundingRect( pEntry ); in CreateGridAjustData()
3619 ((SvPtrarr*)rLists[ nY ])->Insert( pEntry, nIns ); in CreateGridAjustData()
3620 pEntry = pView->pModel->NextSibling( pEntry ); in CreateGridAjustData()
3634 SvLBoxEntry* pEntry = pView->pModel->FirstChild( pView->pCurParent ); in CreateGridAjustData() local
3635 while( pEntry ) in CreateGridAjustData()
3637 Rectangle rRect( pView->CalcBmpRect(pEntry) ); in CreateGridAjustData()
3643 pRow->Insert( pEntry, nIns ); in CreateGridAjustData()
3645 pEntry = pView->pModel->NextSibling( pEntry ); in CreateGridAjustData()
3669 Rectangle SvImpIconView::CalcMaxTextRect( const SvLBoxEntry* pEntry, in CalcMaxTextRect() argument
3673 …long nBmpHeight = ((SvLBoxEntry*)pEntry)->GetFirstItem(SV_ITEM_ID_LBOXCONTEXTBMP)->GetSize(pView,(… in CalcMaxTextRect()
3684 if( GetTextMode( pEntry, pViewData ) == ShowTextFull ) in CalcMaxTextRect()
3689 void SvImpIconView::Center( SvLBoxEntry* pEntry, in Center() argument
3692 SvLBoxString* pStringItem = (SvLBoxString*)(pEntry->GetFirstItem(SV_ITEM_ID_LBOXSTRING)); in Center()
3695 Rectangle aTextRect = CalcMaxTextRect(pEntry,pViewData); in Center()
3700 Size aSize( CalcBoundingSize( pEntry, pViewData ) ); in Center()
3725 SvLBoxEntry* pEntry, SvLBoxItem* pItem, const SvIcnVwDataEntry* pViewData) const in GetItemSize() argument
3730 pViewData = ICNVIEWDATA(pEntry); in GetItemSize()
3734 return pItem->GetSize( pIconView, pEntry ); in GetItemSize()
3737 Rectangle SvImpIconView::CalcFocusRect( SvLBoxEntry* pEntry ) in CalcFocusRect() argument
3740 SvLBoxString* pStringItem = (SvLBoxString*)(pEntry->GetFirstItem(SV_ITEM_ID_LBOXSTRING)); in CalcFocusRect()
3742 return CalcTextRect( pEntry, pStringItem ); in CalcFocusRect()
3744 return CalcBmpRect( pEntry ); in CalcFocusRect()
3772 SvLBoxEntry* pEntry = (SvLBoxEntry*)(pZOrderList->GetObject(nPos )); in SelectRect() local
3774 SvIcnVwDataEntry* pViewData = ICNVIEWDATA(pEntry); in SelectRect()
3777 FindBoundingRect( pEntry, pViewData ); in SelectRect()
3793 pView->Select( pEntry, sal_True ); in SelectRect()
3800 pView->Select( pEntry, sal_False ); in SelectRect()
3820 pView->Select( pEntry, sal_False ); in SelectRect()
3826 pView->Select( pEntry, sal_True ); in SelectRect()
3832 pView->Select( pEntry, sal_False ); in SelectRect()
3966 sal_Bool SvImpIconView::IsTextHit( SvLBoxEntry* pEntry, const Point& rDocPos ) in IsTextHit() argument
3968 SvLBoxString* pItem = (SvLBoxString*)(pEntry->GetFirstItem(SV_ITEM_ID_LBOXSTRING)); in IsTextHit()
3971 Rectangle aRect( CalcTextRect( pEntry, pItem )); in IsTextHit()
3980 SvLBoxEntry* pEntry = GetCurEntry(); in IMPL_LINK() local
3981 if( pView->IsInplaceEditingEnabled() && pEntry && in IMPL_LINK()
3982 pView->IsSelected( pEntry )) in IMPL_LINK()
3984 pView->EditEntry( pEntry ); in IMPL_LINK()
4078 void SvImpIconView::SetTextMode( SvIconViewTextMode eMode, SvLBoxEntry* pEntry ) in SetTextMode() argument
4080 if( !pEntry ) in SetTextMode()
4092 SvIcnVwDataEntry* pViewData = ICNVIEWDATA(pEntry); in SetTextMode()
4096 pModel->InvalidateEntry( pEntry ); in SetTextMode()
4102 SvIconViewTextMode SvImpIconView::GetTextMode( const SvLBoxEntry* pEntry, in GetTextMode() argument
4105 if( !pEntry ) in GetTextMode()
4110 pViewData = ICNVIEWDATA(((SvLBoxEntry*)pEntry)); in GetTextMode()
4115 SvIconViewTextMode SvImpIconView::GetEntryTextModeSmart( const SvLBoxEntry* pEntry, in GetEntryTextModeSmart() argument
4118 DBG_ASSERT(pEntry,"GetEntryTextModeSmart: Entry not set"); in GetEntryTextModeSmart()
4120 pViewData = ICNVIEWDATA(((SvLBoxEntry*)pEntry)); in GetEntryTextModeSmart()
4127 void SvImpIconView::ShowFocusRect( const SvLBoxEntry* pEntry ) in ShowFocusRect() argument
4129 if( !pEntry ) in ShowFocusRect()
4133 Rectangle aRect ( CalcFocusRect( (SvLBoxEntry*)pEntry ) ); in ShowFocusRect()