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()
639 --m_pData->pActUndoArray->nCurUndoAction; in ImplAddUndoAction_NoNotify()
644 m_pData->pActUndoArray->aUndoActions.Insert( pAction, m_pData->pActUndoArray->nCurUndoAction++ ); in ImplAddUndoAction_NoNotify()
667 const SfxUndoArray* pUndoArray = i_currentLevel ? m_pData->pActUndoArray : m_pData->pUndoArray; in GetUndoActionCount()
678 const SfxUndoArray* pUndoArray = i_currentLevel ? m_pData->pActUndoArray : m_pData->pUndoArray; in GetUndoActionComment()
693 …DBG_ASSERT( m_pData->pActUndoArray->nCurUndoAction > 0, "svl::SfxUndoManager::GetUndoActionId(), i… in GetUndoActionId()
694 if ( m_pData->pActUndoArray->nCurUndoAction == 0 ) in GetUndoActionId()
696 …return m_pData->pActUndoArray->aUndoActions[m_pData->pActUndoArray->nCurUndoAction-1].pAction->Get… in GetUndoActionId()
705 …DBG_ASSERT( nNo < m_pData->pActUndoArray->nCurUndoAction, "svl::SfxUndoManager::GetUndoAction(), i… in GetUndoAction()
706 if( nNo >= m_pData->pActUndoArray->nCurUndoAction ) in GetUndoAction()
708 return m_pData->pActUndoArray->aUndoActions[m_pData->pActUndoArray->nCurUndoAction-1-nNo].pAction; in GetUndoAction()
718 …ENSURE_OR_RETURN_VOID( m_pData->pActUndoArray->nCurUndoAction, "svl::SfxUndoManager::RemoveLastUnd… in RemoveLastUndoAction()
720 m_pData->pActUndoArray->nCurUndoAction--; in RemoveLastUndoAction()
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()
729 m_pData->pActUndoArray->nCurUndoAction, in RemoveLastUndoAction()
730 m_pData->pActUndoArray->aUndoActions.size() - m_pData->pActUndoArray->nCurUndoAction ); in RemoveLastUndoAction()
771 if ( m_pData->pActUndoArray->nCurUndoAction == 0 ) in ImplUndo()
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()
828 const SfxUndoArray* pUndoArray = i_currentLevel ? m_pData->pActUndoArray : m_pData->pUndoArray; in ImplGetRedoActionCount_Lock()
838 const SfxUndoArray* pUndoArray = i_currentLevel ? m_pData->pActUndoArray : m_pData->pUndoArray; in GetRedoAction()
852 const SfxUndoArray* pUndoArray = i_currentLevel ? m_pData->pActUndoArray : m_pData->pUndoArray; 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()
1028 m_pData->pFatherUndoArray = m_pData->pActUndoArray; in EnterListAction()
1029 …doAction* pAction = new SfxListUndoAction( rComment, rRepeatComment, nId, m_pData->pActUndoArray ); in EnterListAction()
1032 m_pData->pActUndoArray = pAction; in EnterListAction()
1050 return ( m_pData->pActUndoArray != m_pData->pUndoArray ); in ImplIsInListAction_Lock()
1060 SfxUndoArray* pLookup( m_pData->pActUndoArray ); in GetListActionDepth()
1115 …DBG_ASSERT( m_pData->pActUndoArray->pFatherUndoArray, "SfxUndoManager::ImplLeaveListAction, no fat… in ImplLeaveListAction()
1118 SfxUndoArray* pArrayToLeave = m_pData->pActUndoArray; in ImplLeaveListAction()
1120 m_pData->pActUndoArray = m_pData->pActUndoArray->pFatherUndoArray; in ImplLeaveListAction()
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()
1145 OSL_ENSURE( m_pData->pActUndoArray->nCurUndoAction > 1, in ImplLeaveListAction()
1147 if ( m_pData->pActUndoArray->nCurUndoAction > 1 ) 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()
1151 --m_pData->pActUndoArray->nCurUndoAction; in ImplLeaveListAction()
1411 pAction = pUndoManagerImplementation->m_pData->pActUndoArray->aUndoActions[nPos].pAction; in SfxLinkUndoAction()