Lines Matching refs:pView
193 SvListView* pView = (SvListView*)aViewList.GetObject( nCurView ); in Broadcast() local
194 if( pView ) in Broadcast()
195 pView->ModelNotification( nActionId, pEntry1, pEntry2, nPos ); in Broadcast()
199 void SvTreeList::InsertView( SvListView* pView) in InsertView() argument
201 sal_uLong nPos = aViewList.GetPos( pView ); in InsertView()
204 aViewList.Insert( pView, LIST_APPEND ); in InsertView()
209 void SvTreeList::RemoveView( SvListView* pView ) in RemoveView() argument
211 sal_uLong nPos = aViewList.GetPos( pView ); in RemoveView()
214 aViewList.Remove( pView ); in RemoveView()
221 sal_Bool SvTreeList::IsEntryVisible( const SvListView* pView, SvListEntry* pEntry ) const in IsEntryVisible() argument
223 DBG_ASSERT(pView&&pEntry,"IsVisible:Invalid Params"); in IsEntryVisible()
233 } while( pView->IsExpanded( pEntry ) ); in IsEntryVisible()
624 sal_uLong SvTreeList::GetVisibleChildCount(const SvListView* pView, SvListEntry* pParent) const in GetVisibleChildCount() argument
626 DBG_ASSERT(pView,"GetVisChildCount:No View"); in GetVisibleChildCount()
629 if ( !pParent || !pView->IsExpanded(pParent) || !pParent->pChilds ) in GetVisibleChildCount()
636 pParent = NextVisible( pView, pParent, &nActDepth ); in GetVisibleChildCount()
643 sal_uLong SvTreeList::GetChildSelectionCount(const SvListView* pView,SvListEntry* pParent) const in GetChildSelectionCount() argument
645 DBG_ASSERT(pView,"GetChildSelCount:No View"); in GetChildSelectionCount()
656 if( pParent && pView->IsSelected( pParent ) && nRefDepth < nActDepth) in GetChildSelectionCount()
834 sal_uLong SvTreeList::GetVisiblePos( const SvListView* pView, SvListEntry* pEntry ) const in GetVisiblePos() argument
836 DBG_ASSERT(pView&&pEntry,"View/Entry?"); in GetVisiblePos()
838 if ( !pView->bVisPositionsValid ) in GetVisiblePos()
841 ((SvListView*)pView)->nVisibleCount = 0; in GetVisiblePos()
842 GetVisibleCount( pView ); in GetVisiblePos()
844 SvViewData* pViewData = pView->GetViewData( pEntry ); in GetVisiblePos()
858 sal_uLong SvTreeList::GetVisibleCount( const SvListView* pView ) const in GetVisibleCount()
860 DBG_ASSERT(pView,"GetVisCount:No View"); in GetVisibleCount()
861 if( !pView->HasViewData() ) in GetVisibleCount()
863 if ( pView->nVisibleCount ) in GetVisibleCount()
864 return pView->nVisibleCount; in GetVisibleCount()
870 SvViewData* pViewData = pView->GetViewData( pEntry ); in GetVisibleCount()
873 pEntry = NextVisible( pView, pEntry ); in GetVisibleCount()
881 ((SvListView*)pView)->nVisibleCount = nPos; in GetVisibleCount()
882 ((SvListView*)pView)->bVisPositionsValid = sal_True; in GetVisibleCount()
900 SvListEntry* SvTreeList::NextVisible(const SvListView* pView,SvListEntry* pActEntry,sal_uInt16* pAc… in NextVisible() argument
902 DBG_ASSERT(pView,"NextVisible:No View"); in NextVisible()
917 if ( pView->IsExpanded(pActEntry) ) in NextVisible()
970 SvListEntry* SvTreeList::PrevVisible(const SvListView* pView, SvListEntry* pActEntry, sal_uInt16* p… in PrevVisible() argument
972 DBG_ASSERT(pView&&pActEntry,"PrevVis:View/Entry?"); in PrevVisible()
988 while( pView->IsExpanded(pActEntry) ) in PrevVisible()
1023 SvListEntry* SvTreeList::LastVisible( const SvListView* pView, sal_uInt16* pDepth) const in LastVisible() argument
1025 DBG_ASSERT(pView,"LastVis:No View"); in LastVisible()
1027 while( pEntry && !IsEntryVisible( pView, pEntry ) ) in LastVisible()
1028 pEntry = PrevVisible( pView, pEntry ); in LastVisible()
1044 SvListEntry* SvTreeList::NextVisible(const SvListView* pView,SvListEntry* pEntry,sal_uInt16& nDelta… in NextVisible() argument
1046 DBG_ASSERT(pView&&pEntry&&IsEntryVisible(pView,pEntry),"NextVis:Wrong Prms/!Vis"); in NextVisible()
1048 sal_uLong nVisPos = GetVisiblePos( pView, pEntry ); in NextVisible()
1052 if ( nVisPos+nDelta >= pView->nVisibleCount ) in NextVisible()
1054 nDelta = (sal_uInt16)(pView->nVisibleCount-nVisPos); in NextVisible()
1060 pEntry = NextVisible( pView, pEntry ); in NextVisible()
1077 SvListEntry* SvTreeList::PrevVisible( const SvListView* pView, SvListEntry* pEntry, sal_uInt16& nDe… in PrevVisible() argument
1079 DBG_ASSERT(pView&&pEntry&&IsEntryVisible(pView,pEntry),"PrevVis:Parms/!Vis"); in PrevVisible()
1081 sal_uLong nVisPos = GetVisiblePos( pView, pEntry ); in PrevVisible()
1090 pEntry = PrevVisible( pView, pEntry ); in PrevVisible()
1107 SvListEntry* SvTreeList::FirstSelected( const SvListView* pView) const in FirstSelected()
1109 DBG_ASSERT(pView,"FirstSel:No View"); in FirstSelected()
1110 if( !pView ) in FirstSelected()
1113 while( pActSelEntry && !pView->IsSelected(pActSelEntry) ) in FirstSelected()
1114 pActSelEntry = NextVisible( pView, pActSelEntry ); in FirstSelected()
1185 SvListEntry* SvTreeList::NextSelected( const SvListView* pView, SvListEntry* pEntry ) const in NextSelected() argument
1187 DBG_ASSERT(pView&&pEntry,"NextSel:View/Entry?"); in NextSelected()
1189 while( pEntry && !pView->IsSelected(pEntry) ) in NextSelected()
1204 SvListEntry* SvTreeList::PrevSelected( const SvListView* pView, SvListEntry* pEntry) const in PrevSelected() argument
1206 DBG_ASSERT(pView&&pEntry,"PrevSel:View/Entry?"); in PrevSelected()
1208 while( pEntry && !pView->IsSelected(pEntry) ) in PrevSelected()
1224 SvListEntry* SvTreeList::LastSelected( const SvListView* pView ) const in LastSelected()
1226 DBG_ASSERT(pView,"LastSel:No View"); in LastSelected()
1228 while( pEntry && !pView->IsSelected(pEntry) ) in LastSelected()
1332 void SvTreeList::Expand( SvListView* pView, SvListEntry* pEntry ) in Expand() argument
1334 DBG_ASSERT(pEntry&&pView,"Expand:View/Entry?"); in Expand()
1335 if ( pView->IsExpanded(pEntry) ) in Expand()
1340 SvViewData* pViewData = pView->GetViewData(pEntry); in Expand()
1344 if ( pView->IsExpanded( pParent ) ) in Expand()
1346 pView->bVisPositionsValid = sal_False; in Expand()
1347 pView->nVisibleCount = 0; in Expand()
1364 void SvTreeList::Collapse( SvListView* pView, SvListEntry* pEntry ) in Collapse() argument
1366 DBG_ASSERT(pView&&pEntry,"Collapse:View/Entry?"); in Collapse()
1367 if ( !pView->IsExpanded(pEntry) ) in Collapse()
1372 SvViewData* pViewData = pView->GetViewData( pEntry ); in Collapse()
1376 if ( pView->IsExpanded(pParent) ) in Collapse()
1378 pView->nVisibleCount = 0; in Collapse()
1379 pView->bVisPositionsValid = sal_False; in Collapse()
1397 sal_Bool SvTreeList::Select( SvListView* pView, SvListEntry* pEntry, sal_Bool bSelect ) in Select() argument
1399 DBG_ASSERT(pView&&pEntry,"Select:View/Entry?"); in Select()
1400 SvViewData* pViewData = pView->GetViewData( pEntry ); in Select()
1408 pView->nSelectionCount++; in Select()
1418 pView->nSelectionCount--; in Select()
1505 sal_uLong SvTreeList::SelectChilds(SvListView* pView, SvListEntry* pParent,sal_Bool bSelect ) in SelectChilds() argument
1507 DBG_ASSERT(pView&&pParent,"SelChilds:View/Parent?"); in SelectChilds()
1519 if ( Select( pView, pParent, bSelect ) ) in SelectChilds()
1530 void SvTreeList::SelectAll( SvListView* pView, sal_Bool bSelect ) in SelectAll() argument
1532 DBG_ASSERT(pView,"SelectAll:NoView"); in SelectAll()
1536 SvViewData* pViewData = pView->GetViewData( pEntry ); in SelectAll()
1545 pView->nSelectionCount = nEntryCount; in SelectAll()
1547 pView->nSelectionCount = 0; in SelectAll()
1565 SvListEntry* SvTreeList::GetEntryAtVisPos( const SvListView* pView, sal_uLong nVisPos ) const in GetEntryAtVisPos() argument
1567 DBG_ASSERT(pView,"GetEntryAtVisPos:No View"); in GetEntryAtVisPos()
1571 pEntry = NextVisible( pView, pEntry ); in GetEntryAtVisPos()