Lines Matching refs:pParent

46 	pParent     = 0;  in SvListEntry()
55 pParent = 0; in SvListEntry()
71 pParent = 0; in ~SvListEntry()
232 pEntry = pEntry->pParent; in IsEntryVisible()
241 while( pEntry->pParent != pRootItem ) in GetDepth()
244 pEntry = pEntry->pParent; in GetDepth()
289 sal_Bool SvTreeList::IsChild( SvListEntry* pParent, SvListEntry* pChild ) const in IsChild() argument
291 if ( !pParent ) in IsChild()
292 pParent = pRootItem; in IsChild()
295 SvTreeEntryList* pList = pParent->pChilds; in IsChild()
331 SvTreeEntryList* pSrcList = pSrcEntry->pParent->pChilds; in Move()
343 SvListEntry* pParent = pSrcEntry->pParent; in Move() local
344 pParent->pChilds = 0; in Move()
351 pSrcEntry->pParent = pTargetParent; in Move()
386 pClonedEntry->pParent = pTargetParent; // Parent umsetzen in Copy()
412 SvListEntry* pParent; in Move() local
417 pParent = pRootItem; in Move()
422 pParent = pDstEntry->pParent; in Move()
426 Move( pSrcEntry, pParent, nPos ); in Move()
441 SvListEntry* pParent; in Copy() local
446 pParent = pRootItem; in Copy()
451 pParent = pDstEntry->pParent; in Copy()
454 Copy( pSrcEntry, pParent, nPos ); in Copy()
468 SvListEntry* pParent; in InsertTree() local
473 pParent = pRootItem; in InsertTree()
478 pParent = pDstEntry->pParent; in InsertTree()
481 InsertTree( pSrcEntry, pParent, nPos ); in InsertTree()
502 pSrcEntry->pParent = pTargetParent; // Parent umsetzen in InsertTree()
570 pNewChild->pParent = pNewParent; in CloneChilds()
595 sal_uLong SvTreeList::GetChildCount( SvListEntry* pParent ) const in GetChildCount()
597 if ( !pParent ) in GetChildCount()
600 if ( !pParent || !pParent->pChilds) in GetChildCount()
603 sal_uInt16 nRefDepth = GetDepth( pParent ); in GetChildCount()
607 pParent = Next( pParent, &nActDepth ); in GetChildCount()
609 } while( pParent && nRefDepth < nActDepth ); in GetChildCount()
624 sal_uLong SvTreeList::GetVisibleChildCount(const SvListView* pView, SvListEntry* pParent) const in GetVisibleChildCount()
627 if ( !pParent ) in GetVisibleChildCount()
628 pParent = pRootItem; in GetVisibleChildCount()
629 if ( !pParent || !pView->IsExpanded(pParent) || !pParent->pChilds ) in GetVisibleChildCount()
632 sal_uInt16 nRefDepth = GetDepth( pParent ); in GetVisibleChildCount()
636 pParent = NextVisible( pView, pParent, &nActDepth ); in GetVisibleChildCount()
638 } while( pParent && nRefDepth < nActDepth ); in GetVisibleChildCount()
643 sal_uLong SvTreeList::GetChildSelectionCount(const SvListView* pView,SvListEntry* pParent) const in GetChildSelectionCount()
646 if ( !pParent ) in GetChildSelectionCount()
647 pParent = pRootItem; in GetChildSelectionCount()
648 if ( !pParent || !pParent->pChilds) in GetChildSelectionCount()
651 sal_uInt16 nRefDepth = GetDepth( pParent ); in GetChildSelectionCount()
655 pParent = Next( pParent, &nActDepth ); in GetChildSelectionCount()
656 if( pParent && pView->IsSelected( pParent ) && nRefDepth < nActDepth) in GetChildSelectionCount()
658 } while( pParent && nRefDepth < nActDepth ); in GetChildSelectionCount()
693 DBG_ASSERT( pActEntry && pActEntry->pParent, "SvTreeList::Next: invalid entry/parent!" ); in Next()
694 if ( !pActEntry || !pActEntry->pParent ) in Next()
705 SvTreeEntryList* pActualList = pActEntry->pParent->pChilds; in Next()
725 SvListEntry* pParent = pActEntry->pParent; in Next() local
727 while( pParent != pRootItem && pParent != 0 ) in Next()
729 DBG_ASSERT(pParent!=0,"TreeData corrupt!"); in Next()
730 pActualList = pParent->pParent->pChilds; in Next()
732 nActualPos = pParent->GetChildListPos(); in Next()
740 pParent = pParent->pParent; in Next()
767 SvTreeEntryList* pActualList = pActEntry->pParent->pChilds; in Prev()
783 if ( pActEntry->pParent == pRootItem ) in Prev()
786 pActEntry = pActEntry->pParent; in Prev()
914 SvTreeEntryList* pActualList = pActEntry->pParent->pChilds; in NextVisible()
936 SvListEntry* pParent = pActEntry->pParent; in NextVisible() local
938 while( pParent != pRootItem ) in NextVisible()
940 pActualList = pParent->pParent->pChilds; in NextVisible()
941 nActualPos = pParent->GetChildListPos(); in NextVisible()
950 pParent = pParent->pParent; in NextVisible()
982 SvTreeEntryList* pActualList = pActEntry->pParent->pChilds; in PrevVisible()
999 if ( pActEntry->pParent == pRootItem ) in PrevVisible()
1002 pActEntry = pActEntry->pParent; in PrevVisible()
1119 SvListEntry* SvTreeList::FirstChild( SvListEntry* pParent ) const in FirstChild()
1121 if ( !pParent ) in FirstChild()
1122 pParent = pRootItem; in FirstChild()
1124 if ( pParent->pChilds ) in FirstChild()
1125 pResult = (SvListEntry*)(pParent->pChilds->GetObject( 0 )); in FirstChild()
1136 SvTreeEntryList* pList = pEntry->pParent->pChilds; in NextSibling()
1150 SvTreeEntryList* pList = pEntry->pParent->pChilds; in PrevSibling()
1167 SvTreeEntryList* pSibs = pEntry->pParent->pChilds; in LastSibling()
1242 sal_uLong SvTreeList::Insert( SvListEntry* pEntry,SvListEntry* pParent,sal_uLong nPos ) in Insert() argument
1246 if ( !pParent ) in Insert()
1247 pParent = pRootItem; in Insert()
1250 SvTreeEntryList* pList = pParent->pChilds; in Insert()
1255 pParent->pChilds = pList; in Insert()
1259 GetInsertionPos( pEntry, pParent, nPos ); in Insert()
1262 pEntry->pParent = pParent; in Insert()
1342 SvListEntry* pParent = pEntry->pParent; in Expand() local
1344 if ( pView->IsExpanded( pParent ) ) in Expand()
1375 SvListEntry* pParent = pEntry->pParent; in Collapse() local
1376 if ( pView->IsExpanded(pParent) ) in Collapse()
1440 if( !pEntry->pParent ) in Remove()
1454 SvListEntry* pParent = pEntry->pParent; in Remove() local
1455 SvTreeEntryList* pList = pParent->pChilds; in Remove()
1476 pParent->pChilds = 0; in Remove()
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()
1508 if ( !pParent->pChilds ) in SelectChilds()
1510 if ( pParent->pChilds->Count() == 0 ) in SelectChilds()
1513 sal_uInt16 nRefDepth = GetDepth( pParent ); in SelectChilds()
1516 pParent = Next( pParent ); in SelectChilds()
1519 if ( Select( pView, pParent, bSelect ) ) in SelectChilds()
1521 pParent = Next( pParent, &nDepth ); in SelectChilds()
1523 while( pParent && nDepth > nRefDepth ); in SelectChilds()
1582 if( pEntry->pParent ) in SetListPositions()
1583 pEntry->pParent->InvalidateChildrensListPositions(); in SetListPositions()
1603 sal_Bool SvTreeList::IsInChildList( SvListEntry* pParent, SvListEntry* pChild) const in IsInChildList() argument
1605 if ( !pParent ) in IsInChildList()
1606 pParent = pRootItem; in IsInChildList()
1608 if ( pParent->pChilds ) in IsInChildList()
1609 bIsChild = (sal_Bool)(pParent->pChilds->GetPos(pChild) != LIST_ENTRY_NOTFOUND); in IsInChildList()
1650 pCurParent = pEntry->pParent; in GetRootLevelParent()
1653 while( pCurParent && pCurParent->pParent != pRootItem ) in GetRootLevelParent()
1654 pCurParent = pCurParent->pParent; in GetRootLevelParent()
1835 SvListEntry* pParent = pEntry->pParent; in ActionMoving() local
1836 DBG_ASSERT(pParent,"Model not consistent"); in ActionMoving()
1837 if( pParent != pModel->pRootItem && pParent->pChilds->Count() == 1 ) in ActionMoving()
1839 SvViewData* pViewData = (SvViewData*)aDataTable.Get( (sal_uLong)pParent ); in ActionMoving()
1898 void SvListView::RemoveViewData( SvListEntry* pParent ) in RemoveViewData() argument
1900 SvTreeEntryList* pChilds = pParent->pChilds; in RemoveViewData()
1948 SvListEntry* pCurEntry = pEntry->pParent; in ActionRemoving()
2042 void SvTreeList::ResortChilds( SvListEntry* pParent ) in ResortChilds() argument
2044 DBG_ASSERT(pParent,"Parent not set"); in ResortChilds()
2045 List* pChildList = pParent->pChilds; in ResortChilds()
2056 GetInsertionPos( pCurEntry, pParent, nListPos ); in ResortChilds()
2064 void SvTreeList::GetInsertionPos( SvListEntry* pEntry, SvListEntry* pParent, in GetInsertionPos() argument
2073 SvTreeEntryList* pChildList = GetChildList( pParent ); in GetInsertionPos()