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

2013-04-03 Thread Christian M . Heller
 vcl/source/edit/texteng.cxx |  116 ++--
 1 file changed, 58 insertions(+), 58 deletions(-)

New commits:
commit 4c5bada9d76d8f9247dd5fb269065f91abc233d0
Author: Christian M. Heller 
Date:   Mon Apr 1 19:25:10 2013 -0400

fdo#39468 Translate German in DBG_ASSERT and OSL_ENSURE in texteng.cxx

Change-Id: I9aac6a1f6e4a36fb95a518b752aef2066b45094c
Reviewed-on: https://gerrit.libreoffice.org/3163
Reviewed-by: Thomas Arnhold 
Tested-by: Thomas Arnhold 

diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx
index 261144a..7213ad1 100644
--- a/vcl/source/edit/texteng.cxx
+++ b/vcl/source/edit/texteng.cxx
@@ -477,7 +477,7 @@ void TextEngine::SetText( const OUString& rText )
 FormatAndUpdate();
 
 EnableUndo( bUndoCurrentlyEnabled );
-DBG_ASSERT( !HasUndoManager() || !GetUndoManager().GetUndoActionCount(), 
"Undo nach SetText?" );
+DBG_ASSERT( !HasUndoManager() || !GetUndoManager().GetUndoActionCount(), 
"SetText: Undo!" );
 }
 
 
