Lines Matching refs:p

205 				ScChangeAction* p = (ScChangeAction*) pL->GetAction();  in IsClickable()  local
206 if ( p && p->IsDeletedIn() ) in IsClickable()
285 ScChangeAction* p = pL->GetAction(); in IsDialogParent() local
286 if ( p && p->GetType() != eType ) in IsDialogParent()
323 sal_Bool ScChangeAction::RemoveDeletedIn( const ScChangeAction* p ) in RemoveDeletedIn() argument
330 if ( pL->GetAction() == p ) in RemoveDeletedIn()
341 sal_Bool ScChangeAction::IsDeletedIn( const ScChangeAction* p ) const in IsDeletedIn()
346 if ( pL->GetAction() == p ) in IsDeletedIn()
364 ScChangeAction* p; in IsDeletedInDelType() local
386 if ( (p = pL->GetAction()) != NULL && in IsDeletedInDelType()
387 (p->GetType() == eDelType || p->GetType() == eInsType) ) in IsDeletedInDelType()
396 void ScChangeAction::SetDeletedIn( ScChangeAction* p ) in SetDeletedIn() argument
398 ScChangeActionLinkEntry* pLink1 = AddDeletedIn( p ); in SetDeletedIn()
401 pLink2 = p->AddDeleted( ((ScChangeActionContent*)this)->GetTopContent() ); in SetDeletedIn()
403 pLink2 = p->AddDeleted( this ); in SetDeletedIn()
483 for ( const ScChangeAction* p = aTable.First(); p; in GetDescription() local
484 p = aTable.Next() ) in GetDescription()
486 if (p->GetType() == SC_CAT_MOVE) in GetDescription()
593 ScChangeAction* p = pL->GetAction(); in RejectRestoreContents() local
594 if ( p && p->GetType() == SC_CAT_CONTENT ) in RejectRestoreContents()
597 (ScChangeActionContent*) p, pListContents ); in RejectRestoreContents()
983 const ScChangeAction* p = GetNext(); in IsTopDelete() local
984 if ( !p || p->GetType() != GetType() ) in IsTopDelete()
986 return ((ScChangeActionDel*)p)->IsBaseDelete(); in IsTopDelete()
994 const ScChangeAction* p = GetNext(); in IsMultiDelete() local
995 if ( !p || p->GetType() != GetType() ) in IsMultiDelete()
997 const ScChangeActionDel* pDel = (const ScChangeActionDel*) p; in IsMultiDelete()
1009 const ScChangeAction* p = this; in IsTabDeleteCol() local
1010 while ( p && p->GetType() == SC_CAT_DELETE_COLS && in IsTabDeleteCol()
1011 !((const ScChangeActionDel*)p)->IsTopDelete() ) in IsTabDeleteCol()
1012 p = p->GetNext(); in IsTabDeleteCol()
1013 return p && p->GetType() == SC_CAT_DELETE_TABS; in IsTabDeleteCol()
1027 ScChangeAction* p = pL->GetAction(); in UpdateReference() local
1028 if ( p && p->GetType() == SC_CAT_CONTENT && in UpdateReference()
1029 !GetBigRange().In( p->GetBigRange() ) ) in UpdateReference()
1034 p->GetBigRange().aStart.SetCol( GetBigRange().aStart.Col() ); in UpdateReference()
1035 p->GetBigRange().aEnd.SetCol( GetBigRange().aStart.Col() ); in UpdateReference()
1038 p->GetBigRange().aStart.SetRow( GetBigRange().aStart.Row() ); in UpdateReference()
1039 p->GetBigRange().aEnd.SetRow( GetBigRange().aStart.Row() ); in UpdateReference()
1042 p->GetBigRange().aStart.SetTab( GetBigRange().aStart.Tab() ); in UpdateReference()
1043 p->GetBigRange().aEnd.SetTab( GetBigRange().aStart.Tab() ); in UpdateReference()
1392 ScChangeAction* p = pLinkDependent->GetAction(); in Reject() local
1393 if ( p && p->GetType() == SC_CAT_CONTENT ) in Reject()
1395 ScChangeActionContent* pContent = (ScChangeActionContent*) p; in Reject()
1700 ScChangeAction* p = (ScChangeAction*) pL->GetAction(); in Select() local
1701 if ( p ) in Select()
1702 p->SetRejected(); in Select()
2286 ScChangeAction* p; in DtorClear() local
2288 for ( p = GetFirst(); p; p = pNext ) in DtorClear()
2290 pNext = p->GetNext(); in DtorClear()
2291 delete p; in DtorClear()
2293 for ( p = pFirstGeneratedDelContent; p; p = pNext ) in DtorClear()
2295 pNext = p->GetNext(); in DtorClear()
2296 delete p; in DtorClear()
2298 for ( p = aPasteCutTable.First(); p; p = aPasteCutTable.Next() ) in DtorClear()
2300 delete p; in DtorClear()
3034 for ( ScChangeActionContent* p = ppContentSlots[nSlot]; p; in SearchContentAt() local
3035 p = p->GetNextInSlot() ) in SearchContentAt()
3037 if ( p != pButNotThis && !p->IsDeletedIn() && in SearchContentAt()
3038 p->GetBigRange().aStart == rPos ) in SearchContentAt()
3040 ScChangeActionContent* pContent = p->GetTopContent(); in SearchContentAt()
3547 for ( ScChangeAction* p = *ppFirstAction; p; p = p->GetNext() ) in UpdateReference() local
3549 if ( p == pAct ) in UpdateReference()
3553 p->GetActionNumber() <= GetLastMerge() ) in UpdateReference()
3555 if ( p->IsInsertType() ) in UpdateReference()
3559 if ( !aDelRange.Intersects( p->GetBigRange() ) ) in UpdateReference()
3560 p->UpdateReference( this, eMode, aRange, nDx, nDy, nDz ); in UpdateReference()
3563 else if ( p->GetType() == SC_CAT_CONTENT && in UpdateReference()
3564 p->IsDeletedInDelType( eInsType ) ) in UpdateReference()
3568 if ( aDelRange.In( p->GetBigRange().aStart ) ) in UpdateReference()
3572 const ScChangeActionLinkEntry* pLink = p->GetDeletedIn(); in UpdateReference()
3586 if ( aDelRange.In( p->GetBigRange() ) ) in UpdateReference()
3592 if ( !p->IsDeletedInDelType( eActType ) ) in UpdateReference()
3594 p->SetDeletedIn( pActDel ); in UpdateReference()
3597 pActDel->AddContent( (ScChangeActionContent*) p ); in UpdateReference()
3612 switch ( p->GetType() ) in UpdateReference()
3617 if ( aDelRange.In( p->GetBigRange().aStart ) ) in UpdateReference()
3620 (ScChangeActionIns*) p, 1 ); in UpdateReference()
3621 p->GetBigRange().aStart.IncCol( 1 ); in UpdateReference()
3623 else if ( aDelRange.In( p->GetBigRange().aEnd ) ) in UpdateReference()
3626 (ScChangeActionIns*) p, -1 ); in UpdateReference()
3627 p->GetBigRange().aEnd.IncCol( -1 ); in UpdateReference()
3634 if ( aDelRange.In( p->GetBigRange().aStart ) ) in UpdateReference()
3637 (ScChangeActionIns*) p, 1 ); in UpdateReference()
3638 p->GetBigRange().aStart.IncRow( 1 ); in UpdateReference()
3640 else if ( aDelRange.In( p->GetBigRange().aEnd ) ) in UpdateReference()
3643 (ScChangeActionIns*) p, -1 ); in UpdateReference()
3644 p->GetBigRange().aEnd.IncRow( -1 ); in UpdateReference()
3651 if ( aDelRange.In( p->GetBigRange().aStart ) ) in UpdateReference()
3654 (ScChangeActionIns*) p, 1 ); in UpdateReference()
3655 p->GetBigRange().aStart.IncTab( 1 ); in UpdateReference()
3657 else if ( aDelRange.In( p->GetBigRange().aEnd ) ) in UpdateReference()
3660 (ScChangeActionIns*) p, -1 ); in UpdateReference()
3661 p->GetBigRange().aEnd.IncTab( -1 ); in UpdateReference()
3667 ScChangeActionMove* pMove = (ScChangeActionMove*) p; in UpdateReference()
3750 p->UpdateReference( this, eMode, aRange, nDx, nDy, nDz ); in UpdateReference()
3751 if ( p->GetType() == eActType && !p->IsRejected() && in UpdateReference()
3753 p->GetBigRange().In( aDelRange ) ) in UpdateReference()
3754 pActDel->SetDeletedIn( p ); // "druntergerutscht" in UpdateReference()
3760 for ( ScChangeAction* p = *ppFirstAction; p; p = p->GetNext() ) in UpdateReference() local
3762 if ( p == pAct ) in UpdateReference()
3765 if ( aDelRange.In( p->GetBigRange() ) ) in UpdateReference()
3768 … if ( GetMergeState() == SC_CTMS_UNDO && !p->IsDeletedIn( pAct ) && pAct->IsDeleteType() && in UpdateReference()
3769 ( p->GetType() == SC_CAT_CONTENT || in UpdateReference()
3770p->GetType() == SC_CAT_DELETE_ROWS || p->GetType() == SC_CAT_DELETE_COLS || in UpdateReference()
3771p->GetType() == SC_CAT_INSERT_ROWS || p->GetType() == SC_CAT_INSERT_COLS ) ) in UpdateReference()
3773 p->SetDeletedIn( pAct ); in UpdateReference()
3776 if ( p->IsDeletedInDelType( eActType ) ) in UpdateReference()
3778 if ( p->IsDeletedIn( pActDel ) ) in UpdateReference()
3780 if ( p->GetType() != SC_CAT_CONTENT || in UpdateReference()
3781 ((ScChangeActionContent*)p)->IsTopContent() ) in UpdateReference()
3783 p->RemoveDeletedIn( pActDel ); in UpdateReference()
3792 p->IsDeletedInDelType( SC_CAT_DELETE_TABS ) ) in UpdateReference()
3797 if ( p->GetType() == eActType && pActDel->IsDeletedIn( p ) ) in UpdateReference()
3799 pActDel->RemoveDeletedIn( p ); // "druntergerutscht" in UpdateReference()
3804 p->UpdateReference( this, eMode, aRange, nDx, nDy, nDz ); in UpdateReference()
3821 for ( ScChangeAction* p = *ppFirstAction; p; p = p->GetNext() ) in UpdateReference() local
3823 if ( p == pAct ) in UpdateReference()
3825 if ( p->GetType() == SC_CAT_CONTENT ) in UpdateReference()
3828 if ( rTo.In( p->GetBigRange() ) ) in UpdateReference()
3830 if ( !p->IsDeletedIn( pActMove ) ) in UpdateReference()
3832 p->SetDeletedIn( pActMove ); in UpdateReference()
3835 pActMove->AddContent( (ScChangeActionContent*) p ); in UpdateReference()
3839 p->GetActionNumber() > nEndLastCut && in UpdateReference()
3840 rFrom.In( p->GetBigRange() ) ) in UpdateReference()
3844 pHere = (ScChangeActionContent*) p; in UpdateReference()
3859 …( GetMergeState() != SC_CTMS_PREPARE && GetMergeState() != SC_CTMS_OWN ) || p->GetActionNumber() <… in UpdateReference()
3860 p->UpdateReference( this, eMode, rFrom, nDx, nDy, nDz ); in UpdateReference()
3867 for ( ScChangeAction* p = *ppFirstAction; p; p = p->GetNext() ) in UpdateReference() local
3869 if ( p == pAct ) in UpdateReference()
3871 if ( p->GetType() == SC_CAT_CONTENT ) in UpdateReference()
3874 if ( p->IsDeletedIn( pActMove ) ) in UpdateReference()
3876 if ( ((ScChangeActionContent*)p)->IsTopContent() ) in UpdateReference()
3878 p->RemoveDeletedIn( pActMove ); in UpdateReference()
3885 …( GetMergeState() != SC_CTMS_PREPARE && GetMergeState() != SC_CTMS_OWN ) || p->GetActionNumber() <… in UpdateReference()
3886 p->UpdateReference( this, eMode, rTo, nDx, nDy, nDz ); in UpdateReference()
3888 ((ScChangeActionContent*)p)->IsTopContent() && in UpdateReference()
3889 rFrom.In( p->GetBigRange() ) ) in UpdateReference()
3892 pActMove->AddDependent( p ); in UpdateReference()
3893 p->AddLink( pActMove, pLink ); in UpdateReference()
3906 for ( ScChangeAction* p = *ppFirstAction; p; p = p->GetNext() ) in UpdateReference() local
3908 if ( p == pAct ) in UpdateReference()
3910 p->UpdateReference( this, eMode, aRange, nDx, nDy, nDz ); in UpdateReference()
3920 ScChangeAction* p = (ScChangeAction*) pLink->GetAction(); in UpdateReference() local
3921 if ( p ) in UpdateReference()
3922 p->SetDeletedIn( pAct ); in UpdateReference()
3927 for ( ScChangeAction* p = *ppFirstAction; p; p = p->GetNext() ) in UpdateReference() local
3929 if ( !p->IsDeletedIn( pAct ) && pAct->IsInsertType() && in UpdateReference()
3931 ( p->GetType() == SC_CAT_CONTENT || in UpdateReference()
3932p->GetType() == SC_CAT_DELETE_ROWS || p->GetType() == SC_CAT_DELETE_COLS || in UpdateReference()
3933p->GetType() == SC_CAT_INSERT_ROWS || p->GetType() == SC_CAT_INSERT_COLS ) && in UpdateReference()
3934 pAct->GetBigRange().Intersects( p->GetBigRange() ) ) in UpdateReference()
3936 p->SetDeletedIn( pAct ); in UpdateReference()
3940 for ( ScChangeAction* p = *ppFirstAction; p; p = p->GetNext() ) in UpdateReference() local
3942 if ( p == pAct ) in UpdateReference()
3944 if ( !p->IsDeletedIn( pAct ) in UpdateReference()
3946 && p->GetActionNumber() <= pAct->GetActionNumber() ) in UpdateReference()
3948 p->UpdateReference( this, eMode, aRange, nDx, nDy, nDz ); in UpdateReference()
3955 for ( ScChangeAction* p = *ppFirstAction; p; p = p->GetNext() ) in UpdateReference() local
3957 if ( p == pAct ) in UpdateReference()
3959 if ( !p->IsDeletedIn( pAct ) in UpdateReference()
3961 && p->GetActionNumber() <= pAct->GetActionNumber() ) in UpdateReference()
3963 p->UpdateReference( this, eMode, aRange, nDx, nDy, nDz ); in UpdateReference()
3970 ScChangeAction* p = (ScChangeAction*) pLink->GetAction(); in UpdateReference() local
3971 if ( p ) in UpdateReference()
3972 p->RemoveDeletedIn( pAct ); in UpdateReference()
3977 for ( ScChangeAction* p = *ppFirstAction; p; p = p->GetNext() ) in UpdateReference() local
3979 if ( p->IsDeletedIn( pAct ) && pAct->IsInsertType() && in UpdateReference()
3981 ( p->GetType() == SC_CAT_CONTENT || in UpdateReference()
3982p->GetType() == SC_CAT_DELETE_ROWS || p->GetType() == SC_CAT_DELETE_COLS || in UpdateReference()
3983p->GetType() == SC_CAT_INSERT_ROWS || p->GetType() == SC_CAT_INSERT_COLS ) && in UpdateReference()
3984 pAct->GetBigRange().Intersects( p->GetBigRange() ) ) in UpdateReference()
3986 p->RemoveDeletedIn( pAct ); in UpdateReference()
3994 for ( ScChangeAction* p = *ppFirstAction; p; p = p->GetNext() ) in UpdateReference() local
3996 if ( !p->IsDeletedIn( pAct ) && pAct->IsInsertType() && in UpdateReference()
3997 ( p->GetType() == SC_CAT_CONTENT || in UpdateReference()
3998p->GetType() == SC_CAT_DELETE_ROWS || p->GetType() == SC_CAT_DELETE_COLS || in UpdateReference()
3999p->GetType() == SC_CAT_INSERT_ROWS || p->GetType() == SC_CAT_INSERT_COLS ) && in UpdateReference()
4000 pAct->GetBigRange().Intersects( p->GetBigRange() ) ) in UpdateReference()
4002 p->SetDeletedIn( pAct ); in UpdateReference()
4006 for ( ScChangeAction* p = *ppFirstAction; p; p = p->GetNext() ) in UpdateReference() local
4008 if ( p == pAct ) in UpdateReference()
4012 … if ( !p->IsDeletedIn( pAct ) && p->GetActionNumber() <= pAct->GetActionNumber() ) in UpdateReference()
4014 p->UpdateReference( this, eMode, aRange, nDx, nDy, nDz ); in UpdateReference()
4042 ScChangeAction* p = (ScChangeAction*) pL->GetAction(); in GetDependents() local
4043 if ( p != pAct ) in GetDependents()
4047 sal_uLong n = p->GetActionNumber(); in GetDependents()
4048 if ( !IsGenerated( n ) && rTable.Insert( n, p ) ) in GetDependents()
4049 if ( p->HasDependent() ) in GetDependents()
4050 pStack->Push( p ); in GetDependents()
4054 if ( p->GetType() == SC_CAT_CONTENT ) in GetDependents()
4056 if ( ((ScChangeActionContent*)p)->IsTopContent() ) in GetDependents()
4057 rTable.Insert( p->GetActionNumber(), p ); in GetDependents()
4060 rTable.Insert( p->GetActionNumber(), p ); in GetDependents()
4076 ScChangeAction* p = pDel; in GetDependents() local
4077 while ( (p = p->GetPrev()) != NULL && p->GetType() == eType && in GetDependents()
4078 !((ScChangeActionDel*)p)->IsTopDelete() ) in GetDependents()
4079 rTable.Insert( p->GetActionNumber(), p ); in GetDependents()
4088 ScChangeAction* p = (ScChangeAction*) pL->GetAction(); in GetDependents() local
4089 if ( p != pAct ) in GetDependents()
4094 sal_uLong n = p->GetActionNumber(); in GetDependents()
4095 if ( !IsGenerated( n ) && rTable.Insert( n, p ) ) in GetDependents()
4096 if ( p->HasDeleted() || in GetDependents()
4097 p->GetType() == SC_CAT_CONTENT ) in GetDependents()
4098 pStack->Push( p ); in GetDependents()
4102 if ( p->IsDeleteType() ) in GetDependents()
4105 if ( ((ScChangeActionDel*)p)->IsTopDelete() ) in GetDependents()
4106 rTable.Insert( p->GetActionNumber(), p ); in GetDependents()
4109 rTable.Insert( p->GetActionNumber(), p ); in GetDependents()
4123 ScChangeAction* p = (ScChangeAction*) pL->GetAction(); in GetDependents() local
4124 if ( p != pAct && rTable.Insert( p->GetActionNumber(), p ) ) in GetDependents()
4127 if ( bAllFlat && (p->HasDeleted() || in GetDependents()
4128 p->GetType() == SC_CAT_CONTENT) ) in GetDependents()
4129 pStack->Push( p ); in GetDependents()
4138 ScChangeAction* p = (ScChangeAction*) pL->GetAction(); in GetDependents() local
4139 if ( p != pAct ) in GetDependents()
4143 sal_uLong n = p->GetActionNumber(); in GetDependents()
4144 if ( !IsGenerated( n ) && rTable.Insert( n, p ) ) in GetDependents()
4145 if ( p->HasDependent() || p->HasDeleted() ) in GetDependents()
4146 pStack->Push( p ); in GetDependents()
4150 if ( p->GetType() == SC_CAT_CONTENT ) in GetDependents()
4152 if ( ((ScChangeActionContent*)p)->IsTopContent() ) in GetDependents()
4153 rTable.Insert( p->GetActionNumber(), p ); in GetDependents()
4156 rTable.Insert( p->GetActionNumber(), p ); in GetDependents()
4182 ScChangeAction* p = (ScChangeAction*) pL->GetAction(); in GetDependents() local
4183 if ( p != pAct ) in GetDependents()
4187 sal_uLong n = p->GetActionNumber(); in GetDependents()
4188 if ( !IsGenerated( n ) && rTable.Insert( n, p ) ) in GetDependents()
4189 if ( p->HasDependent() ) in GetDependents()
4190 pStack->Push( p ); in GetDependents()
4193 rTable.Insert( p->GetActionNumber(), p ); in GetDependents()
4202 ScChangeAction* p = GetAction( in GetDependents() local
4204 if ( p != pAct && !rTable.Get( p->GetActionNumber() ) ) in GetDependents()
4205 pStack->Push( p ); in GetDependents()
4258 ScChangeAction* p = (ScChangeAction*) pL->GetAction(); in SelectContent() local
4259 if ( p != pContent ) in SelectContent()
4261 if ( p->GetType() == SC_CAT_CONTENT ) in SelectContent()
4264 bOk &= ((ScChangeActionContent*)p)->Select( pDoc, this, in SelectContent()
4294 for ( ScChangeAction* p = GetFirst(); p; p = p->GetNext() ) in AcceptAll() local
4296 p->Accept(); in AcceptAll()
4310 for ( ScChangeAction* p = aActionTable.First(); p; p = aActionTable.Next() ) in Accept() local
4312 p->Accept(); in Accept()
4323 for ( ScChangeAction* p = GetLast(); p && bOk; p = p->GetPrev() ) in RejectAll() local
4325 if ( p->IsInternalRejectable() ) in RejectAll()
4326 bOk = Reject( p ); in RejectAll()
4368 for ( ScChangeAction* p = pTable->Last(); p && bOk; p = pTable->Prev() ) in Reject() local
4371 if ( p->GetType() == SC_CAT_CONTENT ) in Reject()
4372 p->SetRejected(); in Reject()
4373 else if ( p->IsDeleteType() ) in Reject()
4374 p->Accept(); // geloeschtes ins Nirvana in Reject()
4376 bOk = Reject( p, NULL, sal_True ); //! rekursiv in Reject()
4431 ScChangeAction* p = pAct; in Reject() local
4435 pDel = (ScChangeActionDel*) p; in Reject()
4464 p = p->GetPrev(); in Reject()
4465 } while ( bOk && bLoop && p && p->GetType() == eActType && in Reject()
4466 !((ScChangeActionDel*)p)->IsTopDelete() ); in Reject()
4484 for ( ScChangeAction* p = pTable->Last(); p && bOk; p = pTable->Prev() ) in Reject() local
4486 bOk = Reject( p, NULL, sal_True ); //! rekursiv in Reject()