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()
644 m_pData->pActUndoArray->aUndoActions.Insert( pAction, m_pData->pActUndoArray->nCurUndoAction++ ); in ImplAddUndoAction_NoNotify()
650 void SfxUndoManager::AddUndoAction( SfxUndoAction *pAction, sal_Bool bTryMerge ) in AddUndoAction() argument
655 if ( ImplAddUndoAction_NoNotify( pAction, bTryMerge, true, aGuard ) ) in AddUndoAction()
658 aGuard.scheduleNotification( &SfxUndoListener::undoActionAdded, pAction->GetComment() ); in AddUndoAction()
682 sComment = pUndoArray->aUndoActions[ pUndoArray->nCurUndoAction - 1 - nNo ].pAction->GetComment(); in GetUndoActionComment()
696 …return m_pData->pActUndoArray->aUndoActions[m_pData->pActUndoArray->nCurUndoAction-1].pAction->Get… in GetUndoActionId()
708 return m_pData->pActUndoArray->aUndoActions[m_pData->pActUndoArray->nCurUndoAction-1-nNo].pAction; in GetUndoAction()
725 aGuard.markForDeletion( m_pData->pActUndoArray->aUndoActions[nPos-1].pAction ); in RemoveLastUndoAction()
777 …SfxUndoAction* pAction = m_pData->pActUndoArray->aUndoActions[ --m_pData->pActUndoArray->nCurUndoA… in ImplUndo() local
778 const String sActionComment = pAction->GetComment(); in ImplUndo()
785 pAction->UndoWithContext( *i_contextOrNull ); in ImplUndo()
787 pAction->Undo(); in ImplUndo()
799 if ( m_pData->pActUndoArray->aUndoActions[ nCurAction++ ].pAction == pAction ) in ImplUndo()
843 return pUndoArray->aUndoActions[ pUndoArray->nCurUndoAction + nNo ].pAction; in GetRedoAction()
855 … sComment = pUndoArray->aUndoActions[ pUndoArray->nCurUndoAction + nNo ].pAction->GetComment(); in GetRedoActionComment()
896 …SfxUndoAction* pAction = m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->nCurUndoAct… in ImplRedo() local
897 const String sActionComment = pAction->GetComment(); in ImplRedo()
904 pAction->RedoWithContext( *i_contextOrNull ); in ImplRedo()
906 pAction->Redo(); in ImplRedo()
918 if ( m_pData->pActUndoArray->aUndoActions[ nCurAction ].pAction == pAction ) in ImplRedo()
949 …urn m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->aUndoActions.size() - 1 ].pAction in GetRepeatActionComment()
960 …SfxUndoAction* pAction = m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->aUndoAction… in Repeat() local
962 if ( pAction->CanRepeat( rTarget ) ) in Repeat()
963 pAction->Repeat( rTarget ); in Repeat()
978 return m_pData->pActUndoArray->aUndoActions[nActionNo].pAction->CanRepeat(rTarget); in CanRepeat()
1029 …SfxListUndoAction* pAction = new SfxListUndoAction( rComment, rRepeatComment, nId, m_pData->pActUn… in EnterListAction() local
1030 OSL_VERIFY( ImplAddUndoAction_NoNotify( pAction, false, false, aGuard ) ); in EnterListAction()
1032 m_pData->pActUndoArray = pAction; in EnterListAction()
1126 …ntAction= m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->nCurUndoAction-1 ].pAction; in ImplLeaveListAction()
1138 …ntAction= m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->nCurUndoAction-1 ].pAction; in ImplLeaveListAction()
1149 …ction = m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->nCurUndoAction - 2 ].pAction; in ImplLeaveListAction()
1164 if( pListAction->aUndoActions[n].pAction->GetComment().Len() ) in ImplLeaveListAction()
1166 pListAction->SetComment( pListAction->aUndoActions[n].pAction->GetComment() ); in ImplLeaveListAction()
1271 SfxUndoAction* pActionToRemove = m_pData->pUndoArray->aUndoActions[0].pAction; in RemoveOldestUndoActions()
1335 aUndoActions[--i].pAction->Undo(); in Undo()
1344 aUndoActions[--i].pAction->UndoWithContext( i_context ); in UndoWithContext()
1353 aUndoActions[i].pAction->Redo(); in Redo()
1362 aUndoActions[i].pAction->RedoWithContext( i_context ); in RedoWithContext()
1371 aUndoActions[i].pAction->Repeat(rTarget); in Repeat()
1379 if(!aUndoActions[i].pAction->CanRepeat(r)) in CanRepeat()
1388 return !aUndoActions.empty() && aUndoActions[aUndoActions.size()-1].pAction->Merge( pNextAction ); in Merge()
1411 pAction = pUndoManagerImplementation->m_pData->pActUndoArray->aUndoActions[nPos].pAction; in SfxLinkUndoAction()
1412 pAction->SetLinkToSfxLinkUndoAction(this); in SfxLinkUndoAction()
1415 pAction = 0; in SfxLinkUndoAction()
1422 if ( pAction ) in Undo()
1430 if ( pAction ) in Redo()
1439 return pAction && pAction->CanRepeat(r); in CanRepeat()
1448 if ( pAction && pAction->CanRepeat( r ) ) in Repeat()
1449 pAction->Repeat( r ); in Repeat()
1457 if ( pAction ) in GetComment()
1458 return pAction->GetComment(); in GetComment()
1468 if ( pAction ) in GetRepeatComment()
1469 return pAction->GetRepeatComment(r); in GetRepeatComment()
1478 if( pAction ) in ~SfxLinkUndoAction()
1479 pAction->SetLinkToSfxLinkUndoAction(0); in ~SfxLinkUndoAction()
1486 OSL_ENSURE(0 != pAction, "OOps, we have no linked SfxUndoAction (!)"); in LinkedSfxUndoActionDestructed()
1487 OSL_ENSURE(pAction == &rCandidate, "OOps, the destroyed and linked UndoActions differ (!)"); in LinkedSfxUndoActionDestructed()
1489 pAction = 0; in LinkedSfxUndoActionDestructed()
1498 SfxUndoAction *pAction = aUndoActions[ aUndoActions.size() - 1 ].pAction; in ~SfxUndoArray() local
1500 delete pAction; in ~SfxUndoArray()
1507 return pAction ? pAction->GetId() : 0; in GetId()