Lines Matching refs:pActUndoArray
180 SfxUndoArray* pActUndoArray; member
193 ,pActUndoArray( NULL ) in SfxUndoManager_Data()
201 pActUndoArray = pUndoArray; in SfxUndoManager_Data()
449 long nNumToDelete = m_pData->pActUndoArray->aUndoActions.size() - nMaxUndoActionCount; in SetMaxUndoActionCount()
452 size_t nPos = m_pData->pActUndoArray->aUndoActions.size(); in SetMaxUndoActionCount()
453 if ( nPos > m_pData->pActUndoArray->nCurUndoAction ) in SetMaxUndoActionCount()
455 SfxUndoAction* pAction = m_pData->pActUndoArray->aUndoActions[nPos-1].pAction; in SetMaxUndoActionCount()
457 m_pData->pActUndoArray->aUndoActions.Remove( nPos-1 ); in SetMaxUndoActionCount()
461 if ( nNumToDelete > 0 && m_pData->pActUndoArray->nCurUndoAction > 0 ) in SetMaxUndoActionCount()
463 SfxUndoAction* pAction = m_pData->pActUndoArray->aUndoActions[0].pAction; in SetMaxUndoActionCount()
465 m_pData->pActUndoArray->aUndoActions.Remove(0); in SetMaxUndoActionCount()
466 --m_pData->pActUndoArray->nCurUndoAction; in SetMaxUndoActionCount()
470 if ( nPos == m_pData->pActUndoArray->aUndoActions.size() ) in SetMaxUndoActionCount()
474 m_pData->pActUndoArray->nMaxUndoActions = nMaxUndoActionCount; in SetMaxUndoActionCount()
482 return m_pData->pActUndoArray->nMaxUndoActions; in GetMaxUndoActionCount()
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()
498 m_pData->pActUndoArray->nCurUndoAction = 0; in ImplClearCurrentLevel_NoNotify()
579 while ( m_pData->pActUndoArray->nCurUndoAction > 0 ) in ImplClearUndo()
581 SfxUndoAction* pUndoAction = m_pData->pActUndoArray->aUndoActions[0].pAction; in ImplClearUndo()
582 m_pData->pActUndoArray->aUndoActions.Remove( 0 ); in ImplClearUndo()
584 --m_pData->pActUndoArray->nCurUndoAction; in ImplClearUndo()
593 …doArray = ( i_currentLevel == IUndoManager::CurrentLevel ) ? m_pData->pActUndoArray : m_pData->pUn… in ImplClearRedo()
613 if ( !ImplIsUndoEnabled_Lock() || ( m_pData->pActUndoArray->nMaxUndoActions == 0 ) ) in ImplAddUndoAction_NoNotify()
620 SfxUndoAction* pMergeWithAction = m_pData->pActUndoArray->nCurUndoAction ? in ImplAddUndoAction_NoNotify()
621 m_pData->pActUndoArray->aUndoActions[m_pData->pActUndoArray->nCurUndoAction-1].pAction : NULL; in ImplAddUndoAction_NoNotify()
633 if( m_pData->pActUndoArray == m_pData->pUndoArray ) 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()
640 if(m_pData->pActUndoArray->nCurUndoAction) in ImplAddUndoAction_NoNotify()
642 --m_pData->pActUndoArray->nCurUndoAction; in ImplAddUndoAction_NoNotify()
652 m_pData->pActUndoArray->aUndoActions.Insert( pAction, m_pData->pActUndoArray->nCurUndoAction++ ); in ImplAddUndoAction_NoNotify()
675 const SfxUndoArray* pUndoArray = i_currentLevel ? m_pData->pActUndoArray : m_pData->pUndoArray; in GetUndoActionCount()
686 const SfxUndoArray* pUndoArray = i_currentLevel ? m_pData->pActUndoArray : m_pData->pUndoArray; in GetUndoActionComment()
701 …DBG_ASSERT( m_pData->pActUndoArray->nCurUndoAction > 0, "svl::SfxUndoManager::GetUndoActionId(), i… in GetUndoActionId()
702 if ( m_pData->pActUndoArray->nCurUndoAction == 0 ) in GetUndoActionId()
704 …return m_pData->pActUndoArray->aUndoActions[m_pData->pActUndoArray->nCurUndoAction-1].pAction->Get… in GetUndoActionId()
713 …DBG_ASSERT( nNo < m_pData->pActUndoArray->nCurUndoAction, "svl::SfxUndoManager::GetUndoAction(), i… in GetUndoAction()
714 if( nNo >= m_pData->pActUndoArray->nCurUndoAction ) in GetUndoAction()
716 return m_pData->pActUndoArray->aUndoActions[m_pData->pActUndoArray->nCurUndoAction-1-nNo].pAction; in GetUndoAction()
726 …ENSURE_OR_RETURN_VOID( m_pData->pActUndoArray->nCurUndoAction, "svl::SfxUndoManager::RemoveLastUnd… in RemoveLastUndoAction()
728 m_pData->pActUndoArray->nCurUndoAction--; in RemoveLastUndoAction()
731 …for ( size_t nPos = m_pData->pActUndoArray->aUndoActions.size(); nPos > m_pData->pActUndoArray->nC… in RemoveLastUndoAction()
733 aGuard.markForDeletion( m_pData->pActUndoArray->aUndoActions[nPos-1].pAction ); in RemoveLastUndoAction()
736 m_pData->pActUndoArray->aUndoActions.Remove( in RemoveLastUndoAction()
737 m_pData->pActUndoArray->nCurUndoAction, in RemoveLastUndoAction()
738 m_pData->pActUndoArray->aUndoActions.size() - m_pData->pActUndoArray->nCurUndoAction ); in RemoveLastUndoAction()
779 if ( m_pData->pActUndoArray->nCurUndoAction == 0 ) in ImplUndo()
785 …SfxUndoAction* pAction = m_pData->pActUndoArray->aUndoActions[ --m_pData->pActUndoArray->nCurUndoA… in ImplUndo()
805 while ( nCurAction < m_pData->pActUndoArray->aUndoActions.size() ) in ImplUndo()
807 if ( m_pData->pActUndoArray->aUndoActions[ nCurAction++ ].pAction == pAction ) in ImplUndo()
836 const SfxUndoArray* pUndoArray = i_currentLevel ? m_pData->pActUndoArray : m_pData->pUndoArray; in ImplGetRedoActionCount_Lock()
846 const SfxUndoArray* pUndoArray = i_currentLevel ? m_pData->pActUndoArray : m_pData->pUndoArray; in GetRedoAction()
860 const SfxUndoArray* pUndoArray = i_currentLevel ? m_pData->pActUndoArray : m_pData->pUndoArray; in GetRedoActionComment()
898 if ( m_pData->pActUndoArray->nCurUndoAction >= m_pData->pActUndoArray->aUndoActions.size() ) in ImplRedo()
904 …SfxUndoAction* pAction = m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->nCurUndoAct… in ImplRedo()
924 while ( nCurAction < m_pData->pActUndoArray->aUndoActions.size() ) in ImplRedo()
926 if ( m_pData->pActUndoArray->aUndoActions[ nCurAction ].pAction == pAction ) in ImplRedo()
949 return m_pData->pActUndoArray->aUndoActions.size(); in GetRepeatActionCount()
957 …return m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->aUndoActions.size() - 1 ].pAc… in GetRepeatActionComment()
966 if ( !m_pData->pActUndoArray->aUndoActions.empty() ) in Repeat()
968 …SfxUndoAction* pAction = m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->aUndoAction… in Repeat()
983 if ( !m_pData->pActUndoArray->aUndoActions.empty() ) in CanRepeat()
985 size_t nActionNo = m_pData->pActUndoArray->aUndoActions.size() - 1; in CanRepeat()
986 return m_pData->pActUndoArray->aUndoActions[nActionNo].pAction->CanRepeat(rTarget); in CanRepeat()
1036 m_pData->pFatherUndoArray = m_pData->pActUndoArray; in EnterListAction()
1037 …doAction* pAction = new SfxListUndoAction( rComment, rRepeatComment, nId, m_pData->pActUndoArray ); in EnterListAction()
1040 m_pData->pActUndoArray = pAction; in EnterListAction()
1058 return ( m_pData->pActUndoArray != m_pData->pUndoArray ); in ImplIsInListAction_Lock()
1068 SfxUndoArray* pLookup( m_pData->pActUndoArray ); in GetListActionDepth()
1123 …DBG_ASSERT( m_pData->pActUndoArray->pFatherUndoArray, "SfxUndoManager::ImplLeaveListAction, no fat… in ImplLeaveListAction()
1126 SfxUndoArray* pArrayToLeave = m_pData->pActUndoArray; in ImplLeaveListAction()
1128 m_pData->pActUndoArray = m_pData->pActUndoArray->pFatherUndoArray; in ImplLeaveListAction()
1134 …SfxUndoAction* pCurrentAction= m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->nCurU… in ImplLeaveListAction()
1135 m_pData->pActUndoArray->aUndoActions.Remove( --m_pData->pActUndoArray->nCurUndoAction ); in ImplLeaveListAction()
1146 …SfxUndoAction* pCurrentAction= m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->nCurU… in ImplLeaveListAction()
1153 OSL_ENSURE( m_pData->pActUndoArray->nCurUndoAction > 1, in ImplLeaveListAction()
1155 if ( m_pData->pActUndoArray->nCurUndoAction > 1 ) in ImplLeaveListAction()
1157 …SfxUndoAction* pPreviousAction = m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->nCu… in ImplLeaveListAction()
1158 … m_pData->pActUndoArray->aUndoActions.Remove( m_pData->pActUndoArray->nCurUndoAction - 2 ); in ImplLeaveListAction()
1159 --m_pData->pActUndoArray->nCurUndoAction; in ImplLeaveListAction()
1419 pAction = pUndoManagerImplementation->m_pData->pActUndoArray->aUndoActions[nPos].pAction; in SfxLinkUndoAction()