svtools/source/brwbox/datwin.hxx    |   16 ++++----
 svtools/source/control/calendar.cxx |   66 ++++++++++++++++++------------------
 svtools/source/control/ctrlbox.cxx  |    4 +-
 svtools/source/control/ctrltool.cxx |   46 ++++++++++---------------
 svtools/source/control/filectrl.cxx |    4 +-
 svtools/source/control/headbar.cxx  |   61 ++++++++++++++++-----------------
 6 files changed, 95 insertions(+), 102 deletions(-)

New commits:
commit 455b403aaf2caa98961971fa5ecf6d7237657847
Author: Luc Castermans <luc.casterm...@gmail.com>
Date:   Sun Jan 5 10:54:56 2014 +0100

    translated German comments
    
    Change-Id: I75c7611c36c15fb36e00de239f5b322adb182e73
    Reviewed-on: https://gerrit.libreoffice.org/7273
    Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk>
    Tested-by: Miklos Vajna <vmik...@collabora.co.uk>

diff --git a/svtools/source/brwbox/datwin.hxx b/svtools/source/brwbox/datwin.hxx
index e742502..10d1f11 100644
--- a/svtools/source/brwbox/datwin.hxx
+++ b/svtools/source/brwbox/datwin.hxx
@@ -109,28 +109,28 @@ public:
     sal_Bool*           pDtorNotify;
     AutoTimer       aMouseTimer;    // recalls MouseMove on dragging out
     MouseEvent      aRepeatEvt;     // a MouseEvent to repeat
-    Point           aLastMousePos;  // verhindert pseudo-MouseMoves
+    Point           aLastMousePos;  // prevents pseudo-MouseMoves
 
-    OUString        aRealRowCount;  // zur Anzeige im VScrollBar
+    OUString        aRealRowCount;  // to show in VScrollBar
 
     RectangleList   aInvalidRegion; // invalidated Rectangles during 
!UpdateMode
     bool            bInPaint;       // TRUE while in Paint
     bool            bInCommand;     // TRUE while in Command
-    bool            bNoScrollBack;  // nur vorwaerts scrollen
-    bool            bNoHScroll;     // kein horizontaler Scrollbar
+    bool            bNoScrollBack;  // only scroll forward
+    bool            bNoHScroll;     // no horizontal scrollbar
     bool            bNoVScroll;     // no vertical scrollbar
     bool            bAutoHScroll;   // autohide horizontaler Scrollbar
     bool            bAutoVScroll;   // autohide horizontaler Scrollbar
-    bool            bUpdateMode;    // nicht SV-UpdateMode wegen Invalidate()
+    bool            bUpdateMode;    // not SV-UpdateMode because of 
Invalidate()
     bool            bAutoSizeLastCol; // last column always fills up window
     bool            bResizeOnPaint;   // outstanding resize-event
     bool            bUpdateOnUnlock;  // Update() while locked
-    bool            bInUpdateScrollbars;  // Rekursionsschutz
-    bool            bHadRecursion;        // Rekursion war aufgetreten
+    bool            bInUpdateScrollbars;  // prevents recursions
+    bool            bHadRecursion;        // a recursion occured
     bool            bOwnDataChangedHdl;   // dont change colors in DataChanged
     bool            bCallingDropCallback; // we're in a callback to AcceptDrop 
or ExecuteDrop curently
     sal_uInt16          nUpdateLock;    // lock count, dont call 
Control::Update()!
-    short           nCursorHidden;  // new conuter for DoHide/ShowCursor
+    short           nCursorHidden;  // new counter for DoHide/ShowCursor
 
     long            m_nDragRowDividerLimit;
     long            m_nDragRowDividerOffset;
