Lines Matching refs:pView
67 pView = pLBView; in SvImpLBox()
160 DBG_ASSERT( pView->pModel, "View and Model aren't valid!" ); in UpdateContextBmpWidthVector()
162 sal_uInt16 nDepth = pView->pModel->GetDepth( pEntry ); in UpdateContextBmpWidthVector()
198 SvLBoxEntry* pChild = pView->FirstChild( pEntry ); in UpdateContextBmpWidthVectorFromMovedEntry()
203 pChild = pView->Next( pChild ); in UpdateContextBmpWidthVectorFromMovedEntry()
210 sal_uInt16 nDepth = pView->pModel->GetDepth( pEntry ); in UpdateContextBmpWidthMax()
214 if( nWidth != pView->nContextBmpWidthMax ) { in UpdateContextBmpWidthMax()
215 pView->nContextBmpWidthMax = nWidth; in UpdateContextBmpWidthMax()
217 pView->SetTabs(); in UpdateContextBmpWidthMax()
229 rRect.Left() = pView->GetTab( pCursor, pItem )->GetPos(); in CalcCellFocusRect()
234 long nRight = pView->GetTab( pCursor, pNextItem )->GetPos() - 1; in CalcCellFocusRect()
270 if( pView->HasFocus() ) in Clear()
271 pView->HideFocus(); in Clear()
278 aOutputSize = pView->Control::GetOutputSizePixel(); in Clear()
288 MapMode aMapMode( pView->GetMapMode()); in Clear()
290 pView->Control::SetMapMode( aMapMode ); in Clear()
293 pView->SetClipRegion(); in Clear()
295 pView->Invalidate( GetVisibleArea() ); in Clear()
336 if( pView->IsEditingActive() ) in IMPL_LINK_INLINE_END()
338 pView->EndEditing( sal_True ); // Cancel in IMPL_LINK_INLINE_END()
339 pView->Update(); in IMPL_LINK_INLINE_END()
365 SvLBoxEntry* pNextFirstToDraw = (SvLBoxEntry*)(pView->NextVisible( pStartEntry)); in CursorDown()
369 pView->NotifyScrolling( -1 ); in CursorDown()
371 pView->Update(); in CursorDown()
374 pView->Scroll( 0, -(pView->GetEntryHeight()), aArea, SCROLL_NOCHILDREN ); in CursorDown()
375 pView->Update(); in CursorDown()
377 pView->NotifyScrolled(); in CursorDown()
383 SvLBoxEntry* pPrevFirstToDraw = (SvLBoxEntry*)(pView->PrevVisible( pStartEntry)); in CursorUp()
387 long nEntryHeight = pView->GetEntryHeight(); in CursorUp()
388 pView->NotifyScrolling( 1 ); in CursorUp()
390 pView->Update(); in CursorUp()
394 pView->Scroll( 0, nEntryHeight, aArea, SCROLL_NOCHILDREN ); in CursorUp()
395 pView->Update(); in CursorUp()
397 pView->NotifyScrolled(); in CursorUp()
409 pNext = (SvLBoxEntry*)(pView->NextVisible( pStartEntry, nRealDelta )); in PageDown()
416 pView->Update(); in PageDown()
421 pView->Invalidate( GetVisibleArea() ); in PageDown()
422 pView->Update(); in PageDown()
427 pView->NotifyScrolling( nScroll ); in PageDown()
429 nScroll = pView->GetEntryHeight()*nRealDelta; in PageDown()
431 pView->Update(); in PageDown()
432 pView->Scroll( 0, nScroll, aArea, SCROLL_NOCHILDREN ); in PageDown()
433 pView->Update(); in PageDown()
434 pView->NotifyScrolled(); in PageDown()
446 SvLBoxEntry* pPrev = (SvLBoxEntry*)(pView->PrevVisible( pStartEntry, nRealDelta )); in PageUp()
453 pView->Update(); in PageUp()
457 pView->Invalidate( GetVisibleArea() ); in PageUp()
458 pView->Update(); in PageUp()
462 long nEntryHeight = pView->GetEntryHeight(); in PageUp()
463 pView->NotifyScrolling( (long)nRealDelta ); in PageUp()
465 pView->Update(); in PageUp()
466 pView->Scroll( 0, nEntryHeight*nRealDelta, aArea, SCROLL_NOCHILDREN ); in PageUp()
467 pView->Update(); in PageUp()
468 pView->NotifyScrolled(); in PageUp()
552 pView->Invalidate( aRect ); in InvalidateEntriesFrom()
563 aRect.Bottom() = nY; aRect.Bottom() += pView->GetEntryHeight(); in InvalidateEntry()
568 pView->Invalidate( aRect ); in InvalidateEntry()
584 if( pEntry==pCursor && pView->HasFocus() ) in InvalidateEntry()
598 if( pView->HasFocus() && pCursor ) in RecalcFocusRect()
600 pView->HideFocus(); in RecalcFocusRect()
602 Rectangle aRect = pView->GetFocusRect( pCursor, nY ); in RecalcFocusRect()
604 Region aOldClip( pView->GetClipRegion()); in RecalcFocusRect()
606 pView->SetClipRegion( aClipRegion ); in RecalcFocusRect()
607 pView->ShowFocus( aRect ); in RecalcFocusRect()
608 pView->SetClipRegion( aOldClip ); in RecalcFocusRect()
620 pViewDataNewCur= pView->GetViewDataEntry(pEntry); in SetCursor()
632 pEntry = (SvLBoxEntry*)(pView->NextVisible( pEntry )); in SetCursor()
633 pViewDataNewCur = pEntry ? pView->GetViewDataEntry(pEntry) : 0; in SetCursor()
639 pView->SetEntryFocus( pCursor, sal_False ); in SetCursor()
641 pView->Select( pCursor, sal_False ); in SetCursor()
642 pView->HideFocus(); in SetCursor()
650 pView->Select( pCursor, sal_True ); in SetCursor()
656 pView->GetSelectionMode() == MULTIPLE_SELECTION && in SetCursor()
660 pView->Select( pCursor, sal_True ); in SetCursor()
680 pView->OnCurrentEntryChanged(); in SetCursor()
685 if( !bShow || !pCursor || !pView->HasFocus() ) in ShowCursor()
687 Region aOldClip( pView->GetClipRegion()); in ShowCursor()
689 pView->SetClipRegion( aClipRegion ); in ShowCursor()
690 pView->HideFocus(); in ShowCursor()
691 pView->SetClipRegion( aOldClip ); in ShowCursor()
696 Rectangle aRect = pView->GetFocusRect( pCursor, nY ); in ShowCursor()
698 Region aOldClip( pView->GetClipRegion()); in ShowCursor()
700 pView->SetClipRegion( aClipRegion ); in ShowCursor()
701 pView->ShowFocus( aRect ); in ShowCursor()
702 pView->SetClipRegion( aOldClip ); in ShowCursor()
713 aVerSBar.SetRange( Range(0, pView->GetVisibleCount()-1 ) ); in UpdateAll()
717 if( bSimpleTravel && pCursor && pView->HasFocus() ) in UpdateAll()
718 pView->Select( pCursor, sal_True ); in UpdateAll()
721 pView->Invalidate(); in UpdateAll()
723 pView->Invalidate( GetVisibleArea() ); in UpdateAll()
731 if( pView->IsEditingActive() ) in IMPL_LINK_INLINE_START()
733 pView->EndEditing( sal_True ); // Cancel in IMPL_LINK_INLINE_START()
734 pView->Update(); in IMPL_LINK_INLINE_START()
736 pView->nFocusWidth = -1; in IMPL_LINK_INLINE_START()
746 pView->Update(); in IMPL_LINK_INLINE_END()
749 pView->NotifyScrolling( 0 ); // 0 == horizontales Scrolling in IMPL_LINK_INLINE_END()
756 MapMode aMapMode( pView->GetMapMode() ); in IMPL_LINK_INLINE_END()
758 pView->SetMapMode( aMapMode ); in IMPL_LINK_INLINE_END()
763 pView->Scroll( -nDelta, 0, aRect, SCROLL_NOCHILDREN ); in IMPL_LINK_INLINE_END()
766 pView->Invalidate(); in IMPL_LINK_INLINE_END()
769 pView->NotifyScrolled(); in IMPL_LINK_INLINE_END()
777 …DBG_ASSERT( pView->GetModel(), "SvImpLBox::GetClickedEntry: how can this ever happen? Please tell … in GetClickedEntry()
778 if ( !pView->GetModel() ) in GetClickedEntry()
784 if( pView->GetEntryCount() == 0 || !pStartEntry || !pView->GetEntryHeight()) in GetClickedEntry()
787 sal_uInt16 nClickedEntry = (sal_uInt16)(rPoint.Y() / pView->GetEntryHeight() ); in GetClickedEntry()
789 SvLBoxEntry* pEntry = (SvLBoxEntry*)(pView->NextVisible( pStartEntry, nTemp )); in GetClickedEntry()
805 Rectangle aRect( pView->GetFocusRect( pEntry, nLine )); in EntryReallyHit()
806 aRect.Right() = GetOutputSize().Width() - pView->GetMapMode().GetOrigin().X(); in EntryReallyHit()
807 if( pView->IsA() == SV_LISTBOX_ID_TREEBOX ) in EntryReallyHit()
810 aRect.Left() -= pBmp->GetSize(pView,pEntry).Width(); in EntryReallyHit()
814 aPos -= pView->GetMapMode().GetOrigin(); in EntryReallyHit()
826 if( (pView->GetEntryCount() == 0) || !pStartEntry || in GetEntry()
828 || !pView->GetEntryHeight()) in GetEntry()
831 sal_uInt16 nClickedEntry = (sal_uInt16)(rPoint.Y() / pView->GetEntryHeight() ); in GetEntry()
833 SvLBoxEntry* pEntry = (SvLBoxEntry*)(pView->NextVisible( pStartEntry, nTemp )); in GetEntry()
850 pEntry = (SvLBoxEntry*)(pView->PrevVisible( pCursor )); in MakePointVisible()
852 pEntry = (SvLBoxEntry*)(pView->NextVisible( pCursor )); in MakePointVisible()
855 pView->SetEntryFocus( pCursor, sal_False ); in MakePointVisible()
869 pEntry = (SvLBoxEntry*)(pView->NextVisible( pStartEntry, nSteps )); in MakePointVisible()
876 pView->Select( pCursor, sal_False ); in MakePointVisible()
884 Point aOrigin( pView->GetMapMode().GetOrigin() ); in GetClipRegionRect()
894 if( !pView->GetVisibleCount() ) in Paint()
901 SvLBoxEntry* pFirst = pView->First(); in Paint()
905 pStartEntry = pView->First(); in Paint()
916 pStartEntry = pView->First(); in Paint()
921 sal_uLong nXVisPos = pView->GetVisiblePos( pStartEntry ); in Paint()
931 long nEntryHeight = pView->GetEntryHeight(); in Paint()
942 pEntry = (SvLBoxEntry*)(pView->NextVisible( pEntry )); in Paint()
949 pView->SetClipRegion(); in Paint()
953 pView->SetClipRegion( aClipRegion ); in Paint()
958 pView->PaintEntry1( pEntry, nY, 0xffff, sal_True ); in Paint()
960 pEntry = (SvLBoxEntry*)(pView->NextVisible( pEntry )); in Paint()
972 pView->SetClipRegion(); in Paint()
996 if( !pView->IsEntryVisible(pEntry) ) // Parent(s) zugeklappt ? in MakeVisible()
998 SvLBoxEntry* pParent = pView->GetParent( pEntry ); in MakeVisible()
1001 if( !pView->IsExpanded( pParent ) ) in MakeVisible()
1006 pView->Expand( pParent ); in MakeVisible()
1009 pParent = pView->GetParent( pParent ); in MakeVisible()
1020 aVerSBar.SetThumbPos( (long)(pView->GetVisiblePos( pStartEntry )) ); in MakeVisible()
1022 pView->Invalidate(); in MakeVisible()
1028 if( !pView->GetVisibleCount() ) in RepaintSelectionItems()
1032 pStartEntry = pView->First(); in RepaintSelectionItems()
1039 long nEntryHeight = pView->GetEntryHeight(); in RepaintSelectionItems()
1046 pView->PaintEntry1( pEntry, nY, 0xffff ); //wg. ItemsetBrowser SV_LBOXTAB_SHOW_SELECTION ); in RepaintSelectionItems()
1048 pEntry = (SvLBoxEntry*)(pView->NextVisible( pEntry )); in RepaintSelectionItems()
1057 if( pView->GetVisibleCount() < 2 && !pStartEntry->HasChildsOnDemand() && in DrawNet()
1063 if(pView->IsNativeControlSupported( CTRL_LISTNET, PART_ENTIRE_CONTROL)) { in DrawNet()
1068 if( pView->DrawNativeControl( CTRL_LISTNET, PART_ENTIRE_CONTROL, in DrawNet()
1076 long nEntryHeight = pView->GetEntryHeight(); in DrawNet()
1084 SvLBoxTab* pFirstDynamicTab = pView->GetFirstDynamicTab(); in DrawNet()
1086 pEntry = pView->GetParent( pEntry ); in DrawNet()
1087 sal_uInt16 nOffs = (sal_uInt16)(pView->GetVisiblePos( pStartEntry ) - in DrawNet()
1088 pView->GetVisiblePos( pEntry )); in DrawNet()
1094 Color aOldLineColor = pView->GetLineColor(); in DrawNet()
1095 const StyleSettings& rStyleSettings = pView->GetSettings().GetStyleSettings(); in DrawNet()
1098 if( aCol.IsRGBEqual( pView->GetBackground().GetColor()) ) in DrawNet()
1100 pView->SetLineColor( aCol ); in DrawNet()
1109 if( pView->IsExpanded(pEntry) ) in DrawNet()
1111 aPos1.X() = pView->GetTabPos(pEntry, pFirstDynamicTab); in DrawNet()
1114 if( !pView->nContextBmpWidthMax ) in DrawNet()
1120 pChild = pView->FirstChild( pEntry ); in DrawNet()
1123 nDistance = (sal_uInt16)(pView->GetVisiblePos(pChild) - in DrawNet()
1124 pView->GetVisiblePos(pEntry)); in DrawNet()
1127 pView->DrawLine( aPos1, aPos2 ); in DrawNet()
1133 if( !pView->IsExpanded(pEntry) ) in DrawNet()
1136 aPos1.X() = pView->GetTabPos(pEntry, pFirstDynamicTab); in DrawNet()
1139 if( !pView->nContextBmpWidthMax ) in DrawNet()
1146 aPos2.X() -= pView->GetIndent(); in DrawNet()
1147 pView->DrawLine( aPos1, aPos2 ); in DrawNet()
1150 pEntry = (SvLBoxEntry*)(pView->NextVisible( pEntry )); in DrawNet()
1154 pEntry = pView->First(); in DrawNet()
1155 aPos1.X() = pView->GetTabPos( pEntry, pFirstDynamicTab); in DrawNet()
1158 if( !pView->nContextBmpWidthMax ) in DrawNet()
1160 aPos1.X() -= pView->GetIndent(); in DrawNet()
1167 pView->DrawLine( aPos1, aPos2 ); in DrawNet()
1169 pView->SetLineColor( aOldLineColor ); in DrawNet()
1238 long nEntryHeight = pView->GetEntryHeight(); in AdjustScrollBars()
1244 Size aOSize( pView->Control::GetOutputSizePixel() ); in AdjustScrollBars()
1246 const WinBits nWindowStyle = pView->GetStyle(); in AdjustScrollBars()
1250 Point aOrigin( pView->GetMapMode().GetOrigin() ); in AdjustScrollBars()
1260 sal_uLong nTotalCount = pView->GetVisibleCount(); in AdjustScrollBars()
1336 if( pView->IsEditingActive() ) in AdjustScrollBars()
1338 pView->EndEditing( sal_True ); // Cancel in AdjustScrollBars()
1339 pView->Update(); in AdjustScrollBars()
1341 pView->nFocusWidth = -1; in AdjustScrollBars()
1364 Size aSize( pView->Control::GetOutputSizePixel() ); in InitScrollBarBox()
1370 Size aSize( pView->Control::GetOutputSizePixel()); in Resize()
1376 if( pView->GetEntryHeight()) in Resize()
1394 sal_uInt16 nVisibleViewCount = (sal_uInt16)(pView->GetVisibleCount()); in FillView()
1398 pStartEntry = (SvLBoxEntry*)(pView->GetEntryAtVisPos(nTempThumb)); in FillView()
1402 sal_uInt16 nLast = (sal_uInt16)(pView->GetVisiblePos( (SvLBoxEntry*)(pView->LastVisible()))); in FillView()
1403 sal_uInt16 nThumb = (sal_uInt16)(pView->GetVisiblePos( pStartEntry )); in FillView()
1414 pTemp = (SvLBoxEntry*)(pView->PrevVisible(pStartEntry)); in FillView()
1427 pView->Invalidate(); in FillView()
1438 sal_Bool bVerBar = ( pView->GetStyle() & WB_VSCROLL ) != 0; in ShowVerSBar()
1441 nVis = pView->GetVisibleCount(); in ShowVerSBar()
1446 pView->nFocusWidth = -1; in ShowVerSBar()
1456 pView->nFocusWidth = -1; in ShowVerSBar()
1462 Point aPos( pView->GetMapMode().GetOrigin() ); in ShowVerSBar()
1469 pView->nFocusWidth = -1; in ShowVerSBar()
1484 pView->nFocusWidth = -1; in ShowVerSBar()
1493 pView->nFocusWidth = -1; in ShowVerSBar()
1504 long nEntryPos = pView->GetVisiblePos( pStartEntry ); in SyncVerThumb()
1514 if( !pView->IsEntryVisible(pEntry) ) in IsEntryInView()
1519 long nMax = nVisibleCount * pView->GetEntryHeight(); in IsEntryInView()
1531 long nFirstVisPos = pView->GetVisiblePos( pStartEntry ); in GetEntryLine()
1532 long nEntryVisPos = pView->GetVisiblePos( pEntry ); in GetEntryLine()
1534 nFirstVisPos *= pView->GetEntryHeight(); in GetEntryLine()
1542 if(!pView->HasViewData()) // stehen wir im Clear? in SetEntryHeight()
1544 Size aSize = pView->Control::GetOutputSizePixel(); in SetEntryHeight()
1551 pView->Invalidate(); in SetEntryHeight()
1575 aVerSBar.SetRange( Range(0, pView->GetVisibleCount()-1 ) ); in EntryExpanded()
1586 if( !pView->IsEntryVisible( pEntry ) ) in EntryCollapsed()
1599 sal_uLong nVisList = pView->GetVisibleCount(); in EntryCollapsed()
1604 pStartEntry = pView->First(); in EntryCollapsed()
1607 pStartEntry = (SvLBoxEntry*)(pView->NextVisible( pStartEntry, in EntryCollapsed()
1610 pView->Invalidate(); in EntryCollapsed()
1623 pView->Select( pCursor, sal_True ); in EntryCollapsed()
1628 if( !pView->IsEntryVisible( pEntry ) || !pStartEntry ) in CollapsingEntry()
1646 pView->Invalidate(); in CollapsingEntry()
1655 nYoffsNodeBmp = pView->GetHeightOffset( rBmp, aSize ); in SetNodeBmpYOffset()
1661 nNodeBmpTabDistance = -pView->GetIndent(); in SetNodeBmpTabDistance()
1662 if( pView->nContextBmpWidthMax ) in SetNodeBmpTabDistance()
1693 DBG_ASSERT(pView->GetSelectionCount()==1,"selection count?"); in EntrySelected()
1696 if( GetUpdateMode() && pView->IsEntryVisible(pEntry) ) in EntrySelected()
1702 pView->PaintEntry1( pEntry, nY, 0xffff ); // wg. ItemsetBrowser SV_LBOXTAB_SHOW_SELECTION ); in EntrySelected()
1715 if( !pView->IsEntryVisible( pEntry ) ) in RemovingEntry()
1723 pEntry->HasChilds() && pView->IsExpanded(pEntry) && in RemovingEntry()
1731 SvLBoxEntry* pParent = (SvLBoxEntry*)(pView->GetModel()->GetParent(pEntry)); in RemovingEntry()
1733 if( pParent && pView->GetModel()->GetChildList(pParent)->Count() == 1 ) in RemovingEntry()
1735 DBG_ASSERT( pView->IsExpanded( pParent ), "Parent not expanded"); in RemovingEntry()
1749 pView->Select( pCursor, sal_False ); in RemovingEntry()
1752 pTemp = pView->NextSibling( pCursor ); in RemovingEntry()
1754 pTemp = (SvLBoxEntry*)(pView->PrevVisible( pCursor )); in RemovingEntry()
1760 pTemp = pView->NextSibling( pStartEntry ); in RemovingEntry()
1762 pTemp = (SvLBoxEntry*)(pView->PrevVisible( pStartEntry )); in RemovingEntry()
1769 …if( pStartEntry && (pStartEntry != pOldStartEntry || pEntry == (SvLBoxEntry*)pView->GetModel()->La… in RemovingEntry()
1771 aVerSBar.SetThumbPos( pView->GetVisiblePos( pStartEntry )); in RemovingEntry()
1772 pView->Invalidate( GetVisibleArea() ); in RemovingEntry()
1791 if( pCursor && (bSimpleTravel || !pView->GetSelectionCount() )) in EntryRemoved()
1792 pView->Select( pCursor, sal_True ); in EntryRemoved()
1798 aVerSBar.SetRange( Range(0, pView->GetVisibleCount()-1 ) ); in EntryRemoved()
1802 aVerSBar.SetThumbPos( pView->GetVisiblePos( pStartEntry) ); in EntryRemoved()
1805 if( pCursor && pView->HasFocus() && !pView->IsSelected(pCursor) ) in EntryRemoved()
1807 if( pView->GetSelectionCount() ) in EntryRemoved()
1810 SvLBoxEntry* pNextCursor = (SvLBoxEntry*)pView->PrevVisible( pCursor ); in EntryRemoved()
1811 if( !pNextCursor || !pView->IsSelected( pNextCursor )) in EntryRemoved()
1812 pNextCursor = (SvLBoxEntry*)pView->NextVisible( pCursor ); in EntryRemoved()
1813 if( !pNextCursor || !pView->IsSelected( pNextCursor )) in EntryRemoved()
1815 pNextCursor = pView->FirstSelected(); in EntryRemoved()
1820 pView->Select( pCursor, sal_True ); in EntryRemoved()
1838 pView->Invalidate(); in MovingEntry()
1844 pNew = (SvLBoxEntry*)(pView->NextVisible( pStartEntry )); in MovingEntry()
1846 pNew = (SvLBoxEntry*)(pView->PrevVisible( pStartEntry )); in MovingEntry()
1866 pStartEntry = pView->First(); in EntryMoved()
1868 aVerSBar.SetRange( Range(0, pView->GetVisibleCount()-1)); in EntryMoved()
1878 if( pView->IsEntryVisible( pCursor ) ) in EntryMoved()
1886 while( !pView->IsEntryVisible( pParent ) ); in EntryMoved()
1891 pView->Invalidate(); in EntryMoved()
1905 if( !pView->IsEntryVisible( pEntry ) ) in EntryInserted()
1919 nY -= pView->GetEntryHeight(); // wg. Linien in EntryInserted()
1927 sal_uInt16 nLast = (sal_uInt16)(pView->GetVisiblePos( (SvLBoxEntry*)(pView->LastVisible()))); in EntryInserted()
1928 sal_uInt16 nThumb = (sal_uInt16)(pView->GetVisiblePos( pStartEntry )); in EntryInserted()
1935 pView->Invalidate(); in EntryInserted()
1939 pView->Invalidate(); in EntryInserted()
1959 aVerSBar.SetRange( Range(0, pView->GetVisibleCount()-1)); in EntryInserted()
1963 if( pStartEntry != pView->First() && (nFlags & F_FILLING) ) in EntryInserted()
1964 pView->Update(); in EntryInserted()
1980 SvLBoxItem* pItem = pView->GetItem(pEntry,rMEvt.GetPosPixel().X(),&pActiveTab); in ButtonDownCheckCtrl()
1986 pView->HideFocus(); in ButtonDownCheckCtrl()
1987 pView->CaptureMouse(); in ButtonDownCheckCtrl()
1989 pView->PaintEntry1( pActiveEntry, nY, in ButtonDownCheckCtrl()
2006 pView->GetItem(pActiveEntry, nMouseX) == pActiveButton ) in MouseMoveCheckCtrl()
2012 pView->PaintEntry1( pActiveEntry, nY, in MouseMoveCheckCtrl()
2023 pView->PaintEntry1( pActiveEntry, nY, SV_LBOXTAB_PUSHABLE ); in MouseMoveCheckCtrl()
2035 pView->ReleaseMouse(); in ButtonUpCheckCtrl()
2041 pView->GetItem( pActiveEntry, nMouseX ) == pActiveButton ) in ButtonUpCheckCtrl()
2042 pActiveButton->ClickHdl( pView, pActiveEntry ); in ButtonUpCheckCtrl()
2043 pView->PaintEntry1( pActiveEntry, nY, in ButtonUpCheckCtrl()
2064 SvLBoxTab* pFirstDynamicTab = pView->GetFirstDynamicTab(); in IsNodeButton()
2070 Point aOrigin( pView->GetMapMode().GetOrigin() ); in IsNodeButton()
2073 long nX = pView->GetTabPos( pEntry, pFirstDynamicTab); in IsNodeButton()
2088 if ( pView->IsEditingActive() && pEntry == pView->pEdEntry ) in ButtonDownCheckExpand()
2093 if ( pView->IsExpanded( pEntry ) ) in ButtonDownCheckExpand()
2095 pView->EndEditing( sal_True ); in ButtonDownCheckExpand()
2096 pView->Collapse( pEntry ); in ButtonDownCheckExpand()
2101 pView->Expand( pEntry ); in ButtonDownCheckExpand()
2130 pView->GrabFocus(); in MouseButtonDown()
2132 if( !pEntry || !pView->GetViewData( pEntry )) in MouseButtonDown()
2143 SvLBoxItem* pXItem = pView->GetItem( pEntry, aPos.X() ); in MouseButtonDown()
2146 SvLBoxTab* pXTab = pView->GetTab( pEntry, pXItem ); in MouseButtonDown()
2148 && pEntry == pView->FirstSelected() && NULL == pView->NextSelected( pEntry ) ) in MouseButtonDown()
2151 if ( !pView->IsSelected( pEntry ) ) in MouseButtonDown()
2159 pView->pHdlEntry = pEntry; in MouseButtonDown()
2160 if( pView->DoubleClickHdl() ) in MouseButtonDown()
2166 if( pEntry != pView->pHdlEntry ) in MouseButtonDown()
2177 if( pView->IsExpanded(pEntry) ) in MouseButtonDown()
2178 pView->Collapse( pEntry ); in MouseButtonDown()
2180 pView->Expand( pEntry ); in MouseButtonDown()
2183 pView->Select( pCursor, sal_True ); in MouseButtonDown()
2195 if( rMEvt.IsMod2() && pView->IsInplaceEditingEnabled() ) in MouseButtonDown()
2197 SvLBoxItem* pItem = pView->GetItem( pEntry, aPos.X() ); in MouseButtonDown()
2199 pView->EditingRequest( pEntry, pItem, aPos ); in MouseButtonDown()
2266 const WinBits nWindowStyle = pView->GetStyle(); in KeyInput()
2276 pNewCursor = (SvLBoxEntry*)(pView->PrevVisible( pNewCursor )); in KeyInput()
2305 pNewCursor = (SvLBoxEntry*)(pView->NextVisible( pNewCursor )); in KeyInput()
2327 pView->Select( pCursor, sal_False ); in KeyInput()
2340 pView->Expand( pCursor ); in KeyInput()
2343 if ( nCurTabPos < ( pView->TabCount() - 1 /*!2*/ ) ) in KeyInput()
2397 if( IsExpandable() && pView->IsExpanded( pCursor ) ) in KeyInput()
2398 pView->Collapse( pCursor ); in KeyInput()
2401 pNewCursor = pView->GetParent( pCursor ); in KeyInput()
2408 pView->Collapse( pCursor ); in KeyInput()
2417 pNewCursor = (SvLBoxEntry*)(pView->PrevVisible( pCursor, nDelta )); in KeyInput()
2421 pNewCursor = (SvLBoxEntry*)(pView->NextVisible( pNewCursor )); in KeyInput()
2445 pNewCursor= (SvLBoxEntry*)(pView->NextVisible( pCursor, nDelta )); in KeyInput()
2449 pNewCursor = (SvLBoxEntry*)(pView->PrevVisible( pNewCursor )); in KeyInput()
2473 if ( pView->GetSelectionMode() != NO_SELECTION ) in KeyInput()
2477 if ( pView->GetSelectionMode() == MULTIPLE_SELECTION && !bShift ) in KeyInput()
2479 pView->Select( pCursor, !pView->IsSelected( pCursor ) ); in KeyInput()
2486 pView->Select( pCursor, !pView->IsSelected( pCursor ) ); in KeyInput()
2488 else if ( !pView->IsSelected( pCursor ) ) in KeyInput()
2491 pView->Select( pCursor, sal_True ); in KeyInput()
2506 if( pView->IsExpanded( pCursor ) ) in KeyInput()
2507 pView->Collapse( pCursor ); in KeyInput()
2509 pView->Expand( pCursor ); in KeyInput()
2526 if( bShift && pView->GetSelectionMode()==MULTIPLE_SELECTION && in KeyInput()
2544 pView->RemoveSelection(); in KeyInput()
2547 pView->RemoveEntry( pCursor ); in KeyInput()
2554 if( !pView->IsExpanded(pCursor)) in KeyInput()
2555 pView->Expand( pCursor ); in KeyInput()
2562 if( pCur->HasChilds() && !pView->IsExpanded(pCur)) in KeyInput()
2563 pView->Expand( pCur ); in KeyInput()
2582 if( pView->IsExpanded(pCursor)) in KeyInput()
2583 pView->Collapse( pCursor ); in KeyInput()
2607 if( pView->IsExpanded(pParentToCollapse) ) in KeyInput()
2608 pView->Collapse( pParentToCollapse ); in KeyInput()
2612 if( pCur->HasChilds() && pView->IsExpanded(pCur) ) in KeyInput()
2613 pView->Collapse( pCur ); in KeyInput()
2638 pNewCursor = pView->GetModel()->First(); in KeyInput()
2642 pNewCursor = (SvLBoxEntry*)(pView->NextVisible( pNewCursor )); in KeyInput()
2658 pNewCursor = pView->GetModel()->Last(); in KeyInput()
2662 pNewCursor = (SvLBoxEntry*)(pView->PrevVisible( pNewCursor )); in KeyInput()
2704 pView->SetEntryFocus( pCursor, sal_True ); in GetFocus()
2712 SvLBoxEntry* pEntry = pView->FirstSelected(); in GetFocus()
2716 pEntry = pView->NextSelected( pEntry ); in GetFocus()
2740 pView->SetEntryFocus( pCursor,sal_False ); in LoseFocus()
2745 SvLBoxEntry* pEntry = pView->FirstSelected(); in LoseFocus()
2751 pEntry = pView->NextSelected( pEntry ); in LoseFocus()
2763 pView->Select( pEntry, bSelect ); in SelectEntry()
2771 pView = pV; in ImpLBSelEng()
2829 return pView->IsSelected(pEntry); in IsSelectionAtPoint()
2864 sal_uLong nAnchorVisPos = pView->GetVisiblePos( pAnchor ); in SetAnchorSelection()
2865 sal_uLong nOldVisPos = pView->GetVisiblePos( pOldCursor ); in SetAnchorSelection()
2866 sal_uLong nNewVisPos = pView->GetVisiblePos( pNewCursor ); in SetAnchorSelection()
2876 pView->Select( pEntry, sal_True ); in SetAnchorSelection()
2877 pEntry = (SvLBoxEntry*)(pView->NextVisible( pEntry )); in SetAnchorSelection()
2880 pView->Select( pEntry, sal_True ); in SetAnchorSelection()
2889 pView->Select( pEntry, sal_False ); in SetAnchorSelection()
2890 pEntry = (SvLBoxEntry*)(pView->NextVisible( pEntry )); in SetAnchorSelection()
2893 pView->Select( pEntry, sal_False ); in SetAnchorSelection()
2898 pView->Select( pEntry, sal_True ); in SetAnchorSelection()
2899 pEntry = (SvLBoxEntry*)(pView->NextVisible( pEntry )); in SetAnchorSelection()
2902 pView->Select( pEntry, sal_True ); in SetAnchorSelection()
2909 pEntry = (SvLBoxEntry*)(pView->NextVisible( pEntry )); in SetAnchorSelection()
2912 pView->Select( pEntry, sal_False ); in SetAnchorSelection()
2913 pEntry = (SvLBoxEntry*)(pView->NextVisible( pEntry )); in SetAnchorSelection()
2916 pView->Select( pEntry, sal_False ); in SetAnchorSelection()
2927 pView->Select( pEntry, sal_True ); in SetAnchorSelection()
2928 pEntry = (SvLBoxEntry*)(pView->NextVisible( pEntry )); in SetAnchorSelection()
2931 pView->Select( pEntry, sal_True ); in SetAnchorSelection()
2940 pView->Select( pEntry, sal_False ); in SetAnchorSelection()
2941 pEntry = (SvLBoxEntry*)(pView->NextVisible( pEntry )); in SetAnchorSelection()
2944 pView->Select( pEntry, sal_False ); in SetAnchorSelection()
2948 pView->Select( pEntry, sal_True ); in SetAnchorSelection()
2949 pEntry = (SvLBoxEntry*)(pView->NextVisible( pEntry )); in SetAnchorSelection()
2952 pView->Select( pEntry, sal_True ); in SetAnchorSelection()
2961 pView->Select( pEntry, sal_False ); in SetAnchorSelection()
2962 pEntry = (SvLBoxEntry*)(pView->NextVisible( pEntry )); in SetAnchorSelection()
2976 if( pCursor && !pView->IsSelected( pCursor )) in SelAllDestrAnch()
2978 pView->Select( pCursor, sal_True ); in SelAllDestrAnch()
2982 if( !bSelect && pView->GetSelectionCount() == 0 ) in SelAllDestrAnch()
2988 if( bSelect && pView->GetSelectionCount() == pView->GetEntryCount()) in SelAllDestrAnch()
2993 if( !bSelect && pView->GetSelectionCount()==1 && pCursor && in SelAllDestrAnch()
2994 pView->IsSelected( pCursor )) in SelAllDestrAnch()
2996 pView->Select( pCursor, sal_False ); in SelAllDestrAnch()
3014 if( pView->Select( pEntry, bSelect ) ) in SelAllDestrAnch()
3016 if( bUpdate && pView->IsEntryVisible(pEntry) ) in SelAllDestrAnch()
3020 pView->PaintEntry1( pEntry, nY, 0xffff ); // wg. ItemsetBrowser SV_LBOXTAB_SHOW_SELECTION ); in SelAllDestrAnch()
3069 pView->StartDrag( 0, aSelEng.GetMousePosPixel() ); in BeginDrag()
3081 pView->StartDrag( 0, aAsyncBeginDragPos ); in IMPL_LINK()
3091 nY += pView->GetEntryHeight(); in PaintDDCursor()
3095 RasterOp eOldOp = pView->GetRasterOp(); in PaintDDCursor()
3096 pView->SetRasterOp( ROP_INVERT ); in PaintDDCursor()
3097 Color aOldLineColor = pView->GetLineColor(); in PaintDDCursor()
3098 pView->SetLineColor( Color( COL_BLACK ) ); in PaintDDCursor()
3099 pView->DrawLine( Point( 0, nY ), Point( aOutputSize.Width(), nY ) ); in PaintDDCursor()
3100 pView->SetLineColor( aOldLineColor ); in PaintDDCursor()
3101 pView->SetRasterOp( eOldOp ); in PaintDDCursor()
3128 && pView->HandleScrollCommand( rCEvt, &aHorSBar, &aVerSBar ) ) in Command()
3148 SvLBoxEntry* pSelected = pView->FirstSelected(); in Command()
3152 pSelected = pView->NextSelected( pSelected ); in Command()
3158 pView->SelectAll( sal_False ); in Command()
3159 pView->SetCursor( pClickedEntry ); in Command()
3165 sal_Int32 nSelectedEntries = pView->GetSelectionCount(); in Command()
3166 SvLBoxEntry* pSelected = pView->FirstSelected(); in Command()
3170 pSelected = pView->NextSelected( pSelected ); in Command()
3172 pView->SelectAll( sal_False ); in Command()
3176 pView->SelectAll( sal_False ); in Command()
3183 sal_Int32 nSelectionCount = pView->GetSelectionCount(); in Command()
3187 SvLBoxEntry* pSelected = pView->FirstSelected(); in Command()
3193 pSelected = pView->NextSelected( pSelected ); in Command()
3199 pSelected = pView->FirstSelected(); in Command()
3200 pView->MakeVisible( pSelected ); in Command()
3203 aPopupPos = pView->GetFocusRect( pSelected, pView->GetEntryPosition( pSelected ).Y() ).Center(); in Command()
3209 PopupMenu* pPopup = pView->CreateContextMenu(); in Command()
3214 sal_uInt16 nMenuAction = pPopup->Execute( pView, aPopupPos ); in Command()
3216 pView->ExcecuteContextMenuAction( nMenuAction ); in Command()
3228 for(sal_uLong nEntry = 0; nEntry < pView->GetEntryCount(); nEntry++) in Command()
3229 if(pEntry == pView->GetEntry(nEntry)) in Command()
3254 pView->NotifyBeginScroll(); in BeginScroll()
3263 pView->NotifyEndScroll(); in EndScroll()
3271 Point aPos( pView->GetMapMode().GetOrigin() ); in GetVisibleArea()
3279 pView->SetClipRegion(); in Invalidate()
3292 pView->Select( pEntry, sal_True ); in SetCurEntry()
3297 if( pView->IsInplaceEditingEnabled() ) in IMPL_LINK()
3302 Point aCurrentMousePos = pView->GetPointerPosPixel(); in IMPL_LINK()
3315 pView->ImplEditEntry( pEntry ); in IMPL_LINK()
3326 Point aPos( pView->ScreenToOutputPixel( rHEvt.GetMousePosPixel() )); in RequestHelp()
3335 SvLBoxString* pItem = (SvLBoxString*)(pView->GetItem( pEntry, aPos.X(), &pTab )); in RequestHelp()
3340 aPos.X() = pView->GetTabPos( pEntry, pTab ); //pTab->GetPos(); in RequestHelp()
3341 Size aSize( pItem->GetSize( pView, pEntry ) ); in RequestHelp()
3345 if( pNextTab && pView->GetTabPos(pEntry,pNextTab) < aPos.X()+aSize.Width() ) in RequestHelp()
3360 Point aPt = pView->OutputToScreenPixel( aItemRect.TopLeft() ); in RequestHelp()
3363 aPt = pView->OutputToScreenPixel( aItemRect.BottomRight() ); in RequestHelp()
3367 Help::ShowQuickHelp( pView, aItemRect, in RequestHelp()
3378 sal_uInt16 nTabCount = pView->TabCount(); in NextTab()
3383 if( pView->aTabs[nTab]==pTab ) in NextTab()
3384 return (SvLBoxTab*)(pView->aTabs[nTab+1]); in NextTab()
3422 if( pView->nTreeFlags & TREEFLAG_RECALCTABS ) in SetMostRight()
3425 pView->SetTabs(); in SetMostRight()
3429 sal_uInt16 nLastTab = pView->aTabs.Count() - 1; in SetMostRight()
3436 SvLBoxTab* pTab = (SvLBoxTab*)pView->aTabs[ nLastTab ]; in SetMostRight()
3439 long nTabPos = pView->GetTabPos( pEntry, pTab ); in SetMostRight()
3442 Point aPos( pView->GetMapMode().GetOrigin() ); in SetMostRight()
3448 long nItemSize = pItem->GetSize(pView,pEntry).Width(); in SetMostRight()
3466 if( !pView->GetModel() ) in FindMostRight()
3469 SvLBoxEntry* pEntry = (SvLBoxEntry*)pView->FirstVisible(); in FindMostRight()
3474 pEntry = (SvLBoxEntry*)pView->NextVisible( pEntry ); in FindMostRight()
3500 if( pChild->HasChilds() && pView->IsExpanded( pChild )) in FindMostRight_Impl()
3520 pView->Invalidate(); in IMPL_LINK()
3521 pView->Update(); in IMPL_LINK()
3527 pView->Invalidate( GetVisibleArea() ); in IMPL_LINK()
3547 Rectangle aRect = pView->GetFocusRect( (SvLBoxEntry*)pEntry, nY ); in ShowFocusRect()
3548 Region aOldClip( pView->GetClipRegion()); in ShowFocusRect()
3550 pView->SetClipRegion( aClipRegion ); in ShowFocusRect()
3551 pView->ShowFocus( aRect ); in ShowFocusRect()
3552 pView->SetClipRegion( aOldClip ); in ShowFocusRect()
3557 pView->HideFocus(); in ShowFocusRect()
3603 if ( pView ) in CallEventListeners()
3604 pView->CallImplEventListeners( nEvent, pData); in CallEventListeners()
3613 if ( pView && _nNewPos < ( pView->TabCount() - 2 ) ) in SetCurrentTabPos()
3629 SvViewDataEntry* pViewDataNewCur = pView->GetViewDataEntry(const_cast<SvLBoxEntry*>(pEntry)); in IsSelectable()