[Libreoffice-commits] .: sc/source

Christina Rossmanith crossmanith at kemper.freedesktop.org
Thu Feb 17 04:46:48 PST 2011


 sc/source/ui/view/viewfun2.cxx |  150 ++++++++++++++++++++---------------------
 1 file changed, 75 insertions(+), 75 deletions(-)

New commits:
commit c36bd5df398c190681265643679cfb4459f5001a
Author: Christina Rossmanith <ChrRossmanith at web.de>
Date:   Thu Feb 17 12:15:34 2011 +0100

    Finished to translate comments from German->English (viewfun2.cxx)

diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index 05b96b5..9a918b5 100644
--- a/sc/source/ui/view/viewfun2.cxx
+++ b/sc/source/ui/view/viewfun2.cxx
@@ -428,7 +428,7 @@ BOOL ScViewFunc::GetAutoSumArea( ScRangeList& rRangeList )
     SCROW nEndRow	 = nRow;
     SCCOL nSeekCol	 = nCol;
     SCROW nSeekRow	 = nRow;
-    SCCOLROW nExtend;		// wird per Reference gueltig bei ScAutoSumSum
+    SCCOLROW nExtend;		// will become valid via reference for ScAutoSumSum
 
     BOOL bCol = FALSE;
     BOOL bRow = FALSE;