diff --git a/svtools/source/control/calendar.cxx 
b/svtools/source/control/calendar.cxx
index c826640..38fd65f 100644
--- a/svtools/source/control/calendar.cxx
+++ b/svtools/source/control/calendar.cxx
@@ -306,7 +306,7 @@ DayOfWeek Calendar::ImplGetWeekStart() const
 
 void Calendar::ImplGetWeekFont( Font& rFont ) const
 {
-    // Wochennummer geben wir in WEEKNUMBER_HEIGHT%-Fonthoehe aus
+    // weeknumber is displayed in WEEKNUMBER_HEIGHT%-Fontheight
     Size aFontSize = rFont.GetSize();
     aFontSize.Height() *= WEEKNUMBER_HEIGHT;
     aFontSize.Height() /= 100;
@@ -357,7 +357,7 @@ void Calendar::ImplFormat()
         long n99TextWidth = GetTextWidth( a99Text );
         long nTextHeight = GetTextHeight();
 
-        // Breiten und X-Positionen berechnen
+        // calculate width and x-position
         mnDayWidth      = n99TextWidth+DAY_OFFX;
         mnMonthWidth    = mnDayWidth*7;
         mnMonthWidth   += mnWeekWidth;
@@ -371,7 +371,7 @@ void Calendar::ImplFormat()
         mnDaysOffX     += nOver/2;
         mnDaysOffX     += mnWeekWidth;
 
-        // Hoehen und Y-Positionen berechnen
+        // calculate height and y-position
         mnDayHeight     = nTextHeight + DAY_OFFY;
         mnWeekDayOffY   = nTextHeight + TITLE_OFFY + (TITLE_BORDERY*2);
         mnDaysOffY      = mnWeekDayOffY + nTextHeight + WEEKDAY_OFFY;
@@ -382,7 +382,7 @@ void Calendar::ImplFormat()
             mnLines = 1;
         mnMonthHeight  += (aOutSize.Height()-(mnLines*mnMonthHeight)) / 
mnLines;
 
-        // Spinfelder berechnen
+        // calculate spinfields
         long nSpinSize      = nTextHeight+TITLE_BORDERY-SPIN_OFFY;
         maPrevRect.Left()   = SPIN_OFFX;
         maPrevRect.Top()    = SPIN_OFFY;
@@ -422,7 +422,7 @@ void Calendar::ImplFormat()
         mbCalc = sal_False;
     }
 
-    // Anzahl Tage berechnen
+    // calculate number of days
 
     DayOfWeek eStartDay = ImplGetWeekStart();
 
@@ -449,7 +449,7 @@ void Calendar::ImplFormat()
     nWeekDay = (nWeekDay+(7-(sal_uInt16)eStartDay)) % 7;
     mnDayCount += 42-nDaysInMonth-nWeekDay;
 
-    // Farben festlegen
+    // determine colours
     maOtherColor = Color( COL_LIGHTGRAY );
     if ( maOtherColor.IsRGBEqual( GetBackground().GetColor() ) )
         maOtherColor.SetColor( COL_GRAY );
@@ -463,7 +463,7 @@ void Calendar::ImplFormat()
         DateRangeChanged();
     }
 
-    // DateInfo besorgen
+    // get DateInfo
     sal_uInt16 nNewFirstYear = maFirstDate.GetYear();
     sal_uInt16 nNewLastYear = GetLastDate().GetYear();
     if ( mnFirstYear )
@@ -528,7 +528,7 @@ sal_uInt16 Calendar::ImplHitTest( const Point& rPos, Date& 
rDate ) const
 
             sal_uInt16 nDaysInMonth = rDate.GetDaysInMonth();
 
