Lines Matching refs:aUndoActions
449 long nNumToDelete = m_pData->pActUndoArray->aUndoActions.size() - nMaxUndoActionCount; in SetMaxUndoActionCount()
452 size_t nPos = m_pData->pActUndoArray->aUndoActions.size(); in SetMaxUndoActionCount()
455 SfxUndoAction* pAction = m_pData->pActUndoArray->aUndoActions[nPos-1].pAction; in SetMaxUndoActionCount()
457 m_pData->pActUndoArray->aUndoActions.Remove( nPos-1 ); in SetMaxUndoActionCount()
463 SfxUndoAction* pAction = m_pData->pActUndoArray->aUndoActions[0].pAction; in SetMaxUndoActionCount()
465 m_pData->pActUndoArray->aUndoActions.Remove(0); in SetMaxUndoActionCount()
470 if ( nPos == m_pData->pActUndoArray->aUndoActions.size() ) in SetMaxUndoActionCount()
490 while ( !m_pData->pActUndoArray->aUndoActions.empty() ) in ImplClearCurrentLevel_NoNotify()
492 size_t deletePos = m_pData->pActUndoArray->aUndoActions.size() - 1; in ImplClearCurrentLevel_NoNotify()
493 SfxUndoAction* pAction = m_pData->pActUndoArray->aUndoActions[ deletePos ].pAction; in ImplClearCurrentLevel_NoNotify()
495 m_pData->pActUndoArray->aUndoActions.Remove( deletePos ); in ImplClearCurrentLevel_NoNotify()
581 SfxUndoAction* pUndoAction = m_pData->pActUndoArray->aUndoActions[0].pAction; in ImplClearUndo()
582 m_pData->pActUndoArray->aUndoActions.Remove( 0 ); in ImplClearUndo()
596 while ( pUndoArray->aUndoActions.size() > pUndoArray->nCurUndoAction ) in ImplClearRedo()
598 size_t deletePos = pUndoArray->aUndoActions.size() - 1; in ImplClearRedo()
599 SfxUndoAction* pAction = pUndoArray->aUndoActions[ deletePos ].pAction; in ImplClearRedo()
600 pUndoArray->aUndoActions.Remove( deletePos ); in ImplClearRedo()
621 m_pData->pActUndoArray->aUndoActions[m_pData->pActUndoArray->nCurUndoAction-1].pAction : NULL; in ImplAddUndoAction_NoNotify()
635 while(m_pData->pActUndoArray->aUndoActions.size() >= m_pData->pActUndoArray->nMaxUndoActions) in ImplAddUndoAction_NoNotify()
637 i_guard.markForDeletion( m_pData->pActUndoArray->aUndoActions[0].pAction ); in ImplAddUndoAction_NoNotify()
638 m_pData->pActUndoArray->aUndoActions.Remove(0); in ImplAddUndoAction_NoNotify()
644 m_pData->pActUndoArray->aUndoActions.Insert( pAction, m_pData->pActUndoArray->nCurUndoAction++ ); in ImplAddUndoAction_NoNotify()
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()
723 …for ( size_t nPos = m_pData->pActUndoArray->aUndoActions.size(); nPos > m_pData->pActUndoArray->nC… in RemoveLastUndoAction()
725 aGuard.markForDeletion( m_pData->pActUndoArray->aUndoActions[nPos-1].pAction ); in RemoveLastUndoAction()
728 m_pData->pActUndoArray->aUndoActions.Remove( in RemoveLastUndoAction()
730 m_pData->pActUndoArray->aUndoActions.size() - m_pData->pActUndoArray->nCurUndoAction ); in RemoveLastUndoAction()
777 …SfxUndoAction* pAction = m_pData->pActUndoArray->aUndoActions[ --m_pData->pActUndoArray->nCurUndoA… in ImplUndo()
797 while ( nCurAction < m_pData->pActUndoArray->aUndoActions.size() ) in ImplUndo()
799 if ( m_pData->pActUndoArray->aUndoActions[ nCurAction++ ].pAction == pAction ) in ImplUndo()
829 return pUndoArray->aUndoActions.size() - pUndoArray->nCurUndoAction; in ImplGetRedoActionCount_Lock()
839 if ( (pUndoArray->nCurUndoAction + nNo) > pUndoArray->aUndoActions.size() ) in GetRedoAction()
843 return pUndoArray->aUndoActions[ pUndoArray->nCurUndoAction + nNo ].pAction; in GetRedoAction()
853 if ( (pUndoArray->nCurUndoAction + nNo) < pUndoArray->aUndoActions.size() ) in GetRedoActionComment()
855 … sComment = pUndoArray->aUndoActions[ pUndoArray->nCurUndoAction + nNo ].pAction->GetComment(); in GetRedoActionComment()
890 if ( m_pData->pActUndoArray->nCurUndoAction >= m_pData->pActUndoArray->aUndoActions.size() ) in ImplRedo()
896 …SfxUndoAction* pAction = m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->nCurUndoAct… in ImplRedo()
916 while ( nCurAction < m_pData->pActUndoArray->aUndoActions.size() ) in ImplRedo()
918 if ( m_pData->pActUndoArray->aUndoActions[ nCurAction ].pAction == pAction ) in ImplRedo()
941 return m_pData->pActUndoArray->aUndoActions.size(); in GetRepeatActionCount()
949 …return m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->aUndoActions.size() - 1 ].pAc… in GetRepeatActionComment()
958 if ( !m_pData->pActUndoArray->aUndoActions.empty() ) in Repeat()
960 …SfxUndoAction* pAction = m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->aUndoAction… in Repeat()
975 if ( !m_pData->pActUndoArray->aUndoActions.empty() ) in CanRepeat()
977 size_t nActionNo = m_pData->pActUndoArray->aUndoActions.size() - 1; in CanRepeat()
978 return m_pData->pActUndoArray->aUndoActions[nActionNo].pAction->CanRepeat(rTarget); in CanRepeat()
1126 …SfxUndoAction* pCurrentAction= m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->nCurU… in ImplLeaveListAction()
1127 m_pData->pActUndoArray->aUndoActions.Remove( --m_pData->pActUndoArray->nCurUndoAction ); in ImplLeaveListAction()
1138 …SfxUndoAction* pCurrentAction= m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->nCurU… in ImplLeaveListAction()
1149 …SfxUndoAction* pPreviousAction = m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->nCu… in ImplLeaveListAction()
1150 … m_pData->pActUndoArray->aUndoActions.Remove( m_pData->pActUndoArray->nCurUndoAction - 2 ); in ImplLeaveListAction()
1152 pListAction->aUndoActions.Insert( pPreviousAction, 0 ); in ImplLeaveListAction()
1162 for( size_t n = 0; n < pListAction->aUndoActions.size(); n++ ) in ImplLeaveListAction()
1164 if( pListAction->aUndoActions[n].pAction->GetComment().Len() ) in ImplLeaveListAction()
1166 pListAction->SetComment( pListAction->aUndoActions[n].pAction->GetComment() ); in ImplLeaveListAction()
1196 m_pData->pUndoArray->aUndoActions[ nActionPos-1 ].aMarks.push_back( in MarkTopUndoAction()
1216 for ( size_t i=0; i<m_pData->pUndoArray->aUndoActions.size(); ++i ) in RemoveMark()
1218 MarkedUndoAction& rAction = m_pData->pUndoArray->aUndoActions[i]; in RemoveMark()
1249 m_pData->pUndoArray->aUndoActions[ nActionPos-1 ]; in HasTopUndoActionMark()
1271 SfxUndoAction* pActionToRemove = m_pData->pUndoArray->aUndoActions[0].pAction; in RemoveOldestUndoActions()
1280 m_pData->pUndoArray->aUndoActions.Remove( 0 ); in RemoveOldestUndoActions()
1335 aUndoActions[--i].pAction->Undo(); in Undo()
1344 aUndoActions[--i].pAction->UndoWithContext( i_context ); in UndoWithContext()
1352 for(size_t i=nCurUndoAction;i<aUndoActions.size();i++) in Redo()
1353 aUndoActions[i].pAction->Redo(); in Redo()
1354 nCurUndoAction = aUndoActions.size(); in Redo()
1361 for(size_t i=nCurUndoAction;i<aUndoActions.size();i++) in RedoWithContext()
1362 aUndoActions[i].pAction->RedoWithContext( i_context ); in RedoWithContext()
1363 nCurUndoAction = aUndoActions.size(); 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()
1496 while ( !aUndoActions.empty() ) in ~SfxUndoArray()
1498 SfxUndoAction *pAction = aUndoActions[ aUndoActions.size() - 1 ].pAction; in ~SfxUndoArray()
1499 aUndoActions.Remove( aUndoActions.size() - 1 ); in ~SfxUndoArray()