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

Albert Thuswaldner albert.thuswaldner at gmail.com
Fri Sep 11 12:41:36 PDT 2015


 sc/source/ui/view/hdrcont.cxx |   22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

New commits:
commit ee9a98966a4c1388dcf47757eeaa380d47f6a6a2
Author: Albert Thuswaldner <albert.thuswaldner at gmail.com>
Date:   Tue Sep 8 19:26:13 2015 +0200

    tdf#39468 translated german comments in hdrcont.cxx
    
    Change-Id: I0dae68656f1dbe3828e58eb177ce9e98a071fe20
    Reviewed-on: https://gerrit.libreoffice.org/18418
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/sc/source/ui/view/hdrcont.cxx b/sc/source/ui/view/hdrcont.cxx
index 18f3ce1..6bcc0bb 100644
--- a/sc/source/ui/view/hdrcont.cxx
+++ b/sc/source/ui/view/hdrcont.cxx
@@ -68,7 +68,7 @@ ScHeaderControl::ScHeaderControl( vcl::Window* pParent, SelectionEngine* pSelect
     EnableRTL( false );
 
     aNormFont = GetFont();
-    aNormFont.SetTransparent( true );       //! WEIGHT_NORMAL hart setzen ???
+    aNormFont.SetTransparent( true );       //! hard-set WEIGHT_NORMAL ???
     aBoldFont = aNormFont;
     aBoldFont.SetWeight( WEIGHT_BOLD );
 
@@ -85,7 +85,7 @@ ScHeaderControl::ScHeaderControl( vcl::Window* pParent, SelectionEngine* pSelect
     nWidth = nSmallWidth = aSize.Width();
     nBigWidth = LogicToPixel( Size( GetTextWidth(OUString("8888888")), 0 ) ).Width() + 5;
 
-    SetBackground();    // sonst Probleme auf OS/2 !?!?!
+    SetBackground();
 }
 
 void ScHeaderControl::SetWidth( long nNew )
@@ -127,7 +127,7 @@ void ScHeaderControl::DoPaint( SCCOLROW nStart, SCCOLROW nEnd )
 
 void ScHeaderControl::SetMark( bool bNewSet, SCCOLROW nNewStart, SCCOLROW nNewEnd )
 {
-    bool bEnabled = SC_MOD()->GetInputOptions().GetMarkHeader();    //! cachen?
+    bool bEnabled = SC_MOD()->GetInputOptions().GetMarkHeader();    //! cache?
     if (!bEnabled)
         bNewSet = false;
 
@@ -237,8 +237,8 @@ void ScHeaderControl::DrawShadedRect( long nStart, long nEnd, const Color& rBase
 
 void ScHeaderControl::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& rRect )
 {
-    //  fuer VCL ist es wichtig, wenig Aufrufe zu haben, darum werden die aeusseren
-    //  Linien zusammengefasst
+    // It is important for VCL to have few calls, that is why the outer lines are
+    // grouped together
 
     const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
     bool bHighContrast = rStyleSettings.GetHighContrastMode();
@@ -295,8 +295,8 @@ void ScHeaderControl::Paint( vcl::RenderContext& /*rRenderContext*/, const Recta
             nInitScrPos = GetSizePixel().Width() - 1;
     }
 
-    //  aeussere Linien komplett durchzeichnen
-    //  Zuerst Ende der letzten Zelle finden
+    // complete the painting of the outer lines
+    // first find the end of the last cell
 
     long nLineEnd = nInitScrPos - nLayoutSign;
 
@@ -550,7 +550,7 @@ void ScHeaderControl::Paint( vcl::RenderContext& /*rRenderContext*/, const Recta
                             break;
                     }
 
-                    //  bei Selektion der ganzen Zeile/Spalte:
+                    // when selecting the complete row/column:
                     //  InvertRect( Rectangle( aScrPos, aEndPos ) );
                 }
                 nScrPos += nSizePix * nLayoutSign;      // also if before the visible area
@@ -701,8 +701,8 @@ void ScHeaderControl::MouseButtonDown( const MouseEvent& rMEvt )
 
         if (IsMouseCaptured())
         {
-            //  Tracking statt CaptureMouse, damit sauber abgebrochen werden kann
-            //! Irgendwann sollte die SelectionEngine selber StartTracking rufen!?!
+            // tracking instead of CaptureMouse, so it can be cancelled cleanly
+            //! someday SelectionEngine itself should call StartTracking!?!
             ReleaseMouse();
             StartTracking();
         }
@@ -932,7 +932,7 @@ void ScHeaderControl::RequestHelp( const HelpEvent& rHEvt )
         Window::RequestHelp(rHEvt);
 }
 
-//                  Dummys fuer virtuelle Methoden
+//                  dummies for virtual methods
 
 SCCOLROW ScHeaderControl::GetHiddenCount( SCCOLROW nEntryNo ) const
 {


More information about the Libreoffice-commits mailing list