Lines Matching refs:pAction

358             SfxUndoAction* pAction = m_aUndoActionsCleanup.front();  in ~UndoManagerGuard()  local
362 delete pAction; in ~UndoManagerGuard()
455 SfxUndoAction* pAction = m_pData->pActUndoArray->aUndoActions[nPos-1].pAction; in SetMaxUndoActionCount() local
456 aGuard.markForDeletion( pAction ); in SetMaxUndoActionCount()
463 SfxUndoAction* pAction = m_pData->pActUndoArray->aUndoActions[0].pAction; in SetMaxUndoActionCount() local
464 aGuard.markForDeletion( pAction ); in SetMaxUndoActionCount()
493 SfxUndoAction* pAction = m_pData->pActUndoArray->aUndoActions[ deletePos ].pAction; in ImplClearCurrentLevel_NoNotify() local
494 i_guard.markForDeletion( pAction ); in ImplClearCurrentLevel_NoNotify()
581 SfxUndoAction* pUndoAction = m_pData->pActUndoArray->aUndoActions[0].pAction; in ImplClearUndo()
599 SfxUndoAction* pAction = pUndoArray->aUndoActions[ deletePos ].pAction; in ImplClearRedo() local
601 i_guard.markForDeletion( pAction ); in ImplClearRedo()
611 bool SfxUndoManager::ImplAddUndoAction_NoNotify( SfxUndoAction *pAction, bool bTryMerge, bool bClea… in ImplAddUndoAction_NoNotify() argument
615 i_guard.markForDeletion( pAction ); in ImplAddUndoAction_NoNotify()
621 m_pData->pActUndoArray->aUndoActions[m_pData->pActUndoArray->nCurUndoAction-1].pAction : NULL; in ImplAddUndoAction_NoNotify()
622 if ( bTryMerge && ( pMergeWithAction && pMergeWithAction->Merge( pAction ) ) ) in ImplAddUndoAction_NoNotify()
624 i_guard.markForDeletion( pAction ); in ImplAddUndoAction_NoNotify()
637 i_guard.markForDeletion( m_pData->pActUndoArray->aUndoActions[0].pAction ); in ImplAddUndoAction_NoNotify()
652 m_pData->pActUndoArray->aUndoActions.Insert( pAction, m_pData->pActUndoArray->nCurUndoAction++ ); in ImplAddUndoAction_NoNotify()
658 void SfxUndoManager::AddUndoAction( SfxUndoAction *pAction, sal_Bool bTryMerge ) in AddUndoAction() argument
663 if ( ImplAddUndoAction_NoNotify( pAction, bTryMerge, true, aGuard ) ) in AddUndoAction()
666 aGuard.scheduleNotification( &SfxUndoListener::undoActionAdded, pAction->GetComment() ); in AddUndoAction()
690 sComment = pUndoArray->aUndoActions[ pUndoArray->nCurUndoAction - 1 - nNo ].pAction->GetComment(); in GetUndoActionComment()
704 …return m_pData->pActUndoArray->aUndoActions[m_pData->pActUndoArray->nCurUndoAction-1].pAction->Get… in GetUndoActionId()
716 return m_pData->pActUndoArray->aUndoActions[m_pData->pActUndoArray->nCurUndoAction-1-nNo].pAction; in GetUndoAction()
733 aGuard.markForDeletion( m_pData->pActUndoArray->aUndoActions[nPos-1].pAction ); in RemoveLastUndoAction()
785 …SfxUndoAction* pAction = m_pData->pActUndoArray->aUndoActions[ --m_pData->pActUndoArray->nCurUndoA… in ImplUndo() local
786 const String sActionComment = pAction->GetComment(); in ImplUndo()
793 pAction->UndoWithContext( *i_contextOrNull ); in ImplUndo()
795 pAction->Undo(); in ImplUndo()
807 if ( m_pData->pActUndoArray->aUndoActions[ nCurAction++ ].pAction == pAction ) in ImplUndo()
851 return pUndoArray->aUndoActions[ pUndoArray->nCurUndoAction + nNo ].pAction; in GetRedoAction()
863 … sComment = pUndoArray->aUndoActions[ pUndoArray->nCurUndoAction + nNo ].pAction->GetComment(); in GetRedoActionComment()
904 …SfxUndoAction* pAction = m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->nCurUndoAct… in ImplRedo() local
905 const String sActionComment = pAction->GetComment(); in ImplRedo()
912 pAction->RedoWithContext( *i_contextOrNull ); in ImplRedo()
914 pAction->Redo(); in ImplRedo()
926 if ( m_pData->pActUndoArray->aUndoActions[ nCurAction ].pAction == pAction ) in ImplRedo()
957 …urn m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->aUndoActions.size() - 1 ].pAction in GetRepeatActionComment()
968 …SfxUndoAction* pAction = m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->aUndoAction… in Repeat() local
970 if ( pAction->CanRepeat( rTarget ) ) in Repeat()
971 pAction->Repeat( rTarget ); in Repeat()
986 return m_pData->pActUndoArray->aUndoActions[nActionNo].pAction->CanRepeat(rTarget); in CanRepeat()
1037 …SfxListUndoAction* pAction = new SfxListUndoAction( rComment, rRepeatComment, nId, m_pData->pActUn… in EnterListAction() local
1038 OSL_VERIFY( ImplAddUndoAction_NoNotify( pAction, false, false, aGuard ) ); in EnterListAction()
1040 m_pData->pActUndoArray = pAction; in EnterListAction()
1134 …ntAction= m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->nCurUndoAction-1 ].pAction; in ImplLeaveListAction()
1146 …ntAction= m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->nCurUndoAction-1 ].pAction; in ImplLeaveListAction()
1157 …ction = m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->nCurUndoAction - 2 ].pAction; in ImplLeaveListAction()
1172 if( pListAction->aUndoActions[n].pAction->GetComment().Len() ) in ImplLeaveListAction()
1174 pListAction->SetComment( pListAction->aUndoActions[n].pAction->GetComment() ); in ImplLeaveListAction()
1279 SfxUndoAction* pActionToRemove = m_pData->pUndoArray->aUndoActions[0].pAction; in RemoveOldestUndoActions()
1343 aUndoActions[--i].pAction->Undo(); in Undo()
1352 aUndoActions[--i].pAction->UndoWithContext( i_context ); in UndoWithContext()
1361 aUndoActions[i].pAction->Redo(); in Redo()
1370 aUndoActions[i].pAction->RedoWithContext( i_context ); in RedoWithContext()
1379 aUndoActions[i].pAction->Repeat(rTarget); in Repeat()
1387 if(!aUndoActions[i].pAction->CanRepeat(r)) in CanRepeat()
1396 return !aUndoActions.empty() && aUndoActions[aUndoActions.size()-1].pAction->Merge( pNextAction ); in Merge()
1419 pAction = pUndoManagerImplementation->m_pData->pActUndoArray->aUndoActions[nPos].pAction; in SfxLinkUndoAction()
1420 pAction->SetLinkToSfxLinkUndoAction(this); in SfxLinkUndoAction()
1423 pAction = 0; in SfxLinkUndoAction()
1430 if ( pAction ) in Undo()
1438 if ( pAction ) in Redo()
1447 return pAction && pAction->CanRepeat(r); in CanRepeat()
1456 if ( pAction && pAction->CanRepeat( r ) ) in Repeat()
1457 pAction->Repeat( r ); in Repeat()
1465 if ( pAction ) in GetComment()
1466 return pAction->GetComment(); in GetComment()
1476 if ( pAction ) in GetRepeatComment()
1477 return pAction->GetRepeatComment(r); in GetRepeatComment()
1486 if( pAction ) in ~SfxLinkUndoAction()
1487 pAction->SetLinkToSfxLinkUndoAction(0); in ~SfxLinkUndoAction()
1494 OSL_ENSURE(0 != pAction, "OOps, we have no linked SfxUndoAction (!)"); in LinkedSfxUndoActionDestructed()
1495 OSL_ENSURE(pAction == &rCandidate, "OOps, the destroyed and linked UndoActions differ (!)"); in LinkedSfxUndoActionDestructed()
1497 pAction = 0; in LinkedSfxUndoActionDestructed()
1506 SfxUndoAction *pAction = aUndoActions[ aUndoActions.size() - 1 ].pAction; in ~SfxUndoArray() local
1508 delete pAction; in ~SfxUndoArray()
1515 return pAction ? pAction->GetId() : 0; in GetId()