diff options
author | Philipp Weissenbacher <p.weissenbacher@gmail.com> | 2014-07-25 15:41:58 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-07-25 17:10:49 +0000 |
commit | a120f1da67083a5d95b304833996b06c1a737f13 (patch) | |
tree | 165298ab9d5732595d1f99cb35068b083ed4c19e /svl/source/undo | |
parent | 8a690c88a92c7e92c702cedf96851ae1eb929379 (diff) |
fdo#39468 Make svl/ German comment clean
I went through all files manually and checked with the tool.
Change-Id: I2eba5e61a0814dd88d7c2c001cd85db8032f1b9f
Reviewed-on: https://gerrit.libreoffice.org/10545
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'svl/source/undo')
-rw-r--r-- | svl/source/undo/undo.cxx | 38 |
1 files changed, 16 insertions, 22 deletions
diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx index 4b3c13143247..7ac42cc95800 100644 --- a/svl/source/undo/undo.cxx +++ b/svl/source/undo/undo.cxx @@ -97,7 +97,7 @@ OUString SfxUndoAction::GetRepeatComment(SfxRepeatTarget&) const void SfxUndoAction::Undo() { - // die sind nur konzeptuell pure virtual + // These are only conceptually pure virtual OSL_FAIL( "pure virtual function called: SfxUndoAction::Undo()" ); } @@ -111,7 +111,7 @@ void SfxUndoAction::UndoWithContext( SfxUndoContext& i_context ) void SfxUndoAction::Redo() { - // die sind nur konzeptuell pure virtual + // These are only conceptually pure virtual OSL_FAIL( "pure virtual function called: SfxUndoAction::Redo()" ); } @@ -125,7 +125,7 @@ void SfxUndoAction::RedoWithContext( SfxUndoContext& i_context ) void SfxUndoAction::Repeat(SfxRepeatTarget&) { - // die sind nur konzeptuell pure virtual + // These are only conceptually pure virtual OSL_FAIL( "pure virtual function called: SfxUndoAction::Repeat()" ); } @@ -931,15 +931,11 @@ void SfxUndoManager::RemoveUndoListener( SfxUndoListener& i_listener ) } } - +/** + * Inserts a ListUndoAction and sets its UndoArray as current. + */ void SfxUndoManager::EnterListAction( const OUString& rComment, const OUString &rRepeatComment, sal_uInt16 nId ) - -/* [Beschreibung] - - Fuegt eine ListUndoAction ein und setzt dessen UndoArray als aktuelles. -*/ - { UndoManagerGuard aGuard( *m_pData ); @@ -952,7 +948,7 @@ void SfxUndoManager::EnterListAction( const OUString& rComment, m_pData->pFatherUndoArray = m_pData->pActUndoArray; SfxListUndoAction* pAction = new SfxListUndoAction( rComment, rRepeatComment, nId, m_pData->pActUndoArray ); OSL_VERIFY( ImplAddUndoAction_NoNotify( pAction, false, false, aGuard ) ); - // expected to succeed: all conditions under which it could fail should have been checked already + // expected to succeed: all conditions under which it could fail should have been checked already m_pData->pActUndoArray = pAction; // notification @@ -1292,22 +1288,20 @@ bool SfxListUndoAction::Merge( SfxUndoAction *pNextAction ) return !aUndoActions.empty() && aUndoActions[aUndoActions.size()-1].pAction->Merge( pNextAction ); } - +/** + * Creates a LinkAction which points to another UndoManager. + * Gets that UndoManagers current Action and sets it as that UndoManager's + * associated Action. + */ SfxLinkUndoAction::SfxLinkUndoAction(::svl::IUndoManager *pManager) -/* [Beschreibung] - - Richtet eine LinkAction ein, die auf einen weiteren UndoManager zeigt. - Holt sich als zugehoerige Action des weiteren UndoManagers dessen - aktuelle Action. -*/ - { pUndoManager = pManager; SfxUndoManager* pUndoManagerImplementation = dynamic_cast< SfxUndoManager* >( pManager ); ENSURE_OR_THROW( pUndoManagerImplementation != NULL, "unsupported undo manager implementation!" ); - // yes, this cast is dirty. But reaching into the SfxUndoManager's implementation, - // directly accessing its internal stack, and tampering with an action on that stack - // is dirty, too. + + // yes, this cast is dirty. But reaching into the SfxUndoManager's implementation, + // directly accessing its internal stack, and tampering with an action on that stack + // is dirty, too. if ( pManager->GetMaxUndoActionCount() ) { size_t nPos = pManager->GetUndoActionCount()-1; |