[Libreoffice-commits] core.git: rsc/inc

Lucas Satabin lucas.satabin at gnieh.org
Sun Aug 30 07:53:09 PDT 2015


 rsc/inc/rscarray.hxx |   13 +++-----
 rsc/inc/rscclass.hxx |   26 ++++++++--------
 rsc/inc/rscconst.hxx |   16 ++++-----
 rsc/inc/rsccont.hxx  |   13 +++-----
 rsc/inc/rscdb.hxx    |   37 +++++++++++------------
 rsc/inc/rscdef.hxx   |   38 +++++++++++------------
 rsc/inc/rscflag.hxx  |   12 +++----
 rsc/inc/rsckey.hxx   |    6 +--
 rsc/inc/rscrange.hxx |   42 +++++++++++++-------------
 rsc/inc/rscrsc.hxx   |   18 +++++------
 rsc/inc/rscstr.hxx   |   10 +++---
 rsc/inc/rsctop.hxx   |   82 ++++++++++++++++++++++++---------------------------
 rsc/inc/rsctree.hxx  |   10 ++----
 13 files changed, 157 insertions(+), 166 deletions(-)

New commits:
commit 686c85f768cf4f9566375e9cf54aab950eadf4cc
Author: Lucas Satabin <lucas.satabin at gnieh.org>
Date:   Tue Aug 25 18:57:23 2015 +0200

    tdf#39468: Translate German comments in core/rsc/inc
    
    Change-Id: I5d878192bde816e59ef570731113b526e8098d85
    Reviewed-on: https://gerrit.libreoffice.org/18065
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Norbert Thiebaud <nthiebaud at gmail.com>

diff --git a/rsc/inc/rscarray.hxx b/rsc/inc/rscarray.hxx
index 232091f..65a74e9 100644
--- a/rsc/inc/rscarray.hxx
+++ b/rsc/inc/rscarray.hxx
@@ -49,16 +49,13 @@ struct RscArrayInst
     RscInstNode *   pNode;
 };
 
-/* Der Baum wird ueber die Werte des Enums sortiert, nicht ueber
-    seine HashId.
-*/
+/* The tree is sorted against its enum value, not gainst its HashId */
 class RscArray : public RscTop
 {
 protected:
-    RscEnum *       pTypeClass; // Typ der Eintraege
-    sal_uInt32      nSize;      // Groesse der Instanzdaten dieser Klasse
-                                // mit Superklassen
-    sal_uInt32      nOffInstData;// Offset auf eigen Instanzdaten
+    RscEnum *       pTypeClass; // type of entries
+    sal_uInt32      nSize;      // size of this class instance data with super class
+    sal_uInt32      nOffInstData;// Offset of self instance data
     void            WriteSrcArray( const RSCINST & rInst, FILE * fOutput,
                                    RscTypCont * pTC, sal_uInt32 nTab, const char * );
 public:
@@ -77,7 +74,7 @@ public:
                                  RscTop * pCreateClass,
                                  RSCINST * pGetInst ) SAL_OVERRIDE;
 
-                    // Gibt die Groesse der Klasse in Bytes
+                    // gives the size of the class in bytes
     sal_uInt32      Size() SAL_OVERRIDE { return nSize; }
 
     bool            IsConsistent( const RSCINST & rInst ) SAL_OVERRIDE;
diff --git a/rsc/inc/rscclass.hxx b/rsc/inc/rscclass.hxx
index 7d2b09e..668098a 100644
--- a/rsc/inc/rscclass.hxx
+++ b/rsc/inc/rscclass.hxx
@@ -33,19 +33,19 @@ protected:
     };
     struct VARTYPE_STRUCT
     {
-        Atom            nVarName;   // Variablenname
-        RSCVAR          nVarType;   // Variablentyp
-        sal_uInt32      nMask;      // Maskierungsbit
-        sal_uInt32      nOffset;    // Beginn der Instanzdaten
-        RscTop *        pClass;     // Klasse
-        CLASS_DATA      pDefault;   // Zeiger auf DefaultDaten
-        Atom            nDataBaseName;//Name fuer Fremddatenbereich
+        Atom            nVarName;   // variable name
+        RSCVAR          nVarType;   // variable type
+        sal_uInt32      nMask;      // bit mask
+        sal_uInt32      nOffset;    // start of instance data
+        RscTop *        pClass;     // class
+        CLASS_DATA      pDefault;   // pointer to default data
+        Atom            nDataBaseName;//name of foreign data area
     };
-    sal_uInt32          nSuperSize; // Groesse der Instanzdaten der SuperKl.
-    sal_uInt32          nSize;      // Groesse der Instanzdaten dieser Klasse
-                                    // mit Superklassen
-    sal_uInt32          nEntries;   // Eintraege in pVarTypeList
-    VARTYPE_STRUCT *    pVarTypeList;   // Variablenliste
+    sal_uInt32          nSuperSize; // size of super class instance data
+    sal_uInt32          nSize;      // size of this class instance data
+                                    // with super class
+    sal_uInt32          nEntries;   // entries in pVarTypeList
+    VARTYPE_STRUCT *    pVarTypeList;   // variable list
     RSCINST             GetInstData( CLASS_DATA pData, sal_uInt32 nEle,
                                      bool bGetCopy = false );
     CLASS_DATA          GetDfltData( sal_uInt32 nEle );
