[PATCH] fdo#39468 Comment translation GER-ENG in sw/source/ui/ribbar...

Matthias Freund (via Code Review) gerrit at gerrit.libreoffice.org
Mon May 13 13:55:45 PDT 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/3893

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/93/3893/1

fdo#39468 Comment translation GER-ENG in sw/source/ui/ribbar/

cleanups and translations - and a forgotten file.

Change-Id: I048ff445fa04b12cb86ae580370bfe444041d41f
---
M sw/source/ui/ribbar/conarc.cxx
M sw/source/ui/ribbar/concustomshape.cxx
M sw/source/ui/ribbar/conform.cxx
M sw/source/ui/ribbar/conpoly.cxx
M sw/source/ui/ribbar/conrect.cxx
M sw/source/ui/ribbar/drawbase.cxx
M sw/source/ui/ribbar/dselect.cxx
M sw/source/ui/ribbar/inputwin.cxx
M sw/source/ui/web/web.src
9 files changed, 65 insertions(+), 337 deletions(-)



diff --git a/sw/source/ui/ribbar/conarc.cxx b/sw/source/ui/ribbar/conarc.cxx
index 93dcf6b..d3cf4d1 100644
--- a/sw/source/ui/ribbar/conarc.cxx
+++ b/sw/source/ui/ribbar/conarc.cxx
@@ -19,35 +19,16 @@
 
 #include <svx/svdobj.hxx>
 
-
 #include "view.hxx"
 #include "edtwin.hxx"
 #include "wrtsh.hxx"
 #include "drawbase.hxx"
 #include "conarc.hxx"
 
-
-
-/*************************************************************************
-|*
-|* Konstruktor
-|*
-\************************************************************************/
-
-
-
 ConstArc::ConstArc(SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView)
     : SwDrawBase(pWrtShell, pEditWin, pSwView), nAnzButUp(0)
 {
 }
-
-/*************************************************************************
-|*
-|* MouseButtonDown-event
-|*
-\************************************************************************/
-
-
 
 sal_Bool ConstArc::MouseButtonDown( const MouseEvent& rMEvt )
 {
@@ -60,14 +41,6 @@
     }
     return (bReturn);
 }
