[Libreoffice-commits] core.git: sw/source

Matthias Freund matti_lx at yahoo.de
Sat Mar 9 13:56:59 PST 2013


 sw/source/ui/web/wdocsh.cxx  |    2 +-
 sw/source/ui/web/wfrmsh.cxx  |    5 ++---
 sw/source/ui/web/wtextsh.cxx |    3 +--
 sw/source/ui/web/wview.cxx   |   26 +++++++++++++-------------
 4 files changed, 17 insertions(+), 19 deletions(-)

New commits:
commit 503cde2a28b730fc76d6fb9c3c13216f96cd61a9
Author: Matthias Freund <matti_lx at yahoo.de>
Date:   Sat Mar 9 21:28:14 2013 +0100

    Comment translation DE-EN in /sw/source/ui/web/
    
    Translations and some cleanups...
    
    Change-Id: I70484c2b3e1380e611ed1456a7befccafee58f37
    Reviewed-on: https://gerrit.libreoffice.org/2619
    Reviewed-by: Thomas Arnhold <thomas at arnhold.org>
    Tested-by: Thomas Arnhold <thomas at arnhold.org>

diff --git a/sw/source/ui/web/wdocsh.cxx b/sw/source/ui/web/wdocsh.cxx
index fd5622c..67ca9f4 100644
--- a/sw/source/ui/web/wdocsh.cxx
+++ b/sw/source/ui/web/wdocsh.cxx
@@ -30,7 +30,7 @@
 #include "swtypes.hxx"
 
 #include "shellio.hxx"
-// nur wegen des Itemtypes
+// just because of the itemtypes
 #include "wdocsh.hxx"
 #include "web.hrc"
 
diff --git a/sw/source/ui/web/wfrmsh.cxx b/sw/source/ui/web/wfrmsh.cxx
index 03aa043..c30d0f7 100644
--- a/sw/source/ui/web/wfrmsh.cxx
+++ b/sw/source/ui/web/wfrmsh.cxx
@@ -20,8 +20,7 @@
 #include "hintids.hxx"
 #include <sfx2/app.hxx>
 #include <sfx2/objface.hxx>
-#include <svl/srchitem.hxx> //***
-
+#include <svl/srchitem.hxx>
 #include "swtypes.hxx"
 #include "cmdid.h"
 #include "view.hxx"
@@ -32,7 +31,7 @@
 #include "web.hrc"
 
 
-// STATIC DATA -----------------------------------------------------------
+// STATIC DATA
 #define SwWebFrameShell
 #include <sfx2/msg.hxx>
 #include "swslots.hxx"
diff --git a/sw/source/ui/web/wtextsh.cxx b/sw/source/ui/web/wtextsh.cxx
index 633d6ba..d433a6e 100644
--- a/sw/source/ui/web/wtextsh.cxx
+++ b/sw/source/ui/web/wtextsh.cxx
@@ -36,8 +36,7 @@
 
 #include <unomid.h>
 
-
-// STATIC DATA -----------------------------------------------------------
+// STATIC DATA
 #define SwWebTextShell
 #define Paragraph
 #define HyphenZone
diff --git a/sw/source/ui/web/wview.cxx b/sw/source/ui/web/wview.cxx
index 707e128..072d92a 100644
--- a/sw/source/ui/web/wview.cxx
+++ b/sw/source/ui/web/wview.cxx
@@ -47,7 +47,7 @@
 #include <barcfg.hxx>
 #include <doc.hxx>
 
-// EIGENTLICH nicht moeglich !!
+// TECHNICALLY not possible !!
 #include <beziersh.hxx>
 #include <drawsh.hxx>
 #include <drwtxtsh.hxx>
@@ -104,15 +104,15 @@ SwWebView::~SwWebView()
 
 void SwWebView::SelectShell()
 {
-    // Entscheidung, ob UpdateTable gerufen werden muss
+    // Decision whether UpdateTable must be called
     bool bUpdateTable = false;
     const SwFrmFmt* pCurTableFmt = GetWrtShell().GetTableFmt();
     if(pCurTableFmt && pCurTableFmt != GetLastTblFrmFmt())
     {
-        bUpdateTable = true; // kann erst spaeter ausgefuehrt werden
+        bUpdateTable = true; // can only be executed later
     }
     SetLastTblFrmFmt(pCurTableFmt);
-    //SEL_TBL und SEL_TBL_CELLS koennen verodert sein!
+    //SEL_TBL and SEL_TBL_CELLS can be ored!
     int nNewSelectionType = (GetWrtShell().GetSelectionType()
                                 & ~nsSelectionType::SEL_TBL_CELLS);
 
@@ -122,7 +122,7 @@ void SwWebView::SelectShell()
         GetViewFrame()->GetBindings().InvalidateAll( sal_False );
         if ( _nSelectionType & nsSelectionType::SEL_OLE ||
              _nSelectionType & nsSelectionType::SEL_GRF )
-            //Fuer Grafiken und OLE kann sich natuerlich das Verb aendern!
+            //The verb may of course change for graphics and OLE!
             ImpSetVerb( nNewSelectionType );
     }
     else
@@ -132,9 +132,9 @@ void SwWebView::SelectShell()
 
         if( GetCurShell() )
         {
-            rDispatcher.Flush();        // alle gecachten Shells wirklich loeschen
+            rDispatcher.Flush();        // really delete all cached shells
 
-            //Zur alten Selektion merken welche Toolbar sichtbar war
+            //Additonal to the old selection remember which toolbar was visible.
             sal_Int32 nId = rDispatcher.GetObjectBarId( SFX_OBJECTBAR_OBJECT );
             if ( nId )
                 pBarCfg->SetTopToolbar( _nSelectionType, nId );
@@ -269,10 +269,10 @@ void SwWebView::SelectShell()
             GetEditWin().SetInputContext( aCntxt );
         }
 
-        //Zur neuen Selektion die Toolbar aktivieren, die auch beim letzten Mal
-        //aktiviert war
-        //Vorher muss ein Flush() sein, betrifft aber lt. MBA nicht das UI und ist
-        //kein Performance-Problem
+        //Additional to the selection enable the toolbar, which was
+        //activated last time
+        //Before must be a Flush(), but concerns according to MBA not the
+        //user interface and is not a performance issue.
         // TODO/LATER: maybe now the Flush() command is superfluous?!
         rDispatcher.Flush();
 
@@ -288,11 +288,11 @@ void SwWebView::SelectShell()
     }
     GetViewImpl()->GetUNOObject_Impl()->NotifySelChanged();
 
-    //Guenstiger Zeitpunkt fuer die Kommunikation mit OLE-Objekten?
+    //Opportune time for the communication with OLE objects?
     if ( GetDocShell()->GetDoc()->IsOLEPrtNotifyPending() )
         GetDocShell()->GetDoc()->PrtOLENotify( sal_False );
 
-    //jetzt das Tabellen-Update
+    //now the table update
     if(bUpdateTable)
         GetWrtShell().UpdateTable();
 }


More information about the Libreoffice-commits mailing list