@@ -73,7 +73,7 @@ public:
                                  RscTop * pCreateClass = NULL ) SAL_OVERRIDE;
     RSCINST         GetCopyVar( const RSCINST & rInst, Atom nVarName ) SAL_OVERRIDE;
 
-                    // Gibt die Groesse der Klasse in Bytes
+                    // gives the class size in bytes
     sal_uInt32      Size() SAL_OVERRIDE { return nSize; }
 
     bool            IsConsistent( const RSCINST & rInst ) SAL_OVERRIDE;
diff --git a/rsc/inc/rscconst.hxx b/rsc/inc/rscconst.hxx
index 55ea458..201d3f2 100644
--- a/rsc/inc/rscconst.hxx
+++ b/rsc/inc/rscconst.hxx
@@ -29,16 +29,16 @@ class RscConst : public RscTop
 protected:
     struct VarEle
     {
-        Atom    nId;    // Name der Konstante
-        sal_Int32   lValue; // Wert der Konstante
+        Atom    nId;    // constant name
+        sal_Int32   lValue; // constant value
     };
-    VarEle *        pVarArray;  // Zeiger auf das Feld mit Konstanten
-    sal_uInt32      nEntries;   // Anzahle der Eintraege im Feld
+    VarEle *        pVarArray;  // pointer to the field with constant
+    sal_uInt32      nEntries;   // number of entries in field
 public:
                     RscConst( Atom nId, sal_uInt32 nTypId );
                     virtual ~RscConst();
     virtual RSCCLASS_TYPE   GetClassType() const SAL_OVERRIDE;
-                    // Die erlaubten Werte werden gesetzt
+                    // sets the allowed values
     ERRTYPE         SetConstant( Atom nVarName, sal_Int32 lValue );
     bool            GetConstValue( Atom nConstId, sal_Int32 * pVal ) const;
     bool            GetValueConst( sal_Int32 nValue, Atom  * pConstId ) const;
@@ -49,8 +49,8 @@ class RscEnum : public RscConst
 {
     struct RscEnumInst
     {
-        sal_uInt32  nValue; // Position der Konstanten im Array
-        bool        bDflt;  // Ist Default
+        sal_uInt32  nValue; // constant position in the array
+        bool        bDflt;  // is default
     };
     sal_uInt32      nSize;
 public:
@@ -66,7 +66,7 @@ public:
                     {
                         return reinterpret_cast<RscEnumInst*>(rInst.pData)->bDflt;
                     };
-                    // Als Default setzen
+                    // sets as default
     bool            IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) SAL_OVERRIDE;
 
     ERRTYPE         SetConst( const RSCINST & rInst, Atom nValueId,
diff --git a/rsc/inc/rsccont.hxx b/rsc/inc/rsccont.hxx
index a2530b3..dd0830f 100644
--- a/rsc/inc/rsccont.hxx
+++ b/rsc/inc/rsccont.hxx
@@ -40,12 +40,11 @@ struct RscBaseContInst
 class RscBaseCont : public RscTop
 {
 protected:
-    RscTop *        pTypeClass; // Typ der Eintraege
-    RscTop *        pTypeClass1;// Zwei verschiedene Typen moeglich
-    bool            bNoId;      // Keine Identifier
-    sal_uInt32      nSize;      // Groesse der Instanzdaten dieser Klasse
-                                // mit Superklassen
-    sal_uInt32      nOffInstData;// Offset auf eigen Instanzdaten
+    RscTop *        pTypeClass; // type of entries
+    RscTop *        pTypeClass1;// two different types may exist
+    bool            bNoId;      // whether there is no identifier
+    sal_uInt32      nSize;      // size of this class and super classes instance data
+    sal_uInt32      nOffInstData;// offset of own instance data
     static void     DestroyElements( RscBaseContInst * pClassData );
     RSCINST         SearchElePos( const RSCINST & rInst, const RscId & rEleName,
                                   RscTop * pClass, sal_uInt32 nPos );
@@ -86,7 +85,7 @@ public:
                               sal_Int32 nValue ) SAL_OVERRIDE;
     ERRTYPE         SetRef( const RSCINST & rInst, const RscId & rRefId ) SAL_OVERRIDE;
 
-                    // Gibt die Groesse der Klasse in Bytes
+                    // returns the class size in bytes
     sal_uInt32      Size() SAL_OVERRIDE { return nSize; }
 
     bool            IsConsistent( const RSCINST & rInst ) SAL_OVERRIDE;
diff --git a/rsc/inc/rscdb.hxx b/rsc/inc/rscdb.hxx
index b4454ff..4046f1d 100644
--- a/rsc/inc/rscdb.hxx
+++ b/rsc/inc/rscdb.hxx
@@ -53,7 +53,7 @@ struct WriteRcContext
     RscCmdLine*         pCmdLine;
 };
 
