diff options
Diffstat (limited to 'svl/source/undo/undo.cxx')
-rw-r--r-- | svl/source/undo/undo.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx index 8e77cde327da..046f9e92e8e3 100644 --- a/svl/source/undo/undo.cxx +++ b/svl/source/undo/undo.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -185,7 +185,7 @@ void SfxUndoManager::SetMaxUndoActionCount( USHORT nMaxUndoActionCount ) // the number of entries due to a lower nMaxUndoActionCount. // Both redo and undo action entries will be removed until we reached the // new nMaxUndoActionCount. - + long nNumToDelete = pActUndoArray->aUndoActions.Count() - nMaxUndoActionCount; if ( nNumToDelete > 0 ) { @@ -212,7 +212,7 @@ void SfxUndoManager::SetMaxUndoActionCount( USHORT nMaxUndoActionCount ) --nNumToDelete; } } - + if ( nPos == pActUndoArray->aUndoActions.Count() ) break; // Cannot delete more entries } @@ -378,9 +378,9 @@ void SfxUndoManager::RemoveLastUndoAction() BOOL SfxUndoManager::Undo( USHORT ) { - bool bUndoWasEnabled = mbUndoEnabled; + bool bUndoWasEnabled = mbUndoEnabled; mbUndoEnabled = false; - + BOOL bRet = FALSE; try @@ -405,7 +405,7 @@ BOOL SfxUndoManager::Undo( USHORT ) void SfxUndoManager::Undo( SfxUndoAction &rAction ) { - bool bUndoWasEnabled = mbUndoEnabled; + bool bUndoWasEnabled = mbUndoEnabled; mbUndoEnabled = false; try { @@ -445,9 +445,9 @@ USHORT SfxUndoManager::GetRedoActionId( USHORT nNo ) const BOOL SfxUndoManager::Redo( USHORT ) { - bool bUndoWasEnabled = mbUndoEnabled; + bool bUndoWasEnabled = mbUndoEnabled; mbUndoEnabled = false; - + BOOL bRet = FALSE; try @@ -472,7 +472,7 @@ BOOL SfxUndoManager::Redo( USHORT ) void SfxUndoManager::Redo( SfxUndoAction &rAction ) { - bool bUndoWasEnabled = mbUndoEnabled; + bool bUndoWasEnabled = mbUndoEnabled; mbUndoEnabled = false; try @@ -549,7 +549,7 @@ BOOL SfxUndoManager::CanRepeat( SfxRepeatTarget &rTarget, USHORT nNo ) const void SfxUndoManager::EnterListAction( const XubString& rComment, const XubString &rRepeatComment, USHORT nId ) -/* [Beschreibung] +/* [Beschreibung] Fuegt eine ListUndoAction ein und setzt dessen UndoArray als aktuelles. */ @@ -572,7 +572,7 @@ void SfxUndoManager::EnterListAction( void SfxUndoManager::LeaveListAction() -/* [Beschreibung] +/* [Beschreibung] Verlaesst die aktuelle ListAction und geht eine Ebene nach oben. */ @@ -658,7 +658,7 @@ SfxListUndoAction::SfxListUndoAction USHORT Id, SfxUndoArray *pFather ) -: nId(Id), aComment(rComment), aRepeatComment(rRepeatComment) +: nId(Id), aComment(rComment), aRepeatComment(rRepeatComment) { pFatherUndoArray = pFather; nMaxUndoActions = USHRT_MAX; @@ -710,7 +710,7 @@ BOOL SfxListUndoAction::Merge( SfxUndoAction *pNextAction ) //------------------------------------------------------------------------ SfxLinkUndoAction::SfxLinkUndoAction(SfxUndoManager *pManager) -/* [Beschreibung] +/* [Beschreibung] Richtet eine LinkAction ein, die auf einen weiteren UndoManager zeigt. Holt sich als zugehoerige Action des weiteren UndoManagers dessen |