[Libreoffice-commits] .: 2 commits - sw/inc sw/source

Tor Lillqvist tml at kemper.freedesktop.org
Mon May 28 06:17:30 PDT 2012


 sw/inc/swscanner.hxx          |    4 ++--
 sw/source/core/undo/unnum.cxx |   25 ++++++++++---------------
 2 files changed, 12 insertions(+), 17 deletions(-)

New commits:
commit 12e30517610b7760b9deddb1320fe50ec7f81562
Author: Philipp Riemer <ruderphilipp at gmail.com>
Date:   Sat May 26 13:54:17 2012 +0200

    Translate German comments in sw/source/core/undo/unnum.cxx

diff --git a/sw/source/core/undo/unnum.cxx b/sw/source/core/undo/unnum.cxx
index ac7c13f..3175220 100644
--- a/sw/source/core/undo/unnum.cxx
+++ b/sw/source/core/undo/unnum.cxx
@@ -33,7 +33,7 @@
 #include <editeng/lrspitem.hxx>
 #include <doc.hxx>
 #include <IDocumentUndoRedo.hxx>
-#include <swundo.hxx>           // fuer die UndoIds
+#include <swundo.hxx>
 #include <pam.hxx>
 #include <ndtxt.hxx>
 #include <UndoCore.hxx>
@@ -63,7 +63,7 @@ SwUndoInsNum::SwUndoInsNum( const SwPosition& rPos, const SwNumRule& rRule,
     nSttSet( ULONG_MAX ), pOldNumRule( 0 ),
     sReplaceRule( rReplaceRule ), nLRSavePos( 0 )
 {
-    // keine Selektion !!
+    // No selection!
     nEndNode = 0, nEndCntnt = USHRT_MAX;
     nSttNode = rPos.nNode.GetIndex();
     nSttCntnt = rPos.nContent.GetIndex();
@@ -102,9 +102,8 @@ void SwUndoInsNum::UndoImpl(::sw::UndoRedoContext & rContext)
 
         if( nLRSavePos )
         {
-            // sofort Updaten, damit eventuell "alte" LRSpaces wieder
-            // gueltig werden.
-            // !!! Dafuer suche aber erstmal den richtigen NumRule - Namen!
+            // Update immediately so that potential "old" LRSpaces will be valid again.
+            // For that search firstly the correct NumRule names!
             if( !pNd && nSttNode )
                 pNd = rDoc.GetNodes()[ nSttNode ]->GetTxtNode();
 
@@ -233,33 +232,29 @@ void SwUndoDelNum::AddNode( const SwTxtNode& rNd, sal_Bool )
     }
 }
 
-
-/*  */
-
-
 SwUndoMoveNum::SwUndoMoveNum( const SwPaM& rPam, long nOff, sal_Bool bIsOutlMv )
     : SwUndo( bIsOutlMv ? UNDO_OUTLINE_UD : UNDO_MOVENUM ),
     SwUndRng( rPam ),
     nNewStt( 0 ), nOffset( nOff )
 {
-    // nOffset: nach unten  =>  1
-    //          nach oben   => -1
+    // nOffset: Down    =>  1
+    //          Up      => -1
 }
 
 void SwUndoMoveNum::UndoImpl(::sw::UndoRedoContext & rContext)
 {
     sal_uLong nTmpStt = nSttNode, nTmpEnd = nEndNode;
 
-    if( nEndNode || USHRT_MAX != nEndCntnt )        // Bereich ?
+    if( nEndNode || USHRT_MAX != nEndCntnt )        // section?
     {
-        if( nNewStt < nSttNode )        // nach vorne verschoben
+        if( nNewStt < nSttNode )        // moved forwards
             nEndNode = nEndNode - ( nSttNode - nNewStt );
         else
             nEndNode = nEndNode + ( nNewStt - nSttNode );
     }
     nSttNode = nNewStt;
 
-//JP 22.06.95: wird wollen die Bookmarks/Verzeichnisse behalten, oder?
+// We want to keep the Bookmarks/Directories, don't we?
 //  SetPaM( rUndoIter );
 //  RemoveIdxFromRange( *rUndoIter.pAktPam, sal_True );
 
@@ -272,7 +267,7 @@ void SwUndoMoveNum::UndoImpl(::sw::UndoRedoContext & rContext)
 
 void SwUndoMoveNum::RedoImpl(::sw::UndoRedoContext & rContext)
 {
-//JP 22.06.95: wird wollen die Bookmarks/Verzeichnisse behalten, oder?
+// We want to keep the Bookmarks/Directories, don't we?
 //  SetPaM( rUndoIter );
 //  RemoveIdxFromRange( *rUndoIter.pAktPam, sal_True );
 
commit 1a0ca473e97a032686669e5198ef2d3f25e2f606
Author: Philipp Riemer <ruderphilipp at gmail.com>
Date:   Fri May 25 21:17:27 2012 +0200

    Translate German comments in sw/inc/swscanner.hxx

diff --git a/sw/inc/swscanner.hxx b/sw/inc/swscanner.hxx
index d1c6fe9..3c05995 100644
--- a/sw/inc/swscanner.hxx
+++ b/sw/inc/swscanner.hxx
@@ -35,8 +35,8 @@ class SwTxtNode;
 
 /*************************************************************************
  *                class SwScanner
- * Hilfsklasse, die beim Spellen die Worte im gewuenschten Bereich
- * nacheinander zur Verfuegung stellt.
+ * Helper class that provides consecutively the words of a selected area
+ * during spell check
  *************************************************************************/
 
 class SwScanner


More information about the Libreoffice-commits mailing list