-// Tabelle fuer Systemabhaengige Resourcen
+// table for system dependent resources
 struct RscSysEntry
 {
     sal_uInt32      nKey;
@@ -66,25 +66,25 @@ struct RscSysEntry
 class RscTypCont
 {
     rtl_TextEncoding    nSourceCharSet;
-    sal_uInt32          nMachineId;         // Globaler Maschinentyp
+    sal_uInt32          nMachineId;         // global machine type
     RSCBYTEORDER_TYPE   nByteOrder;         // Intel oder
     OString             aLanguage;          // output language
     std::vector< sal_uInt32 > aLangFallbacks;   // language fallback list (entry 0 is language itself)
-    OString             aSearchPath;        // Suchen der Bitmap, Icon, Pointer
+    OString             aSearchPath;        // search path for bitmap, icon and pointer
     OString             aSysSearchPath;     // aSearchPath plus language specific paths
-    sal_uInt32          nUniqueId;          // eindeutiger Id fuer Systemresourcen
-    sal_uLong           nFilePos;           // Position in der Datei ( MTF )
-    sal_uInt32          nPMId;              // eindeutiger Id fuer PM-Rseourcefile
-                                            // muss groesser als RSC_VERSIONCONTROL_ID sein
-    RscTop  *           pRoot;              // Zeiger auf die Wurzel vom Typenbaum
-    RSCINST             aVersion;           // Versionskontrollinstanz
+    sal_uInt32          nUniqueId;          // unique id for system resources
+    sal_uLong           nFilePos;           // position in file (MTF)
+    sal_uInt32          nPMId;              // unique id for PR-resource file
+                                            // must be greater that RSC_VERSIONCONTROL_ID
+    RscTop  *           pRoot;              // pointer to the root of type tree
+    RSCINST             aVersion;           // version control instance
 
     ::std::vector< RscTop* >
-                        aBaseLst;           // Liste der einfachen Resourceklasse
+                        aBaseLst;           // list of simple resource class
     ::std::vector< RscSysEntry* >
-                        aSysLst;            // Liste der Systemresourcen
+                        aSysLst;            // list of system resources
 
-    Atom                nWinBitVarId;       // Name der Winbitvariablen
+    Atom                nWinBitVarId;       // name of the winbit variable
     Atom                nBorderId;
     Atom                nHideId;
     Atom                nClipChildrenId;
@@ -141,7 +141,7 @@ class RscTypCont
     Atom                nVertId;
     Atom                nSysWinId;
 
-    void        Init();         // Initialisiert Klassen und Tabelle
+    void        Init();         // initializes classes and tables
     void        SETCONST( RscConst *, const char *, sal_uInt32 );
     void        SETCONST( RscConst *, Atom, sal_uInt32 );
     inline void SETCONST( RscConst *p1, const char * p2, SymbolType p3 ) { SETCONST(p1, p2, static_cast<sal_uInt32>(p3)); }
@@ -246,12 +246,11 @@ public:
 
     Atom                nAcceleratorType;
 
-    RscError*           pEH;        // Fehlerhandler
-    RscNameTable        aNmTb;      // Tabelle fuer Namen
-    RscFileTab          aFileTab;   // Tabelle der Dateinamen
+    RscError*           pEH;        // error handler
+    RscNameTable        aNmTb;      // name table
+    RscFileTab          aFileTab;   // fila name table
     sal_uInt32          nFlags;
-    std::map<sal_uInt64, sal_uLong> aIdTranslator; //Ordnet Resourcetypen und Id's einen Id zu
-                                       //(unter PM), oder eine Dateiposition (MTF)
+    std::map<sal_uInt64, sal_uLong> aIdTranslator; // map resources types and ids to an id (under PM9 or to a file position (MTF)
 
     RscTypCont( RscError *, RSCBYTEORDER_TYPE, const OString& rSearchPath, sal_uInt32 nFlags );
     ~RscTypCont();
@@ -278,7 +277,7 @@ public:
                               aBaseLst.push_back( pType );
                           }
     RscTop  *         SearchType( Atom nTypId );
-                      // loescht alle Resourceobjekte diese Datei
+                      // deletes all resource objects of this file
     void              Delete( sal_uLong lFileKey );
     RscTop  *         GetRoot()         { return pRoot; }
     sal_uInt32        PutSysName( sal_uInt32 nRscTyp, char * pName, sal_uInt32 nConst,
diff --git a/rsc/inc/rscdef.hxx b/rsc/inc/rscdef.hxx
index 6b033a1..2f8b69c 100644
--- a/rsc/inc/rscdef.hxx
+++ b/rsc/inc/rscdef.hxx
@@ -75,9 +75,9 @@ public:
 /*********** R s c I d ***************************************************/
 class RscId
 {
-    static      bool bNames;// false, bei den Namenoperation nur Zahlen
+    static      bool bNames;// if false, only count name operation
 public:
-    RscExpType  aExp;       // Zahl, Define oder Ausdruck
+    RscExpType  aExp;       // number, define or expression
     sal_Int32   GetNumber() const;
     void    Create( const RscExpType & rExpType );
     void    Create(){ aExp.cType = RSCEXP_NOTHING; }
@@ -103,8 +103,8 @@ public:
             RscId& operator = ( const RscId& rRscId );
 
     static void SetNames( bool bSet = true );
-    operator sal_Int32() const;   // Gibt Nummer zurueck
-    OString GetName()  const;   // Gibt den Namen des Defines zurueck
+    operator sal_Int32() const;   // returns the number
+    OString GetName()  const;   // returns the define
     bool    operator <  ( const RscId& rRscId ) const;
     bool    operator >  ( const RscId& rRscId ) const;
     bool    operator == ( const RscId& rRscId ) const;
@@ -123,10 +123,10 @@ friend class RscDefineList;
 friend class RscDefTree;
 friend class RscExpression;
 friend class RscId;
-    sal_uLong   lFileKey;   // zu welcher Datei gehoert das Define
-    sal_uInt32  nRefCount;  // Wieviele Referenzen auf dieses Objekt
-    sal_Int32   lId;        // Identifier
-    RscExpression * pExp;       // Ausdruck
+    sal_uLong   lFileKey;   // file the define belongs to
+    sal_uInt32  nRefCount;  // reference count to this object
+    sal_Int32   lId;        // identifier
+    RscExpression * pExp;       // expression
 protected:
 
                 RscDefine( sal_uLong lFileKey, const OString& rDefName,
@@ -156,7 +156,7 @@ friend class RscFile;
 friend class RscFileTab;
 private:
     RscSubDefList   maList;
-                // pExpression wird auf jedenfall Eigentum der Liste
+                // pExpression always belongs to the list
     RscDefine * New( sal_uLong lFileKey, const OString& rDefName,
                      sal_Int32 lDefId, size_t lPos );
     RscDefine * New( sal_uLong lFileKey, const OString& rDefName,
@@ -199,19 +199,19 @@ public:
 
 typedef ::std::vector< RscDepend* > RscDependList;
 
-// Tabelle die alle Dateinamen enthaelt
+// table containing al file names
 class RscFile
 {
 friend class RscFileTab;
-    bool            bIncFile;   // Ist es eine Include-Datei
+    bool            bIncFile;   // whether it is an include file
 public:
-    bool            bLoaded;    // Ist die Datei geladen
-    bool            bScanned;   // Wurde Datei nach Inclide abgesucht
-    bool            bDirty;     // Dirty-Flag
-    OString         aFileName;  // Name der Datei
-    OString         aPathName;  // Pfad und Name der Datei
-    RscDefineList   aDefLst;    // Liste der Defines
-    RscDependList   aDepLst;    // List of Depend
+    bool            bLoaded;    // whether the file is loaded
+    bool            bScanned;   // whether the file searches for include
+    bool            bDirty;     // dirty-flag
+    OString         aFileName;  // file name
+    OString         aPathName;  // file path and name
+    RscDefineList   aDefLst;    // list of defines
+    RscDependList   aDepLst;    // list of depend
 
                     RscFile();
                     ~RscFile();
@@ -261,7 +261,7 @@ public:
     RscDefine * NewDef( sal_uLong lKey, const OString& rDefName,
                         RscExpression *, sal_uLong lPos );
 
-           // Alle Defines die in dieser Datei Definiert sind loeschen
+           // deletes all defines defined in this file
     void        DeleteFileContext( sal_uLong lKey );
     sal_uLong   NewCodeFile(const OString& rName);
     sal_uLong   NewIncFile(const OString& rName, const OString& rPath);
diff --git a/rsc/inc/rscflag.hxx b/rsc/inc/rscflag.hxx
index cb10c49..8d48d06 100644
--- a/rsc/inc/rscflag.hxx
+++ b/rsc/inc/rscflag.hxx
@@ -44,10 +44,10 @@ public:
     bool            IsDefault( const RSCINST & rInst ) SAL_OVERRIDE;
     bool            IsDefault( const RSCINST & rInst, Atom nConstId );
 
-                    // Ist das Flag gesetzt
+                    // whether the flag is set
     bool            IsSet( const RSCINST & rInst, Atom nConstId );
 
-                    // Als Default setzen
+                    // sets as default
     bool            IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) SAL_OVERRIDE;
     bool            IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef,
                                     Atom nConstId );
@@ -64,8 +64,8 @@ public:
 /******************* R s c C l i e n t ***********************************/
 class RscClient : public RscTop
 {
-    RscFlag *       pRefClass;  //Klasse die als Server benutzt wird
-    Atom            nConstId;   //Id des zu setzenden Wertes
+    RscFlag *       pRefClass;  // class which is used as server
+    Atom            nConstId;   // id of the value to set
 public:
                     RscClient( Atom nId, sal_uInt32 nTypId, RscFlag * pClass,
                                Atom nConstantId );
@@ -73,11 +73,11 @@ public:
     RSCINST         Create( RSCINST * pInst, const RSCINST & rDflt, bool ) SAL_OVERRIDE;
     sal_uInt32      Size() SAL_OVERRIDE { return pRefClass->Size(); }
 
-                    // Eine Zuweisung an eine Variable
+                    // an assignment to a variable
     bool            IsDefault( const RSCINST & rInst ) SAL_OVERRIDE {
                         return pRefClass->IsDefault( rInst, nConstId );
                     };
-                    // Als Default setzen
+                    // sets as default
     bool            IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) SAL_OVERRIDE
                         {
                             return pRefClass->IsValueDefault( rInst,
diff --git a/rsc/inc/rsckey.hxx b/rsc/inc/rsckey.hxx
index 92df3ce..79a613e 100644
--- a/rsc/inc/rsckey.hxx
+++ b/rsc/inc/rsckey.hxx
@@ -33,8 +33,8 @@ typedef struct
 
 class RscNameTable
 {
-    bool            bSort;      //soll bei jedem einfuegen sortiert werden?
-    sal_uInt32      nEntries;   //Anzahl der Eintr"age
+    bool            bSort;      // whether it must be sorted for each insertion
+    sal_uInt32      nEntries;   // number of entries
     KEY_STRUCT *    pTable;
 public:
             RscNameTable();
@@ -45,7 +45,7 @@ public:
     Atom    Put( const char * pName, sal_uInt32 nTyp );
     Atom    Put( Atom nName, sal_uInt32 nTyp, RscTop * pClass );
 
-            // true, wurde gefunden
+            // if true, it was found
     bool    Get( Atom nName, KEY_STRUCT * pEle );
 };
 
diff --git a/rsc/inc/rscrange.hxx b/rsc/inc/rscrange.hxx
index 51f74a3..4739b57 100644
--- a/rsc/inc/rscrange.hxx
+++ b/rsc/inc/rscrange.hxx
@@ -29,21 +29,21 @@ class RscRange : public RscTop
 protected:
     struct RscRangeInst
     {
-        sal_uInt16  nValue; // nValue = Ausgangswert - nMin
-        bool        bDflt;  // Ist Default
+        sal_uInt16  nValue; // nValue = output value - nMin
+        bool        bDflt;  // is default
     };
-    sal_Int32       nMin;   // Minimum des Bereiches
-    sal_Int32       nMax;   // Maximum des Bereiches
+    sal_Int32       nMin;   // range minimum value
+    sal_Int32       nMax;   // range maximum value
     sal_uInt32      nSize;
 public:
                     RscRange( Atom nId, sal_uInt32 nTypId );
     virtual RSCCLASS_TYPE   GetClassType() const SAL_OVERRIDE;
     RSCINST         Create( RSCINST * pInst, const RSCINST & rDfltInst, bool ) SAL_OVERRIDE;
-                    // Der zulaessige Bereich wird gesetzt
+                    // sets the allowed range
     ERRTYPE         SetRange( sal_Int32 nMinimum, sal_Int32 nMaximum );
-                    // Gibt die Groesse der Klasse in Bytes
+                    // returns the class size in bytes
     sal_uInt32      Size() SAL_OVERRIDE { return nSize; }
-                    // Eine Zuweisung an eine Variable
+                    // an assignment to a variable
     virtual void    SetToDefault( const RSCINST & rInst ) SAL_OVERRIDE
                         {
                             reinterpret_cast<RscRangeInst*>(rInst.pData)->bDflt = true;
@@ -52,7 +52,7 @@ public:
                         {
                             return reinterpret_cast<RscRangeInst*>(rInst.pData)->bDflt;
                         };
-                    // Als Default setzen
+                    // sets as default
     bool            IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) SAL_OVERRIDE;
     ERRTYPE         SetNumber( const RSCINST &, sal_Int32 ) SAL_OVERRIDE;
     ERRTYPE         GetNumber( const RSCINST &, sal_Int32 * ) SAL_OVERRIDE;
@@ -67,21 +67,21 @@ class RscLongRange : public RscTop
 protected:
     struct RscLongRangeInst
     {
-        sal_Int32    nValue; // nValue = Ausgangswert - nMin
-        bool    bDflt;  // Ist Default
+        sal_Int32    nValue; // nValue = output value - nMin
+        bool    bDflt;  // is default
     };
-    sal_Int32    nMin;   // Minimum des Bereiches
-    sal_Int32    nMax;   // Maximum des Bereiches
+    sal_Int32    nMin;   // range minimum value
+    sal_Int32    nMax;   // range maximum value
     sal_uInt32  nSize;
 public:
                     RscLongRange( Atom nId, sal_uInt32 nTypId );
     virtual RSCCLASS_TYPE   GetClassType() const SAL_OVERRIDE;
     RSCINST         Create( RSCINST * pInst, const RSCINST & rDfltInst, bool ) SAL_OVERRIDE;
-                    // Der zulaessige Bereich wird gesetzt
+                    // sets the alloed range
     ERRTYPE         SetRange( sal_Int32 nMinimum, sal_Int32 nMaximum );
-                    // Gibt die Groesse der Klasse in Bytes
+                    // returns the class size in bytes
     sal_uInt32      Size() SAL_OVERRIDE { return nSize; }
-                    // Eine Zuweisung an eine Variable
+                    // an assignment to a variable
     virtual void    SetToDefault( const RSCINST & rInst ) SAL_OVERRIDE
                         {
                             reinterpret_cast<RscLongRangeInst*>(rInst.pData)->bDflt = true;
@@ -90,7 +90,7 @@ public:
                         {
                             return reinterpret_cast<RscLongRangeInst*>(rInst.pData)->bDflt;
                         };
-                    // Als Default setzen
+                    // sets as default
     bool            IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) SAL_OVERRIDE;
     ERRTYPE         SetNumber( const RSCINST &, sal_Int32 ) SAL_OVERRIDE;
     ERRTYPE         GetNumber( const RSCINST &, sal_Int32 * ) SAL_OVERRIDE;
@@ -114,12 +114,12 @@ class RscIdRange : public RscTop
 {
     sal_uInt32  nSize;
 protected:
-    sal_Int32    nMin;   // Minimum des Bereiches
-    sal_Int32    nMax;   // Maximum des Bereiches
+    sal_Int32    nMin;   // range minimum value
+    sal_Int32    nMax;   // range maximum value
 public:
                     RscIdRange( Atom nId, sal_uInt32 nTypId );
     virtual RSCCLASS_TYPE   GetClassType() const SAL_OVERRIDE;
-                    // Der zulaessige Bereich wird gesetzt
+                    // sets the allowed range
     ERRTYPE         SetRange( sal_Int32 nMinimum, sal_Int32 nMaximum )
                         {
                             nMin = nMinimum;
@@ -135,10 +135,10 @@ public:
                         }
     bool            IsDefault( const RSCINST & rInst) SAL_OVERRIDE
                         {
-                            //cUnused wird fuer Defaultkennung verwendet
+                            //cUnused is used as default identifier
                             return reinterpret_cast<RscId*>(rInst.pData)->aExp.cUnused;
                         }
-                    // Als Default setzen
+                    // sets as default
     bool            IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) SAL_OVERRIDE;
     ERRTYPE         SetNumber( const RSCINST &, sal_Int32 ) SAL_OVERRIDE;
     ERRTYPE         GetNumber( const RSCINST &, sal_Int32 * ) SAL_OVERRIDE;
diff --git a/rsc/inc/rscrsc.hxx b/rsc/inc/rscrsc.hxx
index a52e3ab..2be7616 100644
--- a/rsc/inc/rscrsc.hxx
+++ b/rsc/inc/rscrsc.hxx
@@ -35,11 +35,11 @@ class RscCmdLine
 
 public:
 
-    RscStrList          aInputList;     // Liste der Quelldateien
-    OString        aPath;          // Liste der Pfade
+    RscStrList          aInputList;     // source file list
+    OString        aPath;          // path list
     RSCBYTEORDER_TYPE   nByteOrder;
-    unsigned short      nCommands;      // Steuerbits
-    OString        aOutputSrs;     // Name der Srs-Ausgabedatei
+    unsigned short      nCommands;      // command bits
+    OString        aOutputSrs;     // Srs output file name
     OString        aILDir;
 
     struct OutputFile
@@ -78,17 +78,17 @@ private:
                                        const OUString& rSrsOutPath );
 
 public:
-    RscTypCont*     pTC;        // String und Id-Verwalter
-    RscCmdLine*     pCL;        // Kommandozeile
-    FILE *          fListing;   // Ausgabedatei fuer Listings
-    FILE *          fExitFile;  // bei Abbruch muss diese Datei geschlossen werden
+    RscTypCont*     pTC;        // string and id manager
+    RscCmdLine*     pCL;        // command line
+    FILE *          fListing;   // output file for listings
+    FILE *          fExitFile;  // when deconstructed, this file must be deleted
 
                     RscCompiler( RscCmdLine *, RscTypCont * );
                     ~RscCompiler();
 
     ERRTYPE         Start();
 
-                    // Include Statements lesen
+                    // read include statements
     ERRTYPE         IncludeParser( sal_uLong lFileKey );
     ERRTYPE         ParseOneFile( sal_uLong lFileKey, const RscCmdLine::OutputFile* pOutputFile, const WriteRcContext* pContext );
     ERRTYPE         Link();
diff --git a/rsc/inc/rscstr.hxx b/rsc/inc/rscstr.hxx
index e359d8e..3244023 100644
--- a/rsc/inc/rscstr.hxx
+++ b/rsc/inc/rscstr.hxx
@@ -29,9 +29,9 @@ class RscString : public RscTop
     RscTop * pRefClass;
     struct RscStringInst
     {
-        char *  pStr;   // Zeiger auf String
-        bool    bDflt;  // Ist Default
-        RscId   aRefId; // ReferenzName
+        char *  pStr;   // pointer to string
+        bool    bDflt;  // is default
+        RscId   aRefId; // reference name
     };
     sal_uInt32  nSize;
 public:
@@ -40,7 +40,7 @@ public:
 
     void            SetRefClass( RscTop * pClass ) { pRefClass = pClass; }
     RSCINST         Create( RSCINST * pInst, const RSCINST & rDfltInst, bool ) SAL_OVERRIDE;
-                    // Der zulaessige Bereich wird gesetzt
+                    // sets the allowed range
     void            Destroy( const RSCINST & rInst ) SAL_OVERRIDE;
     sal_uInt32      Size() SAL_OVERRIDE { return nSize; }
     void            SetToDefault( const RSCINST & rInst ) SAL_OVERRIDE
@@ -51,7 +51,7 @@ public:
                         {
                             return reinterpret_cast<RscStringInst*>(rInst.pData)->bDflt;
                         }
-                    // Als Default setzen
+                    // sets as default
     bool            IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) SAL_OVERRIDE;
     ERRTYPE         SetString( const RSCINST &, const char * pStr ) SAL_OVERRIDE;
     ERRTYPE         GetString( const RSCINST &, char ** ppStr ) SAL_OVERRIDE;
diff --git a/rsc/inc/rsctop.hxx b/rsc/inc/rsctop.hxx
index c385958..2deca69 100644
--- a/rsc/inc/rsctop.hxx
+++ b/rsc/inc/rsctop.hxx
@@ -31,7 +31,7 @@ typedef sal_uInt32 RSCVAR;
 #define VAR_NORC        0x0008
 #define VAR_SVDYNAMIC   0x0010
 #define VAR_NOENUM      0x0020
-#define VAR_EXTENDABLE  0x0040  /* Auch die Ableitung einer Klasse kann angegeben werden */
+#define VAR_EXTENDABLE  0x0040  /* class derivation can all be given */
 
 class RscTop : public RefNode
 {
@@ -45,16 +45,16 @@ protected:
                             RscTop * pSuperCl = NULL );
 
 public:
-         OString    aCallPar1;      // Klassenaufruf ohne Typen bis ResId
-         OString    aCallPar2;      // Klassenaufruf ohne Typen ab ResId
-         OString    aCallParType;   // Klassenaufruf mit Typen
+         OString    aCallPar1;      // class call without types until ResId
+         OString    aCallPar2;      // class call without types staring at ResId
+         OString    aCallParType;   // class call with types
 
             RscTop* GetSuperClass() const
                     { return pSuperClass; }
-                    // Gibt den Typidentifier zurueck
+                    // returns the type identifier
             sal_uInt32  GetTypId() const
                     { return nTypId; };
-                    // Gibt die Oberklasse zurueck
+                    // returns the super class
             bool    InHierarchy( RscTop * pClass );
             void    SetCallPar( const OString& rPar1, const OString& rPar2,
                                 const OString& rParType );
@@ -62,34 +62,34 @@ public:
     virtual RSCCLASS_TYPE GetClassType() const = 0;
             RSCINST GetDefault();
 
-                    // Vorbereitung auf den dtor aufruf
-                    // Da die Klassen gegenseitige Abhaengigkeiten
-                    // aufweisen koennen, kann man im dtor nicht davon
-                    // ausgehen, dass alle Klassenzeiger noch gueltig sind
+                    // preparation fro the destructor call
+                    // given that classes can have mutual dependencies,
+                    // we cannot assume in destructor that all class pointer
+                    // are still valid
     virtual void    Pre_dtor();
 
     virtual RscTop* GetTypeClass() const;
 
-                    // Gibt die Groesse der Klasse in Bytes
+                    // returns the class size in bytes
     virtual sal_uInt32  Size();
 
-                    // Gibt die Referenz zurueck
+                    // returns the reference
     virtual ERRTYPE GetRef( const RSCINST & rInst, RscId * );
 
-                    // Gibt die Referenz zurueck
+                    // sets the reference
     virtual ERRTYPE SetRef( const RSCINST & rInst, const RscId & rRefId );
 
-                    // Variable anlegen
+                    // sets the variable
     virtual ERRTYPE SetVariable( Atom nVarName, RscTop * pClass,
                                  RSCINST * pDflt = NULL,
                                  RSCVAR nVarType = 0, sal_uInt32 nMask = 0,
                                  Atom nDataBaseName = InvalidAtom );
 
-                    // Zaehlt alle Variablen auf
+                    // enumerate all variables
     virtual void    EnumVariables( void * pData, VarEnumCallbackProc );
 
-                    // Liefert Instanz der Variablen zurueck
-                    // pData, pClass im return koennen NULL sein
+                    // returns variable instance
+                    // returned pData, pClass may be NULL
     virtual RSCINST GetVariable( const RSCINST & rInst, Atom nVarName,
                                  const RSCINST & rInitInst,
                                  bool nInitDflt = false,
@@ -99,20 +99,20 @@ public:
     virtual RSCINST GetTupelVar( const RSCINST & rInst, sal_uInt32 nPos,
                                  const RSCINST & rInitInst );
 
-                    // Liefert Instanz aus einem Feld zurueck
-                    // pGetInst im return kann NULL sein
+                    // returns instance from a field
+                    // returned pGetInst may be NULL
     virtual ERRTYPE GetElement( const RSCINST & rInst, const RscId & rEleName,
                                 RscTop *pCreateClass, const RSCINST & rCreateInst,
                                 RSCINST * pGetInst );
 
-                    // Liefert Instanz aus einem Feld zurueck
-                    // pGetInst im return kann NULL sein
+                    // returns instance from a value
+                    // returnd pGetInst may be NULL
     virtual ERRTYPE GetValueEle( const RSCINST & rInst, sal_Int32 lValue,
                                 RscTop * pCreateClass,
                                 RSCINST * pGetInst );
 
-                    // Liefert Instanz aus einem Feld zurueck
-                    // pGetInst im return kann NULL sein
+                    // returns instance from an array
+                    // returnd pGetInst may be NULL
     virtual ERRTYPE GetArrayEle( const RSCINST & rInst, Atom nId,
                                 RscTop * pCreateClass,
                                 RSCINST * pGetInst );
@@ -120,35 +120,34 @@ public:
     virtual RSCINST SearchEle( const RSCINST & rInst, const RscId & rEleName,
                                RscTop * pClass );
 
-                    // Liefert Instanz an der Position zurueck
+                    // returns instance at the position
     virtual RSCINST GetPosEle( const RSCINST & rInst, sal_uInt32 nPos );
 
-                    // verschiebt eine Instanz
+                    // smove an instance
     virtual ERRTYPE MovePosEle( const RSCINST & rInst, sal_uInt32 nDestPos,
                                 sal_uInt32 nSourcePos );
 
-                    // aendert RscId an Position
+                    // changes RscId at position
     virtual ERRTYPE SetPosRscId( const RSCINST & rInst, sal_uInt32 nPos,
                                  const RscId & rRscId);
 
-                    // Liefert Information ueber Instanz
-                    // an der Position zurueck
+                    // returns instance information at position
     virtual SUBINFO_STRUCT GetInfoEle( const RSCINST & rInst, sal_uInt32 nPos );
 
-                    // Anzahl der Eintraege
+                    // number of entries
     virtual sal_uInt32 GetCount( const RSCINST & rInst );
 
-                    // Eine Zuweisung an eine Variable
+                    // an assignment to a variable
     virtual ERRTYPE SetNumber( const RSCINST & rInst, sal_Int32 lValue );
 
-                    // Eine Zuweisung an eine Variable
+                    // an assignment to a variable
     virtual ERRTYPE SetBool( const RSCINST & rInst, bool bValue );
 
-                    // Eine Zuweisung an eine Variable
+                    // an assignment to a variable
     virtual ERRTYPE SetConst( const RSCINST & rInst, Atom nValueId,
                               sal_Int32 nValue );
 
-                    // Eine Zuweisung an eine Variable
+                    // an assignment to a variable
     virtual ERRTYPE SetNotConst( const RSCINST & rInst, Atom nId );
 
     virtual ERRTYPE SetString( const RSCINST & rInst, const char * pStr );
@@ -164,25 +163,25 @@ public:
     virtual RSCINST Create( RSCINST * pInst,
                             const RSCINST & rDefInst, bool bOwnClass = false );
 
-                    // Instanz zerstoeren
+                    // detroys instance
     virtual void    Destroy( const RSCINST & rInst );
 
-                    // prueft auf konsistenz
+                    // checks consistency
     virtual bool    IsConsistent( const RSCINST & rInst );
 
-                    // Alles auf Default setzen
+                    // sets all default values
     virtual void    SetToDefault( const RSCINST & rInst );
 
-                    // Ist Eingabe = Default
+                    // wether input is equal to default
     virtual bool    IsDefault( const RSCINST & rInst );
 
-                    // Gleiche Werte auf Default setzen
+                    // sets value to default
     virtual bool    IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef );
 
-                    // Instanz auf Default setzen
+                    // sets intance to default
     virtual void    SetDefault( const RSCINST & rInst, Atom nVarId );
 
-                    // Default zu einer Variablen holen
+                    // returns a variable default
     virtual RSCINST GetDefault( Atom nVarId );
 
     virtual void    Delete( const RSCINST & rInst, RscTop * pClass,
@@ -190,8 +189,7 @@ public:
 
     virtual void    DeletePos( const RSCINST & rInst, sal_uInt32 nPos );
 
-                    // Schreibt den Kopf und das Ende einer Resource
-                    // Script Datei
+                    // writes header and footer of a resource script file
     virtual void    WriteSrcHeader( const RSCINST & rInst, FILE * fOutput,
                                     RscTypCont * pTC, sal_uInt32 nTab,
                                     const RscId & aId, const char * );
diff --git a/rsc/inc/rsctree.hxx b/rsc/inc/rsctree.hxx
index c8c6a0e..12ee456 100644
--- a/rsc/inc/rsctree.hxx
+++ b/rsc/inc/rsctree.hxx
@@ -30,16 +30,14 @@ protected:
 
 public:
 
-                         // Wandelt eine doppelt verkettete Liste in
-                         // einen binaeren Baum um
+                         // convert a double linked list into a binary tree
             BiNode *    ChangeDLListBTree( BiNode * pList );
 
                         BiNode();
     virtual             ~BiNode();
 
 
-                        // Wandelt einen binaeren Baum in eine doppelt
-                        // verkettete Liste um
+                        // convert a binary tree in a double linked list
                         BiNode* ChangeBTreeDLList();
 
             BiNode *    Left() const { return pLeft  ; }
@@ -52,7 +50,7 @@ class NameNode : public BiNode
     void                SubOrderTree( NameNode * pOrderNode );
 
 protected:
-                        // pCmp ist Zeiger auf Namen
+                        // pCmp is a pointer to name
             NameNode*   Search( const void * pCmp ) const;
 
 public:
@@ -65,7 +63,7 @@ public:
     virtual COMPARE     Compare( const NameNode * ) const;
     virtual COMPARE     Compare( const void * ) const;
             NameNode*   SearchParent( const NameNode * ) const;
-                        // return ist neue Root
+                        // returns the new root
             NameNode*   Remove( NameNode * );
             void        OrderTree();
 };


More information about the Libreoffice-commits mailing list