undoapi: first sketch of the listener API - not sure this will survive 'til the final version
This commit is contained in:
parent
41b20c50ac
commit
ed4ed591a7
3 changed files with 6 additions and 6 deletions
|
@ -1149,7 +1149,7 @@ void SmDocShell::Execute(SfxRequest& rReq)
|
|||
if( pArgs && SFX_ITEM_SET == pArgs->GetItemState( nId, FALSE, &pItem ))
|
||||
nCnt = ((SfxUInt16Item*)pItem)->GetValue();
|
||||
|
||||
BOOL (SfxUndoManager:: *fnDo)( USHORT );
|
||||
BOOL (SfxUndoManager:: *fnDo)();
|
||||
|
||||
sal_uInt16 nCount;
|
||||
if( SID_UNDO == rReq.GetSlot() )
|
||||
|
@ -1164,7 +1164,7 @@ void SmDocShell::Execute(SfxRequest& rReq)
|
|||
}
|
||||
|
||||
for( ; nCnt && nCount; --nCnt, --nCount )
|
||||
(pTmpUndoMgr->*fnDo)( 0 );
|
||||
(pTmpUndoMgr->*fnDo)();
|
||||
}
|
||||
Repaint();
|
||||
SfxViewFrame* pFrm = SfxViewFrame::GetFirst( this );
|
||||
|
|
|
@ -1397,7 +1397,7 @@ void SwAnnotationShell::ExecUndo(SfxRequest &rReq)
|
|||
nCnt = 0;
|
||||
|
||||
while( nSteps-- )
|
||||
pUndoManager->Undo(0);
|
||||
pUndoManager->Undo();
|
||||
}
|
||||
|
||||
if ( nCnt )
|
||||
|
@ -1421,7 +1421,7 @@ void SwAnnotationShell::ExecUndo(SfxRequest &rReq)
|
|||
nCnt = 0;
|
||||
|
||||
while( nSteps-- )
|
||||
pUndoManager->Redo(0);
|
||||
pUndoManager->Redo();
|
||||
}
|
||||
|
||||
if ( nCnt )
|
||||
|
|
|
@ -628,10 +628,10 @@ void SwDrawTextShell::ExecUndo(SfxRequest &rReq)
|
|||
{
|
||||
if( SID_UNDO == nId )
|
||||
while( nCnt-- )
|
||||
pUndoManager->Undo(0);
|
||||
pUndoManager->Undo();
|
||||
else
|
||||
while( nCnt-- )
|
||||
pUndoManager->Redo(0);
|
||||
pUndoManager->Redo();
|
||||
}
|
||||
bCallBase = FALSE;
|
||||
GetView().GetViewFrame()->GetBindings().InvalidateAll(sal_False);
|
||||
|
|
Loading…
Reference in a new issue