-
-/*************************************************************************
-|*
-|* MouseButtonUp-event
-|*
-\************************************************************************/
-
-
 
 sal_Bool ConstArc::MouseButtonUp( const MouseEvent& rMEvt )
 {
@@ -84,7 +57,7 @@
         else
         {   nAnzButUp++;
 
-            if (nAnzButUp == 3)     // Kreisbogenerzeugung beendet
+            if (nAnzButUp == 3)     // Generating of circular arc finished
             {
                 SwDrawBase::MouseButtonUp(rMEvt);
                 nAnzButUp = 0;
@@ -97,14 +70,6 @@
 
     return (bReturn);
 }
-
-/*************************************************************************
-|*
-|* Function aktivieren
-|*
-\************************************************************************/
-
-
 
 void ConstArc::Activate(const sal_uInt16 nSlotId)
 {
@@ -127,19 +92,11 @@
     SwDrawBase::Activate(nSlotId);
 }
 
-/*************************************************************************
-|*
-|* Funktion deaktivieren
-|*
-\************************************************************************/
-
 void ConstArc::Deactivate()
 {
     nAnzButUp = 0;
 
     SwDrawBase::Deactivate();
 }
-
-
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/ui/ribbar/concustomshape.cxx b/sw/source/ui/ribbar/concustomshape.cxx
index 31b4885..58e3747 100644
--- a/sw/source/ui/ribbar/concustomshape.cxx
+++ b/sw/source/ui/ribbar/concustomshape.cxx
@@ -45,11 +45,6 @@
 
 #include <math.h>
 
-/*************************************************************************
-|*
-|* C'Tor
-|*
-\************************************************************************/
 ConstCustomShape::ConstCustomShape( SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView, SfxRequest& rReq )
     : SwDrawBase( pWrtShell, pEditWin, pSwView )
 {
@@ -61,7 +56,6 @@
     return aCustomShape;
 }
 
-//static
 OUString ConstCustomShape::GetShapeTypeFromRequest( SfxRequest& rReq )
 {
     OUString aRet;
@@ -73,12 +67,6 @@
     }
     return aRet;
 }
-
-/*************************************************************************
-|*
-|* MouseButtonDown-event
-|*
-\************************************************************************/
 
 sal_Bool ConstCustomShape::MouseButtonDown(const MouseEvent& rMEvt)
 {
@@ -106,22 +94,10 @@
     return bReturn;
 }
 
-/*************************************************************************
-|*
-|* MouseButtonUp-event
-|*
-\************************************************************************/
-
 sal_Bool ConstCustomShape::MouseButtonUp(const MouseEvent& rMEvt)
 {
     return SwDrawBase::MouseButtonUp(rMEvt);
 }
-
-/*************************************************************************
-|*
-|* activate function
-|*
-\************************************************************************/
 
 void ConstCustomShape::Activate(const sal_uInt16 nSlotId)
 {
@@ -130,11 +106,7 @@
     SwDrawBase::Activate(nSlotId);
 }
 
-/*************************************************************************
-|*
-|* applying attributes
-|*
-\************************************************************************/
+// applying attributes
 
 void ConstCustomShape::SetAttributes( SdrObject* pObj )
 {
diff --git a/sw/source/ui/ribbar/conform.cxx b/sw/source/ui/ribbar/conform.cxx
index 186fe32..d74065d 100644
--- a/sw/source/ui/ribbar/conform.cxx
+++ b/sw/source/ui/ribbar/conform.cxx
@@ -29,18 +29,12 @@
 
 extern bool bNoInterrupt;       // in mainwn.cxx
 
-/**
- * Ctor
- */
 ConstFormControl::ConstFormControl(SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView) :
     SwDrawBase(pWrtShell, pEditWin, pSwView)
 {
     m_bInsForm = true;
 }
 
-/**
- * MouseButtonDown event
- */
 sal_Bool ConstFormControl::MouseButtonDown(const MouseEvent& rMEvt)
 {
     sal_Bool bReturn = sal_False;
@@ -85,9 +79,6 @@
     return (bReturn);
 }
 
-/**
- * Activate
- */
 void ConstFormControl::Activate(const sal_uInt16 nSlotId)
 {
     m_pWin->SetSdrDrawMode( static_cast<SdrObjKind>(nSlotId) );
diff --git a/sw/source/ui/ribbar/conpoly.cxx b/sw/source/ui/ribbar/conpoly.cxx
index 50f354a..5edde10 100644
--- a/sw/source/ui/ribbar/conpoly.cxx
+++ b/sw/source/ui/ribbar/conpoly.cxx
@@ -28,26 +28,10 @@
 #include "conpoly.hxx"
 #include <basegfx/polygon/b2dpolygon.hxx>
 
-/*************************************************************************
-|*
-|* Konstruktor
-|*
-\************************************************************************/
-
-
-
 ConstPolygon::ConstPolygon(SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView) :
                 SwDrawBase(pWrtShell, pEditWin, pSwView)
 {
 }
-
-/*************************************************************************
-|*
-|* MouseButtonDown-event
-|*
-\************************************************************************/
-
-
 
 sal_Bool ConstPolygon::MouseButtonDown(const MouseEvent& rMEvt)
 {
@@ -59,28 +43,12 @@
     return (bReturn);
 }
 
-/*************************************************************************
-|*
-|* MouseMove-event
-|*
-\************************************************************************/
-
-
-
 sal_Bool ConstPolygon::MouseMove(const MouseEvent& rMEvt)
 {
     sal_Bool bReturn = SwDrawBase::MouseMove(rMEvt);
 
     return bReturn;
 }
-
-/*************************************************************************
-|*
-|* MouseButtonUp-event
-|*
-\************************************************************************/
-
-
 
 sal_Bool ConstPolygon::MouseButtonUp(const MouseEvent& rMEvt)
 {
@@ -113,14 +81,6 @@
     return (bReturn);
 }
 
-/*************************************************************************
-|*
-|* Function aktivieren
-|*
-\************************************************************************/
-
-
-
 void ConstPolygon::Activate(const sal_uInt16 nSlotId)
 {
     switch (nSlotId)
@@ -143,7 +103,5 @@
 
     SwDrawBase::Activate(nSlotId);
 }
-
-
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/ui/ribbar/conrect.cxx b/sw/source/ui/ribbar/conrect.cxx
index a09fd2d..172b09b 100644
--- a/sw/source/ui/ribbar/conrect.cxx
+++ b/sw/source/ui/ribbar/conrect.cxx
@@ -36,10 +36,6 @@
 #include <drawbase.hxx>
 #include <conrect.hxx>
 
-
-/**
- * Ctor
- */
 ConstRectangle::ConstRectangle( SwWrtShell* pWrtShell, SwEditWin* pEditWin,
                                 SwView* pSwView )
     : SwDrawBase( pWrtShell, pEditWin, pSwView ),
@@ -49,9 +45,6 @@
 {
 }
 
-/**
- * MouseButtonDown event
- */
 sal_Bool ConstRectangle::MouseButtonDown(const MouseEvent& rMEvt)
 {
     sal_Bool bReturn;
@@ -69,9 +62,6 @@
     return (bReturn);
 }
 
-/**
- * MouseButtonUp event
- */
 sal_Bool ConstRectangle::MouseButtonUp(const MouseEvent& rMEvt)
 {
     sal_Bool bRet = SwDrawBase::MouseButtonUp(rMEvt);
@@ -146,9 +136,6 @@
     return bRet;
 }
 
-/**
- * Activate
- */
 void ConstRectangle::Activate(const sal_uInt16 nSlotId)
 {
     bMarquee = bCapVertical = false;
@@ -196,7 +183,5 @@
 
     SwDrawBase::Activate(nSlotId);
 }
-
-
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/ui/ribbar/drawbase.cxx b/sw/source/ui/ribbar/drawbase.cxx
index 66e87ea..0064e9e 100644
--- a/sw/source/ui/ribbar/drawbase.cxx
+++ b/sw/source/ui/ribbar/drawbase.cxx
@@ -17,7 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-
 #include <hintids.hxx>
 #include <svx/svdview.hxx>
 #include <svx/svdobj.hxx>
@@ -42,14 +41,6 @@
 
 extern bool bNoInterrupt;       // in mainwn.cxx
 
-
-/*************************************************************************
-|*
-|* Konstruktor
-|*
-\************************************************************************/
-
-
 SwDrawBase::SwDrawBase(SwWrtShell* pSwWrtShell, SwEditWin* pWindow, SwView* pSwView) :
     m_pView(pSwView),
     m_pSh(pSwWrtShell),
@@ -62,24 +53,11 @@
         m_pSh->MakeDrawView();
 }
 
-/*************************************************************************
-|*
-|* Destruktor
-|*
-\************************************************************************/
-
 SwDrawBase::~SwDrawBase()
 {
-    if (m_pView->GetWrtShellPtr()) // Im view-Dtor koennte die wrtsh bereits geloescht worden sein...
+    if (m_pView->GetWrtShellPtr()) // In the view-dtor could the wrtsh already been deleted...
         m_pSh->GetDrawView()->SetEditMode(sal_True);
 }
-
-/*************************************************************************
-|*
-|* MouseButtonDown-event
-|*
-\************************************************************************/
-
 
 sal_Bool SwDrawBase::MouseButtonDown(const MouseEvent& rMEvt)
 {
@@ -105,7 +83,7 @@
     SdrViewEvent aVEvt;
     SdrHitKind eHit = pSdrView->PickAnything(rMEvt, SDRMOUSEBUTTONDOWN, aVEvt);
 
-    // Nur neues Objekt, wenn nicht im Basismode (bzw reinem Selektionsmode)
+    // Only new object, if not in the basic mode (or pure selection mode).
     if (rMEvt.IsLeft() && !m_pWin->IsDrawAction())
     {
         if (IsCreateObj() && (eHit == SDRHIT_UNMARKEDOBJECT || eHit == SDRHIT_NONE || m_pSh->IsDrawCreate()))
@@ -124,36 +102,28 @@
         }
         else if (!pSdrView->IsAction())
         {
-            /**********************************************************************
-            * BEZIER-EDITOR
-            **********************************************************************/
+            // BEZIER-EDITOR
             m_pWin->CaptureMouse();
             m_aStartPos = m_pWin->PixelToLogic(rMEvt.GetPosPixel());
             sal_uInt16 nEditMode = m_pWin->GetBezierMode();
 
             if (eHit == SDRHIT_HANDLE && aVEvt.pHdl->GetKind() == HDL_BWGT)
             {
-                /******************************************************************
-                * Handle draggen
-                ******************************************************************/
+                // Drag handle
                 bNoInterrupt = true;
                 bReturn = pSdrView->BegDragObj(m_aStartPos, (OutputDevice*) NULL, aVEvt.pHdl);
                 m_pWin->SetDrawAction(sal_True);
             }
             else if (eHit == SDRHIT_MARKEDOBJECT && nEditMode == SID_BEZIER_INSERT)
             {
-                /******************************************************************
-                * Klebepunkt einfuegen
-                ******************************************************************/
+                // Insert gluepoint
                 bNoInterrupt = true;
                 bReturn = pSdrView->BegInsObjPoint(m_aStartPos, rMEvt.IsMod1());
                 m_pWin->SetDrawAction(sal_True);
             }
             else if (eHit == SDRHIT_MARKEDOBJECT && rMEvt.IsMod1())
             {
-                /******************************************************************
-                * Klebepunkt selektieren
-                ******************************************************************/
+                // Select gluepoint
                 if (!rMEvt.IsShift())
                     pSdrView->UnmarkAllPoints();
 
@@ -162,16 +132,12 @@
             }
             else if (eHit == SDRHIT_MARKEDOBJECT && !rMEvt.IsShift() && !rMEvt.IsMod2())
             {
-                /******************************************************************
-                * Objekt verschieben
-                ******************************************************************/
+                // Move objekt
                 return sal_False;
             }
             else if (eHit == SDRHIT_HANDLE)
             {
-                /******************************************************************
-                * Klebepunkt selektieren
-                ******************************************************************/
+                // Select gluepoint
                 if (pSdrView->HasMarkablePoints() && (!pSdrView->IsPointMarked(*aVEvt.pHdl) || rMEvt.IsShift()))
                 {
                     SdrHdl* pHdl = NULL;
@@ -203,16 +169,14 @@
             }
             else
             {
-                /******************************************************************
-                * Objekt selektieren oder draggen
-                ******************************************************************/
+                // Select or drag object
                 if (m_pSh->IsObjSelectable(m_aStartPos) && eHit == SDRHIT_UNMARKEDOBJECT)
                 {
                     if (pSdrView->HasMarkablePoints())
                         pSdrView->UnmarkAllPoints();
 
                     bNoInterrupt = false;
-                    // Drag im edtwin verwenden
+                    // Use drag in edtwin
                     return sal_False;
                 }
 
@@ -247,13 +211,6 @@
     return bReturn;
 }
 
-/*************************************************************************
-|*
-|* MouseMove-event
-|*
-\************************************************************************/
-
-
 sal_Bool SwDrawBase::MouseMove(const MouseEvent& rMEvt)
 {
     SdrView *pSdrView = m_pSh->GetDrawView();
@@ -277,13 +234,6 @@
 
     return (bRet);
 }
-
-/*************************************************************************
-|*
-|* MouseButtonUp-event
-|*
-\************************************************************************/
-
 
 sal_Bool SwDrawBase::MouseButtonUp(const MouseEvent& rMEvt)
 {
@@ -316,7 +266,7 @@
             }
 
             m_pSh->EndCreate(SDRCREATE_FORCEEND);
-            if (OBJ_NONE == nDrawMode)   // Textrahmen eingefuegt
+            if (OBJ_NONE == nDrawMode)   // Text border inserted
             {
                uno::Reference< frame::XDispatchRecorder > xRecorder =
                     m_pSh->GetView().GetViewFrame()->GetBindings().GetRecorder();
@@ -336,7 +286,7 @@
                     SwFmtCol aCol((const SwFmtCol&)aSet.Get(RES_COL));
                     aCol.Init(m_pWin->GetFrmColCount(), aCol.GetGutterWidth(), aCol.GetWishWidth());
                     aSet.Put(aCol);
-                    // Vorlagen-AutoUpdate
+                    // Template AutoUpdate
                     SwFrmFmt* pFmt = m_pSh->GetCurFrmFmt();
                     if(pFmt && pFmt->IsAutoUpdateFmt())
                         m_pSh->AutoUpdateFrame(pFmt, aSet);
@@ -360,9 +310,7 @@
 
         if (!pSdrView->HasMarkablePoints())
         {
-            /**********************************************************************
-            * KEIN BEZIER_EDITOR
-            **********************************************************************/
+            // NO BEZIER_EDITOR
             if ((m_pSh->GetDrawView()->IsMarkObj() || m_pSh->GetDrawView()->IsMarkPoints())
                  && rMEvt.IsLeft())
             {
@@ -377,7 +325,7 @@
 
                     if (!m_pSh->IsObjSelected())
                     {
-                        m_pView->LeaveDrawCreate();    // In Selektionsmode wechseln
+                        m_pView->LeaveDrawCreate();    // Switch to selection mode
 
                         m_pSh->GetView().GetViewFrame()->GetBindings().Invalidate(SID_INSERT_DRAW);
 
@@ -386,7 +334,7 @@
                     }
                     m_pView->NoRotate();
 
-                    bCheckShell = true; // ggf BezierShell anwerfen
+                    bCheckShell = true; // if necessary turn on BezierShell
                 }
                 else if (!m_pSh->IsObjSelected() && !m_pWin->IsDrawAction())
                 {
@@ -407,9 +355,7 @@
         }
         else
         {
-            /**********************************************************************
-            * BEZIER_EDITOR
-            **********************************************************************/
+            // BEZIER_EDITOR
             if ( pSdrView->IsAction() )
             {
                 if ( pSdrView->IsInsObjPoint() )
@@ -437,7 +383,7 @@
 
                     if (!m_pSh->IsObjSelected())
                     {
-                        m_pView->LeaveDrawCreate();    // In Selektionsmode wechseln
+                        m_pView->LeaveDrawCreate();    // Switch to selection mode
 
                         m_pSh->GetView().GetViewFrame()->GetBindings().Invalidate(SID_INSERT_DRAW);
 
@@ -446,7 +392,7 @@
                     }
                     m_pView->NoRotate();
 
-                    bCheckShell = true; // ggf BezierShell anwerfen
+                    bCheckShell = true; // if necessary turn on BezierShell
                 }
             }
 
@@ -465,21 +411,14 @@
     }
 
     if (bCheckShell)
-        m_pView->AttrChangedNotify( m_pSh ); // ggf BezierShell anwerfen
+        m_pView->AttrChangedNotify( m_pSh ); // if necessary turn on BezierShell
 
-    //!!!!!!!!!! Achtung Suizid !!!!!!!!!!! Sollte alles mal erneuert werden
+    //!!!!!!!!!! Attention suicide !!!!!!!!!!! Everything should be renewed once
     if ( bAutoCap )
-        m_pView->AutoCaption(FRAME_CAP);   //Kann derzeit nur FRAME sein, sonst auf
-                                        //enums umstellen
+        m_pView->AutoCaption(FRAME_CAP);   //Can currently only be FRAME, otherwise convert
+                                           // to enums
     return (bReturn);
 }
-
-/*************************************************************************
-|*
-|* Function aktivieren
-|*
-\************************************************************************/
-
 
 void SwDrawBase::Activate(const sal_uInt16 nSlot)
 {
@@ -492,13 +431,6 @@
     SetDrawPointer();
     m_pSh->NoEdit();
 }
-
-/*************************************************************************
-|*
-|* Function deaktivieren
-|*
-\************************************************************************/
-
 
 void SwDrawBase::Deactivate()
 {
@@ -519,15 +451,10 @@
     m_pSh->GetView().GetViewFrame()->GetBindings().Invalidate(SID_INSERT_DRAW);
 }
 
-/*************************************************************************
-|*
-|* Tastaturereignisse bearbeiten
-|*
-|* Wird ein KeyEvent bearbeitet, so ist der Return-Wert sal_True, andernfalls
-|* sal_False.
-|*
-\************************************************************************/
-
+// Process keyboard events
+//
+// If a KeyEvent is processed then the return value is sal_True, otherwise
+// Sal_False.
 
 sal_Bool SwDrawBase::KeyInput(const KeyEvent& rKEvt)
 {
@@ -569,32 +496,32 @@
 
                 if (nCode == KEY_UP)
                 {
-                    // Scroll nach oben
+                    // Scroll to top
                     nX = 0;
                     nY =-1;
                 }
                 else if (nCode == KEY_DOWN)
                 {
-                    // Scroll nach unten
+                    // Scroll down
                     nX = 0;
                     nY = 1;
                 }
                 else if (nCode == KEY_LEFT)
                 {
-                    // Scroll nach links
+                    // Scroll left
                     nX =-1;
                     nY = 0;
                 }
                 else if (nCode == KEY_RIGHT)
                 {
-                    // Scroll nach rechts
+                    // Scroll right
                     nX = 1;
                     nY = 0;
                 }
 
                 if (pSdrView->AreObjectsMarked() && rKEvt.GetKeyCode().IsMod2())
                 {
-                    // Objekte verschieben
+                    // Move objects
                     nX *= 100;
                     nY *= 100;
                     pSdrView->MoveAllMarked(Size(nX, nY));
@@ -609,16 +536,10 @@
     return (bReturn);
 }
 
-
-/*************************************************************************
-|*
-|* Tastaturereignisse bearbeiten
-|*
-|* Wird ein KeyEvent bearbeitet, so ist der Return-Wert sal_True, andernfalls
-|* sal_False.
-|*
-\************************************************************************/
-
+// Process keyboard events
+//
+// If a KeyEvent is processed then the return value is sal_True, otherwise
+// Sal_False.
 
 void SwDrawBase::BreakCreate()
 {
@@ -628,13 +549,6 @@
 
     Deactivate();
 }
-
-/*************************************************************************
-|*
-|* Mauspointer umschalten
-|*
-\************************************************************************/
-
 
 void SwDrawBase::SetDrawPointer()
 {
@@ -646,11 +560,7 @@
     m_pWin->SetPointer(aDrawPt);
 }
 
-/*************************************************************************
-|*
-|* Ggf in Selektionsmode wechseln
-|*
-\************************************************************************/
+// If necessary switch into selection mode
 
 void SwDrawBase::EnterSelectMode(const MouseEvent& rMEvt)
 {
@@ -665,7 +575,7 @@
             m_pSh->SelectObj(aPnt);
             if (rMEvt.GetModifier() == KEY_SHIFT || !m_pSh->IsObjSelected())
             {
-                m_pView->LeaveDrawCreate();    // In Selektionsmode wechseln
+                m_pView->LeaveDrawCreate();    // Switch to selection mode
 
                 m_pSh->GetView().GetViewFrame()->GetBindings().Invalidate(SID_INSERT_DRAW);
             }
diff --git a/sw/source/ui/ribbar/dselect.cxx b/sw/source/ui/ribbar/dselect.cxx
index 6308393..6d21a80 100644
--- a/sw/source/ui/ribbar/dselect.cxx
+++ b/sw/source/ui/ribbar/dselect.cxx
@@ -25,26 +25,16 @@
 #include "drawbase.hxx"
 #include "dselect.hxx"
 
-/*************************************************************************
-|*
-|* Konstruktor
-|*
-\************************************************************************/
-
 DrawSelection::DrawSelection(SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView) :
                 SwDrawBase(pWrtShell, pEditWin, pSwView)
 {
     m_bCreateObj = false;
 }
 
-/*************************************************************************
-|*
-|* Tastaturereignisse bearbeiten
-|*
-|* Wird ein KeyEvent bearbeitet, so ist der Return-Wert sal_True, andernfalls
-|* sal_False.
-|*
-\************************************************************************/
+// Process keyboard events
+//
+// If a KeyEvent is processed then the return value is sal_True, otherwise
+// Sal_False.
 
 sal_Bool DrawSelection::KeyInput(const KeyEvent& rKEvt)
 {
@@ -70,12 +60,6 @@
     return (bReturn);
 }
 
-/*************************************************************************
-|*
-|* Function aktivieren
-|*
-\************************************************************************/
-
 void DrawSelection::Activate(const sal_uInt16 nSlotId)
 {
     m_pWin->SetSdrDrawMode(OBJ_NONE);
@@ -84,6 +68,5 @@
 
     m_pSh->GetView().GetViewFrame()->GetBindings().Invalidate(SID_INSERT_DRAW);
 }
-
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/ui/ribbar/inputwin.cxx b/sw/source/ui/ribbar/inputwin.cxx
index c3a1b07..375c280 100644
--- a/sw/source/ui/ribbar/inputwin.cxx
+++ b/sw/source/ui/ribbar/inputwin.cxx
@@ -43,7 +43,7 @@
 #include "edtwin.hxx"
 #include "helpid.h"
 
-// nur fuers UpdateRange - Box in dem der gestackte Cursor sthet loeschen
+// Only for the UpdateRange: Delete the box in which the stacked cursor is positioned.
 #include "pam.hxx"
 
 #include "swundo.hxx"
@@ -53,8 +53,6 @@
 #include <IDocumentContentOperations.hxx>
 
 SFX_IMPL_POS_CHILDWINDOW_WITHID( SwInputChild, FN_EDIT_FORMULA, SFX_OBJECTBAR_OBJECT )
-
-//==================================================================
 
 SwInputWindow::SwInputWindow( Window* pParent, SfxBindings* pBind )
     : ToolBox(  pParent ,   SW_RES( RID_TBX_FORMULA )),
@@ -120,13 +118,11 @@
     aPopMenu.SetSelectHdl(LINK( this, SwInputWindow, MenuHdl ));
 }
 
-//==================================================================
-
 SwInputWindow::~SwInputWindow()
 {
     SfxImageManager::GetImageManager( SW_MOD() )->ReleaseToolBox(this);
 
-    //Lineale aufwecken
+    // wake rulers
     if(pView)
     {
         pView->GetHRuler().SetActive( sal_True );
@@ -153,14 +149,11 @@
     }
 }
 
-
-//==================================================================
-
 void SwInputWindow::DataChanged( const DataChangedEvent& rDCEvt )
 {
     if ( rDCEvt.GetType() == DATACHANGED_SETTINGS && (rDCEvt.GetFlags() & SETTINGS_STYLE) )
     {
-        //      update item images
+        // update item images
         SwModule *pMod  = SW_MOD();
         SfxImageManager *pImgMgr = SfxImageManager::GetImageManager( pMod );
         SetItemImage( FN_FORMULA_CALC,   pImgMgr->GetImage(FN_FORMULA_CALC   ));
@@ -170,8 +163,6 @@
 
     ToolBox::DataChanged( rDCEvt );
 }
-
-//==================================================================
 
 void SwInputWindow::Resize()
 {
@@ -186,19 +177,17 @@
     aEdit.Invalidate();
 }
 
-//==================================================================
-
 void SwInputWindow::ShowWin()
 {
     bIsTable = sal_False;
-    //Lineale anhalten
+    // stop rulers
     if(pView)
     {
         pView->GetHRuler().SetActive( sal_False );
         pView->GetVRuler().SetActive( sal_False );
 
         OSL_ENSURE(pWrtShell, "no WrtShell!");
-        // Cursor in Tabelle
+        // Cursor in table
         bIsTable = pWrtShell->IsCrsrInTbl() ? sal_True : sal_False;
 
         if( bFirst )
@@ -217,12 +206,11 @@
         else
             aPos.SetText(SW_RESSTR(STR_TBL_FORMULA));
 
-        // Aktuelles Feld bearbeiten
+        // Edit current field
         OSL_ENSURE(pMgr == 0, "FieldManager not deleted");
         pMgr = new SwFldMgr;
 
-        // Formel soll immer mit einem "=" beginnen, hier
-        // also setzen
+        // Formular should always begin with "=" , so set here
         String sEdit = OUString('=');
         if( pMgr->GetCurFld() && TYP_FORMELFLD == pMgr->GetCurTypeId() )
         {
@@ -268,7 +256,7 @@
 
         if( bFirst )
         {
-            // WrtShell Flags richtig setzen
+            // Set WrtShell flags correctly
             pWrtShell->SttSelect();
             pWrtShell->EndSelect();
         }
@@ -284,7 +272,7 @@
         aEdit.Invalidate();
         aEdit.Update();
         aEdit.GrabFocus();
-        // UserInterface fuer die Eingabe abklemmen
+        // For input cut the UserInterface
 
         pView->GetEditWin().LockKeyInput(sal_True);
         pView->GetViewFrame()->GetDispatcher()->Lock(sal_True);
@@ -292,7 +280,6 @@
     }
     ToolBox::Show();
 }
-//==================================================================
 
 IMPL_LINK( SwInputWindow, MenuHdl, Menu *, pMenu )
 {
@@ -337,7 +324,7 @@
 IMPL_LINK_NOARG(SwInputWindow, DropdownClickHdl)
 {
     sal_uInt16 nCurID = GetCurItemId();
-    EndSelection(); // setzt CurItemId zurueck !
+    EndSelection(); // reset back CurItemId !
     switch ( nCurID )
     {
         case FN_FORMULA_CALC :
@@ -352,13 +339,10 @@
     return sal_True;
 }
 
-//==================================================================
-
-
 void SwInputWindow::Click( )
 {
     sal_uInt16 nCurID = GetCurItemId();
-    EndSelection(); // setzt CurItemId zurueck !
+    EndSelection(); // reset back CurItemId !
     switch ( nCurID )
     {
         case FN_FORMULA_CANCEL:
@@ -374,8 +358,6 @@
    }
 }
 
-//==================================================================
-
 void  SwInputWindow::ApplyFormula()
 {
     pView->GetViewFrame()->GetDispatcher()->Lock(sal_False);
@@ -383,8 +365,7 @@
     CleanupUglyHackWithUndo();
     pWrtShell->Pop( sal_False );
 
-    // Formel soll immer mit einem "=" beginnen, hier
-    // also wieder entfernen
+    // Formular should always begin with "=", so remove it here again
     String sEdit(comphelper::string::strip(aEdit.GetText(), ' '));
     if( sEdit.Len() && '=' == sEdit.GetChar( 0 ) )
         sEdit.Erase( 0, 1 );
@@ -397,8 +378,6 @@
     aArgs[1] = 0;
     pView->GetViewFrame()->GetBindings().Execute( FN_EDIT_FORMULA, aArgs, 0, SFX_CALLMODE_ASYNCHRON );
 }
-
-//==================================================================
 
 void  SwInputWindow::CancelFormula()
 {
@@ -418,7 +397,6 @@
     }
     pView->GetViewFrame()->GetDispatcher()->Execute( FN_EDIT_FORMULA, SFX_CALLMODE_ASYNCHRON);
 }
-//==================================================================
 
 const sal_Unicode CH_LRE = 0x202a;
 const sal_Unicode CH_PDF = 0x202c;
@@ -442,9 +420,9 @@
 
         if( sNew != sOldFml )
         {
-            // Die WrtShell ist in der Tabellen Selektion
-            // dann die Tabellen Selektion wieder aufheben, sonst steht der
-            // Cursor "im Wald" und das LiveUpdate funktioniert nicht!
+            // The WrtShell is in the table selection,
+            // then cancel the table selection otherwise, the cursor is
+            // positioned "in the forest" and the live update does not work!
             pWrtShell->StartAllAction();
 
             SwPaM aPam( *pWrtShell->GetStkCrsr()->GetPoint() );
@@ -515,8 +493,6 @@
     }
 }
 
-//==================================================================
-
 void InputEdit::KeyInput(const KeyEvent& rEvent)
 {
     const KeyCode aCode = rEvent.GetKeyCode();
@@ -527,8 +503,6 @@
     else
         Edit::KeyInput(rEvent);
 }
-
-//==================================================================
 
 void InputEdit::UpdateRange(const String& rBoxes,
                                     const String& rName )
@@ -547,8 +521,8 @@
     aBoxes += rBoxes;
     Selection aSelection(GetSelection());
     sal_uInt16 nSel = (sal_uInt16) aSelection.Len();
-    //OS: mit dem folgenden Ausdruck wird sichergestellt, dass im overwrite-Modus
-    //die selektierte schliessende Klammer nicht geloescht wird
+    // OS: The following expression ensures that in the overwrite mode,
+    // the selected closing parenthesis will be not deleted.
     if( nSel && ( nSel > 1 ||
                   GetText()[ (sal_uInt16)aSelection.Min() ] != cClose ))
         Cut();
@@ -596,14 +570,14 @@
                 }
                 ++nEndPos;
             }
-            // nur wenn akt. Pos im Breich oder direkt dahinter liegt
+            // Only if the current position lies in the range or right behind.
             if( bFound && !( nStartPos < (sal_uInt16)aSelection.Max() &&
                              (sal_uInt16)aSelection.Max() <= nEndPos + 1 ))
                 bFound = false;
         }
         if( bFound )
         {
-            nPos = ++nStartPos + 1; // wir wollen dahinter
+            nPos = ++nStartPos + 1; // We want behind
             aActText.Erase( nStartPos, nEndPos - nStartPos );
             aActText.Insert( aBoxes, nStartPos );
             nPos = nPos + aBoxes.Len();
@@ -626,7 +600,6 @@
     GrabFocus();
 
 }
-//==================================================================
 
 SwInputChild::SwInputChild(Window* _pParent,
                                 sal_uInt16 nId,
@@ -639,7 +612,6 @@
     ((SwInputWindow*)pWindow)->ShowWin();
     eChildAlignment = SFX_ALIGN_LOWESTTOP;
 }
-
 
 SwInputChild::~SwInputChild()
 {
diff --git a/sw/source/ui/web/web.src b/sw/source/ui/web/web.src
index e66dc92..4d9b402 100644
--- a/sw/source/ui/web/web.src
+++ b/sw/source/ui/web/web.src
@@ -52,9 +52,9 @@
 {
     Text [ en-US ] = "Main Toolbar/Web" ;
 };
-/*************************************************************************
-    Textleiste
-*************************************************************************/
+
+// Text bar
+
 String RID_WEBTEXT_TOOLBOX
 {
     Text [ en-US ] = "Text Object Bar/Web" ;

-- 
To view, visit https://gerrit.libreoffice.org/3893
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I048ff445fa04b12cb86ae580370bfe444041d41f
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Matthias Freund <matti_lx at yahoo.de>



More information about the LibreOffice mailing list