-            // Entsprechender Monat gefunden
+            // matching month was found
             if ( (rPos.X() > nX) && (rPos.Y() < nYMonth) &&
                  (rPos.X() < nX+mnMonthWidth) )
             {
@@ -712,7 +712,7 @@ void Calendar::ImplDrawDate( long nX, long nY,
 
     sal_Bool bSel = sal_False;
     sal_Bool bFocus = sal_False;
-    // Aktueller Tag
+    // actual day
     if ( (nDay   == maCurDate.GetDay()) &&
          (nMonth == maCurDate.GetMonth()) &&
          (nYear  == maCurDate.GetYear()) )
@@ -723,7 +723,7 @@ void Calendar::ImplDrawDate( long nX, long nY,
             bSel = sal_True;
     }
 
-    // Textfarbe ermitteln
+    // get textcolour
     if ( bSel )
         pTextColor = &maSelColor;
     else if ( bOther )
@@ -741,11 +741,11 @@ void Calendar::ImplDrawDate( long nX, long nY,
     if ( bFocus )
         HideFocus();
 
-    // Font ermitteln
+    // get font
     Font aOldFont = GetFont();
     sal_Bool bBoldFont = sal_False;
 
-    // Hintergrund ausgeben
+    // display background
     const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
     if ( bSel || bBack )
     {
@@ -759,7 +759,7 @@ void Calendar::ImplDrawDate( long nX, long nY,
             Erase( aDateRect );
     }
 
-    // Text ausgeben
+    // display text
     long nTextX = nX+(mnDayWidth-GetTextWidth( rDay ))-(DAY_OFFX/2);
     long nTextY = nY+(mnDayHeight-GetTextHeight())/2;
     if ( pTextColor )
@@ -772,7 +772,7 @@ void Calendar::ImplDrawDate( long nX, long nY,
     else
         DrawText( Point( nTextX, nTextY ), rDay );
 
-    // Heute
+    // today
     Date aTodayDate( maCurDate );
     if ( nToday )
         aTodayDate.SetDate( nToday );
@@ -787,7 +787,7 @@ void Calendar::ImplDrawDate( long nX, long nY,
         DrawRect( aDateRect );
     }
 
-    // Evt. noch FocusRect
+    // if needed do FocusRect
     if ( bFocus && HasFocus() )
         ShowFocus( aDateRect );
 
@@ -826,7 +826,7 @@ void Calendar::ImplDraw( sal_Bool bPaint )
     nY = 0;
     for ( i = 0; i < mnLines; i++ )
     {
-        // Titleleiste ausgeben
+        // display title bar
         SetLineColor();
         SetFillColor( rStyleSettings.GetFaceColor() );
         Rectangle aTitleRect( 0, nY, aOutSize.Width()-1, 
nY+mnDayHeight-DAY_OFFY+TITLE_BORDERY*2 );
@@ -880,7 +880,7 @@ void Calendar::ImplDraw( sal_Bool bPaint )
             nMonth  = aDate.GetMonth();
             nYear   = aDate.GetYear();
 
-            // Monat in der Titleleiste ausgeben
+            // display month in title bar
             nDeltaX = nX;
             nDeltaY = nY+TITLE_BORDERY;
             OUString aMonthText( maCalendarWrapper.getDisplayName(
@@ -921,7 +921,7 @@ void Calendar::ImplDraw( sal_Bool bPaint )
             DrawText( Point( nDeltaX, nDeltaY ), aMonthText );
             SetTextColor( rStyleSettings.GetWindowTextColor() );
 
-            // Weekleiste ausgeben
+            // display week bar
             if ( bPaint )
             {
                 nDayX = nX+mnDaysOffX;
@@ -935,7 +935,7 @@ void Calendar::ImplDraw( sal_Bool bPaint )
                 DrawTextArray( Point( nDayX+mnDayOfWeekAry[0], nDayY ), 
maDayOfWeekText, &(mnDayOfWeekAry[1]) );
             }
 
-            // Week-Numbers ausgeben
+            // display weeknumbers
             if ( mnWinStyle & WB_WEEKNUMBER )
             {
                 nDayX = nX+mnDaysOffX;
@@ -967,7 +967,7 @@ void Calendar::ImplDraw( sal_Bool bPaint )
                 SetFont( aOldFont );
             }
 
-            // Tage ausgeben
+            // display days
             sal_uInt16 nDaysInMonth = aDate.GetDaysInMonth();
             nDayX = nX+mnDaysOffX;
             nDayY = nY+mnDaysOffY;
@@ -1036,7 +1036,7 @@ void Calendar::ImplDraw( sal_Bool bPaint )
         nY += mnMonthHeight;
     }
 
-    // Spin-Buttons zeichnen
+    // draw spin buttons
     if ( bPaint )
         ImplDrawSpin();
 }
@@ -1190,7 +1190,7 @@ void Calendar::ImplMouseSelect( const Date& rDate, 
sal_uInt16 nHitTest,
             ImplUpdateSelection( pOldSel );
         if ( !bNewSel || pOldSel->find( aOldDate.GetDate() ) == pOldSel->end() 
)
             ImplUpdateDate( aOldDate );
-        // Damit Focus-Rechteck auch wieder neu ausgegeben wird
+        // assure focus rectangle is displayed again
         if ( HasFocus() || !bNewSel
              || mpSelectTable->find( maCurDate.GetDate() ) == 
mpSelectTable->end() )
             ImplUpdateDate( maCurDate );
@@ -1273,7 +1273,7 @@ void Calendar::ImplShowMenu( const Point& rPos, const 
Date& rDate )
     else
         nMonthOff -= aOldFirstDate.GetMonth()-rDate.GetMonth();
 
-    // Menu aufbauen (Jahre mit verschiedenen Monaten aufnehmen)
+    // construct menu (include years with different months)
     for ( i = 0; i < MENU_YEAR_COUNT; i++ )
     {
         pYearPopupMenus[i] = new PopupMenu;
@@ -1290,7 +1290,7 @@ void Calendar::ImplShowMenu( const Point& rPos, const 
Date& rDate )
     nCurItemId = aPopupMenu.Execute( this, rPos );
     mbMenuDown = sal_False;
 
-    // Menu zerstoeren
+    // destroy menu
     aPopupMenu.SetPopupMenu( 2, NULL );
     for ( i = 0; i < MENU_YEAR_COUNT; i++ )
     {
@@ -1369,7 +1369,7 @@ void Calendar::ImplEndTracking( sal_Bool bCancel )
             ImplUpdateSelection( pOldSel );
             if ( pOldSel->find( aOldDate.GetDate() ) == pOldSel->end() )
                 ImplUpdateDate( aOldDate );
-            // Damit Focus-Rechteck auch wieder neu ausgegeben wird
+            //  assure focus rectangle is displayed again
             if ( HasFocus() || mpSelectTable->find( maCurDate.GetDate() ) == 
mpSelectTable->end() )
                 ImplUpdateDate( maCurDate );
             delete pOldSel;
@@ -1380,7 +1380,7 @@ void Calendar::ImplEndTracking( sal_Bool bCancel )
     {
         if ( !bCancel )
         {
-            // Feststellen, ob wir sichtbaren Bereich scrollen sollen
+            // determine if we should scroll the visible area
             sal_uLong nSelCount = mpSelectTable->size();
             if ( nSelCount )
             {
@@ -1446,9 +1446,9 @@ void Calendar::MouseButtonDown( const MouseEvent& rMEvt )
                     mbScrollDateRange = sal_True;
                     ImplScroll( mbPrevIn );
                     mbScrollDateRange = sal_False;
-                    // Hier muss BUTTONREPEAT stehen, also nicht wieder
-                    // auf SCROLLREPEAT aendern, sondern mit TH abklaeren,
-                    // warum es evtl. anders sein sollte (71775)
+                    // it should really read BUTTONREPEAT, therefore do not
+                    // change it to SCROLLREPEAT, check with TH,
+                    // why it could be different (71775)
                     StartTracking( STARTTRACK_BUTTONREPEAT );
                 }
                 else
@@ -1695,7 +1695,7 @@ void Calendar::RequestHelp( const HelpEvent& rHEvt )
                 aStr += maWeekText;
                 aStr += ": ";
                 aStr += OUString::number(nWeek);
-                // Evt. noch Jahr hinzufuegen, wenn es nicht das gleiche ist
+        // if year is not the same, add it
                 if ( (nMonth == 12) && (nWeek == 1) )
                 {
                     aStr += ",  ";
@@ -1908,7 +1908,7 @@ void Calendar::SetCurDate( const Date& rNewDate )
         else if ( !HasFocus() )
             bUpdate = sal_False;
 
-        // Aktuelles Datum noch in den sichtbaren Bereich verschieben
+        // shift actual date in the visible area
         if ( mbFormat || (maCurDate < GetFirstMonth()) )
             SetFirstDate( maCurDate );
         else if ( maCurDate > GetLastMonth() )
@@ -2072,7 +2072,7 @@ Rectangle Calendar::GetDateRect( const Date& rDate ) const
         {
             sal_uInt16 nDaysInMonth = aDate.GetDaysInMonth();
 
-            // Monat gerufen
+            // month is called
             if ( (aDate.GetMonth() == rDate.GetMonth()) &&
                  (aDate.GetYear() == rDate.GetYear()) )
             {
@@ -2148,7 +2148,7 @@ Size Calendar::CalcWindowSizePixel( long 
nCalcMonthPerLine,
     OUString a99Text("99");
     Font        aOldFont = GetFont();
 
-    // Wochenanzeige beruecksichtigen
+    // take display of week into account
     long nWeekWidth;
     if ( mnWinStyle & WB_WEEKNUMBER )
     {
diff --git a/svtools/source/control/ctrlbox.cxx 
b/svtools/source/control/ctrlbox.cxx
index 3249308..cc9d5d8 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -730,7 +730,7 @@ void LineListBox::ImpGetLine( long nLine1, long nLine2, 
long nDistance,
     long nVirHeight = n1+nDist+n2;
     if ( nVirHeight > aSize.Height() )
         aSize.Height() = nVirHeight;
-    // negative Breiten muss und darf man nicht painten
+    // negative width should not be drawn
     if ( aSize.Width() > 0 )
     {
         Size aVirSize = aVirDev.LogicToPixel( aSize );
@@ -1644,7 +1644,7 @@ void FontStyleBox::Fill( const OUString& rName, const 
FontList* pList )
     }
     else
     {
-        // Wenn Font nicht, dann Standard-Styles einfuegen
+        // insert standard styles if no font
         InsertEntry( pList->GetNormalStr() );
         InsertEntry( pList->GetItalicStr() );
         InsertEntry( pList->GetBoldStr() );
diff --git a/svtools/source/control/ctrltool.cxx 
b/svtools/source/control/ctrltool.cxx
index 4f8fc91..93f4864 100644
--- a/svtools/source/control/ctrltool.cxx
+++ b/svtools/source/control/ctrltool.cxx
@@ -167,11 +167,10 @@ static OUString ImplMakeSearchStringFromName(const 
OUString& rStr)
 
 ImplFontListNameInfo* FontList::ImplFind(const OUString& rSearchName, 
sal_uLong* pIndex) const
 {
-    // Wenn kein Eintrag in der Liste oder der Eintrag groesser ist als
-    // der Letzte, dann hinten dranhaengen. Wir vergleichen erst mit dem
-    // letzten Eintrag, da die Liste von VCL auch sortiert zurueckkommt
-    // und somit die Wahrscheinlichkeit das hinten angehaengt werden muss
-    // sehr gross ist.
+    // Append if there is no enty in the list or if the entry is larger
+    // then the last one. We only compare to the last entry as the list of VCL
+    // is returned sorted, which increases the probability that appending
+    // is more likely
     sal_uLong nCnt = maEntries.size();
     if ( !nCnt )
     {
@@ -193,7 +192,7 @@ ImplFontListNameInfo* FontList::ImplFind(const OUString& 
rSearchName, sal_uLong*
             return const_cast<ImplFontListNameInfo*>(pCmpData);
     }
 
-    // Fonts in der Liste suchen
+    // search fonts in the list
     const ImplFontListNameInfo* pCompareData;
     const ImplFontListNameInfo* pFoundData = NULL;
     sal_uLong                   nLow = 0;
@@ -253,15 +252,14 @@ void FontList::ImplInsertFonts( OutputDevice* pDevice, 
sal_Bool bAll,
     else
         nType = FONTLIST_FONTNAMETYPE_PRINTER;
 
-    // Alle Fonts vom Device abfragen
+    // inquire all fonts from the device
     int n = pDevice->GetDevFontCount();
     sal_uInt16  i;
     for( i = 0; i < n; i++ )
     {
         FontInfo aFontInfo = pDevice->GetDevFont( i );
 
-        // Wenn keine Raster-Schriften angezeigt werden sollen,
-        // dann diese ignorieren
+        // ignore raster-fonts if they are not to be displayed
         if ( !bAll && (aFontInfo.GetType() == TYPE_RASTER) )
             continue;
 
@@ -341,12 +339,12 @@ void FontList::ImplInsertFonts( OutputDevice* pDevice, 
sal_Bool bAll,
 
 FontList::FontList( OutputDevice* pDevice, OutputDevice* pDevice2, sal_Bool 
bAll )
 {
-    // Variablen initialisieren
+    // initialise variables
     mpDev = pDevice;
     mpDev2 = pDevice2;
     mpSizeAry = NULL;
 
-    // Stylenamen festlegen
+    // store style names
     maLight         = SVT_RESSTR(STR_SVT_STYLE_LIGHT);
     maLightItalic   = SVT_RESSTR(STR_SVT_STYLE_LIGHT_ITALIC);
     maNormal        = SVT_RESSTR(STR_SVT_STYLE_NORMAL);
@@ -358,8 +356,8 @@ FontList::FontList( OutputDevice* pDevice, OutputDevice* 
pDevice2, sal_Bool bAll
 
     ImplInsertFonts( pDevice, bAll, sal_True );
 
-    // Gegebenenfalls muessen wir mit den Bildschirmfonts vergleichen,
-    // damit dort die eigentlich doppelten auf Equal mappen koennen
+    // if required compare to the screen fonts
+    // in order to map the duplicates to Equal
     sal_Bool bCompareWindow = sal_False;
     if ( !pDevice2 && (pDevice->GetOutDevType() == OUTDEV_PRINTER) )
     {
@@ -376,10 +374,10 @@ FontList::FontList( OutputDevice* pDevice, OutputDevice* 
pDevice2, sal_Bool bAll
 
 FontList::~FontList()
 {
-    // Gegebenenfalls SizeArray loeschen
+    // delete SizeArray if required
     delete[] mpSizeAry;
 
-    // FontInfos loeschen
+    // delete FontInfos
     ImplFontListFontInfo *pTemp, *pInfo;
     boost::ptr_vector<ImplFontListNameInfo>::iterator it;
     for (it = maEntries.begin(); it != maEntries.end(); ++it)
@@ -450,8 +448,7 @@ OUString FontList::GetStyleName(const FontInfo& rInfo) const
     FontWeight eWeight = rInfo.GetWeight();
     FontItalic eItalic = rInfo.GetItalic();
 
-    // Nur wenn kein StyleName gesetzt ist, geben wir einen syntetischen
-    // Namen zurueck
+    // return synthetic Name if no StyleName was set
     if (aStyleName.isEmpty())
         aStyleName = GetStyleName(eWeight, eItalic);
     else
@@ -577,7 +574,7 @@ namespace
         FontWeight eWeight, FontItalic eItalic)
     {
         FontInfo aInfo;
-        // Falls der Fontname stimmt, uebernehmen wir soviel wie moeglich
+        // if the fontname matches, we copy as much as possible
         if (pFontNameInfo)
         {
             aInfo = *pFontNameInfo;
@@ -618,8 +615,7 @@ FontInfo FontList::Get(const OUString& rName, const 
OUString& rStyleName) const
         }
     }
 
-    // Konnten die Daten nicht gefunden werden, dann muessen bestimmte
-    // Attribute nachgebildet werden
+    // reproduce attributes if data could not be found
     FontInfo aInfo;
     if ( !pFontInfo )
     {
@@ -703,8 +699,7 @@ FontInfo FontList::Get(const OUString& rName,
         }
     }
 
-    // Konnten die Daten nicht gefunden werden, dann muessen bestimmte
-    // Attribute nachgebildet werden
+    // reproduce attributes if data could not be found
     FontInfo aInfo;
     if ( !pFontInfo )
         aInfo = makeMissing(pFontNameInfo, rName, eWeight, eItalic);
@@ -764,19 +759,18 @@ const FontInfo& FontList::GetFontInfo( sal_Handle 
hFontInfo ) const
 
 const sal_IntPtr* FontList::GetSizeAry( const FontInfo& rInfo ) const
 {
-    // Size-Array vorher loeschen
+    // first delete Size-Array
     if ( mpSizeAry )
     {
         delete[] ((FontList*)this)->mpSizeAry;
         ((FontList*)this)->mpSizeAry = NULL;
     }
 
-    // Falls kein Name, dann Standardgroessen
+    // use standarad sizes if no name
     if ( rInfo.GetName().isEmpty() )
         return aStdSizeAry;
 
-    // Zuerst nach dem Fontnamen suchen um das Device dann von dem
-    // entsprechenden Font zu nehmen
+    // first search fontname in order to use device from the matching font
     OutputDevice*           pDevice = mpDev;
     ImplFontListNameInfo*   pData = ImplFindByName( rInfo.GetName() );
     if ( pData )
diff --git a/svtools/source/control/filectrl.cxx 
b/svtools/source/control/filectrl.cxx
index 8b9aedc..19856d2 100644
--- a/svtools/source/control/filectrl.cxx
+++ b/svtools/source/control/filectrl.cxx
@@ -125,8 +125,8 @@ void FileControl::StateChanged( StateChangedType nType )
     else if ( nType == STATE_CHANGE_CONTROLFONT )
     {
         GetEdit().SetControlFont( GetControlFont() );
-        // Fuer den Button nur die Hoehe uebernehmen, weil in
-        // HTML immer Courier eingestellt wird.
+        // Only use height of the button, as in HTML
+        // always Courier is used
         Font aFont = GetButton().GetControlFont();
         aFont.SetSize( GetControlFont().GetSize() );
         GetButton().SetControlFont( aFont );
diff --git a/svtools/source/control/headbar.cxx 
b/svtools/source/control/headbar.cxx
index fb6de9f..2782d82 100644
--- a/svtools/source/control/headbar.cxx
+++ b/svtools/source/control/headbar.cxx
@@ -183,7 +183,7 @@ Rectangle HeaderBar::ImplGetItemRect( sal_uInt16 nPos ) 
const
 {
     Rectangle aRect( ImplGetItemPos( nPos ), 0, 0, mnDY-1 );
     aRect.Right() = aRect.Left() + (*mpItemList)[ nPos ]->mnSize - 1;
-    // Gegen Ueberlauf auf einigen Systemen testen
+    // check for overflow on various systems
     if ( aRect.Right() > 16000 )
         aRect.Right() = 16000;
     return aRect;
@@ -317,11 +317,11 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
 
     Rectangle aRect = rItemRect;
 
-    // Wenn kein Platz, dann brauchen wir auch nichts ausgeben
+    // do not display if there is no space
     if ( aRect.GetWidth() <= 1 )
         return;
 
-    // Feststellen, ob Rectangle ueberhaupt sichtbar
+    // check of rectangle is visible
     if ( pRect )
     {
         if ( aRect.Right() < pRect->Left() )
@@ -351,11 +351,11 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
     }
     else
     {
-        // Border muss nicht gemalt werden
+        // do not draw border
         aRect.Top()     += mnBorderOff1;
         aRect.Bottom()  -= mnBorderOff2;
 
-        // Hintergrund loeschen
+        // delete background
         if ( !pRect || bDrag )
         {
             if ( bDrag )
@@ -384,12 +384,12 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
     }
     else
     {
-        // Trennlinie malen
+        // draw separation line
         pDev->SetLineColor( rStyleSettings.GetDarkShadowColor() );
         pDev->DrawLine( Point( aRect.Right(), aRect.Top() ),
                         Point( aRect.Right(), aRect.Bottom() ) );
 
-        // ButtonStyle malen
+        // draw ButtonStyle
         // avoid 3D borders
         if( bHigh )
             DrawSelectionBackground( aRect, 1, sal_True, sal_False, sal_False, 
&aSelectionTextColor );
@@ -397,11 +397,11 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
             DrawSelectionBackground( aRect, 0, sal_True, sal_False, sal_False, 
&aSelectionTextColor );
     }
 
-    // Wenn kein Platz, dann brauchen wir auch nichts ausgeben
+    // do not draw if there is no space
     if ( aRect.GetWidth() < 1 )
         return;
 
-    // Positionen und Groessen berechnen und Inhalt ausgeben
+    // calculate size and position and draw content
     pItem->maOutText = pItem->maText;
     Size aImageSize = pItem->maImage.GetSizePixel();
     Size aTxtSize( pDev->GetTextWidth( pItem->maOutText ), 0  );
@@ -411,7 +411,7 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
     if ( nBits & (HIB_UPARROW | HIB_DOWNARROW) )
         nArrowWidth = HEAD_ARROWSIZE2+HEADERBAR_ARROWOFF;
 
-    // Wenn kein Platz fuer Image, dann nicht ausgeben
+    // do not draw if there is not enough space for the image
     long nTestHeight = aImageSize.Height();
     if ( !(nBits & (HIB_LEFTIMAGE | HIB_RIGHTIMAGE)) )
         nTestHeight += aTxtSize.Height();
@@ -421,7 +421,7 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
         aImageSize.Height() = 0;
     }
 
-    // Text auf entsprechende Laenge kuerzen
+    // cut text to correct length
     sal_Bool bLeftText = sal_False;
     long nMaxTxtWidth = aRect.GetWidth()-(HEADERBAR_TEXTOFF*2)-nArrowWidth;
     if ( nBits & (HIB_LEFTIMAGE | HIB_RIGHTIMAGE) )
@@ -446,7 +446,7 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
         }
     }
 
-    // Text/Imageposition berechnen
+    // calculate text/imageposition
     long nTxtPos;
     if ( !bLeftText && (nBits & HIB_RIGHT) )
     {
@@ -481,7 +481,7 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
             nTxtPos += nArrowWidth;
     }
 
-    // TextPosition berechnen
+    // calculate text/imageposition
     long nTxtPosY = 0;
     if ( !pItem->maOutText.isEmpty() || (nArrowWidth && aTxtSize.Height()) )
     {
@@ -504,7 +504,7 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
         }
     }
 
-    // Text ausgebeben
+    // display text
     if (!pItem->maOutText.isEmpty())
     {
         if( aSelectionTextColor != Color( COL_TRANSPARENT ) )
@@ -520,7 +520,7 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
             pDev->Pop();
     }
 
-    // Wenn Image vorhanden, Position berechnen und ausgeben
+    // calculate the position and draw image if it is available
     long nImagePosY = 0;
     if ( aImageSize.Width() && aImageSize.Height() )
     {
@@ -586,7 +586,7 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
                 nArrowX += aImageSize.Width();
         }
 
-        // Feststellen, ob Platz genug ist, das Item zu malen
+        // is there enough space to draw the item?
         sal_Bool bDraw = sal_True;
         if ( nArrowX < aRect.Left()+HEADERBAR_TEXTOFF )
             bDraw = sal_False;
@@ -650,7 +650,7 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
         }
     }
 
-    // Gegebenenfalls auch UserDraw aufrufen
+    // all UserDraw if required
     if ( nBits & HIB_USERDRAW )
     {
         Region aRegion( aRect );
@@ -795,7 +795,7 @@ void HeaderBar::ImplDrag( const Point& rMousePos )
         else
             bNewOutDrag = sal_True;
 
-        // Evt. ItemDrag anschalten
+        //  if needed switch on ItemDrag
         if ( bNewOutDrag && mbDragable && !mbItemDrag &&
              !((*mpItemList)[ nPos ]->mnBits & HIB_FIXEDPOS) )
         {
@@ -829,7 +829,7 @@ void HeaderBar::ImplDrag( const Point& rMousePos )
                         mnItemDragPos = GetItemCount()-1;
                 }
 
-                // Nicht verschiebbare Items aussparen
+                // do not use non-movable items
                 if ( mnItemDragPos < nPos )
                 {
                     while ( ((*mpItemList)[ mnItemDragPos ]->mnBits & 
HIB_FIXEDPOS) &&
@@ -1076,7 +1076,7 @@ void HeaderBar::Draw( OutputDevice* pDev, const Point& 
rPos, const Size& rSize,
     {
         aItemRect.Left() = aRect.Left()+ImplGetItemPos( i );
         aItemRect.Right() = aItemRect.Left() + (*mpItemList)[ i ]->mnSize - 1;
-        // Gegen Ueberlauf auf einigen Systemen testen
+        // check for overflow on some systems
         if ( aItemRect.Right() > 16000 )
             aItemRect.Right() = 16000;
         Region aRegion( aRect );
@@ -1133,9 +1133,8 @@ void HeaderBar::RequestHelp( const HelpEvent& rHEvt )
             if ( aStr.isEmpty() || !(rHEvt.GetMode() & HELPMODE_BALLOON) )
             {
                 ImplHeadItem* pItem = (*mpItemList)[ GetItemPos( nItemId ) ];
-                // Wir zeigen die Quick-Hilfe nur an, wenn Text nicht
-                // vollstaendig sichtbar, ansonsten zeigen wir den Hilfetext
-                // an, wenn das Item keinen Text besitzt
+                // Quick-help is only displayed if the text is not fully 
visible.
+                // Otherwise we display Helptext only if the items do not 
contain text
                 if ( pItem->maOutText != pItem->maText )
                     aStr = pItem->maText;
                 else if (!pItem->maText.isEmpty())
@@ -1156,7 +1155,7 @@ void HeaderBar::RequestHelp( const HelpEvent& rHEvt )
             OUString aHelpId( OStringToOUString( GetHelpId( nItemId ), 
RTL_TEXTENCODING_UTF8 ) );
             if ( !aHelpId.isEmpty() )
             {
-                // Wenn eine Hilfe existiert, dann ausloesen
+                // display it if help is available
                 Help* pHelp = Application::GetHelp();
                 if ( pHelp )
                     pHelp->Start( aHelpId, this );
@@ -1260,7 +1259,7 @@ void HeaderBar::InsertItem( sal_uInt16 nItemId, const 
OUString& rText,
     DBG_ASSERT( GetItemPos( nItemId ) == HEADERBAR_ITEM_NOTFOUND,
                 "HeaderBar::InsertItem(): ItemId already exists" );
 
-    // Item anlegen und in die Liste einfuegen
+    // create item and insert in the list
     ImplHeadItem* pItem = new ImplHeadItem;
     pItem->mnId         = nItemId;
     pItem->mnBits       = nBits;
@@ -1274,7 +1273,7 @@ void HeaderBar::InsertItem( sal_uInt16 nItemId, const 
OUString& rText,
         mpItemList->push_back( pItem );
     }
 
-    // Ausgabe updaten
+    // update display
     ImplUpdate( nPos, sal_True );
 }
 
@@ -1320,7 +1319,7 @@ void HeaderBar::MoveItem( sal_uInt16 nItemId, sal_uInt16 
nNewPos )
 
 void HeaderBar::Clear()
 {
-    // Alle Items loeschen
+    // delete all items
     for ( size_t i = 0, n = mpItemList->size(); i < n; ++i ) {
         delete (*mpItemList)[ i ];
     }
@@ -1333,7 +1332,7 @@ void HeaderBar::Clear()
 
 void HeaderBar::SetOffset( long nNewOffset )
 {
-    // Bereich verschieben
+    // move area
     Rectangle aRect( 0, mnBorderOff1, mnDX-1, mnDY-mnBorderOff1-mnBorderOff2-1 
);
     long nDelta = mnOffset-nNewOffset;
     mnOffset = nNewOffset;
@@ -1511,21 +1510,21 @@ Size HeaderBar::CalcWindowSizePixel() const
     for ( size_t i = 0, n = mpItemList->size(); i < n; ++i )
     {
         ImplHeadItem* pItem = (*mpItemList)[ i ];
-        // Image-Groessen beruecksichtigen
+        // take image size into account
         long nImageHeight = pItem->maImage.GetSizePixel().Height();
         if ( !(pItem->mnBits & (HIB_LEFTIMAGE | HIB_RIGHTIMAGE)) && 
!pItem->maText.isEmpty() )
             nImageHeight += aSize.Height();
         if ( nImageHeight > nMaxImageSize )
             nMaxImageSize = nImageHeight;
 
-        // Breite aufaddieren
+        // add width
         aSize.Width() += pItem->mnSize;
     }
 
     if ( nMaxImageSize > aSize.Height() )
         aSize.Height() = nMaxImageSize;
 
-    // Border aufaddieren
+    // add border
     if ( mbButtonStyle )
         aSize.Height() += 4;
     else
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to