@@ -459,19 +459,19 @@ BOOL ScViewFunc::GetAutoSumArea( ScRangeList& rRangeList )
     {
         if ( bRow )
         {
-            nStartRow = nSeekRow;		// nSeekRow evtl. per Reference angepasst
+            nStartRow = nSeekRow;		// nSeekRow might be adjusted via reference
             if ( eSum == ScAutoSumSum )
-                nEndRow = nStartRow;		// nur Summen summieren
+                nEndRow = nStartRow;		// only sum sums
             else
-                nEndRow = nRow - 1;		// Datenbereich evtl. nach unten erweitern
+                nEndRow = nRow - 1;		// maybe extend data area at bottom
         }
         else
         {
-            nStartCol = nSeekCol;		// nSeekCol evtl. per Reference angepasst
+            nStartCol = nSeekCol;		// nSeekCol might be adjusted vie reference
             if ( eSum == ScAutoSumSum )
-                nEndCol = nStartCol;		// nur Summen summieren
+                nEndCol = nStartCol;		// only sum sums
             else
-                nEndCol = nCol - 1;		// Datenbereich evtl. nach rechts erweitern
+                nEndCol = nCol - 1;		// maybe extend data area to the right
         }
         BOOL bContinue = FALSE;
         do
@@ -776,7 +776,7 @@ String ScViewFunc::GetAutoSumFormula( const ScRangeList& rRangeList, bool bSubTo
 
 void ScViewFunc::EnterBlock( const String& rString, const EditTextObject* pData )
 {
-    //	Mehrfachselektion vorher abfragen...
+    //	test for multi selection
 
     SCCOL nCol = GetViewData()->GetCurX();
     SCROW nRow = GetViewData()->GetCurY();
@@ -786,7 +786,7 @@ void ScViewFunc::EnterBlock( const String& rString, const EditTextObject* pData
     {
         rMark.MarkToSimple();
         if ( rMark.IsMultiMarked() )
-        {		// "Einfuegen auf Mehrfachselektion nicht moeglich"
+        {		// "Insert into multi selection not possible"
             ErrorMessage(STR_MSSG_PASTEFROMCLIP_0);
 
             //	insert into single cell
@@ -814,7 +814,7 @@ void ScViewFunc::EnterBlock( const String& rString, const EditTextObject* pData
         }
     }
 
-    //	Einfuegen per PasteFromClip
+    //	Insert via PasteFromClip
 
     WaitObject aWait( GetFrameWin() );
 
@@ -823,9 +823,9 @@ void ScViewFunc::EnterBlock( const String& rString, const EditTextObject* pData
     ScDocument* pInsDoc = new ScDocument( SCDOCMODE_CLIP );
     pInsDoc->ResetClip( pDoc, nTab );
 
-    if (aNewStr.GetChar(0) == '=')						// Formel ?
+    if (aNewStr.GetChar(0) == '=')						// Formula ?
     {
-        //	SetString geht nicht, weil in Clipboard-Dokumenten nicht kompiliert wird!
+        //	SetString not possible, because in Clipboard-Documents nothing will be compiled!
         ScFormulaCell* pFCell = new ScFormulaCell( pDoc, aPos, aNewStr );
         pInsDoc->PutCell( nCol, nRow, nTab, pFCell );
     }
@@ -835,15 +835,15 @@ void ScViewFunc::EnterBlock( const String& rString, const EditTextObject* pData
         pInsDoc->SetString( nCol, nRow, nTab, aNewStr );
 
     pInsDoc->SetClipArea( ScRange(aPos) );
-    // auf Block einfuegen, mit Undo etc.
+    // insert Block, with Undo etc.
     if ( PasteFromClip( IDF_CONTENTS, pInsDoc, PASTE_NOFUNC, FALSE, FALSE,
             FALSE, INS_NONE, IDF_ATTRIB ) )
     {
         const SfxUInt32Item* pItem = (SfxUInt32Item*) pInsDoc->GetAttr(
             nCol, nRow, nTab, ATTR_VALUE_FORMAT );
         if ( pItem )
-        {	// Numberformat setzen wenn inkompatibel
-            // MarkData wurde bereits in PasteFromClip MarkToSimple'ed
+        {	// set number format if incompatible
+            // MarkData was already MarkToSimple'ed in PasteFromClip
             ScRange aRange;
             rMark.GetMarkArea( aRange );
             ScPatternAttr* pPattern = new ScPatternAttr( pDoc->GetPool() );
@@ -860,7 +860,7 @@ void ScViewFunc::EnterBlock( const String& rString, const EditTextObject* pData
 
 
 //----------------------------------------------------------------------------
-//	manueller Seitenumbruch
+//	manual page break
 
 void ScViewFunc::InsertPageBreak( BOOL bColumn, BOOL bRecord, const ScAddress* pPos,
                                     BOOL bSetModified )
@@ -876,7 +876,7 @@ void ScViewFunc::InsertPageBreak( BOOL bColumn, BOOL bRecord, const ScAddress* p
                         InsertPageBreak( bColumn, aCursor, bRecord, bSetModified, FALSE );
 
     if ( bSuccess && bSetModified )
-        UpdatePageBreakData( TRUE );	// fuer PageBreak-Modus
+        UpdatePageBreakData( TRUE );	// for PageBreak-Mode
 }
 
 
@@ -896,7 +896,7 @@ void ScViewFunc::DeletePageBreak( BOOL bColumn, BOOL bRecord, const ScAddress* p
                         RemovePageBreak( bColumn, aCursor, bRecord, bSetModified, FALSE );
 
     if ( bSuccess && bSetModified )
-        UpdatePageBreakData( TRUE );	// fuer PageBreak-Modus
+        UpdatePageBreakData( TRUE );	// for PageBreak-Mode
 }
 
 //----------------------------------------------------------------------------
@@ -1053,9 +1053,9 @@ void ScViewFunc::SetPrintRanges( BOOL bEntireSheet, const String* pPrint,
 }
 
 //----------------------------------------------------------------------------
-//	Zellen zusammenfassen
+//	Merge cells
 
-BOOL ScViewFunc::TestMergeCells()			// Vorab-Test (fuer Menue)
+BOOL ScViewFunc::TestMergeCells()			// pre-test (for menu)
 {
     //	simple test: TRUE if there's a selection but no multi selection and not filtered
 
@@ -1074,8 +1074,8 @@ BOOL ScViewFunc::TestMergeCells()			// Vorab-Test (fuer Menue)
 
 BOOL ScViewFunc::MergeCells( BOOL bApi, BOOL& rDoContents, BOOL bRecord, BOOL bCenter )
 {
-    //	Editable- und Verschachtelungs-Abfrage muss vorneweg sein (auch in DocFunc),
-    //	damit dann nicht die Inhalte-QueryBox kommt
+    //	Editable- and Being-Nested- test must be at the beginning (in DocFunc too),
+    //	so that the Contents-QueryBox won't appear
     ScEditableTester aTester( this );
     if (!aTester.IsEditable())
     {
@@ -1104,13 +1104,13 @@ BOOL ScViewFunc::MergeCells( BOOL bApi, BOOL& rDoContents, BOOL bRecord, BOOL bC
     SCTAB nEndTab = aMarkRange.aEnd.Tab();
     if ( nStartCol == nEndCol && nStartRow == nEndRow )
     {
-        // nichts zu tun
+        // nothing to do
         return TRUE;
     }
 
     if ( pDoc->HasAttrib( nStartCol, nStartRow, nStartTab, nEndCol, nEndRow, nEndTab,
                             HASATTR_MERGED | HASATTR_OVERLAPPED ) )
-    {		// "Zusammenfassen nicht verschachteln !"
+    {		// "Don't nest merging  !"
         ErrorMessage(STR_MSSG_MERGECELLS_0);
         return FALSE;
     }
@@ -1335,7 +1335,7 @@ void ScViewFunc::FillAuto( FillDir eDir, SCCOL nStartCol, SCROW nStartRow,
                     FillAuto( aRange, &rMark, eDir, nCount, bRecord, FALSE );
     if (bSuccess)
     {
-        MarkRange( aRange, FALSE );			// aRange ist in FillAuto veraendert worden
+        MarkRange( aRange, FALSE );			// aRange was modified in FillAuto
         pDocSh->UpdateOle(GetViewData());
         UpdateScrollBars();
 
@@ -1435,7 +1435,7 @@ void ScViewFunc::FillTab( USHORT nFlags, USHORT nFunction, BOOL bSkipEmpty, BOOL
     }
 
     if (bUndo)
-    {	//! fuer ChangeTrack erst zum Schluss
+    {	//! for ChangeTrack not until the end
         pDocSh->GetUndoManager()->AddUndoAction(
             new ScUndoFillTable( pDocSh, rMark,
                                 aMarkRange.aStart.Col(), aMarkRange.aStart.Row(), nTab,
@@ -1589,7 +1589,7 @@ void ScViewFunc::AutoFormat( USHORT nFormatNo, BOOL bRecord )
 
 #else
 
-    // nur wegen Matrix nicht editierbar? Attribute trotzdem ok
+    // Not editable only due to a matrix? Attribute is ok anyhow
     BOOL bOnlyNotBecauseOfMatrix;
     if ( !SelectionEditable( &bOnlyNotBecauseOfMatrix ) && !bOnlyNotBecauseOfMatrix )
     {
@@ -1652,7 +1652,7 @@ void ScViewFunc::AutoFormat( USHORT nFormatNo, BOOL bRecord )
                                     nEndCol, nEndRow, nEndTab, PAINT_GRID );
         }
 
-        if ( bRecord )		// Draw-Undo erst jetzt verfuegbar
+        if ( bRecord )		// Draw-Undo isn't available until now
         {
             pDocSh->GetUndoManager()->AddUndoAction(
                 new ScUndoAutoFormat( pDocSh,
@@ -1858,10 +1858,10 @@ void ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
             rMark.SelectTable( j, pOldSelectedTables[j] );
         }
         if ( bFound )
-        {	// durch Fundstelle neu selektierte Tabelle bleibt
+        {	// if a table is selected as a "match" it remains (selected)
             rMark.SelectTable( nTab, TRUE );
-            // wenn vorher nur eine selektiert war, ist es ein Tausch
-            //! wenn nicht, ist jetzt evtl. eine mehr selektiert
+            // It's a swap if only one table was selected before
+            //! otherwise now one table more might be selected
             if ( nOldSelectedCount == 1 && nTab != nOldTab )
                 rMark.SelectTable( nOldTab, FALSE );
         }
@@ -1875,8 +1875,8 @@ void ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
         if ( nTab != GetViewData()->GetTabNo() )
             SetTabNo( nTab );
 
-        //	wenn nichts markiert ist, DoneBlockMode, damit von hier aus
-        //	direkt per Shift-Cursor markiert werden kann:
+        //	if nothing is marked, DoneBlockMode, then marking can start
+        //  directly from this place via Shift-Cursor
         if (!rMark.IsMarked() && !rMark.IsMultiMarked())
             DoneBlockMode(TRUE);
 
@@ -1893,12 +1893,12 @@ void ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
             pDocSh->SetDocumentModified();
         }
         else if ( nCommand == SVX_SEARCHCMD_FIND_ALL )
-            pDocSh->PostPaintGridAll();								// Markierung
+            pDocSh->PostPaintGridAll();								// mark
         GetFrameWin()->LeaveWait();
     }
 
-    delete pUndoDoc;			// loeschen wenn nicht benutzt
-    delete pUndoMark;			// kann immer geloescht werden
+    delete pUndoDoc;			// remove if not used
+    delete pUndoMark;			// can always be removed
 }
 
 
@@ -1981,7 +1981,7 @@ void ScViewFunc::Solve( const ScSolveParam& rParam )
 
 
 //----------------------------------------------------------------------------
-//	Mehrfachoperation
+//	multi operation
 
 void ScViewFunc::TabOp( const ScTabOpParam& rParam, BOOL bRecord )
 {
@@ -2008,7 +2008,7 @@ void ScViewFunc::MakeScenario( const String& rName, const String& rComment,
 
     SCTAB nNewTab = pDocSh->MakeScenario( nTab, rName, rComment, rColor, nFlags, rMark );
     if (nFlags & SC_SCENARIO_COPYALL)
-        SetTabNo( nNewTab, TRUE );			// SC_SCENARIO_COPYALL -> sichtbar
+        SetTabNo( nNewTab, TRUE );			// SC_SCENARIO_COPYALL -> visible
     else
     {
         SfxBindings& rBindings = GetViewData()->GetBindings();
@@ -2031,7 +2031,7 @@ void ScViewFunc::ExtendScenario()
         return;
     }
 
-        //	Undo: Attribute anwenden
+        //	Undo: apply attributes
 
     ScDocument* pDoc = GetViewData()->GetDocument();
     ScPatternAttr aPattern( pDoc->GetPool() );
@@ -2055,11 +2055,11 @@ void ScViewFunc::UseScenario( const String& rName )
 
 
 //----------------------------------------------------------------------------
-//	Tabelle einfuegen
+//	Insert table
 
 BOOL ScViewFunc::InsertTable( const String& rName, SCTAB nTab, BOOL bRecord )
 {
-    //	Reihenfolge Tabelle/Name ist bei DocFunc umgekehrt
+    //	Order Tabl/Name is inverted for DocFunc
     BOOL bSuccess = GetViewData()->GetDocShell()->GetDocFunc().
                         InsertTable( nTab, rName, bRecord, FALSE );
     if (bSuccess)
@@ -2069,7 +2069,7 @@ BOOL ScViewFunc::InsertTable( const String& rName, SCTAB nTab, BOOL bRecord )
 }
 
 //----------------------------------------------------------------------------
-//	Tabellen einfuegen
+//	Insert tables
 
 BOOL ScViewFunc::InsertTables(SvStrings *pNames, SCTAB nTab,
                                             SCTAB nCount, BOOL bRecord )
@@ -2086,7 +2086,7 @@ BOOL ScViewFunc::InsertTables(SvStrings *pNames, SCTAB nTab,
     if (bRecord)
     {
         pNameList= new SvStrings;
-        pDoc->BeginDrawUndo();							//	InsertTab erzeugt ein SdrUndoNewPage
+        pDoc->BeginDrawUndo();							//	InsertTab creates a SdrUndoNewPage
     }
 
     BOOL bFlag=FALSE;
@@ -2128,7 +2128,7 @@ BOOL ScViewFunc::InsertTables(SvStrings *pNames, SCTAB nTab,
             pDocSh->GetUndoManager()->AddUndoAction(
                         new ScUndoInsertTables( pDocSh, nTab, FALSE, pNameList));
 
-        //	Views updaten:
+        //	Update views
 
         SetTabNo( nTab, TRUE );
         pDocSh->PostPaintExtras();
@@ -2155,7 +2155,7 @@ BOOL ScViewFunc::AppendTable( const String& rName, BOOL bRecord )
     WaitObject aWait( GetFrameWin() );
 
     if (bRecord)
-        pDoc->BeginDrawUndo();							//	InsertTab erzeugt ein SdrUndoNewPage
+        pDoc->BeginDrawUndo();							//	InsertTab creates a SdrUndoNewPage
 
     if (pDoc->InsertTab( SC_TAB_APPEND, rName ))
     {
@@ -2223,9 +2223,9 @@ BOOL ScViewFunc::DeleteTables(const vector<SCTAB> &TheTabs, BOOL bRecord )
         {
             SCTAB nTab = TheTabs[i];
             if (i==0)
-                pUndoDoc->InitUndo( pDoc, nTab,nTab, TRUE,TRUE );	// incl. Spalten/Zeilenflags
+                pUndoDoc->InitUndo( pDoc, nTab,nTab, TRUE,TRUE );	// incl. column/fow flags
             else
-                pUndoDoc->AddUndoTab( nTab,nTab, TRUE,TRUE );		// incl. Spalten/Zeilenflags
+                pUndoDoc->AddUndoTab( nTab,nTab, TRUE,TRUE );		// incl. column/fow flags
 
             pDoc->CopyToDocument(0,0,nTab, MAXCOL,MAXROW,nTab, IDF_ALL,FALSE, pUndoDoc );
             pDoc->GetName( nTab, aOldName );
@@ -2256,13 +2256,13 @@ BOOL ScViewFunc::DeleteTables(const vector<SCTAB> &TheTabs, BOOL bRecord )
             if ( pDoc->IsTabProtected( nTab ) )
                 pUndoDoc->SetTabProtection(nTab, pDoc->GetTabProtection(nTab));
 
-            //	Drawing-Layer muss sein Undo selbst in der Hand behalten !!!
+            //	Drawing-Layer is responsible for its Undo  !!!
             //		pUndoDoc->TransferDrawPage(pDoc, nTab,nTab);
         }
 
-        pUndoDoc->AddUndoTab( 0, nCount-1 );			//	alle Tabs fuer Referenzen
+        pUndoDoc->AddUndoTab( 0, nCount-1 );			//	all Tabs for references
 
-        pDoc->BeginDrawUndo();							//	DeleteTab erzeugt ein SdrUndoDelPage
+        pDoc->BeginDrawUndo();							//	DeleteTab creates a SdrUndoDelPage
 
         pUndoData = new ScRefUndoData( pDoc );
     }
@@ -2303,7 +2303,7 @@ BOOL ScViewFunc::DeleteTables(const vector<SCTAB> &TheTabs, BOOL bRecord )
 
         if (bWasLinked)
         {
-            pDocSh->UpdateLinks();				// Link-Manager updaten
+            pDocSh->UpdateLinks();				// update Link-Manager
             GetViewData()->GetBindings().Invalidate(SID_LINKS);
         }
 
@@ -2329,12 +2329,12 @@ BOOL ScViewFunc::DeleteTables(const vector<SCTAB> &TheTabs, BOOL bRecord )
 
 BOOL ScViewFunc::RenameTable( const String& rName, SCTAB nTab )
 {
-    //	Reihenfolge Tabelle/Name ist bei DocFunc umgekehrt
+    //	order Table/Name is inverted for DocFunc
     BOOL bSuccess = GetViewData()->GetDocShell()->GetDocFunc().
                         RenameTable( nTab, rName, TRUE, FALSE );
     if (bSuccess)
     {
-        //	Der Tabellenname koennte in einer Formel vorkommen...
+        //	the table name might be part of a formula
         GetViewData()->GetViewShell()->UpdateInputHandler();
     }
     return bSuccess;
@@ -2393,7 +2393,7 @@ void ScViewFunc::InsertTableLink( const String& rFile,
         ScDocShell* pSrcSh = aLoader.GetDocShell();
         ScDocument* pSrcDoc = pSrcSh->GetDocument();
         SCTAB nTab = MAXTAB+1;
-        if (!rTabName.Len())				// kein Name angegeben -> erste Tabelle
+        if (!rTabName.Len())				// no name given -> first table
             nTab = 0;
         else
         {
@@ -2415,7 +2415,7 @@ void ScViewFunc::InsertTableLink( const String& rFile,
 
 
 //----------------------------------------------------------------------------
-//	Tabellen aus anderem Dokument kopieren / linken
+//	Copy/link tables from another document
 
 void ScViewFunc::ImportTables( ScDocShell* pSrcShell,
                                 SCTAB nCount, const SCTAB* pSrcTabs, BOOL bLink,SCTAB nTab )
@@ -2439,7 +2439,7 @@ void ScViewFunc::ImportTables( ScDocShell* pSrcShell,
     SCTAB nInsCount = 0;
     SCTAB i;
     for( i=0; i<nCount; i++ )
-    {	// #63304# insert sheets first and update all references
+    {	// insert sheets first and update all references
         String aName;
         pSrcDoc->GetName( pSrcTabs[i], aName );
         pDoc->CreateValidTabName( aName );
@@ -2459,7 +2459,7 @@ void ScViewFunc::ImportTables( ScDocShell* pSrcShell,
 
         switch (nErrVal)
         {
-            case 0:						// interner Fehler oder voll Fehler
+            case 0:						// internal error or full of errors
                 bError = TRUE;
                 break;
             case 2:
@@ -2497,7 +2497,7 @@ void ScViewFunc::ImportTables( ScDocShell* pSrcShell,
                         aFileName, aFilterName, aOptions, aTabStr, nRefresh );
         }
 
-        if (!bWasThere)			// Link pro Quelldokument nur einmal eintragen
+        if (!bWasThere)			// Insert link only once per source document
         {
             ScTableLink* pLink = new ScTableLink( pDocSh, aFileName, aFilterName, aOptions, nRefresh );
             pLink->SetInCreate( TRUE );
@@ -2539,7 +2539,7 @@ void ScViewFunc::ImportTables( ScDocShell* pSrcShell,
 
 
 //----------------------------------------------------------------------------
-//	Tabelle in anderes Dokument verschieben / kopieren
+//	Move/Copy table to another document
 
 void ScViewFunc::MoveTable( USHORT nDestDocNo, SCTAB nDestTab, BOOL bCopy, const String* pNewTabName )
 {
@@ -2554,9 +2554,9 @@ void ScViewFunc::MoveTable( USHORT nDestDocNo, SCTAB nDestTab, BOOL bCopy, const
     BOOL bNewDoc = ( nDestDocNo == SC_DOC_NEW );
     if ( bNewDoc )
     {
-        nDestTab = 0;           // als erstes einfuegen
+        nDestTab = 0;           // firstly insert
 
-        //	ohne SFX_CALLMODE_RECORD ausfuehren, weil schon im Move-Befehl enthalten:
+        //	execute without SFX_CALLMODE_RECORD, because already contained in move command
 
         String aUrl = String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("private:factory/"));
         aUrl.AppendAscii(RTL_CONSTASCII_STRINGPARAM( STRING_SCAPP ));				// "scalc"
@@ -2649,7 +2649,7 @@ void ScViewFunc::MoveTable( USHORT nDestDocNo, SCTAB nDestTab, BOOL bCopy, const
             nDestTab=pDestDoc->GetTableCount();
         SCTAB nDestTab1=nDestTab;
         for( USHORT j=0; j<TheTabs.size(); ++j, ++nDestTab1 )
-        {	// #63304# insert sheets first and update all references
+        {	// insert sheets first and update all references
             String aName;
             if (bRename)
                 aName = *pNewTabName;
@@ -2689,7 +2689,7 @@ void ScViewFunc::MoveTable( USHORT nDestDocNo, SCTAB nDestTab, BOOL bCopy, const
         GetFrameWin()->LeaveWait();
         switch (nErrVal)
         {
-            case 0:						// interner Fehler oder voll Fehler
+            case 0:						// internal error or full of errors
             {
                 ErrorMessage(STR_TABINSERT_ERROR);
                 return;
@@ -2714,7 +2714,7 @@ void ScViewFunc::MoveTable( USHORT nDestDocNo, SCTAB nDestTab, BOOL bCopy, const
         if (!bCopy)
         {
             if(nTabCount!=nTabSelCount)
-                DeleteTables(TheTabs);// incl. Paint & Undo
+                DeleteTables(TheTabs); // incl. Paint & Undo
             else
                 ErrorMessage(STR_TABREMOVE_ERROR);
         }
@@ -2725,13 +2725,13 @@ void ScViewFunc::MoveTable( USHORT nDestDocNo, SCTAB nDestTab, BOOL bCopy, const
             if ( pDestDoc->IsChartListenerCollectionNeedsUpdate() )
                 pDestDoc->UpdateChartListenerCollection();
 
-            pDestDoc->DeleteTab(static_cast<SCTAB>(TheTabs.size()));   // alte erste Tabelle
+            pDestDoc->DeleteTab(static_cast<SCTAB>(TheTabs.size()));   // old first table
             if (pDestViewSh)
                 pDestViewSh->TabChanged();		// Pages auf dem Drawing-Layer
             pDestShell->PostPaint( 0,0,0, MAXCOL,MAXROW,MAXTAB,
                                     PAINT_GRID | PAINT_TOP | PAINT_LEFT |
                                     PAINT_EXTRAS | PAINT_SIZE );
-            //	PAINT_SIZE fuer Gliederung
+            //	PAINT_SIZE for outline
         }
         else
         {
@@ -2798,7 +2798,7 @@ void ScViewFunc::MoveTable( USHORT nDestDocNo, SCTAB nDestTab, BOOL bCopy, const
             {
                 nDestTab1=nTabCount;
             }
-            pDocShell->MoveTable( nMovTab, nDestTab1, bCopy, FALSE );	// Undo ist hier
+            pDocShell->MoveTable( nMovTab, nDestTab1, bCopy, FALSE );	// Undo is here
 
             if(bCopy && pDoc->IsScenario(nMovTab))
             {
@@ -2941,7 +2941,7 @@ void ScViewFunc::HideTable( SCTAB nTab )
             pDocSh->GetUndoManager()->AddUndoAction( new ScUndoShowHideTab( pDocSh, nTab, FALSE ) );
         }
 
-        //	Views updaten:
+        //	Update views
         pDocSh->Broadcast( ScTablesHint( SC_TAB_HIDDEN, nTab ) );
 
         SetTabNo( nTab, TRUE );
@@ -3039,7 +3039,7 @@ void ScViewFunc::UpdateLineAttrs( SvxBorderLine&	   rLine,
 void ScViewFunc::SetSelectionFrameLines( const SvxBorderLine* pLine,
                                          BOOL bColorOnly )
 {
-    // nur wegen Matrix nicht editierbar? Attribute trotzdem ok
+    // Not editable only due to a matrix? Attribute is ok anyhow.
     BOOL bOnlyNotBecauseOfMatrix;
     if ( !SelectionEditable( &bOnlyNotBecauseOfMatrix ) && !bOnlyNotBecauseOfMatrix )
     {
@@ -3082,7 +3082,7 @@ void ScViewFunc::SetSelectionFrameLines( const SvxBorderLine* pLine,
             const SvxBorderLine*	pBoxLine = NULL;
             SvxBorderLine			aLine;
 
-            // hier wird die pBoxLine benutzt:
+            // here pBoxLine is used
 
             if( pBorderAttr )
             {
@@ -3096,7 +3096,7 @@ void ScViewFunc::SetSelectionFrameLines( const SvxBorderLine* pLine,
 
                 aBoxInfoItem.SetLine( aBoxItem.GetTop(), BOXINFO_LINE_HORI );
                 aBoxInfoItem.SetLine( aBoxItem.GetLeft(), BOXINFO_LINE_VERT );
-                aBoxInfoItem.ResetFlags(); // Lines auf Valid setzen
+                aBoxInfoItem.ResetFlags(); // set Lines to Valid
 
                 pOldSet->Put( *pBorderAttr );
                 pNewSet->Put( aBoxItem );
@@ -3157,10 +3157,10 @@ void ScViewFunc::SetSelectionFrameLines( const SvxBorderLine* pLine,
 void ScViewFunc::SetConditionalFormat( const ScConditionalFormat& rNew )
 {
     ScDocument* pDoc = GetViewData()->GetDocument();
-    ULONG nIndex = pDoc->AddCondFormat(rNew);			// dafuer gibt's kein Undo
+    ULONG nIndex = pDoc->AddCondFormat(rNew);			// for it there is no Undo
     SfxUInt32Item aItem( ATTR_CONDITIONAL, nIndex );
 
-    ApplyAttr( aItem );			// mit Paint und Undo...
+    ApplyAttr( aItem );			// with Paint and Undo...
 }
 
 
@@ -3169,10 +3169,10 @@ void ScViewFunc::SetConditionalFormat( const ScConditionalFormat& rNew )
 void ScViewFunc::SetValidation( const ScValidationData& rNew )
 {
     ScDocument* pDoc = GetViewData()->GetDocument();
-    ULONG nIndex = pDoc->AddValidationEntry(rNew);		// dafuer gibt's kein Undo
+    ULONG nIndex = pDoc->AddValidationEntry(rNew);		// for it there is no Undo
     SfxUInt32Item aItem( ATTR_VALIDDATA, nIndex );
 
-    ApplyAttr( aItem );			// mit Paint und Undo...
+    ApplyAttr( aItem );			// with Paint and Undo...
 }
 
 


More information about the Libreoffice-commits mailing list