undoapi: first sketch of the listener API - not sure this will survive 'til the final version

This commit is contained in:
Frank Schoenheit [fs] 2010-10-14 16:40:32 +02:00
parent f145a48eaf
commit f98434f647
2 changed files with 6 additions and 6 deletions

4
sd/inc/undo/undomanager.hxx Normal file → Executable file
View file

@ -47,8 +47,8 @@ public:
bool isInListAction() const { return mnListLevel != 0; }
bool isInUndo() const { return maIsInUndoLock.isLocked(); }
virtual BOOL Undo( USHORT nCount=1 );
virtual BOOL Redo( USHORT nCount=1 );
virtual BOOL Undo();
virtual BOOL Redo();
/** Set or reset the undo manager linked with the called undo manager.
*/

8
sd/source/core/undo/undomanager.cxx Normal file → Executable file
View file

@ -79,16 +79,16 @@ void UndoManager::AddUndoAction( SfxUndoAction *pAction, BOOL bTryMerg /* = FALS
}
BOOL UndoManager::Undo( USHORT nCount )
BOOL UndoManager::Undo()
{
ScopeLockGuard aGuard( maIsInUndoLock );
return SfxUndoManager::Undo( nCount );
return SfxUndoManager::Undo();
}
BOOL UndoManager::Redo( USHORT nCount )
BOOL UndoManager::Redo()
{
ScopeLockGuard aGuard( maIsInUndoLock );
return SfxUndoManager::Redo( nCount );
return SfxUndoManager::Redo();
}