@@ -491,7 +491,7 @@ void TextEngine::CursorMoved( sal_uLong nNode )
 
 void TextEngine::ImpRemoveChars( const TextPaM& rPaM, sal_uInt16 nChars, 
SfxUndoAction* )
 {
-DBG_ASSERT( nChars, "ImpRemoveChars - 0 Chars?!" );
+DBG_ASSERT( nChars, "ImpRemoveChars: 0 Chars?!" );
 if ( IsUndoEnabled() && !IsInUndo() )
 {
 // Attribute muessen hier vorm RemoveChars fuer UNDO gesichert werden!
@@ -518,7 +518,7 @@ void TextEngine::ImpRemoveChars( const TextPaM& rPaM, 
sal_uInt16 nChars, SfxUndo
 
 TextPaM TextEngine::ImpConnectParagraphs( sal_uLong nLeft, sal_uLong nRight )
 {
-DBG_ASSERT( nLeft != nRight, "Den gleichen Absatz zusammenfuegen ?" );
+DBG_ASSERT( nLeft != nRight, "ImpConnectParagraphs: connect the very same 
paragraph ?" );
 
 TextNode* pLeft = mpDoc->GetNodes().GetObject( nLeft );
 TextNode* pRight = mpDoc->GetNodes().GetObject( nRight );
@@ -529,8 +529,8 @@ TextPaM TextEngine::ImpConnectParagraphs( sal_uLong nLeft, 
sal_uLong nRight )
 // Erstmal Portions suchen, da pRight nach ConnectParagraphs weg.
 TEParaPortion* pLeftPortion = mpTEParaPortions->GetObject( nLeft );
 TEParaPortion* pRightPortion = mpTEParaPortions->GetObject( nRight );
-DBG_ASSERT( pLeft && pLeftPortion, "Blinde Portion in 
ImpConnectParagraphs(1)" );
-DBG_ASSERT( pRight && pRightPortion, "Blinde Portion in 
ImpConnectParagraphs(2)" );
+DBG_ASSERT( pLeft && pLeftPortion, "ImpConnectParagraphs(1): Hidden 
Portion" );
+DBG_ASSERT( pRight && pRightPortion, "ImpConnectParagraphs(2): Hidden 
Portion" );
 
 TextPaM aPaM = mpDoc->ConnectParagraphs( pLeft, pRight );
 ImpParagraphRemoved( nRight );
@@ -557,8 +557,8 @@ TextPaM TextEngine::ImpDeleteText( const TextSelection& 
rSel )
 CursorMoved( aStartPaM.GetPara() ); // nur damit neu eingestellte 
Attribute verschwinden...
 CursorMoved( aEndPaM.GetPara() );   // nur damit neu eingestellte 
Attribute verschwinden...
 
-DBG_ASSERT( mpDoc->IsValidPaM( aStartPaM ), "Index im Wald in 
ImpDeleteText" );
-DBG_ASSERT( mpDoc->IsValidPaM( aEndPaM ), "Index im Wald in ImpDeleteText" 
);
+DBG_ASSERT( mpDoc->IsValidPaM( aStartPaM ), "ImpDeleteText(1): bad Index" 
);
+DBG_ASSERT( mpDoc->IsValidPaM( aEndPaM ), "ImpDeleteText(2): bad Index" );
 
 sal_uLong nStartNode = aStartPaM.GetPara();
 sal_uLong nEndNode = aEndPaM.GetPara();
@@ -579,7 +579,7 @@ TextPaM TextEngine::ImpDeleteText( const TextSelection& 
rSel )
 {
 ImpRemoveChars( aStartPaM, nChars );
 TEParaPortion* pPortion = mpTEParaPortions->GetObject( nStartNode 
);
-DBG_ASSERT( pPortion, "Blinde Portion in ImpDeleteText(3)" );
+DBG_ASSERT( pPortion, "ImpDeleteText(3): bad Index" );
 pPortion->MarkSelectionInvalid( aStartPaM.GetIndex(), 
pLeft->GetText().Len() );
 }
 
@@ -592,7 +592,7 @@ TextPaM TextEngine::ImpDeleteText( const TextSelection& 
rSel )
 aEndPaM.GetIndex() = 0;
 ImpRemoveChars( aEndPaM, nChars );
 TEParaPortion* pPortion = mpTEParaPortions->GetObject( nEndNode );
-DBG_ASSERT( pPortion, "Blinde Portion in ImpDeleteText(4)" );
+DBG_ASSERT( pPortion, "ImpDeleteText(4): bad Index" );
 pPortion->MarkSelectionInvalid( 0, 
pPortion->GetNode()->GetText().Len() );
 }
 
@@ -605,7 +605,7 @@ TextPaM TextEngine::ImpDeleteText( const TextSelection& 
rSel )
 nChars = aEndPaM.GetIndex() - aStartPaM.GetIndex();
 ImpRemoveChars( aStartPaM, nChars );
 TEParaPortion* pPortion = mpTEParaPortions->GetObject( nStartNode );
-DBG_ASSERT( pPortion, "Blind

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

2013-04-09 Thread Christian M . Heller
 vcl/source/edit/texteng.cxx |  291 +++-
 1 file changed, 126 insertions(+), 165 deletions(-)

New commits:
commit 51fddc6c52d04a2dccdfb7d04f8dd0455e8c4b95
Author: Christian M. Heller 
Date:   Sun Apr 7 12:45:37 2013 -0400

fdo#39468 Translate German comments V2 - source/edit/texteng.cxx

Change-Id: Ifc02535cecc24d9362d2534784c659ee8705f751

diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx
index b03924c..db76523 100644
--- a/vcl/source/edit/texteng.cxx
+++ b/vcl/source/edit/texteng.cxx
@@ -61,9 +61,6 @@ using namespace ::com::sun::star::uno;
 using namespace ::rtl;
 
 
-// -
-// (-) class TextEngine
-// -
 TextEngine::TextEngine()
 {
 mpDoc = 0;
@@ -118,7 +115,7 @@ TextEngine::~TextEngine()
 delete mpIdleFormatter;
 delete mpDoc;
 delete mpTEParaPortions;
-delete mpViews; // nur die Liste, nicht die Vies
+delete mpViews; // only the list, not the Views
 delete mpRefDev;
 delete mpUndoManager;
 delete mpIMEInfos;
@@ -188,8 +185,8 @@ void TextEngine::SetFont( const Font& rFont )
 else
 maTextColor = rFont.GetColor();
 
-// Wegen Selektion keinen Transparenten Font zulassen...
-// (Sonst spaeter in ImplPaint den Hintergrund anders loeschen...)
+// Do not allow transparent fonts because of selection
+// (otherwise delete the background in ImplPaint later differently)
 maFont.SetTransparent( sal_False );
 // Tell VCL not to use the font color, use text color from OutputDevice
 maFont.SetColor( COL_TRANSPARENT );
@@ -336,7 +333,7 @@ sal_Bool TextEngine::DoesKeyChangeText( const KeyEvent& 
rKeyEvent )
 case KEYFUNC_CUT:
 case KEYFUNC_PASTE: bDoesChange = sal_True;
 break;
-default:// wird dann evtl. unten bearbeitet.
+default:// might get handled below
 eFunc = KEYFUNC_DONTKNOW;
 }
 }
@@ -421,7 +418,7 @@ String TextEngine::GetText( const TextSelection& rSel, 
LineEnd aSeparator ) cons
 sal_uInt16 nEndPos = pNode->GetText().Len();
 if ( nNode == nStartPara )
 nStartPos = aSel.GetStart().GetIndex();
-if ( nNode == nEndPara ) // kann auch == nStart sein!
+if ( nNode == nEndPara ) // may also be == nStart!
 nEndPos = aSel.GetEnd().GetIndex();
 
 aText += pNode->GetText().Copy( nStartPos, nEndPos-nStartPos );
@@ -450,7 +447,7 @@ void TextEngine::SetText( const OUString& rText )
 ImpRemoveText();
 
 sal_Bool bUndoCurrentlyEnabled = IsUndoEnabled();
-// Der von Hand reingesteckte Text kann nicht vom Anwender rueckgaengig 
gemacht werden.
+// the manually inserted text cannot be reversed by the user
 EnableUndo( sal_False );
 
 TextPaM aStartPaM( 0, 0 );
@@ -465,13 +462,12 @@ void TextEngine::SetText( const OUString& rText )
 TextView* pView = (*mpViews)[ nView ];
 pView->ImpSetSelection( aEmptySel );
 
-// Wenn kein Text, dann auch Kein Format&Update
-// => Der Text bleibt stehen.
+// if no text, then no Format&Update => the text remains
 if ( rText.isEmpty() && GetUpdateMode() )
 pView->Invalidate();
 }
 
-if( rText.isEmpty() )  // sonst muss spaeter noch invalidiert werden, 
!bFormatted reicht.
+if( rText.isEmpty() )  // otherwise needs invalidation later; !bFormatted 
is sufficient
 mnCurTextHeight = 0;
 
 FormatAndUpdate();
@@ -483,7 +479,7 @@ void TextEngine::SetText( const OUString& rText )
 
 void TextEngine::CursorMoved( sal_uLong nNode )
 {
-// Leere Attribute loeschen, aber nur, wenn Absatz nicht leer!
+// delete empty attribute; but only if paragraph is not empty!
 TextNode* pNode = mpDoc->GetNodes().GetObject( nNode );
 if ( pNode && pNode->GetCharAttribs().HasEmptyAttribs() && 
pNode->GetText().Len() )
 pNode->GetCharAttribs().DeleteEmptyAttribs();
@@ -494,11 +490,11 @@ void TextEngine::ImpRemoveChars( const TextPaM& rPaM, 
sal_uInt16 nChars, SfxUndo
 DBG_ASSERT( nChars, "ImpRemoveChars: 0 Chars?!" );
 if ( IsUndoEnabled() && !IsInUndo() )
 {
-// Attribute muessen hier vorm RemoveChars fuer UNDO gesichert werden!
+// attributes have to be saved for UNDO before RemoveChars!
 TextNode* pNode = mpDoc->GetNodes().GetObject( rPaM.GetPara() );
 XubString aStr( pNode->GetText().Copy( rPaM.GetIndex(), nChars ) );
 
-// Pruefen, ob Attribute geloescht oder geaendert werden:
+// check if attributes are being deleted or changed
 sal_uInt16 nStart = rPaM.GetIndex();
 sal_uInt16 nEnd = nStart + nChars;

[PATCH]Comment translation vcl/win/source/window/salobj.cxx

2013-02-24 Thread Christian M. Heller


>From 1fdf270d1fd405068dcf4a4c16faf72a2bc19ff9 Mon Sep 17 00:00:00 2001
From: "Christian M. Heller" 
Date: Sun, 24 Feb 2013 11:30:51 -0500
Subject: [PATCH] Comment translation vcl/win/source/window/salobj.cxx

---
 vcl/win/source/window/salobj.cxx |   33 ++---
 1 file changed, 14 insertions(+), 19 deletions(-)

diff --git a/vcl/win/source/window/salobj.cxx b/vcl/win/source/window/salobj.cxx
index e2c1b24..f6287e7 100644
--- a/vcl/win/source/window/salobj.cxx
+++ b/vcl/win/source/window/salobj.cxx
@@ -41,7 +41,7 @@ static sal_Bool ImplIsSysWindowOrChild( HWND hWndParent, HWND hWndChild )
 HWND hTempWnd = ::GetParent( hWndChild );
 while ( hTempWnd )
 {
-// Ab nicht Child-Fenstern hoeren wir auf zu suchen
+// stop searching if not a child window
 if ( !(GetWindowStyle( hTempWnd ) & WS_CHILD) )
 return FALSE;
 if ( hTempWnd == hWndParent )
@@ -129,8 +129,7 @@ LRESULT CALLBACK SalSysMsgProc( int nCode, WPARAM wParam, LPARAM lParam )
 pObject = ImplFindSalObject( pData->hwnd );
 if ( pObject && !ImplFindSalObject( (HWND)pData->wParam ) )
 {
-// LoseFocus nur rufen, wenn wirklich kein ChildFenster
-// den Focus bekommt
+// only call LoseFocus, if truly no child window gets the focus
 if ( !pData->wParam || !ImplFindSalObject( (HWND)pData->wParam ) )
 {
 if ( ImplSalYieldMutexTryToAcquire() )
@@ -172,11 +171,9 @@ sal_Bool ImplSalPreDispatchMsg( MSG* pMsg )
 if ( (pMsg->message == WM_KEYDOWN) ||
  (pMsg->message == WM_KEYUP) )
 {
-// KeyEvents wollen wir nach Moeglichkeit auch abarbeiten,
-// wenn das Control diese nicht selber auswertet
-// SysKeys werden als WM_SYSCOMMAND verarbeitet
-// Char-Events verarbeiten wir nicht, da wir nur
-// Accelerator relevante Keys verarbeiten wollen
+// process KeyEvents even if the control does not process them itself
+// SysKeys are processed as WM_SYSCOMMAND
+// Char-Events are not processed, as they are not accelerator-relevant
 sal_Bool bWantedKeyCode = FALSE;
 // A-Z, 0-9 nur in Verbindung mit Control-Taste
 if ( ((pMsg->wParam >= 65) && (pMsg->wParam <= 90)) ||
@@ -200,7 +197,7 @@ sal_Bool ImplSalPreDispatchMsg( MSG* pMsg )
 ImplSalYieldMutexRelease();
 }
 }
-// Hier WM_SYSCHAR abfangen, um mit Alt+Taste evtl. Menu zu aktivieren
+// check WM_SYSCHAR, to activate menu with Alt key
 else if ( pMsg->message == WM_SYSCHAR )
 {
 pSalData->mnSalObjWantKeyEvt = 0;
@@ -362,9 +359,8 @@ LRESULT CALLBACK SalSysObjWndProc( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM l
 CREATESTRUCTA* pStruct = (CREATESTRUCTA*)lParam;
 pSysObj = (WinSalObject*)pStruct->lpCreateParams;
 SetSalObjWindowPtr( hWnd, pSysObj );
-// HWND schon hier setzen, da schon auf den Instanzdaten
-// gearbeitet werden kann, wenn Messages waehrend
-// CreateWindow() gesendet werden
+// set HWND already here,
+// as instance data might be used during CreateWindow() events
 pSysObj->mhWnd = hWnd;
 rDef = FALSE;
 }
@@ -400,7 +396,7 @@ LRESULT CALLBACK SalSysObjChildWndProc( HWND hWnd, UINT nMsg, WPARAM wParam, LPA
 
 switch( nMsg )
 {
-// Wegen PlugIn's loeschen wir erstmal den Hintergrund
+// clear background for plugins
 case WM_ERASEBKGND:
 {
 WinSalObject* pSysObj = GetSalObjWindowPtr( ::GetParent( hWnd ) );
@@ -480,7 +476,7 @@ SalObject* ImplSalCreateObject( WinSalInstance* pInst, WinSalFrame* pParent )
 {
 SalData* pSalData = GetSalData();
 
-// Hook installieren, wenn es das erste SalObject ist
+// install hook, if it is the first SalObject
 if ( !pSalData->mpFirstObject )
 {
 pSalData->mhSalObjMsgHook = SetWindowsHookExW( WH_CALLWNDPROC,
@@ -599,7 +595,7 @@ WinSalObject::~WinSalObject()
 {
 pSalData->mpFirstObject = mpNextObject;
 
-// Wenn letztes SalObject, dann Hook wieder entfernen
+// remove hook, if it is the last SalObject
 if ( !pSalData->mpFirstObject )
 UnhookWindowsHookEx( pSalData->mhSalObjMsgHook );
 }
@@ -622,9 +618,8 @@ WinSalObject::~WinSalObject()
 if ( mhWnd )
 DestroyWindow( mhWnd );
 
-// Palette wieder zuruecksetzen, wenn kein externes Child-Fenster
-// mehr vorhanden ist, da diese unsere Palette ueberschrieben haben
-// koennen
+// reset palette, if no external child window is left,
+// as they might have overwritten our palette
 if ( hWndParent &&
  ::GetActiveWindow() == hWndParent &&
  !Get

[PATCH] German comment translation - vcl#2

2013-02-24 Thread Christian M. Heller


>From dce5f32e60bba105dc1b811e191dc1e708b7be0b Mon Sep 17 00:00:00 2001
From: "Christian M. Heller" 
Date: Sun, 24 Feb 2013 15:45:29 -0500
Subject: [PATCH] German Comment translation

graphicfilter.hxx
prgsbar.hxx
---
 vcl/inc/vcl/graphicfilter.hxx |   48 ++---
 vcl/inc/vcl/prgsbar.hxx   |   43 +---
 2 files changed, 41 insertions(+), 50 deletions(-)

diff --git a/vcl/inc/vcl/graphicfilter.hxx b/vcl/inc/vcl/graphicfilter.hxx
index f9a7ae1..36a8d08 100644
--- a/vcl/inc/vcl/graphicfilter.hxx
+++ b/vcl/inc/vcl/graphicfilter.hxx
@@ -87,10 +87,7 @@ struct ConvertData;
 #define EMF_SHORTNAME   "EMF"
 #define SVG_SHORTNAME   "SVG"
 
-// 
-// - Info-Klasse fuer alle von uns
-//  unterstuetzten Grafik-Fileformate
-// 
+//  Info class for all supported file formats
 
 #define GFF_NOT ( (sal_uInt16)0x )
 #define GFF_BMP ( (sal_uInt16)0x0001 )
@@ -169,50 +166,47 @@ class VCL_DLLPUBLIC GraphicDescriptor
 
 public:
 
-// Ctor, um einen Filenamen zu setzen. Es muss ::Detect() gerufen werden,
-// um das File zu identifizieren;
-// wenn das File keinen eindeutigen Header besitzt ( Mtf's ) wird das
-// Format anhand der Extension bestimmt
+// Ctor to set a filename
+// ::Detect() must be called to identify the file
+// If the file has no unique header (Mtf's), the format
+// is determined from the extension
 GraphicDescriptor( const INetURLObject& rPath );
 
-// Ctor, um einen Stream zu setzen. Es muss ::Detect() gerufen werden,
-// um das File zu identifizieren;
-// da einige Formate ( Mtf's ) keinen eindeutigen Header besitzen,
-// ist es sinnvoll den Filenamen (inkl. Ext. ) mitanzugeben,
-// da so das Format ueber die Extension ermittelt werden kann
+// ::Detect() must be called to identify the file
+// As some formats (Mtf's) do not have a unique header, it makes sense
+// to supply the file name (incl. ext.), so that the format can be
+// derived from the extension
 GraphicDescriptor( SvStream& rInStream, const String* pPath = NULL );
 
 // Dtor
 virtual ~GraphicDescriptor();
 
-// Startet die Detektion;
-// bei bExtendedInfo == sal_True werden soweit wie moeglich
-// Daten aus dem jeweiligen FileHeader ermittelt
-// ( Groesse, Farbtiefe usw. )
+// starts the detection
+// if bExtendedInfo == sal_True the file header is used to derive
+// properties as possible (size, color, etc.)
 virtual sal_BoolDetect( sal_Bool bExtendedInfo = sal_False );
 
-// liefert das Fileformat nach erfolgreicher  Detektion zurueck;
-// wenn kein Format erkannt wurde, ist das Formart GFF_NOT
+// returns the file format
+// GFF_NOT is returned if no format was recognized
 sal_uInt16  GetFileFormat() const { return nFormat; }
 
-// liefert die Pixel-Bildgroesse oder 0-Size zurueck
+// returns graphic size in pixels (?) or 0 size
 const Size& GetSizePixel() const { return (Size&) aPixSize; }
 
-// liefert die logische Bildgroesse in 1/100mm oder 0-Size zurueck
+// returns the logical graphic size in 1/100mm or 0 size
 const Size& GetSize_100TH_MM() const { return (Size&) aLogSize; }
 
-// liefert die Bits/Pixel oder 0 zurueck
+// returns bits/pixel or 0
 sal_uInt16  GetBitsPerPixel() const { return nBitsPerPixel; }
 
-// liefert die Anzahl der Planes oder 0 zurueck
+// returns number of planes or 0
 sal_uInt16  GetPlanes() const { return nPlanes; }
 
-// zeigt an, ob das Bild evtl. komprimiert (wie auch immer) ist
+// returns true if the graphic is compressed
 sal_BoolIsCompressed() const { return bCompressed; }
 
-// gibt die Filternummer des Filters zurueck,
-// der im GraphicFilter zum Lesen dieses Formats
-// benoetigt wird
+// returns the filter number that is needed by the
+// GraphFilter to read this format
 static String GetImportFormatShortName( sal_uInt16 nFormat );
 };
 
diff --git a/vcl/inc/vcl/prgsbar.hxx b/vcl/inc/vcl/prgsbar.hxx
index fb68670..98a9f59 100644
--- a/vcl/inc/vcl/prgsbar.hxx
+++ b/vcl/inc/vcl/prgsbar.hxx
@@ -24,29 +24,26 @@
 #include 
 
 /*
-
-Beschreibung
-
-
-class ProgressBar
-
-Diese Klasse dient zur Anzeige einer Progress-Anzeige.
-
---
-
-WinBits
-
-WB_BORDER   Border um das Fenster
-WB_3DLOOK   3D-Darstellung
-
---
-
-Methoden
-
-Mit SetValue() setzt man einen Prozent-Wert zwischen 0 und 100. Wenn

[Libreoffice-commits] core.git: vcl/inc vcl/win

2013-02-28 Thread Christian M . Heller
 vcl/inc/vcl/graphicfilter.hxx|   51 +--
 vcl/inc/vcl/prgsbar.hxx  |   43 +++-
 vcl/win/source/window/salobj.cxx |   33 ++---
 3 files changed, 57 insertions(+), 70 deletions(-)

New commits:
commit 02a985013e816c94a07cf93491873fddfe090b1d
Author: Christian M. Heller 
Date:   Sun Feb 24 11:30:51 2013 -0500

fdo#39468: Translated German comments in vcl/{inc,win}

Change-Id: I1b11872dd56d93b116a65ac2e3905f751cfafeeb
Signed-off-by: Philipp Riemer 
Reviewed-on: https://gerrit.libreoffice.org/2447
Reviewed-by: Michael Meeks 
Tested-by: Michael Meeks 

diff --git a/vcl/inc/vcl/graphicfilter.hxx b/vcl/inc/vcl/graphicfilter.hxx
index f9a7ae1..3e2218c 100644
--- a/vcl/inc/vcl/graphicfilter.hxx
+++ b/vcl/inc/vcl/graphicfilter.hxx
@@ -87,10 +87,7 @@ struct ConvertData;
 #define EMF_SHORTNAME   "EMF"
 #define SVG_SHORTNAME   "SVG"
 
-// 
-// - Info-Klasse fuer alle von uns
-//  unterstuetzten Grafik-Fileformate
-// 
+//  Info class for all supported file formats
 
 #define GFF_NOT ( (sal_uInt16)0x )
 #define GFF_BMP ( (sal_uInt16)0x0001 )
@@ -169,50 +166,48 @@ class VCL_DLLPUBLIC GraphicDescriptor
 
 public:
 
-// Ctor, um einen Filenamen zu setzen. Es muss ::Detect() gerufen werden,
-// um das File zu identifizieren;
-// wenn das File keinen eindeutigen Header besitzt ( Mtf's ) wird das
-// Format anhand der Extension bestimmt
+/** Ctor to set a filename
+
+::Detect() must be called to identify the file
+If the file has no unique header (Mtf's), the format
+is determined from the extension */
 GraphicDescriptor( const INetURLObject& rPath );
 
-// Ctor, um einen Stream zu setzen. Es muss ::Detect() gerufen werden,
-// um das File zu identifizieren;
-// da einige Formate ( Mtf's ) keinen eindeutigen Header besitzen,
-// ist es sinnvoll den Filenamen (inkl. Ext. ) mitanzugeben,
-// da so das Format ueber die Extension ermittelt werden kann
+/** Ctor using a stream
+
+::Detect() must be called to identify the file
+As some formats (Mtf's) do not have a unique header, it makes sense
+to supply the file name (incl. ext.), so that the format can be
+derived from the extension */
 GraphicDescriptor( SvStream& rInStream, const String* pPath = NULL );
 
-// Dtor
 virtual ~GraphicDescriptor();
 
-// Startet die Detektion;
-// bei bExtendedInfo == sal_True werden soweit wie moeglich
-// Daten aus dem jeweiligen FileHeader ermittelt
-// ( Groesse, Farbtiefe usw. )
+/** starts the detection
+
+if bExtendedInfo == sal_True the file header is used to derive
+as many properties as possible (size, color, etc.) */
 virtual sal_BoolDetect( sal_Bool bExtendedInfo = sal_False );
 
-// liefert das Fileformat nach erfolgreicher  Detektion zurueck;
-// wenn kein Format erkannt wurde, ist das Formart GFF_NOT
+/** @return the file format, GFF_NOT if no format was recognized */
 sal_uInt16  GetFileFormat() const { return nFormat; }
 
-// liefert die Pixel-Bildgroesse oder 0-Size zurueck
+/** @return graphic size in pixels or 0 size */
 const Size& GetSizePixel() const { return (Size&) aPixSize; }
 
-// liefert die logische Bildgroesse in 1/100mm oder 0-Size zurueck
+/** @return the logical graphic size in 1/100mm or 0 size */
 const Size& GetSize_100TH_MM() const { return (Size&) aLogSize; }
 
-// liefert die Bits/Pixel oder 0 zurueck
+/** @return bits/pixel or 0 **/
 sal_uInt16  GetBitsPerPixel() const { return nBitsPerPixel; }
 
-// liefert die Anzahl der Planes oder 0 zurueck
+/** return number of planes or 0 */
 sal_uInt16  GetPlanes() const { return nPlanes; }
 
-// zeigt an, ob das Bild evtl. komprimiert (wie auch immer) ist
+/** @return true if the graphic is compressed */
 sal_BoolIsCompressed() const { return bCompressed; }
 
-// gibt die Filternummer des Filters zurueck,
-// der im GraphicFilter zum Lesen dieses Formats
-// benoetigt wird
+/** @return filter number that is needed by the GraphFilter to read this 
format */
 static String GetImportFormatShortName( sal_uInt16 nFormat );
 };
 
diff --git a/vcl/inc/vcl/prgsbar.hxx b/vcl/inc/vcl/prgsbar.hxx
index fb68670..9f22df4 100644
--- a/vcl/inc/vcl/prgsbar.hxx
+++ b/vcl/inc/vcl/prgsbar.hxx
@@ -24,29 +24,26 @@
 #include 
 
 /*
-
-Beschreibung
-
-
-class ProgressBar
-
-Diese Klasse dient zur Anzeige einer Progress-Anzeige.
-
---
-
-WinBits
-
-WB_BORDER

[Libreoffice-commits] core.git: vcl/inc vcl/source

2013-03-04 Thread Christian M . Heller
 vcl/inc/vcl/fltcall.hxx |   22 +++---
 vcl/inc/vcl/textdata.hxx|2 +-
 vcl/inc/vcl/texteng.hxx |8 
 vcl/source/control/combobox.cxx |   23 ---
 vcl/source/control/fixed.cxx|6 +++---
 5 files changed, 31 insertions(+), 30 deletions(-)

New commits:
commit 929baa03c33084eaca51e02a131cc835048543c4
Author: Christian M. Heller 
Date:   Sun Mar 3 18:05:04 2013 -0500

fdo#39468 translate German comments in vcl

modified:   vcl/inc/vcl/fltcall.hxx
modified:   vcl/inc/vcl/textdata.hxx
modified:   vcl/inc/vcl/texteng.hxx
modified:   vcl/source/control/combobox.cxx
modified:   vcl/source/control/fixed.cxx

Change-Id: I8af3fe962ba77d7047eac8d7570c5bc572585363
Reviewed-on: https://gerrit.libreoffice.org/2534
Reviewed-by: Muthu Subramanian K 
Tested-by: Muthu Subramanian K 

diff --git a/vcl/inc/vcl/fltcall.hxx b/vcl/inc/vcl/fltcall.hxx
index 91e4d28..03a6340 100644
--- a/vcl/inc/vcl/fltcall.hxx
+++ b/vcl/inc/vcl/fltcall.hxx
@@ -49,19 +49,19 @@ struct FltCallDialogParameter
 
 typedef sal_Bool (*PFilterCall)(SvStream & rStream, Graphic & rGraphic,
 FilterConfigItem* pConfigItem, sal_Bool 
bPrefDialog);
-// Von diesem Typ sind sowohl Export-Filter-Funktionen als auch 
Import-Filter-Funktionen.
-// rFileName ist der komplette Pfadname der zu importierenden bzw. zu 
exportierenden Datei.
-// pCallBack darf auch NULL sein. pCallerData wird der Callback-Funktion 
uebergeben.
-// pOptionsConfig darf NULL sein. Anderenfalls ist die Gruppe des Config 
schon gesetzt
-// und darf von dem Filter nicht geaendert werden!
-// Wenn bPrefDialog==sal_True gilt, wird ggf. ein Preferences-Dialog 
durchgefuehrt.
+// Of this type are both export-filter and import-filter functions
+// rFileName is the complete path to the file to be imported or exported
+// pCallBack can be NULL. pCallerData is handed to the callback function
+// pOptionsConfig can be NULL; if not, the group of the config is already 
set
+// and may not be changed by this filter!
+// If bPrefDialog==sal_True, a Preferences-Dialog might be called
 
 typedef sal_Bool ( *PFilterDlgCall )( FltCallDialogParameter& );
-// Von diesem Typ sind sowohl Export-Filter-Funktionen als auch 
Import-Filter-Funktionen.
-// Uebergeben wird ein Pointer auf ein Parent-Fenster und auf die 
Options-Config.
-// pOptions und pWindow duerfen NULL sein, in diesem Fall wird sal_False 
zurueckgeliefert.
-// Anderenfalls ist die Gruppe der Config schon gesetzt
-// und darf von dem Filter nicht geaendert werden!
+// Of this type are both export-filter and import-filter functions
+// hands a pointer to the parent window and to the options config
+// pOptions and pWindow can be NULL; in this case sal_False is returned,
+// otherwise the group of the config is already set
+// and may not be changed by this filter!
 
 #endif
 
diff --git a/vcl/inc/vcl/textdata.hxx b/vcl/inc/vcl/textdata.hxx
index 4ee0e2f..476ba00 100644
--- a/vcl/inc/vcl/textdata.hxx
+++ b/vcl/inc/vcl/textdata.hxx
@@ -25,7 +25,7 @@
 #include 
 #include 
 
-// Fuer Notify, wenn alle Absaetze geloescht wurden...
+// for Notify, if all paragraphs were deleted
 #define TEXT_PARA_ALL   0x
 
 class TextPaM
diff --git a/vcl/inc/vcl/texteng.hxx b/vcl/inc/vcl/texteng.hxx
index e5f4582..2fc0314 100644
--- a/vcl/inc/vcl/texteng.hxx
+++ b/vcl/inc/vcl/texteng.hxx
@@ -122,7 +122,7 @@ private:
 
 TxtAlignmeAlign;
 
-sal_BoolmbIsFormatting  : 1;// Semaphore wegen der 
Hook's
+sal_BoolmbIsFormatting  : 1;// semaphore for the 
Hook's
 sal_BoolmbFormatted : 1;
 sal_BoolmbUpdate: 1;
 sal_BoolmbModified  : 1;
@@ -161,7 +161,7 @@ protected:
 SAL_DLLPRIVATE ::com::sun::star::uno::Reference < 
::com::sun::star::i18n::XExtendedInputSequenceChecker > 
GetInputSequenceChecker() const;
 SAL_DLLPRIVATE sal_Bool IsInputSequenceCheckingRequired( sal_Unicode c, 
const TextSelection& rCurSel ) const;
 
-// Broadcasten bzw. Selektionen anpassen:
+// broadcast or adjust selections
 voidImpParagraphInserted( sal_uLong nPara );
 voidImpParagraphRemoved( sal_uLong nPara );
 voidImpCharsRemoved( sal_uLong nPara, sal_uInt16 nPos, 
sal_uInt16 nChars );
@@ -210,12 +210,12 @@ protected:
 sal_uLong   CalcTextWidth( sal_uLong nPara, sal_uInt16 
nPortionStart, sal_uInt16 nPortionLen, const Font* pFont = 0 );
 Range   GetInvalidYOffsets( sal_uLong nPortion );
 
-// Fuer Undo/Redo
+// for Undo/Redo
 voidInsertContent( TextNode* pNode, sal_uLong nPara );
 TextPaM  

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

2013-03-05 Thread Christian M . Heller
 vcl/source/control/combobox.cxx |2 
 vcl/source/control/fixed.cxx|2 
 vcl/source/control/ilstbox.cxx  |   91 +++-
 3 files changed, 47 insertions(+), 48 deletions(-)

New commits:
commit 21414f3958357303084780b27d566f2058b73a37
Author: Christian M. Heller 
Date:   Mon Mar 4 20:13:41 2013 -0500

fdo#39468 translate German comments in /vcl V2

Change-Id: Icead8400db3bab570b5ef55d5079ea50e2e3b7b9
Reviewed-on: https://gerrit.libreoffice.org/2552
Reviewed-by: Thomas Arnhold 
Tested-by: Thomas Arnhold 

diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx
index fd09ccb..13e3f2e 100644
--- a/vcl/source/control/combobox.cxx
+++ b/vcl/source/control/combobox.cxx
@@ -381,7 +381,7 @@ IMPL_LINK_NOARG(ComboBox, ImplSelectHdl)
 {
 aText = mpSubEdit->GetText();
 
-// remove all entries to which there is an selected entry
+// remove all entries to which there is an entry, but which is not 
selected
 xub_StrLen nIndex = 0;
 while ( nIndex != STRING_NOTFOUND )
 {
diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx
index b6a4d10..35a47f3 100644
--- a/vcl/source/control/fixed.cxx
+++ b/vcl/source/control/fixed.cxx
@@ -386,7 +386,7 @@ Size FixedText::CalcMinimumTextSize( Control const 
*pControl, long nMaxWidth )
 if ( pControl->GetStyle() & WB_EXTRAOFFSET )
 aSize.Width() += 2;
 
-// GetTextRect cannot take and empty string
+// GetTextRect cannot take an empty string
 if ( aSize.Width() < 0 )
 aSize.Width() = 0;
 if ( aSize.Height() <= 0 )
diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx
index 475d074..e790a43 100644
--- a/vcl/source/control/ilstbox.cxx
+++ b/vcl/source/control/ilstbox.cxx
@@ -199,7 +199,7 @@ sal_uInt16 ImplEntryList::InsertEntry( sal_uInt16 nPos, 
ImplEntryType* pNewEntry
 // defined values are {-1, 0, 1} which is compatible with 
StringCompare
 StringCompare eComp = (StringCompare)rSorter.compare(rStr, 
pTemp->maStr);
 
-// Schnelles Einfuegen bei sortierten Daten
+// fast insert for sorted data
 if ( eComp != COMPARE_LESS )
 {
 insPos = maEntries.size();
@@ -218,7 +218,7 @@ sal_uInt16 ImplEntryList::InsertEntry( sal_uInt16 nPos, 
ImplEntryType* pNewEntry
 }
 else
 {
-// Binaeres Suchen
+// binary search
 nHigh--;
 do
 {
@@ -298,7 +298,7 @@ sal_uInt16 ImplEntryList::FindMatchingEntry( const 
XubString& rStr, sal_uInt16 n
 sal_uInt16  nPos = LISTBOX_ENTRY_NOTFOUND;
 sal_uInt16  nEntryCount = GetEntryCount();
 if ( !bForward )
-nStart++;   // wird sofort dekrementiert
+nStart++;   // decrements right away
 
 const vcl::I18nHelper& rI18nHelper = 
mpWindow->GetSettings().GetLocaleI18nHelper();
 for ( sal_uInt16 n = nStart; bForward ? ( n < nEntryCount ) : n; )
@@ -738,8 +738,8 @@ void ImplListBoxWindow::ImplUpdateEntryMetrics( 
ImplEntryType& rEntry )
 
 if ( !aMetrics.bText && !aMetrics.bImage && !IsUserDrawEnabled() )
 {
-// entries which have no (aka an empty) text, and no image, and are 
not user-drawn, should be
-// shown nonetheless
+// entries which have no (aka an empty) text, and no image,
+// and are not user-drawn, should be shown nonetheless
 aMetrics.nEntryHeight = mnTextHeight + mnBorder;
 }
 
@@ -912,7 +912,7 @@ sal_uInt16 ImplListBoxWindow::GetLastVisibleEntry() const
 
 void ImplListBoxWindow::MouseButtonDown( const MouseEvent& rMEvt )
 {
-mbMouseMoveSelect = sal_False;  // Nur bis zum ersten MouseButtonDown
+mbMouseMoveSelect = sal_False;  // only till the first MouseButtonDown
 maQuickSelectionEngine.Reset();
 
 if ( !IsReadOnly() )
@@ -1005,8 +1005,8 @@ void ImplListBoxWindow::MouseMove( const MouseEvent& 
rMEvt )
 }
 }
 
-// Falls der DD-Button gedrueckt wurde und jemand mit gedrueckter
-// Maustaste in die ListBox faehrt...
+// if the DD button was pressed and someone moved into the ListBox
+// with the mouse button pressed...
 if ( rMEvt.IsLeft() && !rMEvt.IsSynthetic() )
 {
 if ( !mbMulti && GetEntryList()->GetSelectEntryCount() )
@@ -1045,7 +1045,7 @@ void ImplListBoxWindow::SelectEntry( sal_uInt16 nPos, 
sal_Bool bSelect )
 {
 if( !mbMulti )
 {
-// Selektierten Eintrag deselektieren
+// deselect the selected entry
 sal_uInt16 nDeselect = GetEntryList()->GetSelectEntryPos( 0 );
 if( nDes

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

2014-03-20 Thread Christian M . Heller
 sw/source/filter/basflt/docfact.cxx |   10 --
 1 file changed, 10 deletions(-)

New commits:
commit 6bc34153bc429b57694cfc59655814d0fe089e24
Author: Christian M. Heller 
Date:   Wed Mar 19 18:44:36 2014 -0400

fdo#39468 Translate German Comments - docfact.cxx

Change-Id: Ib9ca82b1b5f19dff439cd3119781a5f025b45231
Reviewed-on: https://gerrit.libreoffice.org/8663
Reviewed-by: Miklos Vajna 
Tested-by: Miklos Vajna 

diff --git a/sw/source/filter/basflt/docfact.cxx 
b/sw/source/filter/basflt/docfact.cxx
index a95d122..c8c87c0 100644
--- a/sw/source/filter/basflt/docfact.cxx
+++ b/sw/source/filter/basflt/docfact.cxx
@@ -23,9 +23,6 @@
 
 #include 
 
-/**
- *  Methode :   SwDocFac::SwDocFac( SwDoc *pDoc )
- 
**/
 
 SwDocFac::SwDocFac( SwDoc *pDc )
 : pDoc( pDc )
@@ -34,9 +31,6 @@ SwDocFac::SwDocFac( SwDoc *pDc )
 pDoc->acquire();
 }
 
-/**
- *  Methode :   SwDocFac::~SwDocFac()
- 
**/
 
 SwDocFac::~SwDocFac()
 {
@@ -44,10 +38,6 @@ SwDocFac::~SwDocFac()
 delete pDoc;
 }
 
-/**
- *  Methode :   SwDoc *SwDocFac::GetDoc()
- *  Beschreibung:   Diese Methode legt immer einen Drucker an.
- 
**/
 
 SwDoc *SwDocFac::GetDoc()
 {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2014-03-20 Thread Christian M . Heller
 sw/source/filter/basflt/fltini.cxx |   15 +++
 1 file changed, 7 insertions(+), 8 deletions(-)

New commits:
commit 76358d0cd1ffc0fe81230e4fed12e259ad131366
Author: Christian M. Heller 
Date:   Wed Mar 19 18:58:51 2014 -0400

fdo#39468 Translate German Comments - fltini.cxx

Reviewed on:
https://gerrit.libreoffice.org/8664

Change-Id: I719fe3266b80fd6e4da73729c74f3d606708b691

diff --git a/sw/source/filter/basflt/fltini.cxx 
b/sw/source/filter/basflt/fltini.cxx
index 00b6e9a..8374d19 100644
--- a/sw/source/filter/basflt/fltini.cxx
+++ b/sw/source/filter/basflt/fltini.cxx
@@ -137,7 +137,7 @@ Filters::Filters()
 
 Filters::~Filters()
 {
-// die Reader vernichten
+// kill Readers
 for( sal_uInt16 n = 0; n < MAXFILTER; ++n )
 {
 SwReaderWriterEntry& rEntry = aReaderWriter[n];
@@ -188,7 +188,7 @@ SwRead GetReader( const OUString& rFltName )
 if ( aFilterDetect[n].IsFilter( rFltName ) )
 {
 pRead = aReaderWriter[n].GetReader();
-// fuer einige Reader noch eine Sonderbehandlung:
+// add special treatment for some readers
 if ( pRead )
 pRead->SetFltName( rFltName );
 break;
@@ -214,7 +214,7 @@ sal_Bool SwReader::CheckPasswd( const OUString& 
/*rPasswd*/, const Reader& /*rOp
 return sal_True;
 }
 
-// Filter Flags lesen, wird von WW8 / W4W / EXCEL / LOTUS benutzt.
+// Read Filter Flags; used by WW8 / W4W / EXCEL / LOTUS
 
 /*
 
@@ -323,9 +323,8 @@ void CalculateFlySize(SfxItemSet& rFlySet, const 
SwNodeIndex& rAnchor,
 aSz = (SwFmtFrmSize&)(*pItem);
 
 SwTwips nWidth;
-// dann die Breite des Flys selbst bestimmen. Ist eine Tabelle
-// defininiert, dann benutze deren Breite, sonst die Breite der
-// Seite
+// determine the width; if there is a table use the width of 
the table;
+// otherwise use the width of the page
 const SwTableNode* pTblNd = rAnchor.GetNode().FindTableNode();
 if( pTblNd )
 nWidth = 
pTblNd->GetTable().GetFrmFmt()->GetFrmSize().GetWidth();
@@ -378,7 +377,7 @@ void CalculateFlySize(SfxItemSet& rFlySet, const 
SwNodeIndex& rAnchor,
 pFirstTxtNd->EraseText( aNdIdx, 2 );
 }
 
-// Umrandung und Abstand zum Inhalt beachten
+// consider border and distance to content
 const SvxBoxItem& rBoxItem = 
(SvxBoxItem&)rFlySet.Get( RES_BOX );
 sal_uInt16 nLine = BOX_LINE_LEFT;
 for( int i = 0; i < 2; ++i )
@@ -394,7 +393,7 @@ void CalculateFlySize(SfxItemSet& rFlySet, const 
SwNodeIndex& rAnchor,
 nLine = BOX_LINE_RIGHT;
 }
 
-// Mindestbreite fuer Inhalt einhalten
+// enforce minimum width for contents
 if( nMinFrm < MINLAY )
 nMinFrm = MINLAY;
 if( nMaxFrm < MINLAY )
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2014-03-20 Thread Christian M . Heller
 sw/source/filter/basflt/iodetect.cxx |   31 +++
 1 file changed, 11 insertions(+), 20 deletions(-)

New commits:
commit a9db058c95d8be07c0734b450609153d87832d41
Author: Christian M. Heller 
Date:   Wed Mar 19 19:30:34 2014 -0400

fdo#39468 Translate German Comments - iodetect.cxx

Change-Id: I45d81df485ff62417f94c01234c3ddc41b6f3c77
Reviewed-on: https://gerrit.libreoffice.org/8665
Reviewed-by: Miklos Vajna 
Tested-by: Miklos Vajna 

diff --git a/sw/source/filter/basflt/iodetect.cxx 
b/sw/source/filter/basflt/iodetect.cxx
index f53ad3b..af15200 100644
--- a/sw/source/filter/basflt/iodetect.cxx
+++ b/sw/source/filter/basflt/iodetect.cxx
@@ -47,7 +47,7 @@ SwIoDetect aFilterDetect[] =
 
 OUString SwIoDetect::IsReader(const sal_Char* pHeader, sal_uLong nLen_) const
 {
-// Filter erkennung
+// Filter recognition
 struct W1_FIB
 {
 SVBT16 wIdent;  // 0x0 int magic number
@@ -92,7 +92,7 @@ OUString SwIoDetect::IsReader(const sal_Char* pHeader, 
sal_uLong nLen_) const
 
 const OUString SwIoSystem::GetSubStorageName( const SfxFilter& rFltr )
 {
-/* bei den StorageFiltern noch den SubStorageNamen setzen */
+// for StorageFilters also set the SubStorageName
 const OUString& rUserData = rFltr.GetUserData();
 if (rUserData == FILTER_XML ||
 rUserData == FILTER_XMLV ||
@@ -159,8 +159,8 @@ sal_Bool SwIoSystem::IsValidStgFilter(SotStorage& rStg, 
const SfxFilter& rFilter
 ( rStg.IsContained( SwIoSystem::GetSubStorageName( rFilter )) );
 if( bRet )
 {
-/* Bug 53445 - es gibt Excel Docs ohne ClipBoardId! */
-/* Bug 62703 - und auch WinWord Docs ohne ClipBoardId! */
+/* Bug 53445 - there are Excel Docs w/o ClipBoardId! */
+/* Bug 62703 - and also WinWord Docs w/o ClipBoardId! */
 if (rFilter.GetUserData() == FILTER_WW8 || rFilter.GetUserData() == 
sWW6)
 {
 bRet = (rStg.IsContained(OUString("0Table"))
@@ -195,8 +195,8 @@ void TerminateBuffer(sal_Char *pBuffer, sal_uLong 
nBytesRead, sal_uLong nBufferL
 }
 }
 
-/* Feststellen ob das File in dem entsprechenden Format vorliegt. */
-/* Z.z werden nur unsere eigene Filter unterstuetzt   */
+// Check if the file fits the corresponding format
+// Currently we only support our own filters
 sal_Bool SwIoSystem::IsFileFilter(SfxMedium& rMedium, const OUString& rFmtName)
 {
 sal_Bool bRet = sal_False;
@@ -266,12 +266,10 @@ sal_Bool SwIoSystem::IsFileFilter(SfxMedium& rMedium, 
const OUString& rFmtName)
 return bRet;
 }
 
-/* die Methode stellt fest, von welchem Typ der stream (File) ist.*/
-/* Es wird versucht, eine dem Filter entsprechende Byte-Folge zu finden.  */
-/* Wird kein entsprechender gefunden, wird zur Zeit der ASCII-Reader  */
-/* returnt !! Der Returnwert ist der interne Filtername!  */
-/* rPrefFltName ist der interne Name des Filters, den der Benutzer im */
-/* Open-Dialog eingestellt hat.   */
+// Check the type of the stream (file) by searching for corresponding set of 
bytes.
+// If no known type is found, return ASCII for now!
+// Returns the internal FilterName.
+// rPrefFltName is the internal FilterName that was chosen by the user in the 
Open Dlg.
 const SfxFilter* SwIoSystem::GetFileFilter(const OUString& rFileName,
 const OUString& rPrefFltName, SfxMedium* pMedium)
 {
@@ -372,12 +370,6 @@ const SfxFilter* SwIoSystem::GetFileFilter(const OUString& 
rFileName,
 
 TerminateBuffer(aBuffer, nBytesRead, sizeof(aBuffer));
 
-/* !!!*/
-/* suche nach dem bestimmten Filter, falls kein entsprechender*/
-/* gefunden wird, so wird der ASCII-Filter returnt.   */
-/* Gibt es Filter ohne einen Identifizierungs-String, so werden diese */
-/* nie erkannt und es wird auch der ASCII-Filter returnt. */
-/* !!!*/
 {
 for( sal_uInt16 n = 0; n < MAXFILTER; ++n )
 {
@@ -391,8 +383,7 @@ const SfxFilter* SwIoSystem::GetFileFilter(const OUString& 
rFileName,
 }
 }
 
-/* Ok, bis jetzt kein Filter gefunden, also befrage mal die */
-/* "WORD 4 WORD" Filter */
+// no filter recognized so far; thus check "WORD 4 WORD" Filter
 if( !rFileName.isEmpty() )
 {
 if( pMedium )
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2014-03-20 Thread Christian M . Heller
 sw/source/filter/basflt/shellio.cxx |  116 +++-
 1 file changed, 51 insertions(+), 65 deletions(-)

New commits:
commit 370c29237804bd0bd96ae34ab630681044857780
Author: Christian M. Heller 
Date:   Wed Mar 19 20:40:38 2014 -0400

fdo#39468 Translate German Comments - shellio.cxx

Change-Id: I932440ae95a6e7599168e88e9a17686b67763247
Reviewed-on: https://gerrit.libreoffice.org/8667
Reviewed-by: Miklos Vajna 
Tested-by: Miklos Vajna 

diff --git a/sw/source/filter/basflt/shellio.cxx 
b/sw/source/filter/basflt/shellio.cxx
index 5f1f937..ed6e51a 100644
--- a/sw/source/filter/basflt/shellio.cxx
+++ b/sw/source/filter/basflt/shellio.cxx
@@ -58,14 +58,14 @@ using namespace ::com::sun::star;
 
 sal_uLong SwReader::Read( const Reader& rOptions )
 {
-// Variable uebertragen
+// copy variables
 Reader* po = (Reader*) &rOptions;
 po->pStrm = pStrm;
 po->pStg  = pStg;
 po->xStg  = xStg;
 po->bInsertMode = 0 != pCrsr;
 
-// ist ein Medium angegeben, dann aus diesem die Streams besorgen
+// if a Medium is selected, get its Stream
 if( 0 != (po->pMedium = pMedium ) &&
 !po->SetStrmStgPtr() )
 {
@@ -80,7 +80,7 @@ sal_uLong SwReader::Read( const Reader& rOptions )
 
 GetDoc();
 
-// waehrend des einlesens kein OLE-Modified rufen
+// while reading, do not call OLE-Modified
 Link aOLELink( pDoc->GetOle2Link() );
 pDoc->SetOle2Link( Link() );
 
@@ -92,21 +92,17 @@ sal_uLong SwReader::Read( const Reader& rOptions )
 pPam = pCrsr;
 else
 {
-// Wenn der Reader nicht mit einem Shell konstruiert wurde,
-// selber einen Pam machen.
+// if the Reader was not called by a Shell, create a PaM ourselves
 SwNodeIndex nNode( pDoc->GetNodes().GetEndOfContent(), -1 );
 pPam = new SwPaM( nNode );
-// Bei Web-Dokumenten wird die Default-Vorlage schon im InitNew
-// gesetzt und braucht deshalb nicht nochmal gesetzt zu werden.
-// Das gilt natuerlich nicht, wenn der Filter nicht der HTML-Filter
-// ist oder im ConvertFrom zuvor ein SetTemplateName gerufen
-// wurde.
+// For Web documents the default template was set already by InitNew,
+// unless the filter is not HTML,
+// or a SetTemplateName was called in ConvertFrom.
 if( !pDoc->get(IDocumentSettingAccess::HTML_MODE) || ReadHTML != po || 
!po->pTemplate  )
 po->SetTemplate( *pDoc );
 }
 
-// Pams sind ringfoermig verkettet. Aufhoeren, wenn man wieder beim
-// ersten ist.
+// Pams are connected like rings; stop when we return to the 1st element
 SwPaM *pEnd = pPam;
 SwUndoInsDoc* pUndo = 0;
 
@@ -115,7 +111,7 @@ sal_uLong SwReader::Read( const Reader& rOptions )
 bool bSaveUndo = bDocUndo && pCrsr;
 if( bSaveUndo )
 {
-// das Einlesen von Seitenvorlagen ist nicht Undofaehig!
+// the reading of the page template cannot be undone!
 if( 0 != ( bReadPageDescs = po->aOpt.IsPageDescs() ) )
 {
 bSaveUndo = false;
@@ -134,7 +130,7 @@ sal_uLong SwReader::Read( const Reader& rOptions )
 RedlineMode_t eOld = pDoc->GetRedlineMode();
 RedlineMode_t ePostReadRedlineMode( nsRedlineMode_t::REDLINE_IGNORE );
 
-// Array von FlyFormaten
+// Array of FlyFormats
 SwFrmFmts aFlyFrmArr;
 // only read templates? then ignore multi selection!
 sal_Bool bFmtsOnly = po->aOpt.IsFmtsOnly();
@@ -149,12 +145,12 @@ sal_uLong SwReader::Read( const Reader& rOptions )
 SwPaM* pUndoPam = 0;
 if( bDocUndo || pCrsr )
 {
-// Pam auf den Node davor setzen damit er nicht mit verschoben wird
+// set Pam to the previous node, so that it is not also moved
 const SwNodeIndex& rTmp = pPam->GetPoint()->nNode;
 pUndoPam = new SwPaM( rTmp, rTmp, 0, -1 );
 }
 
-// Speicher mal alle Fly's
+// store for now all Fly's
 if( pCrsr )
 {
 std::copy(pDoc->GetSpzFrmFmts()->begin(),
@@ -163,8 +159,7 @@ sal_uLong SwReader::Read( const Reader& rOptions )
 
 const sal_Int32 nSttCntnt = pPam->GetPoint()->nContent.GetIndex();
 
-// damit fuer alle Reader die Ende-Position immer stimmt, hier
-// pflegen.
+// make sure the End position is correct for all Readers
 SwCntntNode* pCNd = pPam->GetCntntNode();
 sal_Int32 nEndCntnt = pCNd ? pCNd->Len() - nSttCntnt : 0;
 SwNodeIndex aEndPos( pPam->GetPoint()->nNode, 1 );
@@ -178,7 +173,7 @@ sal_uLong SwReader::Read( const Reader& rOptions )
 
 pDoc->SetRedlineMode_intern( nsRedlineMode_t::REDLINE_IGNORE );
 
-if( !IsError( nError )) // dann setzen wir das Ende mal richtig
+if( !IsError( nError 

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

2014-02-25 Thread Christian M . Heller
 vcl/source/window/dockmgr.cxx |   93 +++---
 1 file changed, 7 insertions(+), 86 deletions(-)

New commits:
commit d5688e16e72aea26b2bf281efc71e9fadf74944c
Author: Christian M. Heller 
Date:   Sat Feb 22 07:46:15 2014 -0500

fdo#39468 Translate German Comments - vcl/source/window/dockmgr.cxx

Conflicts:
vcl/source/window/dockmgr.cxx

Change-Id: I0af8a95eab8b05752bb4497295d26b717021d3fd
Reviewed-on: https://gerrit.libreoffice.org/8169
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/source/window/dockmgr.cxx b/vcl/source/window/dockmgr.cxx
index 0e80b6d..fc865cd 100644
--- a/vcl/source/window/dockmgr.cxx
+++ b/vcl/source/window/dockmgr.cxx
@@ -37,14 +37,8 @@
 #include 
 
 
-// ===
-
 #define DOCKWIN_FLOATSTYLES (WB_SIZEABLE | WB_MOVEABLE | WB_CLOSEABLE 
| WB_STANDALONE | WB_PINABLE | WB_ROLLABLE )
 
-// ===
-
-
-// ===
 
 class ImplDockFloatWin2 : public FloatingWindow
 {
@@ -81,7 +75,6 @@ public:
 sal_uLong GetLastTicks() const { return mnLastTicks; }
 };
 
-// ===
 
 ImplDockFloatWin2::ImplDockFloatWin2( Window* pParent, WinBits nWinBits,
 ImplDockingWindowWrapper* pDockingWin ) :
@@ -91,7 +84,7 @@ ImplDockFloatWin2::ImplDockFloatWin2( Window* pParent, 
WinBits nWinBits,
 mbInMove( false ),
 mnLastUserEvent( 0 )
 {
-// Daten vom DockingWindow uebernehmen
+// copy state of DockingWindow
 if ( pDockingWin )
 {
 SetSettings( pDockingWin->GetWindow()->GetSettings() );
@@ -110,16 +103,12 @@ ImplDockFloatWin2::ImplDockFloatWin2( Window* pParent, 
WinBits nWinBits,
 maEndDockTimer.SetTimeout( 50 );
 }
 
-
-
 ImplDockFloatWin2::~ImplDockFloatWin2()
 {
 if( mnLastUserEvent )
 Application::RemoveUserEvent( mnLastUserEvent );
 }
 
-
-
 IMPL_LINK_NOARG(ImplDockFloatWin2, DockTimerHdl)
 {
 DBG_ASSERT( mpDockWin->IsFloatingMode(), "docktimer called but not 
floating" );
@@ -264,8 +253,6 @@ void ImplDockFloatWin2::Move()
 mnLastUserEvent = Application::PostUserEvent( LINK( this, 
ImplDockFloatWin2, DockingHdl ) );
 }
 
-
-
 void ImplDockFloatWin2::Resize()
 {
 // forwarding of resize only required if we have no borderwindow ( 
GetWindow() then returns 'this' )
@@ -273,7 +260,7 @@ void ImplDockFloatWin2::Resize()
 {
 FloatingWindow::Resize();
 Size aSize( GetSizePixel() );
-mpDockWin->GetWindow()->ImplPosSizeWindow( 0, 0, aSize.Width(), 
aSize.Height(), WINDOW_POSSIZE_POSSIZE ); // is this needed ???
+mpDockWin->GetWindow()->ImplPosSizeWindow( 0, 0, aSize.Width(), 
aSize.Height(), WINDOW_POSSIZE_POSSIZE ); // TODO: is this needed ???
 }
 }
 
@@ -284,55 +271,41 @@ void ImplDockFloatWin2::setPosSizePixel( long nX, long nY,
 FloatingWindow::setPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
 }
 
-
-
-
 void ImplDockFloatWin2::TitleButtonClick( sal_uInt16 nButton )
 {
 FloatingWindow::TitleButtonClick( nButton );
 mpDockWin->TitleButtonClick( nButton );
 }
 
-
-
 void ImplDockFloatWin2::Pin()
 {
 FloatingWindow::Pin();
 mpDockWin->Pin();
 }
 
-
-
 void ImplDockFloatWin2::Roll()
 {
 FloatingWindow::Roll();
 mpDockWin->Roll();
 }
 
-
-
 void ImplDockFloatWin2::PopupModeEnd()
 {
 FloatingWindow::PopupModeEnd();
 mpDockWin->PopupModeEnd();
 }
 
-
-
 void ImplDockFloatWin2::Resizing( Size& rSize )
 {
 FloatingWindow::Resizing( rSize );
 mpDockWin->Resizing( rSize );
 }
 
-
-
 bool ImplDockFloatWin2::Close()
 {
 return mpDockWin->Close();
 }
 
-// ===
 
 DockingManager::DockingManager()
 {
@@ -437,8 +410,6 @@ bool DockingManager::IsInPopupMode( const Window *pWindow )
 return false;
 }
 
-
-
 void DockingManager::EndPopupMode( const Window *pWin )
 {
 ImplDockingWindowWrapper *pWrapper = GetDockingWindowWrapper( pWin );
@@ -446,8 +417,6 @@ void DockingManager::EndPopupMode( const Window *pWin )
 pWrapper->GetFloatingWindow()->EndPopupMode();
 }
 
-
-
 void DockingManager::AddWindow( const Window *pWindow )
 {
 ImplDockingWindowWrapper* pWrapper = GetDockingWindowWrapper( pWindow );
@@ -838,8 +807,6 @@ void ImplPopupFloatWin::Tracking( const TrackingEvent& 
rTEvt )
 }
 
 
-// ===
-
 ImplDockingWindowWrapper::ImplDockingWindowWrapper( const Window *pWindow )
 {
 ImplInitData();
@@ -866,8 +833,6 @@ ImplDockingWindowWrapper::~ImplDockingWindowWrapper()
 }
 }
 
-
-
 bool ImplDockingWindowWrapper::ImplStartDocking

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

2014-02-26 Thread Christian M . Heller
 vcl/source/window/dockwin.cxx |  116 --
 1 file changed, 12 insertions(+), 104 deletions(-)

New commits:
commit 204642f30767ae0b206a74dce34e2755e810b4a5
Author: Christian M. Heller 
Date:   Sat Feb 22 08:24:18 2014 -0500

fdo#39468 Translate German Comments - vcl/source/window/dockwin.cxx

(BTW: There seems to be some duplication between dockwin and dockmgr)

Conflicts:
vcl/source/window/dockwin.cxx

Change-Id: Icaf421620f87de7512a461b778958f6e141946db
Reviewed-on: https://gerrit.libreoffice.org/8171
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/source/window/dockwin.cxx b/vcl/source/window/dockwin.cxx
index f733b53..8bf14c6 100644
--- a/vcl/source/window/dockwin.cxx
+++ b/vcl/source/window/dockwin.cxx
@@ -34,15 +34,8 @@
 #include 
 
 
-
-// ===
-
 #define DOCKWIN_FLOATSTYLES (WB_SIZEABLE | WB_MOVEABLE | WB_CLOSEABLE 
| WB_STANDALONE | WB_PINABLE | WB_ROLLABLE )
 
-// ===
-
-
-
 class DockingWindow::ImplData
 {
 public:
@@ -63,8 +56,6 @@ DockingWindow::ImplData::~ImplData()
 {
 }
 
-
-
 class ImplDockFloatWin : public FloatingWindow
 {
 private:
@@ -104,7 +95,7 @@ ImplDockFloatWin::ImplDockFloatWin( Window* pParent, WinBits 
nWinBits,
 mbInMove( false ),
 mnLastUserEvent( 0 )
 {
-// Daten vom DockingWindow uebernehmen
+// copy settings of DockingWindow
 if ( pDockingWin )
 {
 SetSettings( pDockingWin->GetSettings() );
@@ -121,16 +112,12 @@ ImplDockFloatWin::ImplDockFloatWin( Window* pParent, 
WinBits nWinBits,
 maDockTimer.SetTimeout( 50 );
 }
 
-
-
 ImplDockFloatWin::~ImplDockFloatWin()
 {
 if( mnLastUserEvent )
 Application::RemoveUserEvent( mnLastUserEvent );
 }
 
-
-
 IMPL_LINK_NOARG(ImplDockFloatWin, DockTimerHdl)
 {
 DBG_ASSERT( mpDockWin->IsFloatingMode(), "docktimer called but not 
floating" );
@@ -220,8 +207,6 @@ void ImplDockFloatWin::Move()
 mnLastUserEvent = Application::PostUserEvent( LINK( this, 
ImplDockFloatWin, DockingHdl ) );
 }
 
-
-
 void ImplDockFloatWin::Resize()
 {
 FloatingWindow::Resize();
@@ -229,54 +214,41 @@ void ImplDockFloatWin::Resize()
 mpDockWin->ImplPosSizeWindow( 0, 0, aSize.Width(), aSize.Height(), 
WINDOW_POSSIZE_POSSIZE );
 }
 
-
-
 void ImplDockFloatWin::TitleButtonClick( sal_uInt16 nButton )
 {
 FloatingWindow::TitleButtonClick( nButton );
 mpDockWin->TitleButtonClick( nButton );
 }
 
-
-
 void ImplDockFloatWin::Pin()
 {
 FloatingWindow::Pin();
 mpDockWin->Pin();
 }
 
-
-
 void ImplDockFloatWin::Roll()
 {
 FloatingWindow::Roll();
 mpDockWin->Roll();
 }
 
-
-
 void ImplDockFloatWin::PopupModeEnd()
 {
 FloatingWindow::PopupModeEnd();
 mpDockWin->PopupModeEnd();
 }
 
-
-
 void ImplDockFloatWin::Resizing( Size& rSize )
 {
 FloatingWindow::Resizing( rSize );
 mpDockWin->Resizing( rSize );
 }
 
-
-
 bool ImplDockFloatWin::Close()
 {
 return mpDockWin->Close();
 }
 
-// ===
 
 bool DockingWindow::ImplStartDocking( const Point& rPos )
 {
@@ -289,7 +261,7 @@ bool DockingWindow::ImplStartDocking( const Point& rPos )
 mbLastFloatMode = IsFloatingMode();
 mbStartFloat= mbLastFloatMode;
 
-// FloatingBorder berechnen
+// calculate FloatingBorder
 FloatingWindow* pWin;
 if ( mpFloatWin )
 pWin = mpFloatWin;
@@ -331,7 +303,6 @@ bool DockingWindow::ImplStartDocking( const Point& rPos )
 return true;
 }
 
-// ===
 
 void DockingWindow::ImplInitDockingWindowData()
 {
@@ -349,8 +320,6 @@ void DockingWindow::ImplInitDockingWindowData()
 mbHideBtn   = false;
 }
 
-
-
 void DockingWindow::ImplInit( Window* pParent, WinBits nStyle )
 {
 if ( !(nStyle & WB_NODIALOGCONTROL) )
@@ -368,12 +337,10 @@ void DockingWindow::ImplInit( Window* pParent, WinBits 
nStyle )
 ImplInitSettings();
 }
 
-
-
 void DockingWindow::ImplInitSettings()
 {
-// Hack, damit man auch DockingWindows ohne Hintergrund bauen kann
-// und noch nicht alles umgestellt ist
+// Hack: to be able to build DockingWindows w/o background before switching
+// TODO: Hack
 if ( IsBackground() )
 {
 const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
@@ -389,8 +356,6 @@ void DockingWindow::ImplInitSettings()
 }
 }
 
-
-
 void DockingWindow::ImplLoadRes( const ResId& rResId )
 {
 Window::ImplLoadRes( rResId );
@@ -400,7 +365,7 @@ void DockingWindow::ImplLoadRes( const ResId& rResId )
 if ( (RSC_DOCKINGWINDOW_XYMAPMODE | RSC_DOCKINGWINDOW_X |
   RSC_DOCKINGWINDOW_Y) & nMask )
 {
-// Groessenangabe aus de

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

2014-02-26 Thread Christian M . Heller
 vcl/source/window/floatwin.cxx |   80 -
 1 file changed, 17 insertions(+), 63 deletions(-)

New commits:
commit 4e5fb3ae8aaa7a65b065f0415fe4df667dab3def
Author: Christian M. Heller 
Date:   Sat Feb 22 09:04:00 2014 -0500

fdo#39468 Translate German Comments - vcl/source/window/floatwin.cxx

Conflicts:
vcl/source/window/floatwin.cxx

Change-Id: I5cf91515e088f7f7bb766089c0812b023ecb3bdd
Reviewed-on: https://gerrit.libreoffice.org/8172
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx
index 285b161..f006df8 100644
--- a/vcl/source/window/floatwin.cxx
+++ b/vcl/source/window/floatwin.cxx
@@ -34,8 +34,6 @@
 #include 
 
 
-// ===
-
 class FloatingWindow::ImplData
 {
 public:
@@ -60,7 +58,6 @@ Rectangle& FloatingWindow::ImplGetItemEdgeClipRect()
 return mpImplData->maItemEdgeClipRect;
 }
 
-// ===
 
 void FloatingWindow::ImplInit( Window* pParent, WinBits nStyle )
 {
@@ -138,8 +135,6 @@ void FloatingWindow::ImplInit( Window* pParent, WinBits 
nStyle )
 ImplInitSettings();
 }
 
-
-
 void FloatingWindow::ImplInitSettings()
 {
 const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
@@ -154,7 +149,6 @@ void FloatingWindow::ImplInitSettings()
 SetBackground( aColor );
 }
 
-// ===
 
 FloatingWindow::FloatingWindow( Window* pParent, WinBits nStyle ) :
 SystemWindow( WINDOW_FLOATINGWINDOW )
@@ -162,8 +156,6 @@ FloatingWindow::FloatingWindow( Window* pParent, WinBits 
nStyle ) :
 ImplInit( pParent, nStyle );
 }
 
-
-
 FloatingWindow::FloatingWindow( Window* pParent, const ResId& rResId ) :
 SystemWindow( WINDOW_FLOATINGWINDOW )
 {
@@ -176,8 +168,6 @@ FloatingWindow::FloatingWindow( Window* pParent, const 
ResId& rResId ) :
 Show();
 }
 
-
-
 void FloatingWindow::ImplLoadRes( const ResId& rResId )
 {
 SystemWindow::ImplLoadRes( rResId );
@@ -187,7 +177,7 @@ void FloatingWindow::ImplLoadRes( const ResId& rResId )
 if ( (RSC_FLOATINGWINDOW_WHMAPMODE | RSC_FLOATINGWINDOW_WIDTH |
   RSC_FLOATINGWINDOW_HEIGHT) & nObjMask )
 {
-// Groessenangabe aus der Resource verwenden
+// use Sizes from the Resource
 SizeaSize;
 MapUnit eSizeMap = MAP_PIXEL;
 
@@ -208,8 +198,6 @@ void FloatingWindow::ImplLoadRes( const ResId& rResId )
 }
 }
 
-
-
 FloatingWindow::~FloatingWindow()
 {
 if( mbPopupModeCanceled )
@@ -226,20 +214,16 @@ FloatingWindow::~FloatingWindow()
 delete mpImplData;
 }
 
-
-
 Point FloatingWindow::CalcFloatingPosition( Window* pWindow, const Rectangle& 
rRect, sal_uLong nFlags, sal_uInt16& rArrangeIndex )
 {
 return ImplCalcPos( pWindow, rRect, nFlags, rArrangeIndex );
 }
 
-
-
 Point FloatingWindow::ImplCalcPos( Window* pWindow,
const Rectangle& rRect, sal_uLong nFlags,
sal_uInt16& rArrangeIndex )
 {
-// Fenster-Position ermitteln
+// get window position
 Point   aPos;
 SizeaSize = pWindow->GetSizePixel();
 Rectangle   aScreenRect = 
pWindow->ImplGetFrameWindow()->GetDesktopRectPixel();
@@ -397,7 +381,7 @@ Point FloatingWindow::ImplCalcPos( Window* pWindow,
 break;
 }
 
-// Evt. noch anpassen
+// adjust if necessary
 if ( bBreak && !(nFlags & FLOATWIN_POPUPMODE_NOAUTOARRANGE) )
 {
 if ( (nArrangeAry[nArrangeIndex] == FLOATWIN_POPUPMODE_LEFT)  ||
@@ -447,8 +431,6 @@ Point FloatingWindow::ImplCalcPos( Window* pWindow,
 return pW->OutputToScreenPixel( aPos );
 }
 
-
-
 FloatingWindow* FloatingWindow::ImplFloatHitTest( Window* pReference, const 
Point& rPos, sal_uInt16& rHitTest )
 {
 FloatingWindow* pWin = this;
@@ -505,8 +487,6 @@ FloatingWindow* FloatingWindow::ImplFloatHitTest( Window* 
pReference, const Poin
 return NULL;
 }
 
-
-
 FloatingWindow* FloatingWindow::ImplFindLastLevelFloat()
 {
 FloatingWindow* pWin = this;
@@ -524,8 +504,6 @@ FloatingWindow* FloatingWindow::ImplFindLastLevelFloat()
 return pLastFoundWin;
 }
 
-
-
 bool FloatingWindow::ImplIsFloatPopupModeWindow( const Window* pWindow )
 {
 FloatingWindow* pWin = this;
@@ -542,8 +520,6 @@ bool FloatingWindow::ImplIsFloatPopupModeWindow( const 
Window* pWindow )
 return false;
 }
 
-
-
 IMPL_LINK_NOARG(FloatingWindow, ImplEndPopupModeHdl)
 {
 mnPostId= 0;
@@ -553,11 +529,9 @@ IMPL_LINK_NOARG(FloatingWindow, ImplEndPopupModeHdl)
 return 0;
 }
 
-
-
 bool FloatingWindow::Notify( NotifyEvent& rNEvt )
 {
-// Zuerst Basisklasse rufen wegen TabSteuerung
+// call B

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

2014-02-26 Thread Christian M . Heller
 vcl/source/window/toolbox2.cxx |  277 ++---
 1 file changed, 43 insertions(+), 234 deletions(-)

New commits:
commit 45261b88c4935c0a6dd57e8a47438b799d091957
Author: Christian M. Heller 
Date:   Sat Feb 22 11:41:20 2014 -0500

fdo#39468 Translate German Comments - vcl/source/window/toolbox2.cxx

Conflicts:
vcl/source/window/toolbox2.cxx

Change-Id: Ifcb3a31733d8122d228596e8ec1253990f979471
Reviewed-on: https://gerrit.libreoffice.org/8174
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 

diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index ea5e3ef..aa27d30 100644
--- a/vcl/source/window/toolbox2.cxx
+++ b/vcl/source/window/toolbox2.cxx
@@ -56,12 +56,9 @@
 using namespace vcl;
 using namespace com::sun::star;
 
-// ===
 
 #define TB_SEP_SIZE 8
 
-
-
 ImplToolBoxPrivateData::ImplToolBoxPrivateData() :
 m_pLayoutData( NULL ),
 mpImageListProvider( NULL ),
@@ -125,8 +122,6 @@ ImplToolItem::ImplToolItem()
 init(0, 0, true);
 }
 
-
-
 ImplToolItem::ImplToolItem( sal_uInt16 nItemId, const Image& rImage,
 ToolBoxItemBits nItemBits ) :
 maImage( rImage )
@@ -134,8 +129,6 @@ ImplToolItem::ImplToolItem( sal_uInt16 nItemId, const 
Image& rImage,
 init(nItemId, nItemBits, false);
 }
 
-
-
 ImplToolItem::ImplToolItem( sal_uInt16 nItemId, const OUString& rText,
 ToolBoxItemBits nItemBits ) :
 maText( rText )
@@ -143,8 +136,6 @@ ImplToolItem::ImplToolItem( sal_uInt16 nItemId, const 
OUString& rText,
 init(nItemId, nItemBits, false);
 }
 
-
-
 ImplToolItem::ImplToolItem( sal_uInt16 nItemId, const Image& rImage,
 const OUString& rText, ToolBoxItemBits nItemBits ) 
:
 maImage( rImage ),
@@ -153,8 +144,6 @@ ImplToolItem::ImplToolItem( sal_uInt16 nItemId, const 
Image& rImage,
 init(nItemId, nItemBits, false);
 }
 
-
-
 ImplToolItem::ImplToolItem( const ImplToolItem& rItem ) :
 mpWindow( rItem.mpWindow ),
 mpUserData  ( rItem.mpUserData ),
@@ -188,14 +177,10 @@ ImplToolItem::ImplToolItem( const ImplToolItem& rItem ) :
 {
 }
 
-
-
 ImplToolItem::~ImplToolItem()
 {
 }
 
-
-
 ImplToolItem& ImplToolItem::operator=( const ImplToolItem& rItem )
 {
 mpWindow= rItem.mpWindow;
@@ -230,8 +215,6 @@ ImplToolItem& ImplToolItem::operator=( const ImplToolItem& 
rItem )
 return *this;
 }
 
-
-
 Size ImplToolItem::GetSize( bool bHorz, bool bCheckMaxWidth, long maxWidth, 
const Size& rDefaultSize )
 {
 Size aSize( rDefaultSize ); // the size of 'standard' toolbox items
@@ -284,8 +267,6 @@ Size ImplToolItem::GetSize( bool bHorz, bool 
bCheckMaxWidth, long maxWidth, cons
 return aSize;
 }
 
-
-
 void ImplToolItem::DetermineButtonDrawStyle( ButtonType eButtonType, bool& 
rbImage, bool& rbText ) const
 {
 if ( meType != TOOLBOXITEM_BUTTON )
@@ -344,8 +325,6 @@ void ImplToolItem::DetermineButtonDrawStyle( ButtonType 
eButtonType, bool& rbIma
 }
 }
 
-
-
 Rectangle ImplToolItem::GetDropDownRect( bool bHorz ) const
 {
 Rectangle aRect;
@@ -362,23 +341,16 @@ Rectangle ImplToolItem::GetDropDownRect( bool bHorz ) 
const
 return aRect;
 }
 
-
-
 bool ImplToolItem::IsClipped() const
 {
 return ( meType == TOOLBOXITEM_BUTTON && mbVisible && maRect.IsEmpty() );
 }
 
-
-
 bool ImplToolItem::IsItemHidden() const
 {
 return ( meType == TOOLBOXITEM_BUTTON && !mbVisible );
 }
 
-
-
-
 const OUString ToolBox::ImplConvertMenuString( const OUString& rStr )
 {
 OUString aCvtStr( rStr );
@@ -388,8 +360,6 @@ const OUString ToolBox::ImplConvertMenuString( const 
OUString& rStr )
 return aCvtStr;
 }
 
-
-
 void ToolBox::ImplInvalidate( bool bNewCalc, bool bFullPaint )
 {
 ImplUpdateInputEnable();
@@ -401,7 +371,7 @@ void ToolBox::ImplInvalidate( bool bNewCalc, bool 
bFullPaint )
 {
 mbFormat = true;
 
-// Muss ueberhaupt eine neue Ausgabe erfolgen
+// do we need to redraw?
 if ( IsReallyVisible() && IsUpdateMode() )
 {
 Invalidate( Rectangle( mnLeftBorder, mnTopBorder,
@@ -415,7 +385,7 @@ void ToolBox::ImplInvalidate( bool bNewCalc, bool 
bFullPaint )
 {
 mbFormat = true;
 
-// Muss ueberhaupt eine neue Ausgabe erfolgen
+// do we need to redraw?
 if ( IsReallyVisible() && IsUpdateMode() )
 maTimer.Start();
 }
@@ -425,11 +395,9 @@ void ToolBox::ImplInvalidate( bool bNewCalc, bool 
bFullPaint )
 ImplCallEventListeners( VCLEVENT_TOOLBOX_FORMATCHANGED );
 }
 
-
-
 void ToolBox::ImplUpdateItem( sal_uInt16 nIndex )
 {
-// Muss ueberhaupt eine neue Ausgabe erfolgen
+// do we need

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

2014-03-03 Thread Christian M . Heller
 vcl/source/window/dlgctrl.cxx |   63 ++
 1 file changed, 28 insertions(+), 35 deletions(-)

New commits:
commit 0a4f02575f9dfbd6e5706bd025093d110ed97f65
Author: Christian M. Heller 
Date:   Sun Mar 2 17:57:57 2014 -0500

fdo#39468 Translate German Comments - vcl/source/window/dlgctrl.cxx

Change-Id: Ibfae3f4d94f675db0275e83f8d5f074269713cad
Reviewed-on: https://gerrit.libreoffice.org/8427
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 

diff --git a/vcl/source/window/dlgctrl.cxx b/vcl/source/window/dlgctrl.cxx
index 5bc9c92..531581f 100644
--- a/vcl/source/window/dlgctrl.cxx
+++ b/vcl/source/window/dlgctrl.cxx
@@ -86,11 +86,10 @@ static Window* ImplGetSubChildWindow( Window* pParent, 
sal_uInt16 n, sal_uInt16&
 {
 pWindow = pWindow->ImplGetWindow();
 
-// Unsichtbare und disablte Fenster werden uebersprungen
+// skip invisible and disabled windows
 if ( pTabPage || isVisibleInLayout(pWindow) )
 {
-// Wenn das letzte Control ein TabControl war, wird von
-// diesem die TabPage genommen
+// if the last control was a TabControl, take its TabPage
 if ( pTabPage )
 {
 pFoundWindow = ImplGetSubChildWindow( pTabPage, n, nIndex );
@@ -100,17 +99,13 @@ static Window* ImplGetSubChildWindow( Window* pParent, 
sal_uInt16 n, sal_uInt16&
 {
 pFoundWindow = pWindow;
 
-// Bei einem TabControl sich die aktuelle TabPage merken,
-// damit diese dann genommen wird
+// for a TabControl, remember the current TabPage for later use
 if ( pWindow->GetType() == WINDOW_TABCONTROL )
 {
 TabControl* pTabControl = ((TabControl*)pWindow);
-// Feststellen, ob TabPage Child vom TabControl ist
-// und auch noch existiert (deshalb durch Vergleich,
-// indem alle ChildFenster getestet werden). Denn es
-// kann sein, das TabPages schon in einem Dialog-Dtor
-// zerstoert wurden, obwohl das TabControl noch
-// existiert.
+// Check if the TabPage is a Child of the TabControl and 
still exists (by
+// walking all child windows); because it could be that 
the TabPage has been
+// destroyed already by a Dialog-Dtor, event that the 
TabControl still exists.
 TabPage* pTempTabPage = pTabControl->GetTabPage( 
pTabControl->GetCurPageId() );
 if ( pTempTabPage )
 {
@@ -249,7 +244,7 @@ Window* Window::ImplGetDlgWindow( sal_uInt16 nIndex, 
sal_uInt16 nType,
 
 if ( i <= nFormEnd )
 {
-// 2ten Index mitfuehren, falls alle Controls disablte
+// carry the 2nd index, in case all controls are disabled
 sal_uInt16 nStartIndex2 = i;
 sal_uInt16 nOldIndex = i+1;
 
@@ -316,7 +311,7 @@ static Window* ImplFindDlgCtrlWindow( Window* pParent, 
Window* pWindow, sal_uInt
 sal_uInt16  nSecondFormStart = 0;
 sal_uInt16  nFormEnd;
 
-// Focus-Fenster in der Child-Liste suchen
+// find focus window in the child list
 Window* pFirstChildWindow = pSWindow = ImplGetChildWindow( pParent, 0, i, 
false );
 
 if( pWindow == NULL )
@@ -329,8 +324,7 @@ static Window* ImplFindDlgCtrlWindow( Window* pParent, 
Window* pWindow, sal_uInt
   && pSWindow->ImplGetWindow()->IsDialogControlStart() )
 nFormStart = i;
 
-// SecondWindow wegen zusammengesetzten Controls wie
-// ComboBoxen und Feldern
+// SecondWindow for composit controls like ComboBoxes and arrays
 if ( pSWindow->ImplIsWindowOrChild( pWindow ) )
 {
 pSecondWindow = pSWindow;
@@ -347,8 +341,7 @@ static Window* ImplFindDlgCtrlWindow( Window* pParent, 
Window* pWindow, sal_uInt
 
 if ( !pSWindow )
 {
-// Fenster nicht gefunden, dann koennen wir auch keine
-// Steuerung uebernehmen
+// Window not found; we cannot handle it
 if ( !pSecondWindow )
 return NULL;
 else
@@ -359,11 +352,11 @@ static Window* ImplFindDlgCtrlWindow( Window* pParent, 
Window* pWindow, sal_uInt
 }
 }
 
-// Start-Daten setzen
+// initialize
 rIndex = i;
 rFormStart = nFormStart;
 
-// Formularende suchen
+// find end of template
 nFormEnd = nFormStart;
 pTempWindow = pSWindow;
 sal_Int32 nIteration = 0;
@@ -445,7 +438,7 @@ static Window* ImplFindAccelWindow( Window* pParent, 
sal_uInt16& rIndex, sal_Uni
 return pMnemonicWidget;
 }
 
-// Bei Static-Controls auf das naechste Controlm weiterschalten
+   

[Libreoffice-commits] core.git: Changes to 'refs/changes/72/8172/3'

2014-09-29 Thread Christian M . Heller

___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Changes to 'refs/changes/37/2937/3'

2014-09-29 Thread Christian M . Heller

___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Changes to 'refs/changes/72/8172/1'

2014-09-29 Thread Christian M . Heller

___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Changes to 'refs/changes/72/8172/2'

2014-09-29 Thread Christian M . Heller

___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Changes to 'refs/changes/37/2937/1'

2014-09-29 Thread Christian M . Heller

___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Changes to 'refs/changes/37/2937/2'

2014-09-29 Thread Christian M . Heller

___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Changes to 'refs/changes/28/8428/1'

2014-09-29 Thread Christian M . Heller

___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Changes to 'refs/changes/55/3955/1'

2014-09-29 Thread Christian M . Heller

___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Changes to 'refs/changes/31/2931/3'

2014-09-29 Thread Christian M . Heller

___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Changes to 'refs/changes/74/8174/1'

2014-09-29 Thread Christian M . Heller

___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Changes to 'refs/changes/74/8174/3'

2014-09-29 Thread Christian M . Heller

___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Changes to 'refs/changes/31/2931/1'

2014-09-29 Thread Christian M . Heller

___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Changes to 'refs/changes/63/8663/2'

2014-09-29 Thread Christian M . Heller

___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Changes to 'refs/changes/74/8174/2'

2014-09-29 Thread Christian M . Heller

___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Changes to 'refs/changes/65/2865/2'

2014-09-29 Thread Christian M . Heller

___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/unx

2013-03-20 Thread Christian M . Heller
 vcl/unx/generic/app/saldisp.cxx |   29 ++---
 vcl/unx/generic/gdi/salgdi.cxx  |   10 +-
 2 files changed, 19 insertions(+), 20 deletions(-)

New commits:
commit c86fa81bcd5db0db4b343a27cc7ca979613fc2ad
Author: Christian M. Heller 
Date:   Wed Mar 20 05:27:28 2013 -0400

fdo#39468 German comments in vcl/unx/generic/...

Change-Id: I869f5ac346b378ee63832e01ce099f366b7c184f
Reviewed-on: https://gerrit.libreoffice.org/2865
Reviewed-by: Fridrich Strba 
Tested-by: Fridrich Strba 

diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx
index b303a22..87b4846 100644
--- a/vcl/unx/generic/app/saldisp.cxx
+++ b/vcl/unx/generic/app/saldisp.cxx
@@ -763,8 +763,7 @@ void SalDisplay::ModifierMapping()
 nShiftKeySym_   = sal_XModifier2Keysym( pDisp_, pXModMap, ShiftMapIndex );
 nCtrlKeySym_= sal_XModifier2Keysym( pDisp_, pXModMap, ControlMapIndex 
);
 nMod1KeySym_= sal_XModifier2Keysym( pDisp_, pXModMap, Mod1MapIndex );
-// Auf Sun-Servern und SCO-Severn beruecksichtigt XLookupString
-// nicht den NumLock Modifier.
+// on Sun and SCO servers XLookupString does not account for NumLock
 if( GetServerVendor() == vendor_sun )
 {
 XLIB_KeyCode aNumLock = XKeysymToKeycode( pDisp_, XK_Num_Lock );
@@ -813,7 +812,7 @@ rtl::OUString SalDisplay::GetKeyName( sal_uInt16 nKeyCode ) 
const
 nKeySym = XK_0 + (nKeyCode - KEY_0);
 else if( KEY_A <= nKeyCode && nKeyCode <= KEY_Z )
 nKeySym = XK_A + (nKeyCode - KEY_A);
-else if( KEY_F1 <= nKeyCode && nKeyCode <= KEY_F26 ) // Existiert die Taste
+else if( KEY_F1 <= nKeyCode && nKeyCode <= KEY_F26 ) // does this key 
exist?
 nKeySym = XK_F1 + (nKeyCode - KEY_F1);
 else switch( nKeyCode )
 {
@@ -1087,7 +1086,7 @@ sal_uInt16 SalDisplay::GetKeyCode( KeySym keysym, 
char*pcPrintable ) const
 }
 else switch( keysym )
 {
-// - - - - - Sun X-Server Tastatur ohne Cursorblock ??? - - -
+// - - - - - Sun X-Server keyboard without Cursorblock ??? - - -
 case XK_R7: // XK_F27:
 nKey = KEY_HOME;
 break;
@@ -1115,7 +1114,7 @@ sal_uInt16 SalDisplay::GetKeyCode( KeySym keysym, 
char*pcPrintable ) const
 case XK_R15: // XK_F35:
 nKey = KEY_PAGEDOWN;
 break;
-// - - - - - Sun X-Server Tastatur ??? - - - - - - - - - - - -
+// - - - - - Sun X-Server keyboard ??? - - - - - - - - - - - -
 case XK_L1: // XK_F11:
 nKey = KEY_F11; // on a sun keyboard this actually is usally 
SunXK_Stop,
 // but VCL doesn't have a key defintion for that
@@ -1436,11 +1435,11 @@ KeySym SalDisplay::GetKeySym( XKeyEvent*pEvent,
 || IsKeypadKey(nKeySym)
 || XK_Delete == nKeySym ) )
 {
-// Bei einigen X-Servern muss man bei den Keypadtasten
-// schon sehr genau hinschauen. ZB. Solaris XServer:
-// 2, 4, 6, 8 werden als Cursorkeys klassifiziert (Up, Down, Left, 
Right
-// 1, 3, 5, 9 werden als Functionkeys klassifiziert (F27,F29,F33,F35)
-// 0 als Keypadkey und der Dezimalpunkt gar nicht (KP_Insert)
+// For some X-servers special care is needed for Keypad keys.
+// For example Solaris XServer:
+// 2, 4, 6, 8 are classified as Cursorkeys (Up, Down, Left, Right)
+// 1, 3, 5, 9 are classified as Funtionkeys (F27,F29,F33,F35)
+// 0 as Keypadkey, and the decimal point key not at all (KP_Insert)
 KeySym nNewKeySym = XLookupKeysym( pEvent, nNumLockIndex_ );
 if( nNewKeySym != NoSymbol )
 nKeySym = nNewKeySym;
@@ -1492,7 +1491,7 @@ XLIB_Cursor SalDisplay::GetPointer( int ePointerStyle )
 case POINTER_WAIT:
 aCur = XCreateFontCursor( pDisp_, XC_watch );
 break;
-case POINTER_TEXT:  // Mouse Pointer ist ein "I" Beam
+case POINTER_TEXT:  // Mouse Pointer is a "I" Beam
 aCur = XCreateFontCursor( pDisp_, XC_xterm );
 DBG_ASSERT( aCur != None, "GetPointer: Could not define cursor" );
 break;
@@ -1500,7 +1499,7 @@ XLIB_Cursor SalDisplay::GetPointer( int ePointerStyle )
 aCur = XCreateFontCursor( pDisp_, XC_question_arrow );
 DBG_ASSERT( aCur != None, "GetPointer: Could not define cursor" );
 break;
-case POINTER_CROSS: // Mouse Pointer ist ein Kreuz
+case POINTER_CROSS: // Mouse Pointer is a cross
 aCur = XCreateFontCursor( pDisp_, XC_crosshair );
 DBG_ASSERT( aCur != None, "GetPointer: Could not define cursor" );
 break;
@@ -1675,7 +1674,7 @@ XLIB_Cursor SalDisplay::GetPointer( int ePointerStyle )
 case POINTER_DRAW_CAPTION:
 M

[Libreoffice-commits] core.git: vcl/win

2013-03-23 Thread Christian M . Heller
 vcl/win/source/app/saldata.cxx  |2 +-
 vcl/win/source/app/salinst.cxx  |   15 +++
 vcl/win/source/app/saltimer.cxx |4 ++--
 3 files changed, 10 insertions(+), 11 deletions(-)

New commits:
commit 275dbf60e9a3ea47656dfef0928e5cc83df4762e
Author: Christian M. Heller 
Date:   Sat Mar 23 13:09:25 2013 -0400

fdo#39468 Translate German comments - vcl/win/source/app

Change-Id: I5bd5851f763a392cad658d206d23ea055456fce2
Reviewed-on: https://gerrit.libreoffice.org/2938
Reviewed-by: Thomas Arnhold 
Tested-by: Thomas Arnhold 

diff --git a/vcl/win/source/app/saldata.cxx b/vcl/win/source/app/saldata.cxx
index ff5a10f..2a3ea09 100644
--- a/vcl/win/source/app/saldata.cxx
+++ b/vcl/win/source/app/saldata.cxx
@@ -61,7 +61,7 @@ int ImplSalWICompareAscii( const wchar_t* pStr1, const char* 
pStr2 )
 char   c2;
 do
 {
-// Ist das Zeichen zwischen 'A' und 'Z' dann umwandeln
+// change to LowerCase if the char is between 'A' and 'Z'
 c1 = *pStr1;
 c2 = *pStr2;
 if ( (c1 >= 65) && (c1 <= 90) )
diff --git a/vcl/win/source/app/salinst.cxx b/vcl/win/source/app/salinst.cxx
index 9f30139..021ebc7 100644
--- a/vcl/win/source/app/salinst.cxx
+++ b/vcl/win/source/app/salinst.cxx
@@ -212,8 +212,7 @@ void ImplSalYieldMutexAcquireWithWait()
 SalData* pSalData = GetSalData();
 if ( pSalData->mnAppThreadId == nThreadId )
 {
-// Wenn wir den Mutex nicht bekommen, muessen wir solange
-// warten, bis wir Ihn bekommen
+// wait till we get the Mutex
 sal_Bool bAcquire = FALSE;
 do
 {
@@ -399,13 +398,13 @@ SalData::SalData()
 }
 mnStockPenCount = 0;// count of static pens
 mnStockBrushCount = 0;  // count of static brushes
-mnSalObjWantKeyEvt = 0; // KeyEvent, welcher vom SalObj-Hook 
verarbeitet werden soll
+mnSalObjWantKeyEvt = 0; // KeyEvent for the SalObj hook
 mnCacheDCInUse = 0; // count of CacheDC in use
 mbObjClassInit = FALSE; // is SALOBJECTCLASS initialised
 mbInPalChange = FALSE;  // is in WM_QUERYNEWPALETTE
 mnAppThreadId = 0;  // Id from Applikation-Thread
 mbScrSvrEnabled = FALSE;// ScreenSaver enabled
-mnSageStatus = 0;   // status of Sage-DLL (DISABLE_AGENT == nicht 
vorhanden)
+mnSageStatus = 0;   // status of Sage-DLL (DISABLE_AGENT == not 
available)
 mpSageEnableProc = 0;   // funktion to deactivate the system agent
 mpFirstIcon = 0;// icon cache, points to first icon, NULL if 
none
 mpTempFontItem = 0;
@@ -940,7 +939,7 @@ bool WinSalInstance::AnyInput( sal_uInt16 nType )
 
 void SalTimer::Start( sal_uLong nMS )
 {
-// Um auf Main-Thread umzuschalten
+// to switch to Main-Thread
 SalData* pSalData = GetSalData();
 if ( pSalData->mpFirstInstance )
 {
@@ -957,7 +956,7 @@ void SalTimer::Start( sal_uLong nMS )
 
 SalFrame* WinSalInstance::CreateChildFrame( SystemParentData* 
pSystemParentData, sal_uLong nSalFrameStyle )
 {
-// Um auf Main-Thread umzuschalten
+// to switch to Main-Thread
 return (SalFrame*)ImplSendMessage( mhComWnd, SAL_MSG_CREATEFRAME, 
nSalFrameStyle, (LPARAM)pSystemParentData->hWnd );
 }
 
@@ -965,7 +964,7 @@ SalFrame* WinSalInstance::CreateChildFrame( 
SystemParentData* pSystemParentData,
 
 SalFrame* WinSalInstance::CreateFrame( SalFrame* pParent, sal_uLong 
nSalFrameStyle )
 {
-// Um auf Main-Thread umzuschalten
+// to switch to Main-Thread
 HWND hWndParent;
 if ( pParent )
 hWndParent = static_cast(pParent)->mhWnd;
@@ -987,7 +986,7 @@ SalObject* WinSalInstance::CreateObject( SalFrame* pParent,
  SystemWindowData* /*pWindowData*/, // 
SystemWindowData meaningless on Windows
  sal_Bool /*bShow*/ )
 {
-// Um auf Main-Thread umzuschalten
+// to switch to Main-Thread
 return (SalObject*)ImplSendMessage( mhComWnd, SAL_MSG_CREATEOBJECT, 0, 
(LPARAM)static_cast(pParent) );
 }
 
diff --git a/vcl/win/source/app/saltimer.cxx b/vcl/win/source/app/saltimer.cxx
index c042c2f..dbe4ddc 100644
--- a/vcl/win/source/app/saltimer.cxx
+++ b/vcl/win/source/app/saltimer.cxx
@@ -42,11 +42,11 @@ void ImplSalStartTimer( sal_uLong nMS, sal_Bool bMutex )
 if ( !bMutex )
 pSalData->mnTimerOrgMS = nMS;
 
-// Periode darf nicht zu gross sein, da Windows mit sal_uInt16 arbeitet
+// duration has to fit into Window's sal_uInt16
 if ( nMS > MAX_SYSPERIOD )
 nMS = MAX_SYSPERIOD;
 
-// Gibt es einen Timer, dann zerstoren
+// kill timer if it exists
 if ( pSalData->mnTimerId )
 KillTimer( 0, pSalData->mnTimerId );
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/win

2013-03-23 Thread Christian M . Heller
 vcl/win/source/window/salframe.cxx |  199 +
 1 file changed, 93 insertions(+), 106 deletions(-)

New commits:
commit e0ce2898f1fc5242015c90606be94484a252f795
Author: Christian M. Heller 
Date:   Sat Mar 23 09:33:44 2013 -0400

fdo#39468 Translate German Comments - salframe.cxx

Change-Id: I0a5655ac1b1b4feca0b3a5ed3d4c37a63bce6c5a
Reviewed-on: https://gerrit.libreoffice.org/2931
Reviewed-by: Thomas Arnhold 
Tested-by: Thomas Arnhold 

diff --git a/vcl/win/source/window/salframe.cxx 
b/vcl/win/source/window/salframe.cxx
index a824564..223c09f 100644
--- a/vcl/win/source/window/salframe.cxx
+++ b/vcl/win/source/window/salframe.cxx
@@ -131,7 +131,7 @@ static void SetMaximizedFrameGeometry( HWND hWnd, 
WinSalFrame* pFrame, RECT* pPa
 
 static void ImplSaveFrameState( WinSalFrame* pFrame )
 {
-// Position, Groesse und Status fuer GetWindowState() merken
+// save position, size and state for GetWindowState()
 if ( !pFrame->mbFullScreen )
 {
 sal_Bool bVisible = (GetWindowStyle( pFrame->mhWnd ) & WS_VISIBLE) != 
0;
@@ -524,7 +524,7 @@ HWND ImplSalReCreateHWND( HWND hWndParent, HWND oldhWnd, 
sal_Bool bAsChild )
 
 // ===
 
-// Uebersetzungstabelle von System-Keycodes in StarView-Keycodes
+// translation table from System keycodes into StartView keycodes
 #define KEY_TAB_SIZE 146
 
 static sal_uInt16 aImplTranslateKeyTab[KEY_TAB_SIZE] =
@@ -892,7 +892,7 @@ WinSalFrame::WinSalFrame()
 
 memset( &maGeometry, 0, sizeof( maGeometry ) );
 
-// Daten ermitteln, wenn erster Frame angelegt wird
+// get data, when making 1st frame
 if ( !pSalData->mpFirstFrame )
 {
 if ( !aSalShlData.mnWheelMsgId )
@@ -1213,7 +1213,7 @@ static void ImplSalShow( HWND hWnd, sal_Bool bVisible, 
sal_Bool bNoActivate )
 pFrame->mnShowState = SW_SHOWNOACTIVATE;
 else
 pFrame->mnShowState = SW_SHOW;
-// Damit Taskleiste unter W98 auch gleich ausgeblendet wird
+// hide toolbar for W98
 if ( pFrame->mbPresentation )
 {
 HWND hWndParent = ::GetParent( hWnd );
@@ -1690,9 +1690,8 @@ void WinSalFrame::GetClientSize( long& rWidth, long& 
rHeight )
 
 void WinSalFrame::SetWindowState( const SalFrameState* pState )
 {
-// Wir testen, ob das Fenster ueberhaupt auf den Bildschirm passt, damit
-// nicht wenn die Bildschirm-Aufloesung geaendert wurde, das Fenster aus
-// diesem herausragt
+// Check if the window fits into the screen, in case the screen
+// resolution changed
 int nX;
 int nY;
 int nWidth;
@@ -1724,7 +1723,7 @@ void WinSalFrame::SetWindowState( const SalFrameState* 
pState )
 long nBottomDeco = abs( aWinRect.bottom - aRect2.bottom );
 long nRightDeco = abs( aWinRect.right - aRect2.right );
 
-// Fenster-Position/Groesse in den Bildschirm einpassen
+// adjust window position/size to fit the screen
 if ( !(pState->mnMask & (SAL_FRAMESTATE_MASK_X | SAL_FRAMESTATE_MASK_Y)) )
 nPosSize |= SWP_NOMOVE;
 if ( !(pState->mnMask & (SAL_FRAMESTATE_MASK_WIDTH | 
SAL_FRAMESTATE_MASK_HEIGHT)) )
@@ -1762,12 +1761,12 @@ void WinSalFrame::SetWindowState( const SalFrameState* 
pState )
 if ( nY < nScreenY )
 nY = nScreenY;
 
-// Restore-Position setzen
+// set Restore-Position
 WINDOWPLACEMENT aPlacement;
 aPlacement.length = sizeof( aPlacement );
 GetWindowPlacement( mhWnd, &aPlacement );
 
-// Status setzen
+// set State
 sal_Bool bVisible = (GetWindowStyle( mhWnd ) & WS_VISIBLE) != 0;
 sal_Bool bUpdateHiddenFramePos = FALSE;
 if ( !bVisible )
@@ -1914,7 +1913,7 @@ void WinSalFrame::ShowFullScreen( sal_Bool bFullScreen, 
sal_Int32 nDisplay )
 
 if ( bFullScreen )
 {
-// Damit Taskleiste von Windows ausgeblendet wird
+// to hide the Windows taskbar
 DWORD nExStyle = GetWindowExStyle( mhWnd );
 if ( nExStyle & WS_EX_TOOLWINDOW )
 {
@@ -1935,8 +1934,8 @@ void WinSalFrame::ShowFullScreen( sal_Bool bFullScreen, 
sal_Int32 nDisplay )
 }
 else
 {
-// wenn ShowState wieder hergestellt werden muss, hiden wir zuerst
-// das Fenster, damit es nicht so sehr flackert
+// when the ShowState has to be reset, hide the window first to
+// reduce flicker
 sal_Bool bVisible = (GetWindowStyle( mhWnd ) & WS_VISIBLE) != 0;
 if ( bVisible && (mnShowState != mnFullScreenShowState) )
 ShowWindow( mhWnd, SW_HIDE );
@@ -2004,7 +2003,7 @@ void WinSalFrame::StartPresentation( sal_Bool bStart )
 pSalData->mpSageEnableProc( DISABLE_AGENT );
 }
 
-// Bildschirmschoner ausschalten, wenn Praesentation laueft
+// turn off screen-saver when 

[Libreoffice-commits] core.git: vcl/win

2013-03-23 Thread Christian M . Heller
 vcl/win/source/gdi/salgdi.cxx  |   48 +++--
 vcl/win/source/gdi/salgdi2.cxx |   28 ++-
 vcl/win/source/gdi/salgdi3.cxx |6 ++---
 vcl/win/source/gdi/salprn.cxx  |   19 +++-
 4 files changed, 47 insertions(+), 54 deletions(-)

New commits:
commit 620611fe91970f073297f72a6d0605d7c7bd8943
Author: Christian M. Heller 
Date:   Sat Mar 23 12:42:20 2013 -0400

fdo#39468 Translate German comments - vcl/win/source/gdi/

Change-Id: I273bab015f96128ab5128ade3b8e0c69b0ef730e
Reviewed-on: https://gerrit.libreoffice.org/2937
Reviewed-by: Thomas Arnhold 
Tested-by: Thomas Arnhold 

diff --git a/vcl/win/source/gdi/salgdi.cxx b/vcl/win/source/gdi/salgdi.cxx
index 80bf5ab..4ac1f4b 100644
--- a/vcl/win/source/gdi/salgdi.cxx
+++ b/vcl/win/source/gdi/salgdi.cxx
@@ -125,9 +125,9 @@ static BYTE aOrdDither16Bit[8][8] =
 
 // ===
 
-// Pens muessen wir mit 1 Pixel-Breite erzeugen, da ansonsten die S3-Karte
-// viele Paintprobleme hat, wenn Polygone/PolyLines gezeichnet werden und
-// eine komplexe ClipRegion gesetzt ist
+// we must create pens with 1-pixel width; otherwise the S3-graphics card
+// map has many paint problems when drawing polygons/polyLines and a
+// complex is set
 #define GSL_PEN_WIDTH   1
 
 // ===
@@ -327,14 +327,14 @@ void ImplFreeSalGDI()
 for ( i = 0; i < pSalData->mnStockBrushCount; i++ )
 DeleteBrush( pSalData->mhStockBrushAry[i] );
 
-// 50% Brush loeschen
+// delete 50% Brush
 if ( pSalData->mh50Brush )
 {
 DeleteBrush( pSalData->mh50Brush );
 pSalData->mh50Brush = 0;
 }
 
-// 50% Bitmap loeschen
+// delete 50% Bitmap
 if ( pSalData->mh50Bmp )
 {
 DeleteBitmap( pSalData->mh50Bmp );
@@ -344,7 +344,7 @@ void ImplFreeSalGDI()
 ImplClearHDCCache( pSalData );
 delete[] pSalData->mpHDCCache;
 
-// Ditherpalette loeschen, wenn vorhanden
+// delete Ditherpalette, if existing
 if ( pSalData->mhDitherPal )
 {
 DeleteObject( pSalData->mhDitherPal );
@@ -513,7 +513,7 @@ static SalColor ImplGetROPSalColor( SalROPColor nROPColor )
 
 void ImplSalInitGraphics( WinSalGraphics* pData )
 {
-// Beim Printer berechnen wir die minimale Linienstaerke
+// calculate the minimal line width for the printer
 if ( pData->mbPrinter )
 {
 int nDPIX = GetDeviceCaps( pData->mhDC, LOGPIXELSX );
@@ -554,7 +554,7 @@ HDC ImplGetCachedDC( sal_uLong nID, HBITMAP hBmp )
 {
 HDC hDC = GetDC( 0 );
 
-// neuen DC mit DefaultBitmap anlegen
+// create new DC sith DefaultBitmap
 pC->mhDC = CreateCompatibleDC( hDC );
 
 if( pSalData->mhDitherPal )
@@ -750,7 +750,7 @@ WinSalGraphics::WinSalGraphics()
 
 WinSalGraphics::~WinSalGraphics()
 {
-// free obsolete GDI objekts
+// free obsolete GDI objects
 ReleaseFonts();
 
 if ( mhPen )
@@ -770,7 +770,7 @@ WinSalGraphics::~WinSalGraphics()
 mhRegion = 0;
 }
 
-// Cache-Daten zerstoeren
+// delete cache data
 if ( mpStdClipRgnData )
 delete [] mpStdClipRgnData;
 
@@ -996,7 +996,7 @@ void WinSalGraphics::SetLineColor()
 HPEN hNewPen = GetStockPen( NULL_PEN );
 HPEN hOldPen = SelectPen( mhDC, hNewPen );
 
-// destory or save old pen
+// destroy or save old pen
 if ( mhPen )
 {
 if ( !mbStockPen )
@@ -1054,7 +1054,7 @@ void WinSalGraphics::SetLineColor( SalColor nSalColor )
 // select new pen
 HPEN hOldPen = SelectPen( mhDC, hNewPen );
 
-// destory or save old pen
+// destroy or save old pen
 if ( mhPen )
 {
 if ( !mbStockPen )
@@ -1078,7 +1078,7 @@ void WinSalGraphics::SetFillColor()
 HBRUSH hNewBrush = GetStockBrush( NULL_BRUSH );
 HBRUSH hOldBrush = SelectBrush( mhDC, hNewBrush );
 
-// destory or save old brush
+// destroy or save old brush
 if ( mhBrush )
 {
 if ( !mbStockBrush )
@@ -1182,7 +1182,7 @@ void WinSalGraphics::SetFillColor( SalColor nSalColor )
 // select new brush
 HBRUSH hOldBrush = SelectBrush( mhDC, hNewBrush );
 
-// destory or save old brush
+// destroy or save old brush
 if ( mhBrush )
 {
 if ( !mbStockBrush )
@@ -1332,7 +1332,7 @@ void WinSalGraphics::drawRect( long nX, long nY, long 
nWidth, long nHeight )
 
 void WinSalGraphics::drawPolyLine( sal_uLong nPoints, const SalPoint* pPtAry )
 {
-// Unter NT koennen wir das Array direkt weiterreichen
+// for NT, we can handover the array directly
 DBG_ASSERT( sizeof( POINT ) == sizeof( SalPoint ),
 "WinSalGraphics::DrawPolyLine(): POINT != SalPoint" );
 
@@ -1358,8 +1358,7 @@ void WinSalGraphics::drawPolyLine( sal_uLong nPoints, 
const SalPoint* pPtAry )
 p

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

2013-03-26 Thread Christian M . Heller
 vcl/source/control/longcurr.cxx |5 ++---
 vcl/source/control/scrbar.cxx   |2 +-
 vcl/source/control/slider.cxx   |   38 +-
 vcl/source/control/spinfld.cxx  |   15 +++
 vcl/source/control/tabctrl.cxx  |   28 ++--
 5 files changed, 41 insertions(+), 47 deletions(-)

New commits:
commit 69a9cffb9e6285a8735e4b35cdea9db4b118063c
Author: Christian M. Heller 
Date:   Sun Mar 24 10:28:49 2013 -0400

fdo#39468 Translate German comments - vcl/source/control/

FYI: there is some code duplication noticeable between slider and scrbar

Conflicts:
vcl/source/control/longcurr.cxx
vcl/source/control/lstbox.cxx
vcl/source/control/menubtn.cxx
vcl/source/control/morebtn.cxx
vcl/source/control/prgsbar.cxx
vcl/source/control/scrbar.cxx

Change-Id: I736cf155e252293ed571cd44a6a395b15c4bf576
Reviewed-on: https://gerrit.libreoffice.org/2966
Reviewed-by: Thomas Arnhold 
Tested-by: Thomas Arnhold 

diff --git a/vcl/source/control/longcurr.cxx b/vcl/source/control/longcurr.cxx
index ba5e5b3..52f28e8 100644
--- a/vcl/source/control/longcurr.cxx
+++ b/vcl/source/control/longcurr.cxx
@@ -188,7 +188,7 @@ static sal_Bool ImplNumericGetValue( const XubString& rStr, 
BigInt& rValue,
 bNegative = sal_True;
 }
 
-// Throw out all unwanted chars
+// delete unwanted characters
 for (xub_StrLen i=0; i < aStr1.Len(); )
 {
 if ( (aStr1.GetChar( i ) >= '0') && (aStr1.GetChar( i ) <= '9') )
@@ -226,7 +226,7 @@ static sal_Bool ImplNumericGetValue( const XubString& rStr, 
BigInt& rValue,
 aStr  = aStr1;
 aStr += aStr2.makeStringAndClear();
 
-// Boundscheck
+// check range
 BigInt nValue( aStr );
 if ( bRound )
 {
@@ -420,7 +420,6 @@ void LongCurrencyFormatter::SetUseThousandSep( sal_Bool b )
 
 void LongCurrencyFormatter::SetDecimalDigits( sal_uInt16 nDigits )
 {
-
 if ( nDigits > 9 )
 nDigits = 9;
 
diff --git a/vcl/source/control/scrbar.cxx b/vcl/source/control/scrbar.cxx
index 5df8e29..8a85bb5 100644
--- a/vcl/source/control/scrbar.cxx
+++ b/vcl/source/control/scrbar.cxx
@@ -1033,7 +1033,7 @@ void ScrollBar::MouseButtonDown( const MouseEvent& rMEvt )
 // Should we start Tracking?
 if ( meScrollType != SCROLL_DONTKNOW )
 {
-// remember original position in case of abort or EndScroll-Delta
+// store original position for cancel and EndScroll delta
 mnStartPos = mnThumbPos;
 // #92906# Call StartTracking() before ImplDoMouseAction(), 
otherwise
 // MouseButtonUp() / EndTracking() may be called if somebody is 
spending
diff --git a/vcl/source/control/slider.cxx b/vcl/source/control/slider.cxx
index b6e1913..6bfaa2a 100644
--- a/vcl/source/control/slider.cxx
+++ b/vcl/source/control/slider.cxx
@@ -222,7 +222,7 @@ void Slider::ImplUpdateRects( sal_Bool bUpdate )
 
 long Slider::ImplCalcThumbPos( long nPixPos )
 {
-// Position berechnen
+// calculate position
 long nCalcThumbPos;
 nCalcThumbPos = ImplMulDiv( nPixPos-mnThumbPixOffset, 
mnMaxRange-mnMinRange, mnThumbPixRange-1 );
 nCalcThumbPos += mnMinRange;
@@ -233,11 +233,10 @@ long Slider::ImplCalcThumbPos( long nPixPos )
 
 long Slider::ImplCalcThumbPosPix( long nPos )
 {
-// Position berechnen
+// calculate position
 long nCalcThumbPos;
 nCalcThumbPos = ImplMulDiv( nPos-mnMinRange, mnThumbPixRange-1, 
mnMaxRange-mnMinRange );
-// Am Anfang und Ende des Sliders versuchen wir die Anzeige korrekt
-// anzuzeigen
+// at the beginning and end we try to display Slider correctly
 if ( !nCalcThumbPos && (mnThumbPos > mnMinRange) )
 nCalcThumbPos = 1;
 if ( nCalcThumbPos &&
@@ -327,7 +326,7 @@ void Slider::ImplDraw( sal_uInt16 nDrawFlags )
 const StyleSettings&rStyleSettings = GetSettings().GetStyleSettings();
 sal_BoolbEnabled = IsEnabled();
 
-// Evt. noch offene Berechnungen nachholen
+// do missing calculations
 if ( mbCalcSize )
 ImplCalc( sal_False );
 
@@ -653,7 +652,7 @@ void Slider::MouseButtonDown( const MouseEvent& rMEvt )
 meScrollType= SCROLL_DRAG;
 mnDragDraw  = SLIDER_DRAW_THUMB;
 
-// Zusaetzliche Daten berechnen
+// calculate additional values
 Point aCenterPos = maThumbRect.Center();
 if ( GetStyle() & WB_HORZ )
 mnMouseOff = rMousePos.X()-aCenterPos.X();
@@ -685,10 +684,10 @@ void Slider::MouseButtonDown( const MouseEvent& rMEvt )
 mnDragDraw = SLIDER_DRAW_CHANNEL;
 }
 
-// Soll Tracking gestartet werden
+// Shall we start Tracking?
 if( meScrollType != SCROLL_DONTKNOW )
 {
-// Startposition merken

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

2013-04-16 Thread Christian M . Heller
 vcl/source/edit/textdata.cxx |   31 +++--
 vcl/source/edit/textdoc.cxx  |   97 ---
 2 files changed, 45 insertions(+), 83 deletions(-)

New commits:
commit 4b9301d424baab155d9be56726c64aefb720
Author: Christian M. Heller 
Date:   Mon Apr 1 18:11:17 2013 -0400

fdo#39468 Translate German comments V2 - vcl/source/edit/{textdata, textdoc}

made the changes suggested by Thomas and Petr

Change-Id: I0f9e8dcda27a714628edaa5e1e8fd875c8f67593
Reviewed-on: https://gerrit.libreoffice.org/3162
Reviewed-by: Thomas Arnhold 
Tested-by: Thomas Arnhold 

diff --git a/vcl/source/edit/textdata.cxx b/vcl/source/edit/textdata.cxx
index f713947..bfc601f 100644
--- a/vcl/source/edit/textdata.cxx
+++ b/vcl/source/edit/textdata.cxx
@@ -24,10 +24,6 @@
 #include 
 
 
-// -
-// (+) class TextSelection
-// -
-
 TextSelection::TextSelection()
 {
 }
@@ -53,9 +49,6 @@ void TextSelection::Justify()
 }
 
 
-// -
-// (+) class TETextPortionList
-// -
 TETextPortionList::TETextPortionList()
 {
 }
@@ -82,7 +75,7 @@ void TETextPortionList::DeleteFromPortion( sal_uInt16 
nDelFrom )
 
 sal_uInt16 TETextPortionList::FindPortion( sal_uInt16 nCharPos, sal_uInt16& 
nPortionStart, sal_Bool bPreferStartingPortion )
 {
-// Bei nCharPos an Portion-Grenze wird die linke Portion gefunden
+// find left portion at nCharPos at portion border
 sal_uInt16 nTmpPos = 0;
 for ( sal_uInt16 nPortion = 0; nPortion < size(); nPortion++ )
 {
@@ -103,9 +96,6 @@ sal_uInt16 TETextPortionList::FindPortion( sal_uInt16 
nCharPos, sal_uInt16& nPor
 }
 
 
-// -
-// (+) class TEParaPortion
-// -
 TEParaPortion::TEParaPortion( TextNode* pN )
 {
 mpNode = pN;
@@ -127,13 +117,13 @@ void TEParaPortion::MarkInvalid( sal_uInt16 nStart, short 
nDiff )
 }
 else
 {
-// Einfaches hintereinander tippen
+// simple consecutive typing
 if ( ( nDiff > 0 ) && ( mnInvalidDiff > 0 ) &&
  ( ( mnInvalidPosStart+mnInvalidDiff ) == nStart ) )
 {
 mnInvalidDiff = mnInvalidDiff + nDiff;
 }
-// Einfaches hintereinander loeschen
+// simple consecutive deleting
 else if ( ( nDiff < 0 ) && ( mnInvalidDiff < 0 ) && ( 
mnInvalidPosStart == nStart ) )
 {
 mnInvalidPosStart = mnInvalidPosStart + nDiff;
@@ -202,12 +192,11 @@ void TEParaPortion::CorrectValuesBehindLastFormattedLine( 
sal_uInt16 nLastFormat
 const TextLine* pUnformatted = maLines[ nLastFormattedLine+1 ];
 short nPortionDiff = pUnformatted->GetStartPortion() - 
pLastFormatted->GetEndPortion();
 short nTextDiff = pUnformatted->GetStart() - pLastFormatted->GetEnd();
-nTextDiff++;// LastFormatted->GetEnd() war incl. => 1 zuviel 
abgezogen!
+nTextDiff++;// LastFormatted->GetEnd() was inclusive => subtracted 
one too much!
 
-// Die erste unformatierte muss genau eine Portion hinter der letzten 
der
-// formatierten beginnen:
-// Wenn in der geaenderten Zeile eine Portion gesplittet wurde,
-// kann nLastEnd > nNextStart sein!
+// The first unformated one has to start exactly one portion past the 
last
+// formated one.
+// If a portion got split in the changed row, nLastEnd could be > 
nNextStart!
 short nPDiff = sal::static_int_cast< short >(-( nPortionDiff-1 ));
 short nTDiff = sal::static_int_cast< short >(-( nTextDiff-1 ));
 if ( nPDiff || nTDiff )
@@ -228,9 +217,6 @@ void TEParaPortion::CorrectValuesBehindLastFormattedLine( 
sal_uInt16 nLastFormat
 }
 }
 
-// -
-// (+) class TEParaPortions
-// -
 TEParaPortions::TEParaPortions()
 {
 }
@@ -248,9 +234,6 @@ void TEParaPortions::Reset()
 clear();
 }
 
-// -
-// (+) class IdleFormatter
-// -
 IdleFormatter::IdleFormatter()
 {
 mpView = 0;
diff --git a/vcl/source/edit/textdoc.cxx b/vcl/source/edit/textdoc.cxx
index 5dc0394..7c9d28c 100644
--- a/vcl/source/edit/textdoc.cxx
+++ b/vcl/source/edit/textdoc.cxx
@@ -22,17 +22,12 @@
 #include 
 
 
-
-// Vergleichmethode wird von QuickSort gerufen...
-
+// compare function called by 

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

2013-05-05 Thread Christian M . Heller
 vcl/source/edit/textund2.hxx |6 -
 vcl/source/edit/textundo.cxx |   53 +--
 vcl/source/edit/textview.cxx |  146 ---
 vcl/source/edit/vclmedit.cxx |   38 ---
 vcl/source/edit/xtextedt.cxx |   35 --
 5 files changed, 108 insertions(+), 170 deletions(-)

New commits:
commit b27ec833fe14527e810014f682e036cbfc0ddc1d
Author: Christian M. Heller 
Date:   Sat May 4 16:34:02 2013 -0400

fdo#39468 Translate German Comments - rest of vcl/source/edit/...

Change-Id: I6cb657853cf3e8d4e35c0dc09be6a4a15ba3a336

diff --git a/vcl/source/edit/textund2.hxx b/vcl/source/edit/textund2.hxx
index 17a2918..396317e 100644
--- a/vcl/source/edit/textund2.hxx
+++ b/vcl/source/edit/textund2.hxx
@@ -26,9 +26,9 @@
 class TextUndoDelPara : public TextUndo
 {
 private:
-sal_BoolmbDelObject;
-sal_uLong   mnPara;
-TextNode*   mpNode; // Zeigt auf das gueltige, nicht zerstoerte Objekt!
+sal_BoolmbDelObject;
+sal_uLong   mnPara;
+TextNode*   mpNode; // points at the valid not-destroyed object
 
 public:
 TYPEINFO();
diff --git a/vcl/source/edit/textundo.cxx b/vcl/source/edit/textundo.cxx
index 3cbb85d..51b3826 100644
--- a/vcl/source/edit/textundo.cxx
+++ b/vcl/source/edit/textundo.cxx
@@ -65,10 +65,6 @@ void Shorten (OUString& rString)
 
 } // namespace
 
-//
-// TextUndoManager
-// ===
-//
 
 TextUndoManager::TextUndoManager( TextEngine* p )
 {
@@ -115,9 +111,6 @@ sal_Bool TextUndoManager::Redo()
 void TextUndoManager::UndoRedoStart()
 {
 DBG_ASSERT( GetView(), "Undo/Redo: Active View?" );
-
-//  if ( GetView() )
-//  GetView()->HideSelection();
 }
 
 void TextUndoManager::UndoRedoEnd()
@@ -134,12 +127,6 @@ void TextUndoManager::UndoRedoEnd()
 mpTextEngine->FormatAndUpdate( GetView() );
 }
 
-
-//
-// TextUndo
-// 
-//
-
 TextUndo::TextUndo( TextEngine* p )
 {
 mpTextEngine = p;
@@ -160,12 +147,6 @@ void TextUndo::SetSelection( const TextSelection& rSel )
 GetView()->ImpSetSelection( rSel );
 }
 
-
-//
-// TextUndoDelPara
-// ===
-//
-
 TextUndoDelPara::TextUndoDelPara( TextEngine* pTextEngine, TextNode* pNode, 
sal_uLong nPara )
 : TextUndo( pTextEngine )
 {
@@ -183,7 +164,7 @@ TextUndoDelPara::~TextUndoDelPara()
 void TextUndoDelPara::Undo()
 {
 GetTextEngine()->InsertContent( mpNode, mnPara );
-mbDelObject = sal_False;// gehoert wieder der Engine
+mbDelObject = sal_False;// belongs again to the engine
 
 if ( GetView() )
 {
@@ -194,18 +175,17 @@ void TextUndoDelPara::Undo()
 
 void TextUndoDelPara::Redo()
 {
-// pNode stimmt nicht mehr, falls zwischendurch Undos, in denen
-// Absaetze verschmolzen sind.
+// pNode is not valid anymore in case an Undo joined paragraphs
 mpNode = GetDoc()->GetNodes().GetObject( mnPara );
 
 delete GetTEParaPortions()->GetObject( mnPara );
 GetTEParaPortions()->Remove( mnPara );
 
-// Node nicht loeschen, haengt im Undo!
+// do not delete Node because of Undo!
 GetDoc()->GetNodes().Remove( mnPara );
 GetTextEngine()->ImpParagraphRemoved( mnPara );
 
-mbDelObject = sal_True; // gehoert wieder dem Undo
+mbDelObject = sal_True; // belongs again to the Undo
 
 sal_uLong nParas = GetDoc()->GetNodes().Count();
 sal_uLong n = mnPara < nParas ? mnPara : (nParas-1);
@@ -219,12 +199,6 @@ OUString TextUndoDelPara::GetComment () const
 return ResId(STR_TEXTUNDO_DELPARA, *ImplGetResMgr());
 }
 
-
-//
-// TextUndoConnectParas
-// 
-//
-
 TextUndoConnectParas::TextUndoConnectParas( TextEngine* pTextEngine, sal_uLong 
nPara, sal_uInt16 nPos )
 :   TextUndo( pTextEngine )
 {
@@ -253,12 +227,6 @@ OUString TextUndoConnectParas::GetComment () const
 return ResId(STR_TEXTUNDO_CONNECTPARAS, *ImplGetResMgr());
 }
 
-
-//
-// TextUndoSplitPara
-// =
-//
-
 TextUndoSplitPara::TextUndoSplitPara( TextEngine* pTextEngine, sal_uLong 
nPara, sal_uInt16 nPos )
 : TextUndo( pTextEngine )
 {
@@ -287,12 +255,6 @@ OUString TextUndoSplitPara::GetComment () const
 return ResId(STR_TEXTUNDO_SPLITPARA, *ImplGetResMgr());
 }
 
-
-//
-// TextUndoInsertChars
-// ===
-//
-
 TextUndoInsertChars::TextUndoInsertChars( TextEngine* pTextEngine, const 
TextPaM& rTextPaM, const XubString& rStr )
 : TextUndo( pTextEngine ),
 maTextPaM( rTextPaM ), maText( rStr )
@@ -342,13 +304,6 @@ OUString TextUndoInsertChars::GetComment () const
 return OUString(ResId(STR_TEXTUNDO_INSERTCHARS, 
*ImplGetResMgr())).replaceAll("$1", sText);
 }
 
-
-
-//
-// TextUndoRemoveChars
-// ===
-//
-
 TextUndoRemoveChars::TextUndoRemoveChars( TextEngine* pTextEngine, const 
TextPaM& rText

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

2013-05-19 Thread Christian M . Heller
 vcl/source/filter/graphicfilter.cxx  |5 --
 vcl/source/filter/graphicfilter2.cxx |   84 ---
 2 files changed, 41 insertions(+), 48 deletions(-)

New commits:
commit 791b4eedfba1e913037d88a3c185dc01c9ea24be
Author: Christian M. Heller 
Date:   Sat May 18 07:18:25 2013 -0400

fdo#39468 Translate German comments - graphicfilter

Change-Id: I4e64c2d9ca8d85251a4cde5d3ab68f0956a4f0d1
Reviewed-on: https://gerrit.libreoffice.org/3955
Reviewed-by: Thomas Arnhold 
Tested-by: Thomas Arnhold 

diff --git a/vcl/source/filter/graphicfilter.cxx 
b/vcl/source/filter/graphicfilter.cxx
index f6d1a9f..204fe2e 100644
--- a/vcl/source/filter/graphicfilter.cxx
+++ b/vcl/source/filter/graphicfilter.cxx
@@ -770,8 +770,7 @@ static sal_Bool ImpPeekGraphicFormat( SvStream& rStream, 
String& rFormatExtensio
 
 sal_uInt16 GraphicFilter::ImpTestOrFindFormat( const String& rPath, SvStream& 
rStream, sal_uInt16& rFormat )
 {
-// ggf. Filter bzw. Format durch anlesen ermitteln,
-// oder durch anlesen zusichern, dass das Format stimmt:
+// determine or check the filter/format by reading into it
 if( rFormat == GRFILTER_FORMAT_DONTKNOW )
 {
 String aFormatExt;
@@ -781,7 +780,7 @@ sal_uInt16 GraphicFilter::ImpTestOrFindFormat( const 
String& rPath, SvStream& rS
 if( rFormat != GRFILTER_FORMAT_DONTKNOW )
 return GRFILTER_OK;
 }
-// ggf. Filter anhand der Datei-Endung raussuchen:
+// determine filter by file extension
 if( rPath.Len() )
 {
 String aExt( ImpGetExtension( rPath ) );
diff --git a/vcl/source/filter/graphicfilter2.cxx 
b/vcl/source/filter/graphicfilter2.cxx
index 24a182d..8e28214 100644
--- a/vcl/source/filter/graphicfilter2.cxx
+++ b/vcl/source/filter/graphicfilter2.cxx
@@ -130,42 +130,41 @@ sal_Bool GraphicDescriptor::ImpDetectBMP( SvStream& rStm, 
sal_Bool bExtendedInfo
 sal_uInt32  nTemp32;
 sal_uInt32  nCompression;
 
-// bis zur ersten Information
+// up to first info
 rStm.SeekRel( 0x10 );
 
-// PixelBreite auslesen
+// Pixel width
 rStm >> nTemp32;
 aPixSize.Width() = nTemp32;
 
-// PixelHoehe auslesen
+// Pixel height
 rStm >> nTemp32;
 aPixSize.Height() = nTemp32;
 
-// Planes auslesen
+// Planes
 rStm >> nTemp16;
 nPlanes = nTemp16;
 
-// BitCount auslesen
+// BitCount
 rStm >> nTemp16;
 nBitsPerPixel = nTemp16;
 
-// Compression auslesen
+// Compression
 rStm >> nTemp32;
 bCompressed = ( ( nCompression = nTemp32 ) > 0 );
 
-// logische Breite
+// logical width
 rStm.SeekRel( 4 );
 rStm >> nTemp32;
 if ( nTemp32 )
 aLogSize.Width() = ( aPixSize.Width() * 10 ) / nTemp32;
 
-// logische Hoehe
+// logical height
 rStm >> nTemp32;
 if ( nTemp32 )
 aLogSize.Height() = ( aPixSize.Height() * 10 ) / nTemp32;
 
-// Wir wollen noch etwas feiner differenzieren und
-// auf sinnvolle Werte ueberpruefen ( Bug-Id #29001 )
+// further validation, check for rational values
 if ( ( nBitsPerPixel > 24 ) || ( nCompression > 3 ) )
 {
 nFormat = GFF_NOT;
@@ -200,15 +199,15 @@ sal_Bool GraphicDescriptor::ImpDetectGIF( SvStream& rStm, 
sal_Bool bExtendedInfo
 {
 sal_uInt16 nTemp16;
 
-// PixelBreite auslesen
+// Pixel width
 rStm >> nTemp16;
 aPixSize.Width() = nTemp16;
 
-// PixelHoehe auslesen
+// Pixel height
 rStm >> nTemp16;
 aPixSize.Height() = nTemp16;
 
-// Bits/Pixel auslesen
+// Bits/Pixel
 rStm >> cByte;
 nBitsPerPixel = ( ( cByte & 112 ) >> 4 ) + 1;
 }
@@ -461,17 +460,17 @@ sal_Bool GraphicDescriptor::ImpDetectPCX( SvStream& rStm, 
sal_Bool bExtendedInfo
 
 rStm.SeekRel( 1 );
 
-// Kompression lesen
+// compression
 rStm >> cByte;
 bCompressed = ( cByte > 0 );
 
 bRet = (cByte==0 || cByte ==1);
 
-// Bits/Pixel lesen
+// Bits/Pixel
 rStm >> cByte;
 nBitsPerPixel = cByte;
 
-// Bildabmessungen
+// image dimensions
 rStm >> nTemp16;
 nXmin = nTemp16;
 rStm >> nTemp16;
@@ -484,20 +483,20 @@ sal_Bool Graphi

[PATCH] fdo#39468 Translate German comments - vcl/source/edit/{textd...

2013-04-01 Thread Christian M. Heller (via Code Review)
-// (+) class TextDoc
-// -
 
 TextDoc::TextDoc()
 {
@@ -590,7 +574,7 @@
 sal_uInt16 nPrevLen = pLeft->GetText().Len();
 pLeft->Append( *pRight );
 
-    // der rechte verschwindet.
+// the right paragraph vanishes
 sal_uLong nRight = maTextNodes.GetPos( pRight );
 maTextNodes.Remove( nRight );
 delete pRight;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0f9e8dcda27a714628edaa5e1e8fd875c8f67593
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Christian M. Heller 

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[PATCH] fdo#39468 Translate German in DBG_ASSERT and OSL_ENSURE in t...

2013-04-01 Thread Christian M. Heller (via Code Review)
*/);
 
@@ -2182,7 +2182,7 @@
 
 TextNode* pNode = mpDoc->GetNodes().GetObject( nPara );
 TEParaPortion* pTEParaPortion = mpTEParaPortions->GetObject( nPara );
-DBG_ASSERT( pTEParaPortion->IsInvalid(), "CreateLines: Portion nicht 
invalid!" );
+DBG_ASSERT( pTEParaPortion->IsInvalid(), "CreateLines: Portion not 
invalid!" );
 
 sal_uInt16 nOldLineCount = pTEParaPortion->GetLines().size();
 
@@ -2316,7 +2316,7 @@
 {
 nPortionStart = nTmpPos;
 pPortion = pTEParaPortion->GetTextPortions()[ nTmpPortion ];
-DBG_ASSERT( pPortion->GetLen(), "Leere Portion in CreateLines ?!" 
);
+DBG_ASSERT( pPortion->GetLen(), "CreateLines: Empty Portion!" );
 if ( pNode->GetText().GetChar( nTmpPos ) == '\t' )
 {
 long nCurPos = nTmpWidth-mpDoc->GetLeftMargin();
@@ -2372,7 +2372,7 @@
 bEOL = sal_True;
 pLine->SetEnd( nPortionEnd );
 OSL_ENSURE(pTEParaPortion->GetTextPortions().size(),
-"No TextPortions?");
+"CreateLines: No TextPortions?");
 pLine->SetEndPortion( 
(sal_uInt16)pTEParaPortion->GetTextPortions().size() - 1 );
 }
 
@@ -2388,7 +2388,7 @@
 }
 else if ( !bEOL )
 {
-DBG_ASSERT( (nPortionEnd-nPortionStart) == pPortion->GetLen(), 
"Doch eine andere Portion?!" );
+DBG_ASSERT( (nPortionEnd-nPortionStart) == pPortion->GetLen(), 
"CreateLines: There is a Portion after all?!" );
 long nRemainingWidth = mnMaxTextWidth - nTmpWidth;
 ImpBreakLine( nPara, pLine, pPortion, nPortionStart, 
nRemainingWidth );
 }
@@ -2510,7 +2510,7 @@
   pTEParaPortion->GetLines().end() );
 }
 
-DBG_ASSERT( pTEParaPortion->GetLines().size(), "Keine Zeile nach 
CreateLines!" );
+DBG_ASSERT( pTEParaPortion->GetLines().size(), "CreateLines: No Line!" );
 
 if ( bLineBreak == sal_True )
 CreateAndInsertEmptyLine( nPara );
@@ -2942,7 +2942,7 @@
 {
 if ( !mxBreakIterator.is() )
 mxBreakIterator = vcl::unohelper::CreateBreakIterator();
-DBG_ASSERT( mxBreakIterator.is(), "Could not create BreakIterator" );
+DBG_ASSERT( mxBreakIterator.is(), "BreakIterator: Failed to create!" );
 return mxBreakIterator;
 }
 
@@ -2957,7 +2957,7 @@
 {
 if ( maLocale.Language.isEmpty() )
 {
-maLocale = Application::GetSettings().GetUILanguageTag().getLocale();  
 // XXX why UI locale?
+maLocale = Application::GetSettings().GetUILanguageTag().getLocale();  
 // TODO: why UI locale?
 }
 return maLocale;
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9aac6a1f6e4a36fb95a518b752aef2066b45094c
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Christian M. Heller 

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[PATCH] fdo#39468 Translate German comments - source/edit/texteng.cx...

2013-04-07 Thread Christian M. Heller (via Code Review)
rt );
 
 if ( pAttr )
 {
 nTmpEnd = Min( pAttr->GetEnd(), nEndPos );
 
-// z.B. http://www.mopo.de/";>Morgenpost
+// e.g. http://www.mopo.de/";>Morgenpost
 aText.AppendAscii( "GetAttr() ).GetURL();
 aText.AppendAscii( "\">" );
@@ -2742,12 +2705,11 @@
 
 void TextEngine::SetAttrib( const TextAttrib& rAttr, sal_uLong nPara, 
sal_uInt16 nStart, sal_uInt16 nEnd, sal_Bool bIdleFormatAndUpdate )
 {
-// Es wird hier erstmal nicht geprueft, ob sich Attribute ueberlappen!
-// Diese Methode ist erstmal nur fuer einen Editor, der fuer eine Zeile
-// _schnell_ das Syntax-Highlight einstellen will.
 
-// Da die TextEngine z.Zt fuer Editoren gedacht ist gibt es auch kein
-// Undo fuer Attribute!
+// For now do not check if Attributes overlap!
+// This function is for TextEditors that want to _quickly_ generate the 
Syntax-Highlight
+
+// As TextEngine is currently intended only for TextEditors, there is no 
Undo for Attributes!
 
 if ( nPara < mpDoc->GetNodes().Count() )
 {
@@ -2803,12 +2765,12 @@
 }
 
 
-// Status & Selektionsanpassung
+// adjust State & Selection
 
 void TextEngine::ImpParagraphInserted( sal_uLong nPara )
 {
-// Die aktive View braucht nicht angepasst werden, aber bei allen
-// passiven muss die Selektion angepasst werden:
+// No adjustment needed for the active View;
+// but for all passive Views the Selection needs adjusting.
 if ( mpViews->size() > 1 )
 {
 for ( sal_uInt16 nView = mpViews->size(); nView; )

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifc02535cecc24d9362d2534784c659ee8705f751
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Christian M. Heller 

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[PATCH] fdo#39468 translate German comments in vcl

2013-03-03 Thread Christian M. Heller (via Code Review)
re transfered to the API to a valid 
range
 voidValidateSelection( TextSelection& rSel ) const;
 voidValidatePaM( TextPaM& rPaM ) const;
 
diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx
index 8356a52..fd09ccb 100644
--- a/vcl/source/control/combobox.cxx
+++ b/vcl/source/control/combobox.cxx
@@ -381,7 +381,7 @@
 {
 aText = mpSubEdit->GetText();
 
-// Alle Eintraege entfernen, zu denen es einen Entry gibt, der 
aber nicht selektiert ist.
+// remove all entries to which there is an selected entry
 xub_StrLen nIndex = 0;
 while ( nIndex != STRING_NOTFOUND )
 {
@@ -403,7 +403,7 @@
 aText = comphelper::string::strip(aText, ' ');
 }
 
-// Fehlende Eintraege anhaengen...
+// attach missing entries
 ::std::set< sal_uInt16 > aSelInText;
 lcl_GetSelectedEntries( aSelInText, aText, mcMultiSep, 
mpImplLB->GetEntryList() );
 sal_uInt16 nSelectedEntries = 
mpImplLB->GetEntryList()->GetSelectEntryCount();
@@ -415,7 +415,7 @@
 if ( aText.Len() && (aText.GetChar( aText.Len()-1 ) != 
mcMultiSep) )
 aText += mcMultiSep;
 if ( aText.Len() )
-aText += ' ';   // etwas auflockern
+aText += ' ';   // slightly loosen
 aText += mpImplLB->GetEntryList()->GetEntryText( nP );
 aText += mcMultiSep;
 }
@@ -611,8 +611,8 @@
 ImplUpdateFloatSelection();
 }
 
-// FloatingWindow-Groesse auch im unsichtbare Zustand auf Stand halten,
-// weil KEY_PGUP/DOWN ausgewertet wird...
+// adjust the size of the FloatingWindow even when invisible
+// as KEY_PGUP/DOWN is being processed...
 if ( mpFloatWin )
 mpFloatWin->SetSizePixel( mpFloatWin->CalcFloatSize() );
 }
@@ -724,7 +724,8 @@
 ImplInitDropDownButton( mpBtn );
 }
 Resize();
-mpImplLB->Resize(); // Wird nicht durch ComboBox::Resize() gerufen, 
wenn sich die ImplLB nicht aendert.
+mpImplLB->Resize(); // not called by ComboBox::Resize() if ImplLB is 
unchanged
+
 SetBackground();// due to a hack in Window::UpdateSettings the 
background must be reset
 // otherwise it will overpaint NWF drawn comboboxes
 }
@@ -857,7 +858,7 @@
 
 void ComboBox::ImplUpdateFloatSelection()
 {
-// Text in der ListBox in den sichtbaren Bereich bringen
+// move text in the ListBox into the visible region
 mpImplLB->SetCallSelectionChangedHdl( sal_False );
 if ( !IsMultiSelectionEnabled() )
 {
@@ -1112,11 +1113,11 @@
 
 Size ComboBox::CalcSize( sal_uInt16 nColumns, sal_uInt16 nLines ) const
 {
-// ggf. werden ScrollBars eingeblendet
+// show ScrollBars where appropriate
 Size aMinSz = CalcMinimumSize();
 Size aSz;
 
-// Hoehe
+// height
 if ( nLines )
 {
 if ( !IsDropDownBox() )
@@ -1127,7 +1128,7 @@
 else
 aSz.Height() = aMinSz.Height();
 
-// Breite
+// width
 if ( nColumns )
 aSz.Width() = nColumns * 
GetTextWidth(rtl::OUString(static_cast('X')));
 else
@@ -1203,7 +1204,7 @@
 }
 }
 
-// Inhalt
+// contents
 if ( !IsDropDownBox() )
 {
 longnOnePixel = GetDrawPixel( pDev, 1 );
diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx
index efa5985..f1d1957 100644
--- a/vcl/source/control/fixed.cxx
+++ b/vcl/source/control/fixed.cxx
@@ -405,7 +405,7 @@
 if ( pControl->GetStyle() & WB_EXTRAOFFSET )
 aSize.Width() += 2;
 
-// GetTextRect verkraftet keinen leeren String:
+// GetTextRect cannot take and empty string
 if ( aSize.Width() < 0 )
 aSize.Width() = 0;
 if ( aSize.Height() <= 0 )
@@ -892,7 +892,7 @@
 }
 else
 {
-// Haben wir ueberhaupt eine Bitmap
+// do we have a Bitmap?
 if ( !(!(*pBitmap)) )
 {
 if ( GetStyle() & WB_SCALE )
@@ -1095,7 +1095,7 @@
 
 Image *pImage = &maImage;
 
-// Haben wir ueberhaupt ein Image
+// do we have an image?
 if ( !(!(*pImage)) )
 {
 if ( GetStyle() & WB_SCALE )

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8af3fe962ba77d7047eac8d7570c5bc572585363
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Christian M. Heller 

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[PATCH] fdo#39468 translate German comments in /vcl

2013-03-04 Thread Christian M. Heller (via Code Review)
   SetTopEntry( GetTopEntry() );   // MaxTop is being 
checked...
 }
 }
 
-// Ueberpruefung des rausgescrollten Bereichs
+// check of the scrolled-out region
 sal_uInt16 nMaxLI = (sal_uInt16) (nMaxWidth - nWidth);
 if ( nMaxLI < GetLeftIndent() )
 SetLeftIndent( nMaxLI );
@@ -2497,8 +2497,8 @@
 
 void ImplListBox::ImplResizeControls()
 {
-// Hier werden die Controls nur angeordnet, ob die Scrollbars
-// sichtbar sein sollen wird bereits in ImplCheckScrollBars ermittelt.
+// Here we only position the Controls; if the Scrollbars are to be
+// visible is already determined in ImplCheckScrollBars
 
 Size aOutSz = GetOutputSizePixel();
 long nSBWidth = GetSettings().GetStyleSettings().GetScrollBarSize();
@@ -2528,7 +2528,7 @@
 mpScrollBarBox->Hide();
 }
 
-// vert. ScrollBar
+// vertical ScrollBar
 if( mbVScroll )
 {
 // Scrollbar on left or right side?
@@ -2543,7 +2543,7 @@
 SetTopEntry( GetTopEntry() );
 }
 
-// horz. ScrollBar
+// horizontal ScrollBar
 if( mbHScroll )
 {
 Point aHPos( ( bMirroring && mbVScroll ) ? nSBWidth : 0, 
aOutSz.Height() - nSBWidth );
@@ -3070,8 +3070,8 @@
 {
 FloatingWindow::setPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
 
-// Fix #60890# ( MBA ): um auch im aufgeklappten Zustand der Listbox die 
Gr"o\se einfach zu einen
-// Aufruf von Resize() "andern zu k"onnen, wird die Position hier ggf. 
angepa\t
+// Fix #60890# ( MBA ): to be able to resize the Listbox even in its open 
state
+// after a call to Resize(), we adjust its position if necessary
 if ( IsReallyVisible() && ( nFlags & WINDOW_POSSIZE_HEIGHT ) )
 {
 Point aPos = GetParent()->GetPosPixel();
@@ -3089,12 +3089,11 @@
 
 //  if( !IsReallyVisible() )
 {
-// Die ImplListBox erhaelt kein Resize, weil nicht sichtbar.
-// Die Fenster muessen aber ein Resize() erhalten, damit die
-// Anzahl der sichtbaren Eintraege fuer PgUp/PgDown stimmt.
-// Die Anzahl kann auch nicht von List/Combobox berechnet werden,
-// weil hierfuer auch die ggf. vorhandene vertikale Scrollbar
-// beruecksichtigt werden muss.
+// The ImplListBox does not get a Resize() as not visible.
+// But the windows must get a Resize(), so that the number of
+// visible entries is correct for PgUp/PgDown.
+// The number also cannot be calculated by List/Combobox, as for
+// this the presence of the vertical Scrollbar has to be known.
 mpImplLB->SetSizePixel( GetOutputSizePixel() );
 ((Window*)mpImplLB)->Resize();
 ((Window*)mpImplLB->GetMainWindow())->Resize();
@@ -3130,14 +3129,14 @@
 
 if( mbAutoWidth )
 {
-// AutoSize erstmal nur fuer die Breite...
+// AutoSize first only for width...
 
 aFloatSz.Width() = aSz.Width() + nLeft + nRight;
-aFloatSz.Width() += nRight; // etwas mehr Platz sieht besser aus...
+aFloatSz.Width() += nRight; // adding some space looks better...
 
 if ( ( aFloatSz.Height() < nMaxHeight ) || ( mnDDLineCount && ( 
mnDDLineCount < mpImplLB->GetEntryList()->GetEntryCount() ) ) )
 {
-// dann wird noch der vertikale Scrollbar benoetigt
+// then we also need the vertical Scrollbar
 long nSBWidth = 
GetSettings().GetStyleSettings().GetScrollBarSize();
 aFloatSz.Width() += nSBWidth;
 }
@@ -3151,17 +3150,17 @@
 if ( aFloatSz.Height() > nMaxHeight )
 aFloatSz.Height() = nMaxHeight;
 
-// Minimale Hoehe, falls Hoehe nicht auf Float-Hoehe eingestellt wurde.
-// Der Parent vom FloatWin muss die DropDown-Combo/Listbox sein.
+// Minimal height, in case height is not set to Float height.
+// The parent of FloatWin must be DropDown-Combo/Listbox.
 Size aParentSz = GetParent()->GetSizePixel();
 if( (!mnDDLineCount || !nLines) && ( aFloatSz.Height() < 
aParentSz.Height() ) )
 aFloatSz.Height() = aParentSz.Height();
 
-// Nicht schmaler als der Parent werden...
+// do not get narrower than the parent...
 if( aFloatSz.Width() < aParentSz.Width() )
 aFloatSz.Width() = aParentSz.Width();
 
-// Hoehe auf Entries alignen...
+// align height to entries...
 long nInnerHeight = aFloatSz.Height() - nTop - nBottom;
 long nEntryHeight = mpImplLB->GetEntryHeight();
 if ( nInnerHeight % nEntryHeight )

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icead8400db3bab570b5ef55d5079ea50e2e3b7b9
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Christian M. Heller 

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[PATCH] fdo#39468 German comments in vcl/unx/generic/...

2013-03-20 Thread Christian M. Heller (via Code Review)
 bytes of a Pixel into bytes of a SalColor
+// This is not reversible for the 6 XXXA
 
 // SalColor is RGB (ABGR) a=0xFF00, r=0xFF, g=0xFF00, b=0xFF
 
diff --git a/vcl/unx/generic/gdi/salgdi.cxx b/vcl/unx/generic/gdi/salgdi.cxx
index f4cba0e..36df4b9 100644
--- a/vcl/unx/generic/gdi/salgdi.cxx
+++ b/vcl/unx/generic/gdi/salgdi.cxx
@@ -362,12 +362,12 @@
 bool   bClose
 )
 {
-// errechne wie viele Linien XWindow auf einmal zeichnen kann
+// calculate how many lines XWindow can draw in one go
 sal_uLong nMaxLines = (GetDisplay()->GetMaxRequestSize() - 
sizeof(xPolyPointReq))
   / sizeof(xPoint);
 if( nMaxLines > nPoints ) nMaxLines = nPoints;
 
-// gebe alle Linien aus, die XWindows zeichnen kann.
+// print all lines that XWindows can draw
 sal_uLong n;
 for( n = 0; nPoints - n > nMaxLines; n += nMaxLines - 1 )
 XDrawLines( GetXDisplay(),
@@ -391,7 +391,7 @@
 }
 }
 
-// Dithern: Calculate a dither-pixmap and make a brush of it
+// Calculate a dither-pixmap and make a brush of it
 #define P_DELTA 51
 #define DMAP( v, m )((v % P_DELTA) > m ? (v / P_DELTA) + 1 : (v / P_DELTA))
 
@@ -766,7 +766,7 @@
 SelectBrush(),
 nX, nY, nDX, nDY );
 }
-// Beschreibung DrawRect verkehrt, deshalb -1
+// description DrawRect is wrong; thus -1
 if( nPenColor_ != SALCOLOR_NONE )
 XDrawRectangle( GetXDisplay(),
 GetDrawable(),
@@ -886,7 +886,7 @@
 XClipBox( pXRegA, &aXRect );
 
 GC pGC = SelectBrush();
-SetClipRegion( pGC, pXRegA ); // ??? doppelt
+SetClipRegion( pGC, pXRegA ); // ??? twice
 XDestroyRegion( pXRegA );
 bBrushGC_ = sal_False;
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I869f5ac346b378ee63832e01ce099f366b7c184f
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Christian M. Heller 

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[PATCH] fdo#39468 Translate German Comments - salframe.cxx

2013-03-23 Thread Christian M. Heller (via Code Review)
er cursor
 pFrame->mbCandidateMode = TRUE;
 ImplHandleIMEComposition( hWnd, GCS_CURSORPOS );
 
@@ -5550,8 +5542,7 @@
 POINT aScreenPt;
 aScreenPt.x = (short)LOWORD( lParam );
 aScreenPt.y = (short)HIWORD( lParam );
-// Child-Fenster suchen, welches an der entsprechenden
-// Position liegt
+// find child window that is at this position
 HWND hChildWnd;
 HWND hWheelWnd = hWnd;
 do
@@ -5583,7 +5574,7 @@
 // By WM_CRETAE we connect the frame with the window handle
 if ( nMsg == WM_CREATE )
 {
-// Window-Instanz am Windowhandle speichern
+// Save Window-Instanz in Windowhandle
 // Can also be used for the W-Version, because the struct
 // to access lpCreateParams is the same structure
 CREATESTRUCTA* pStruct = (CREATESTRUCTA*)lParam;
@@ -5591,9 +5582,8 @@
 if ( pFrame != 0 )
 {
 SetWindowPtr( hWnd, pFrame );
-// HWND schon hier setzen, da schon auf den Instanzdaten
-// gearbeitet werden kann, wenn Messages waehrend
-// CreateWindow() gesendet werden
+// Set HWND already here, as data might be used already
+// when messages are being sent by CreateWindow()
 pFrame->mhWnd = hWnd;
 pFrame->maSysData.hWnd = hWnd;
 }
@@ -5668,15 +5658,14 @@
 case WM_MOUSEWHEEL:
 // FALLTHROUGH intended
 case WM_MOUSEHWHEEL:
-// Gegen Rekursion absichern, falls wir vom IE oder dem externen
-// Fenster die Message wieder zurueckbekommen
+// protect against recursion, in case the message is returned
+// by IE or the external window
 if ( !bInWheelMsg )
 {
 bInWheelMsg++;
 rDef = !ImplHandleWheelMsg( hWnd, nMsg, wParam, lParam );
-// Wenn wir die Message nicht ausgewertet haben, schauen wir
-// noch einmal nach, ob dort ein geplugtes Fenster steht,
-// welches wir dann benachrichtigen
+// If we did not process the message, re-check if here is a
+// connected (?) window that we have to notify.
 if ( rDef )
 rDef = ImplSalWheelMousePos( hWnd, nMsg, wParam, lParam, 
nRet );
 bInWheelMsg--;
@@ -5771,12 +5760,11 @@
 break;
 
 case WM_ACTIVATE:
-// Wenn wir aktiviert werden, dann wollen wir auch unsere
-// Palette setzen. Wir machen dieses in Activate,
-// damit andere externe Child-Fenster auch unsere Palette
-// ueberschreiben koennen. So wird unsere jedenfalls nur einmal
-// gesetzt und nicht immer rekursiv, da an allen anderen Stellen
-// diese nur als Background-Palette gesetzt wird
+// Getting activated, we also want to set our palette.
+// We do this in Activate, so that other external child windows
+// can overwrite our palette. Thus our palette is set only once
+// and not recursively, as at all other places it is set only as
+// the background palette.
 if ( LOWORD( wParam ) != WA_INACTIVE )
 ImplSendMessage( hWnd, SAL_MSG_FORCEPALETTE, 0, 0 );
 break;
@@ -5959,16 +5947,15 @@
 #endif // WINVER >= 0x0500
 }
 
-// WheelMouse-Message abfangen
+// catch WheelMouse-Message
 if ( rDef && (nMsg == aSalShlData.mnWheelMsgId) && 
aSalShlData.mnWheelMsgId )
 {
-// Gegen Rekursion absichern, falls wir vom IE oder dem externen
-// Fenster die Message wieder zurueckbekommen
+// protect against recursion, in case the message is returned
+// by IE or the external window
 if ( !bInWheelMsg )
 {
 bInWheelMsg++;
-// Zuerst wollen wir die Message dispatchen und dann darf auch
-// das SystemWindow drankommen
+// First dispatch the message; and then give the SystemWindow a 
turn
 WORD nKeyState = 0;
 if ( GetKeyState( VK_SHIFT ) & 0x8000 )
 nKeyState |= MK_SHIFT;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0a5655ac1b1b4feca0b3a5ed3d4c37a63bce6c5a
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Christian M. Heller 

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[PATCH] fdo#39468 Translate German comments - vcl/win/source/gdi/

2013-03-23 Thread Christian M. Heller (via Code Review)
i Paletten-Displays hat WIN/WNT offenbar ein kleines Problem,
-// die Farben der Maske richtig auf die Palette abzubilden,
-// wenn wir die DIB direkt ausgeben => DDB-Ausgabe
+// WIN/WNT seems to have a minor problem mapping the correct color of the
+// mask to the palette if we draw the DIB directly ==> draw DDB
 if( ( GetBitCount() <= 8 ) && rSalBitmap.ImplGethDIB() && 
rSalBitmap.GetBitCount() == 1 )
 {
 WinSalBitmap aTmp;
@@ -800,13 +797,12 @@
 hOldPen = SelectPen( mhDC, hPen );
 
 POINT* pWinPtAry;
-// Unter NT koennen wir das Array direkt weiterreichen
+// for NT, we can handover the array directly
 DBG_ASSERT( sizeof( POINT ) == sizeof( SalPoint ),
 "WinSalGraphics::DrawPolyLine(): POINT != SalPoint" );
 
 pWinPtAry = (POINT*)pPtAry;
-// Wegen Windows 95 und der Beschraenkung auf eine maximale Anzahl
-// von Punkten
+// for Windows 95 and its maximum number of points
 if ( nSalFlags & SAL_INVERT_TRACKFRAME )
 {
 if ( !Polyline( mhDC, pWinPtAry, (int)nPoints ) && (nPoints > 
MAX_64KSALPOINTS) )
diff --git a/vcl/win/source/gdi/salgdi3.cxx b/vcl/win/source/gdi/salgdi3.cxx
index f2bcd8e..e80b8ab 100644
--- a/vcl/win/source/gdi/salgdi3.cxx
+++ b/vcl/win/source/gdi/salgdi3.cxx
@@ -799,7 +799,7 @@
 
 inline FontPitch ImplMetricPitchToSal( BYTE nPitch )
 {
-// Sausaecke bei MS !! siehe NT Hilfe
+// G! See NT help
 if ( !(nPitch & TMPF_FIXED_PITCH) )
 return PITCH_FIXED;
 else
@@ -2269,8 +2269,8 @@
 EnumFontFamiliesExW( mhDC, &aLogFont,
 (FONTENUMPROCW)SalEnumFontsProcExW, (LPARAM)(void*)&aInfo, 0 );
 
-// Feststellen, was es fuer Courier-Schriften auf dem Bildschirm gibt,
-// um in SetFont() evt. Courier auf Courier New zu mappen
+// check what Courier fonts are used on the screen, so to perhaps
+// map Courier to CourierNew in SetFont()
 if ( !mbPrinter )
 {
 bImplSalCourierScalable = aInfo.mbImplSalCourierScalable;
diff --git a/vcl/win/source/gdi/salprn.cxx b/vcl/win/source/gdi/salprn.cxx
index d1904a7..dda80b3 100644
--- a/vcl/win/source/gdi/salprn.cxx
+++ b/vcl/win/source/gdi/salprn.cxx
@@ -403,7 +403,7 @@
 return FALSE;
 }
 
-// Outputbuffer anlegen
+// make Outputbuffer
 nDriverDataLen  = sizeof(SalDriverData) + nSysJobSize-1;
 pOutBuffer  = (SalDriverData*)rtl_allocateZeroMemory( 
nDriverDataLen );
 pOutBuffer->mnSysSignature  = SAL_DRIVERDATA_SYSSIGN;
@@ -412,14 +412,14 @@
 (char*)pOutBuffer->maDriverData -
 (char*)pOutBuffer );
 
-// Testen, ob wir einen geeigneten Inputbuffer haben
+// check if we have a suitable input buffer
 if ( bIn && ImplTestSalJobSetup( pPrinter, pSetupData, FALSE ) )
 {
 pInBuffer = (BYTE*)pSetupData->mpDriverData + 
((SalDriverData*)pSetupData->mpDriverData)->mnDriverOffset;
 nMode |= DM_IN_BUFFER;
 }
 
-// Testen, ob Dialog angezeigt werden soll
+// check if the dialog should be shown
 if ( pVisibleDlgParent )
 {
 hWnd = pVisibleDlgParent->mhWnd;
@@ -1571,14 +1571,13 @@
 mnError = 0;
 mbAbort = FALSE;
 
-// Wegen Telocom Balloon Fax-Treiber, der uns unsere Messages
-// ansonsten oefters schickt, versuchen wir vorher alle
-// zu verarbeiten und dann eine Dummy-Message reinstellen
+// As the Telocom Balloon Fax driver tends to send messages repeatedly
+// we try to process first all, and then insert a dummy message
 sal_Bool bWhile = TRUE;
 int  i = 0;
 do
 {
-// Messages verarbeiten
+// process messages
 MSG aMsg;
 if ( ImplPeekMessage( &aMsg, 0, 0, 0, PM_REMOVE ) )
 {
@@ -1689,7 +1688,7 @@
 {
 mbAbort = TRUE;
 
-// Abort asyncron ausloesen
+// trigger Abort asynchronously
 HDC hDC = mhDC;
 if ( hDC )
 {
@@ -1708,7 +1707,7 @@
 SalData*pSalData = GetSalData();
 WinSalPrinter* pPrinter = pSalData->mpFirstPrinter;
 
-// Feststellen, ob Printer noch existiert
+// check if printer still exists
 while ( pPrinter )
 {
 if ( pPrinter->mhDC == hPrnDC )
@@ -1717,7 +1716,7 @@
 pPrinter = pPrinter->mpNextPrinter;
 }
 
-// Wenn Printer noch existiert, dann den Job abbrechen
+// if printer still exists, cancel the job
 if ( pPrinter )
 {
 HDC hDC = pPrinter->mhDC;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I273bab015f96128ab5128ade3b8e0c69b0ef730e
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Christian M. Heller 

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[PATCH] fdo#39468 Translate German comments - vcl/win/source/app

2013-03-23 Thread Christian M. Heller (via Code Review)
Hi,

I have submitted a patch for review:

https://gerrit.libreoffice.org/2938

To pull it, you can do:

git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/38/2938/1

fdo#39468 Translate German comments - vcl/win/source/app

Change-Id: I5bd5851f763a392cad658d206d23ea055456fce2
---
M vcl/win/source/app/saldata.cxx
M vcl/win/source/app/salinst.cxx
M vcl/win/source/app/saltimer.cxx
3 files changed, 10 insertions(+), 11 deletions(-)



diff --git a/vcl/win/source/app/saldata.cxx b/vcl/win/source/app/saldata.cxx
index ff5a10f..2a3ea09 100644
--- a/vcl/win/source/app/saldata.cxx
+++ b/vcl/win/source/app/saldata.cxx
@@ -61,7 +61,7 @@
 char   c2;
 do
 {
-// Ist das Zeichen zwischen 'A' und 'Z' dann umwandeln
+// change to LowerCase if the char is between 'A' and 'Z'
 c1 = *pStr1;
 c2 = *pStr2;
 if ( (c1 >= 65) && (c1 <= 90) )
diff --git a/vcl/win/source/app/salinst.cxx b/vcl/win/source/app/salinst.cxx
index 9f30139..021ebc7 100644
--- a/vcl/win/source/app/salinst.cxx
+++ b/vcl/win/source/app/salinst.cxx
@@ -212,8 +212,7 @@
 SalData* pSalData = GetSalData();
 if ( pSalData->mnAppThreadId == nThreadId )
 {
-// Wenn wir den Mutex nicht bekommen, muessen wir solange
-// warten, bis wir Ihn bekommen
+// wait till we get the Mutex
 sal_Bool bAcquire = FALSE;
 do
 {
@@ -399,13 +398,13 @@
 }
 mnStockPenCount = 0;// count of static pens
 mnStockBrushCount = 0;  // count of static brushes
-mnSalObjWantKeyEvt = 0; // KeyEvent, welcher vom SalObj-Hook 
verarbeitet werden soll
+mnSalObjWantKeyEvt = 0; // KeyEvent for the SalObj hook
 mnCacheDCInUse = 0; // count of CacheDC in use
 mbObjClassInit = FALSE; // is SALOBJECTCLASS initialised
 mbInPalChange = FALSE;  // is in WM_QUERYNEWPALETTE
 mnAppThreadId = 0;  // Id from Applikation-Thread
 mbScrSvrEnabled = FALSE;// ScreenSaver enabled
-mnSageStatus = 0;   // status of Sage-DLL (DISABLE_AGENT == nicht 
vorhanden)
+mnSageStatus = 0;   // status of Sage-DLL (DISABLE_AGENT == not 
available)
 mpSageEnableProc = 0;   // funktion to deactivate the system agent
 mpFirstIcon = 0;// icon cache, points to first icon, NULL if 
none
 mpTempFontItem = 0;
@@ -940,7 +939,7 @@
 
 void SalTimer::Start( sal_uLong nMS )
 {
-// Um auf Main-Thread umzuschalten
+// to switch to Main-Thread
 SalData* pSalData = GetSalData();
 if ( pSalData->mpFirstInstance )
 {
@@ -957,7 +956,7 @@
 
 SalFrame* WinSalInstance::CreateChildFrame( SystemParentData* 
pSystemParentData, sal_uLong nSalFrameStyle )
 {
-// Um auf Main-Thread umzuschalten
+// to switch to Main-Thread
 return (SalFrame*)ImplSendMessage( mhComWnd, SAL_MSG_CREATEFRAME, 
nSalFrameStyle, (LPARAM)pSystemParentData->hWnd );
 }
 
@@ -965,7 +964,7 @@
 
 SalFrame* WinSalInstance::CreateFrame( SalFrame* pParent, sal_uLong 
nSalFrameStyle )
 {
-// Um auf Main-Thread umzuschalten
+// to switch to Main-Thread
 HWND hWndParent;
 if ( pParent )
 hWndParent = static_cast(pParent)->mhWnd;
@@ -987,7 +986,7 @@
  SystemWindowData* /*pWindowData*/, // 
SystemWindowData meaningless on Windows
  sal_Bool /*bShow*/ )
 {
-// Um auf Main-Thread umzuschalten
+// to switch to Main-Thread
 return (SalObject*)ImplSendMessage( mhComWnd, SAL_MSG_CREATEOBJECT, 0, 
(LPARAM)static_cast(pParent) );
 }
 
diff --git a/vcl/win/source/app/saltimer.cxx b/vcl/win/source/app/saltimer.cxx
index c042c2f..dbe4ddc 100644
--- a/vcl/win/source/app/saltimer.cxx
+++ b/vcl/win/source/app/saltimer.cxx
@@ -42,11 +42,11 @@
 if ( !bMutex )
 pSalData->mnTimerOrgMS = nMS;
 
-// Periode darf nicht zu gross sein, da Windows mit sal_uInt16 arbeitet
+// duration has to fit into Window's sal_uInt16
 if ( nMS > MAX_SYSPERIOD )
 nMS = MAX_SYSPERIOD;
 
-// Gibt es einen Timer, dann zerstoren
+// kill timer if it exists
 if ( pSalData->mnTimerId )
 KillTimer( 0, pSalData->mnTimerId );
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5bd5851f763a392cad658d206d23ea055456fce2
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Christian M. Heller 

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[PATCH] fdo#39468 Translate German comments - vcl/source/control/

2013-03-24 Thread Christian M. Heller (via Code Review)
}
@@ -679,7 +678,7 @@
 else
 rDDArea.SetEmpty();
 
-// Je nach Hoehe, die groessen Berechnen
+// calcuate sizes according to the height
 if ( GetStyle() & WB_SPIN )
 {
 long nBottom1 = aSize.Height()/2;
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index 337b766..3e8eb51 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -85,7 +85,7 @@
 #define TAB_BORDER_RIGHT2
 #define TAB_BORDER_BOTTOM   2
 
-// Fuer die Ermittlung von den Tab-Positionen
+// for the Tab positions
 #define TAB_PAGERECT0x
 
 // ===
@@ -234,7 +234,7 @@
 {
 sal_uLong nEle = ReadLongRes();
 
-// Item hinzufuegen
+// add item
 for( sal_uLong i = 0; i < nEle; i++ )
 {
 InsertPage( ResId( (RSHEADER_TYPE *)GetClassRes(), 
*rResId.GetResMgr() ) );
@@ -252,7 +252,7 @@
 
 ImplFreeLayoutData();
 
-// TabCtrl-Daten loeschen
+// delete TabCtrl data
 if ( mpTabCtrlData )
 {
 if( mpTabCtrlData->mpListBox )
@@ -310,7 +310,7 @@
 if ( pItem->maFormatText.Len() < TAB_EXTRASPACE_X )
 aSize.Width() += TAB_EXTRASPACE_X-pItem->maFormatText.Len();
 
-// Evt. den Text kuerzen
+// shorten Text if needed
 if ( aSize.Width()+4 >= nMaxWidth )
 {
 rtl::OUString aAppendStr("...");
@@ -638,7 +638,7 @@
 
 sal_Bool TabControl::ImplPosCurTabPage()
 {
-// Aktuelle TabPage resizen/positionieren
+// resize/position current TabPage
 ImplTabItem* pItem = ImplGetItem( GetCurPageId() );
 if ( pItem && pItem->mpTabPage )
 {
@@ -762,7 +762,7 @@
 else
 nOff = 0;
 
-// Wenn wir die aktuelle Page sind, muessen wir etwas mehr zeichnen
+// if this is the active Page, we have to draw a little more
 if ( pItem->mnId == mnCurPageId )
 {
 nOff2 = 2;
@@ -1041,7 +1041,7 @@
 if( ! bLayout )
 HideFocus();
 
-// Hier wird gegebenenfalls auch neu formatiert
+// reformat if needed
 Rectangle aRect = ImplGetTabRect( TAB_PAGERECT );
 
 // find current item
@@ -1239,9 +1239,10 @@
 
 mbFormat = sal_True;
 
-// Aktuelle TabPage resizen/positionieren
+// resize/position active TabPage
 sal_Bool bTabPage = ImplPosCurTabPage();
-// Feststellen, was invalidiert werden muss
+
+// check what needs to be invalidated
 Size aNewSize = rAllocation;
 long nNewWidth = aNewSize.Width();
 for( std::vector< ImplTabItem >::iterator it = 
mpTabCtrlData->maItemList.begin();
@@ -1362,7 +1363,7 @@
 rtl::OUString aHelpId( rtl::OStringToOUString( GetHelpId( nItemId 
), RTL_TEXTENCODING_UTF8 ) );
 if ( !aHelpId.isEmpty() )
 {
-// Wenn eine Hilfe existiert, dann ausloesen
+// call Help if existing
 Help* pHelp = Application::GetHelp();
 if ( pHelp )
 pHelp->Start( aHelpId, this );
@@ -1370,8 +1371,7 @@
 }
 }
 
-// Bei Quick- oder Balloon-Help zeigen wir den Text an,
-// wenn dieser abgeschnitten ist
+// for Quick or Ballon Help, we show the text, if it is cut
 if ( rHEvt.GetMode() & (HELPMODE_QUICK | HELPMODE_BALLOON) )
 {
 ImplTabItem* pItem = ImplGetItem( nItemId );
@@ -1929,7 +1929,7 @@
 {
 mnActPageId = nPageId;
 ActivatePage();
-// Page koennte im Activate-Handler umgeschaltet wurden sein
+// Page could have been switched by the Activate handler
 nPageId = mnActPageId;
 mnActPageId = 0;
 SetCurPageId( nPageId );
@@ -1956,7 +1956,7 @@
 if ( IsDefaultSize() )
 SetTabPageSizePixel( pTabPage->GetSizePixel() );
 
-// Erst hier setzen, damit Resize nicht TabPage umpositioniert
+// only set here, so that Resize does not reposition TabPage
 pItem->mpTabPage = pTabPage;
 queue_resize();
 if ( pItem->mnId == mnCurPageId )

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I736cf155e252293ed571cd44a6a395b15c4bf576
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Christian M. Heller 

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[PATCH] fdo#39468 Translate German Comments - rest of vcl/source/edi...

2013-05-04 Thread Christian M. Heller (via Code Review)
+;   // hinter das Zeichen
+aSel.GetStart().GetIndex()++;   // behind the char
 aSel.GetEnd() = TextPaM( nPara, nCur );
 }
 }
@@ -165,7 +161,7 @@
 aOptions.Locale = Application::GetSettings().GetLanguageTag().getLocale();
 utl::TextSearch aSearcher( rSearchOptions );
 
-// ueber die Absaetze iterieren...
+// iterate over the paragraphs
 for ( sal_uLong nNode = nStartNode;
 bForward ?  ( nNode <= nEndNode) : ( nNode >= nEndNode );
 bForward ? nNode++ : nNode-- )
@@ -199,7 +195,6 @@
 rSel.GetStart().GetIndex() = nStartPos;
 rSel.GetEnd().GetPara() = nNode;
 rSel.GetEnd().GetIndex() = nEndPos;
-// Ueber den Absatz selektieren?
 // Select over the paragraph?
 // FIXME  This should be max long...
 if( nEndPos == sal::static_int_cast(-1) ) // 
sal_uInt16 for 0 and -1 !
@@ -219,7 +214,7 @@
 break;
 }
 
-if ( !bForward && !nNode )  // Bei rueckwaertsuche, wenn nEndNode = 0:
+if ( !bForward && !nNode )  // if searching backwards, if nEndNode == 
0:
 break;
 }
 
@@ -263,8 +258,8 @@
 if ( ((ExtTextEngine*)GetTextEngine())->Search( aSel, rSearchOptions, 
bForward ) )
 {
 bFound = sal_True;
-// Erstmal den Anfang des Wortes als Selektion einstellen,
-// damit das ganze Wort in den sichtbaren Bereich kommt.
+// First add the beginning of the word to the selection,
+// so that the whole word is in the visible region.
 SetSelection( aSel.GetStart() );
 ShowCursor( sal_True, sal_False );
 }
@@ -289,7 +284,7 @@
 {
 InsertText( rSearchOptions.replaceString );
 nFound = 1;
-Search( rSearchOptions, bForward ); // gleich zum naechsten
+Search( rSearchOptions, bForward ); // right away to the next
 }
 else
 {
@@ -299,7 +294,7 @@
 }
 else
 {
-// Der Writer ersetzt alle, vom Anfang bis Ende...
+    // the writer replaces all, from beginning to end
 
 ExtTextEngine* pTextEngine = (ExtTextEngine*)GetTextEngine();
 
@@ -351,20 +346,20 @@
 sal_uLong nEndPara = aSel.GetEnd().GetPara();
 if ( aSel.HasRange() && !aSel.GetEnd().GetIndex() )
 {
-nEndPara--; // den dann nicht einruecken...
+nEndPara--; // do not indent
 }
 
 for ( sal_uLong nPara = nStartPara; nPara <= nEndPara; nPara++ )
 {
 if ( bRight )
 {
-// Tabs hinzufuegen
+// add tabs
 GetTextEngine()->ImpInsertText( TextPaM( nPara, 0 ), '\t' );
 bDone = sal_True;
 }
 else
 {
-// Tabs/Blanks entfernen
+// remove Tabs/Blanks
 String aText = GetTextEngine()->GetText( nPara );
 if ( aText.Len() && (
 ( aText.GetChar( 0 ) == '\t' ) ||

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6cb657853cf3e8d4e35c0dc09be6a4a15ba3a336
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Christian M. Heller 

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[PATCH] fdo#39468 Translate German comments - graphicfilter

2013-05-18 Thread Christian M. Heller (via Code Review)
p32;
 aLogSize.Width() = nTemp32;
 
-// Hoehe auslesen
+// height
 rStm >> nTemp32;
 aLogSize.Height() = nTemp32;
 
-// Map-Unit auslesen und PrefSize ermitteln
+// Map Unit and Pref Size
 rStm >> nTemp16;
 aLogSize = OutputDevice::LogicToLogic( aLogSize,
MapMode( (MapUnit) 
nTemp16 ),

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4e64c2d9ca8d85251a4cde5d3ab68f0956a4f0d1
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Christian M. Heller 

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice