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

Christian M. Heller christian.heller63 at gmail.com
Wed Oct 1 07:15:48 PDT 2014


 sc/source/filter/excel/excdoc.cxx   |    4 +-
 sc/source/filter/excel/excimp8.cxx  |    2 -
 sc/source/filter/excel/expop2.cxx   |    2 -
 sc/source/filter/excel/impop.cxx    |    2 -
 sc/source/filter/excel/namebuff.cxx |   10 ++---
 sc/source/filter/excel/read.cxx     |   28 +++++++--------
 sc/source/filter/excel/tokstack.cxx |   67 +++++++++++++++++-------------------
 7 files changed, 57 insertions(+), 58 deletions(-)

New commits:
commit be5b4223c803505064c6d82a3d209da560c9838b
Author: Christian M. Heller <christian.heller63 at gmail.com>
Date:   Sun Sep 28 13:14:54 2014 -0400

    fdo#39468 Translate German Comments - sc/source/filter/excel/
    
    Change-Id: I2a5104c6da0cf9843c42b1687aec6eb9c459c3d4
    Reviewed-on: https://gerrit.libreoffice.org/11735
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/sc/source/filter/excel/excdoc.cxx b/sc/source/filter/excel/excdoc.cxx
index 488f3cc..e84b474 100644
--- a/sc/source/filter/excel/excdoc.cxx
+++ b/sc/source/filter/excel/excdoc.cxx
@@ -228,7 +228,7 @@ void ExcTable::FillAsHeaderBinary( ExcBoundsheetList& rBoundsheetList )
 
     Add( new XclExpUInt16Record( EXC_ID_FNGROUPCOUNT, 14 ) );
 
-    // erst Namen- und Tabellen-Eintraege aufbauen
+    // first setup table names and contents
 
     for( nC = 0 ; nC < nScTabCount ; nC++ )
         if( rTabInfo.IsExportTab( nC ) )
@@ -370,7 +370,7 @@ void ExcTable::FillAsHeaderXml( ExcBoundsheetList& rBoundsheetList )
     rR.pTabId = new XclExpChTrTabId( std::max( nExcTabCount, nCodenames ) );
     Add( rR.pTabId );
 
-    // erst Namen- und Tabellen-Eintraege aufbauen
+    // first setup table names and contents
 
     for( nC = 0 ; nC < nScTabCount ; nC++ )
         if( rTabInfo.IsExportTab( nC ) )
diff --git a/sc/source/filter/excel/excimp8.cxx b/sc/source/filter/excel/excimp8.cxx
index 9a3d312..0f59432 100644
--- a/sc/source/filter/excel/excimp8.cxx
+++ b/sc/source/filter/excel/excimp8.cxx
@@ -448,7 +448,7 @@ void ImportExcel8::PostDocLoad( void )
 
     ImportExcel::PostDocLoad();
 
-    // Scenarien bemachen! ACHTUNG: Hier wird Tabellen-Anzahl im Dokument erhoeht!!
+    // check scenarios; Attention: This increases the table count of the document!!
     if( !pD->IsClipboard() && maScenList.aEntries.size() )
     {
         pD->UpdateChartListenerCollection();    // references in charts must be updated
diff --git a/sc/source/filter/excel/expop2.cxx b/sc/source/filter/excel/expop2.cxx
index ade5794..8356acd 100644
--- a/sc/source/filter/excel/expop2.cxx
+++ b/sc/source/filter/excel/expop2.cxx
@@ -45,7 +45,7 @@ ExportBiff5::ExportBiff5( XclExpRootData& rExpData, SvStream& rStrm ):
     ExportTyp( rStrm, &rExpData.mrDoc, rExpData.meTextEnc ),
     XclExpRoot( rExpData )
 {
-    // nur Teil der Root-Daten gebraucht
+    // only need part of the Root data
     pExcRoot = &GetOldRoot();
     pExcRoot->pER = this;   // ExcRoot -> XclExpRoot
     pExcRoot->eDateiTyp = Biff5;
diff --git a/sc/source/filter/excel/impop.cxx b/sc/source/filter/excel/impop.cxx
index b38440b..ca1ca75 100644
--- a/sc/source/filter/excel/impop.cxx
+++ b/sc/source/filter/excel/impop.cxx
@@ -1127,7 +1127,7 @@ void ImportExcel::Bof4( void )
 
 void ImportExcel::Bof5( void )
 {
-    //POST: eDateiTyp = Typ der zu lesenden Datei
+    //POST: eDateiTyp = Type of the file to be read
     sal_uInt16      nSubType, nVers;
     BiffTyp     eDatei;
 
diff --git a/sc/source/filter/excel/namebuff.cxx b/sc/source/filter/excel/namebuff.cxx
index ab0981c..dde5392 100644
--- a/sc/source/filter/excel/namebuff.cxx
+++ b/sc/source/filter/excel/namebuff.cxx
@@ -120,10 +120,10 @@ bool ExtSheetBuffer::GetScTabIndex( sal_uInt16 nExcIndex, sal_uInt16& rScIndex )
     }
 
     if( rTabNum == 0xFFFF )
-    {// neue Tabelle erzeugen
+    {// create new table
         SCTAB   nNewTabNum;
         if( pCur->bSWB )
-        {// Tabelle ist im selben Workbook!
+        {// table is in the same workbook!
             if( pExcRoot->pIR->GetDoc().GetTable( pCur->aTab, nNewTabNum ) )
             {
                 rScIndex = rTabNum = static_cast<sal_uInt16>(nNewTabNum);
@@ -133,7 +133,7 @@ bool ExtSheetBuffer::GetScTabIndex( sal_uInt16 nExcIndex, sal_uInt16& rScIndex )
                 rTabNum = 0xFFFD;
         }
         else if( pExcRoot->pIR->GetDocShell() )
-        {// Tabelle ist 'echt' extern
+        {// table is 'really' external
             if( pExcRoot->pIR->GetExtDocOptions().GetDocSettings().mnLinkCnt == 0 )
             {
                 OUString      aURL( ScGlobal::GetAbsDocName( pCur->aFile,
@@ -145,8 +145,8 @@ bool ExtSheetBuffer::GetScTabIndex( sal_uInt16 nExcIndex, sal_uInt16& rScIndex )
                     return true;
                 }
                 else
-                    rTabNum = 0xFFFE;       // Tabelle einmal nicht angelegt -> wird
-                                            //  wohl auch nicht mehr gehen...
+                    rTabNum = 0xFFFE;       // no table is created for now -> and likely
+                                            //  will not be created later...
             }
             else
                 rTabNum = 0xFFFE;
diff --git a/sc/source/filter/excel/read.cxx b/sc/source/filter/excel/read.cxx
index 4aee5ba..30d5045 100644
--- a/sc/source/filter/excel/read.cxx
+++ b/sc/source/filter/excel/read.cxx
@@ -56,22 +56,22 @@ FltError ImportExcel::Read( void )
     // call to GetCurrSheetDrawing() cannot be cached (changes in new sheets)
 
     enum Zustand {
-        Z_BiffNull, // Nicht in gueltigem Biff-Format
-        Z_Biff2,    // Biff2: nur eine Tabelle
+        Z_BiffNull, // not a valid Biff-Format
+        Z_Biff2,    // Biff2: only one table
 
-        Z_Biff3,    // Biff3: nur eine Tabelle
+        Z_Biff3,    // Biff3: only one table
 
-        Z_Biff4,    // Biff4: nur eine Tabelle
+        Z_Biff4,    // Biff4: only one table
         Z_Biff4W,   // Biff4 Workbook: Globals
-        Z_Biff4T,   // Biff4 Workbook: eine Tabelle selbst
-        Z_Biff4E,   // Biff4 Workbook: zwischen den Tabellen
+        Z_Biff4T,   // Biff4 Workbook: a table itself
+        Z_Biff4E,   // Biff4 Workbook: between tables
 
         Z_Biff5WPre,// Biff5: Prefetch Workbook
         Z_Biff5W,   // Biff5: Globals
-        Z_Biff5TPre,// Biff5: Prefetch fuer Shrfmla/Array Formula
-        Z_Biff5T,   // Biff5: eine Tabelle selbst
-        Z_Biff5E,   // Biff5: zwischen den Tabellen
-        Z_Biffn0,   // Alle Biffs: Tabelle bis naechstesss EOF ueberlesen
+        Z_Biff5TPre,// Biff5: Prefetch for Shrfmla/Array Formula
+        Z_Biff5T,   // Biff5: a table itself
+        Z_Biff5E,   // Biff5: between tables
+        Z_Biffn0,   // all Biffs: skip table till next EOF
         Z_Ende };
 
     Zustand             eAkt = Z_BiffNull, ePrev = Z_BiffNull;
@@ -184,7 +184,7 @@ FltError ImportExcel::Read( void )
 
                                     nBdshtTab = 0;
 
-                                    aIn.StoreGlobalPosition(); // und Position merken
+                                    aIn.StoreGlobalPosition(); // store position
                                 }
                                 else if( pExcRoot->eDateiTyp == Biff5 )
                                 {
@@ -192,7 +192,7 @@ FltError ImportExcel::Read( void )
                                     NewTable();
                                     eAkt = Z_Biff5TPre;  // Shrfmla Prefetch, Row-Prefetch
                                     nBofLevel = 0;
-                                    aIn.StoreGlobalPosition(); // und Position merken
+                                    aIn.StoreGlobalPosition(); // store position
                                 }
                             break;
                             default:
@@ -703,7 +703,7 @@ FltError ImportExcel::Read( void )
                             case Biff5M4:
                                 eAkt = Z_Biff5TPre; // Shrfmla Prefetch, Row-Prefetch
                                 nBofLevel = 0;
-                                aIn.StoreGlobalPosition(); // und Position merken
+                                aIn.StoreGlobalPosition(); // store position
                             break;
                             case Biff5C:    // chart sheet
                                 GetCurrSheetDrawing().ReadTabChart( maStrm );
@@ -1118,7 +1118,7 @@ FltError ImportExcel8::Read( void )
 
                         bSheetHasCodeName = false; // reset
 
-                        aIn.SeekGlobalPosition();         // und zurueck an alte Position
+                        aIn.SeekGlobalPosition();         // and back to old position
                         break;
                     }
                     case 0x12:  SheetProtect(); break;
diff --git a/sc/source/filter/excel/tokstack.cxx b/sc/source/filter/excel/tokstack.cxx
index 4c4550a..5c7568b 100644
--- a/sc/source/filter/excel/tokstack.cxx
+++ b/sc/source/filter/excel/tokstack.cxx
@@ -42,41 +42,41 @@ TokenStack::~TokenStack()
     delete[] pStack;
 }
 
-// !ACHTUNG!: nach Aussen hin beginnt die Nummerierung mit 1!
-// !ACHTUNG!: SC-Token werden mit einem Offset nScTokenOff abgelegt
-//              -> Unterscheidung von anderen Token
+// !ATTENTION!": to the outside the numbering starts with 1!
+// !ATTENTION!": SC-Token are stored with an offset nScTokenOff
+//                  -> to distinguish from other tokens
 
 TokenPool::TokenPool( svl::SharedStringPool& rSPool ) :
     mrStringPool(rSPool)
 {
     sal_uInt16  nLauf = nScTokenOff;
 
-    // Sammelstelle fuer Id-Folgen
+    // pool for Id-sequences
     nP_Id = 256;
     pP_Id = new sal_uInt16[ nP_Id ];
 
-    // Sammelstelle fuer Ids
+    // pool for Ids
     nElement = 32;
     pElement = new sal_uInt16[ nElement ];
     pType = new E_TYPE[ nElement ];
     pSize = new sal_uInt16[ nElement ];
     nP_IdLast = 0;
 
-    // Sammelstelle fuer Strings
+    // pool for strings
     nP_Str = 4;
     ppP_Str = new OUString *[ nP_Str ];
     for( nLauf = 0 ; nLauf < nP_Str ; nLauf++ )
         ppP_Str[ nLauf ] = NULL;
 
-    // Sammelstelle fuer double
+    // pool for double
     nP_Dbl = 8;
     pP_Dbl = new double[ nP_Dbl ];
 
-    // Sammelstelle fuer error codes
+    // pool for error codes
     nP_Err = 8;
     pP_Err = new sal_uInt16[ nP_Err ];
 
-    // Sammelstellen fuer Referenzen
+    // pool for References
     nP_RefTr = 32;
     ppP_RefTr = new ScSingleRefData *[ nP_RefTr ];
     for( nLauf = 0 ; nLauf < nP_RefTr ; nLauf++ )
@@ -561,7 +561,7 @@ bool TokenPool::GetElementRek( const sal_uInt16 nId )
     for( ; nAnz > 0 ; nAnz--, pAkt++ )
     {
         if( *pAkt < nScTokenOff )
-        {// Rekursion oder nicht?
+        {// recursion or not?
             if (*pAkt >= nElementAkt)
             {
                 DBG_ERRORFILE( "TokenPool::GetElementRek: *pAkt >= nElementAkt");
@@ -575,7 +575,7 @@ bool TokenPool::GetElementRek( const sal_uInt16 nId )
                     bRet = GetElement( *pAkt );
             }
         }
-        else    // elementarer SC_Token
+        else    // elementary SC_Token
             pScToken->AddOpCode( ( DefTokenId ) ( *pAkt - nScTokenOff ) );
     }
 
@@ -593,12 +593,12 @@ void TokenPool::operator >>( TokenId& rId )
         if (!GrowElement())
             return;
 
-    pElement[ nElementAkt ] = nP_IdLast;    // Start der Token-Folge
-    pType[ nElementAkt ] = T_Id;            // Typinfo eintragen
+    pElement[ nElementAkt ] = nP_IdLast;    // Start of Token-sequence
+    pType[ nElementAkt ] = T_Id;            // set Typeinfo
     pSize[ nElementAkt ] = nP_IdAkt - nP_IdLast;
-        // von nP_IdLast bis nP_IdAkt-1 geschrieben -> Laenge der Folge
+        // write from nP_IdLast to nP_IdAkt-1 -> length of the sequence
 
-    nElementAkt++;          // Startwerte fuer naechste Folge
+    nElementAkt++;          // start value for next sequence
     nP_IdLast = nP_IdAkt;
 }
 
@@ -613,16 +613,16 @@ const TokenId TokenPool::Store( const double& rDouble )
             return (const TokenId) nElementAkt+1;
 
     pElement[ nElementAkt ] = nP_DblAkt;    // Index in Double-Array
-    pType[ nElementAkt ] = T_D;             // Typinfo Double eintragen
+    pType[ nElementAkt ] = T_D;             // set Typeinfo Double
 
     pP_Dbl[ nP_DblAkt ] = rDouble;
 
-    pSize[ nElementAkt ] = 1;           // eigentlich Banane
+    pSize[ nElementAkt ] = 1;               // does not matter
 
     nElementAkt++;
     nP_DblAkt++;
 
-    return ( const TokenId ) nElementAkt; // Ausgabe von altem Wert + 1!
+    return ( const TokenId ) nElementAkt; // return old value + 1!
 }
 
 const TokenId TokenPool::Store( const sal_uInt16 nIndex )
@@ -632,8 +632,7 @@ const TokenId TokenPool::Store( const sal_uInt16 nIndex )
 
 const TokenId TokenPool::Store( const OUString& rString )
 {
-    // weitgehend nach Store( const sal_Char* ) kopiert, zur Vermeidung
-    //  eines temporaeren Strings in "
+    // mostly copied to Store( const sal_Char* ), to avoid a temporary string
     if( nElementAkt >= nElement )
         if (!GrowElement())
             return (const TokenId) nElementAkt+1;
@@ -643,14 +642,14 @@ const TokenId TokenPool::Store( const OUString& rString )
             return (const TokenId) nElementAkt+1;
 
     pElement[ nElementAkt ] = nP_StrAkt;    // Index in String-Array
-    pType[ nElementAkt ] = T_Str;           // Typinfo String eintragen
+    pType[ nElementAkt ] = T_Str;           // set Typeinfo String
 
-    // String anlegen
+    // create String
     if( !ppP_Str[ nP_StrAkt ] )
-        //...aber nur, wenn noch nicht vorhanden
+        //...but only, if it does not exist already
         ppP_Str[ nP_StrAkt ] = new (::std::nothrow) OUString( rString );
     else
-        //...ansonsten nur kopieren
+        //...copy otherwise
         *ppP_Str[ nP_StrAkt ] = rString;
 
     if (ppP_Str[ nP_StrAkt ])
@@ -662,7 +661,7 @@ const TokenId TokenPool::Store( const OUString& rString )
     nElementAkt++;
     nP_StrAkt++;
 
-    return ( const TokenId ) nElementAkt; // Ausgabe von altem Wert + 1!
+    return ( const TokenId ) nElementAkt; // return old value + 1!
 }
 
 const TokenId TokenPool::Store( const ScSingleRefData& rTr )
@@ -676,7 +675,7 @@ const TokenId TokenPool::Store( const ScSingleRefData& rTr )
             return (const TokenId) nElementAkt+1;
 
     pElement[ nElementAkt ] = nP_RefTrAkt;
-    pType[ nElementAkt ] = T_RefC;          // Typinfo Cell-Reff eintragen
+    pType[ nElementAkt ] = T_RefC;          // set Typeinfo Cell-Ref
 
     if( !ppP_RefTr[ nP_RefTrAkt ] )
         ppP_RefTr[ nP_RefTrAkt ] = new ScSingleRefData( rTr );
@@ -686,7 +685,7 @@ const TokenId TokenPool::Store( const ScSingleRefData& rTr )
     nElementAkt++;
     nP_RefTrAkt++;
 
-    return ( const TokenId ) nElementAkt; // Ausgabe von altem Wert + 1!
+    return ( const TokenId ) nElementAkt; // return old value + 1!
 }
 
 const TokenId TokenPool::Store( const ScComplexRefData& rTr )
@@ -700,7 +699,7 @@ const TokenId TokenPool::Store( const ScComplexRefData& rTr )
             return (const TokenId) nElementAkt+1;
 
     pElement[ nElementAkt ] = nP_RefTrAkt;
-    pType[ nElementAkt ] = T_RefA;          // Typinfo Area-Reff eintragen
+    pType[ nElementAkt ] = T_RefA;          // setTypeinfo Area-Ref
 
     if( !ppP_RefTr[ nP_RefTrAkt ] )
         ppP_RefTr[ nP_RefTrAkt ] = new ScSingleRefData( rTr.Ref1 );
@@ -716,7 +715,7 @@ const TokenId TokenPool::Store( const ScComplexRefData& rTr )
 
     nElementAkt++;
 
-    return ( const TokenId ) nElementAkt; // Ausgabe von altem Wert + 1!
+    return ( const TokenId ) nElementAkt; // return old value + 1!
 }
 
 const TokenId TokenPool::Store( const DefTokenId e, const OUString& r )
@@ -730,7 +729,7 @@ const TokenId TokenPool::Store( const DefTokenId e, const OUString& r )
             return (const TokenId) nElementAkt+1;
 
     pElement[ nElementAkt ] = nP_ExtAkt;
-    pType[ nElementAkt ] = T_Ext;           // Typinfo String eintragen
+    pType[ nElementAkt ] = T_Ext;           // set Typeinfo String
 
     if( ppP_Ext[ nP_ExtAkt ] )
     {
@@ -743,7 +742,7 @@ const TokenId TokenPool::Store( const DefTokenId e, const OUString& r )
     nElementAkt++;
     nP_ExtAkt++;
 
-    return ( const TokenId ) nElementAkt; // Ausgabe von altem Wert + 1!
+    return ( const TokenId ) nElementAkt; // return old value + 1!
 }
 
 const TokenId TokenPool::StoreNlf( const ScSingleRefData& rTr )
@@ -891,16 +890,16 @@ bool TokenPool::IsSingleOp( const TokenId& rId, const DefTokenId eId ) const
     {// existent?
         nId--;
         if( T_Id == pType[ nId ] )
-        {// Tokenfolge?
+        {// Token-Sequence?
             if( pSize[ nId ] == 1 )
-            {// GENAU 1 Token
+            {// EXACTLY 1 Token
                 sal_uInt16 nPid = pElement[ nId ];
                 if (nPid < nP_Id)
                 {
                     sal_uInt16 nSecId = pP_Id[ nPid ];
                     if( nSecId >= nScTokenOff )
                     {// Default-Token?
-                        return ( DefTokenId ) ( nSecId - nScTokenOff ) == eId;  // Gesuchter?
+                        return ( DefTokenId ) ( nSecId - nScTokenOff ) == eId;  // wanted?
                     }
                 }
             }


More information about the Libreoffice-commits mailing list