[Libreoffice-commits] .: sw/inc

Christoph Herzog cherzog at kemper.freedesktop.org
Sun Feb 20 17:26:50 PST 2011


 sw/inc/ndindex.hxx |   24 ++++----
 sw/inc/ndnotxt.hxx |   16 ++---
 sw/inc/ndole.hxx   |   27 ++++-----
 sw/inc/ndtxt.hxx   |   64 +++++++++++------------
 sw/inc/ndtyp.hxx   |   14 ++---
 sw/inc/newhdl.hxx  |    2 
 sw/inc/node.hxx    |  144 ++++++++++++++++++++++++-----------------------------
 sw/inc/numrule.hxx |   30 +++++------
 8 files changed, 151 insertions(+), 170 deletions(-)

New commits:
commit 991b64c51aec074361b19b21221f9176cab12739
Author: Christoph Herzog <rhogez at googlemail.com>
Date:   Mon Feb 21 02:20:33 2011 +0100

    Translation of German comments.

diff --git a/sw/inc/ndindex.hxx b/sw/inc/ndindex.hxx
index a4b256e..d9b7c4a 100644
--- a/sw/inc/ndindex.hxx
+++ b/sw/inc/ndindex.hxx
@@ -51,9 +51,9 @@ class SW_DLLPUBLIC SwNodeIndex
     SwNode* pNd;
     SwNodeIndex *pNext, *pPrev;
 
-    void Remove();					// Ausketten
+    void Remove();
 
-    // diese sind nicht erlaubt!
+    // These are not allowed!
     SwNodeIndex( SwNodes& rNds, USHORT nIdx );
     SwNodeIndex( SwNodes& rNds, int nIdx );
 
@@ -91,23 +91,22 @@ public:
            SwNodeIndex& operator=( const SwNodeIndex& );
            SwNodeIndex& operator=( const SwNode& );
 
-    // gebe den Wert vom Index als ULONG zurueck
+    // Return value of index as ULONG.
     inline ULONG GetIndex() const;
 
-    // ermoeglicht Zuweisungen ohne Erzeugen eines temporaeren Objektes
+    // Enables assignments without creation of a temporary object.
     SwNodeIndex& Assign( SwNodes& rNds, ULONG );
     SwNodeIndex& Assign( const SwNode& rNd, long nOffset = 0 );
 
-        // Herausgabe des Pointers auf das NodesArray,
+    // Gets pointer on NodesArray.
     inline const SwNodes& GetNodes() const;
     inline	  	 SwNodes& GetNodes();
 
     SwNode& GetNode() const { return *pNd; }
 };
 
-/*
- * SwRange
- */
+// SwRange
+
 class SW_DLLPUBLIC SwNodeRange
 {
 public:
@@ -127,9 +126,8 @@ public:
 
 
 
-// fuer die inlines wird aber der node.hxx benoetigt. Dieses braucht aber
-// auch wieder dieses. Also alle Inlines, die auf pNd zugreifen werden
-// hier implementiert.
+// For inlines node.hxx is needed which in turn needs this one.
+// Therefore all inlines accessing pNd are implemented here.
 
 inline ULONG SwNodeIndex::GetIndex() const
 {
@@ -238,8 +236,8 @@ inline SwNodeIndex& SwNodeIndex::operator=( ULONG nWert )
 
 
 
-// impl. steht im ndindex.hxx - sollte moeglichst bald auf die
-// neue Schnittstelle angepasst werden
+// Implementation in ndindex.hxx - should be adapted to the
+// new interface as soon as possible.
 inline SwNode* SwNodes::operator[]( const SwNodeIndex& rIdx ) const
 {
     return &rIdx.GetNode();
diff --git a/sw/inc/ndnotxt.hxx b/sw/inc/ndnotxt.hxx
index d072628..e0a34db 100644
--- a/sw/inc/ndnotxt.hxx
+++ b/sw/inc/ndnotxt.hxx
@@ -32,28 +32,26 @@
 
 class PolyPolygon;
 
-// --------------------
 // SwNoTxtNode
-// --------------------
 
 class SW_DLLPUBLIC SwNoTxtNode : public SwCntntNode
 {
     friend class SwNodes;
     friend class SwNoTxtFrm;
 
-    PolyPolygon *pContour;		// Polygon fuer Konturumlauf
+    PolyPolygon *pContour;
     BOOL bAutomaticContour : 1; // automatic contour polygon, not manipulated
     BOOL bContourMapModeValid : 1; // contour map mode is not the graphics's
                                    // prefered map mode, but either
                                       // MM100 or or pixel
     BOOL bPixelContour : 1;		// contour map mode is invalid and pixel.
 
-    // erzeugt fuer alle Ableitungen einen AttrSet mit Bereichen
-    // fuer Frame- und Grafik-Attributen (wird nur vom SwCntntNode gerufen)
+    // Creates for all derivations an AttrSet with ranges for frame- and
+    // graphics-attributes (only called by SwCntntNode).
     virtual void NewAttrSet( SwAttrPool& );
 
-    SwNoTxtNode( const SwNoTxtNode& );				//nicht erlaubt
-    SwNoTxtNode &operator=( const SwNoTxtNode& );	//nicht erlaubt
+    SwNoTxtNode( const SwNoTxtNode& );				// Not allowed.
+    SwNoTxtNode &operator=( const SwNoTxtNode& );	// Not allowed.
 
 protected:
     SwNoTxtNode( const SwNodeIndex &rWhere, const BYTE nNdType,
@@ -99,11 +97,11 @@ public:
 
     BOOL               IsContourMapModeValid() const { return bContourMapModeValid; }
 
-    //Besorgt die Graphic, mit SwapIn fuer GrfNode, per GetData fuer OLE.
+    // Obtains the graphic with SwapIn for GrfNode via GetData for OLE.
     Graphic GetGraphic() const;
 };
 
-// Inline Metoden aus Node.hxx - erst hier ist der TxtNode bekannt !!
+// Inline methods from Node.hxx - we know TxtNode only here!!
 inline SwNoTxtNode *SwNode::GetNoTxtNode()
 {
     return ND_NOTXTNODE & nNodeType ? (SwNoTxtNode*)this : 0;
diff --git a/sw/inc/ndole.hxx b/sw/inc/ndole.hxx
index 82ac812..b7ea60c 100644
--- a/sw/inc/ndole.hxx
+++ b/sw/inc/ndole.hxx
@@ -45,12 +45,12 @@ class SW_DLLPUBLIC SwOLEObj
     const SwOLENode* pOLENd;
     SwOLEListener_Impl* pListener;
 
-    //Entweder Ref oder Name sind bekannt, wenn nur der Name bekannt ist, wird
-    //dir Ref bei Anforderung durch GetOleRef() vom Sfx besorgt.
+    // Either ref or name are known. If only name is known, ref is obtained
+    // on demand by GetOleRef() from Sfx.
     svt::EmbeddedObjectRef xOLERef;
     String aName;
 
-    SwOLEObj( const SwOLEObj& rObj );	//nicht erlaubt.
+    SwOLEObj( const SwOLEObj& rObj );	// Not allowed.
     SwOLEObj();
 
     void SetNode( SwOLENode* pNode );
@@ -71,24 +71,22 @@ public:
     com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > GetOleRef();
     svt::EmbeddedObjectRef& GetObject();
     const String& GetCurrentPersistName() const { return aName; }
-    BOOL IsOleRef() const;	//Damit das Objekt nicht unnoetig geladen werden muss.
+    BOOL IsOleRef() const;	// To avoid unneccessary loading of object.
 #endif
 };
 
 
-// --------------------
+
 // SwOLENode
-// --------------------
 
 class SW_DLLPUBLIC SwOLENode: public SwNoTxtNode
 {
     friend class SwNodes;
     mutable SwOLEObj aOLEObj;
     Graphic*    pGraphic;
-    String sChartTblName;		// bei Chart Objecten: Name der ref. Tabelle
-    BOOL   bOLESizeInvalid;		//Soll beim SwDoc::PrtOLENotify beruecksichtig
-                                //werden (zum Beispiel kopiert). Ist nicht
-                                //Persistent.
+    String sChartTblName;		// with chart objects: name of referenced table.
+    BOOL   bOLESizeInvalid;		// Should be considered at SwDoc::PrtOLENotify
+                                // (e.g. copied). Is not persistent.
 
     SwEmbedObjectLink*	mpObjectLink;
     String maLinkURL;
@@ -104,7 +102,7 @@ class SW_DLLPUBLIC SwOLENode: public SwNoTxtNode
                 SwGrfFmtColl *pGrfColl,
                 SwAttrSet* pAutoAttr = 0 );
 
-    // aOLEObj besitzt einen privaten Copy-CTOR, wir brauchen auch einen:
+    // aOLEObj has a private Copy-Ctor. We need one too:
     SwOLENode( const SwOLENode & );
 
     using SwNoTxtNode::GetGraphic;
@@ -115,7 +113,8 @@ public:
     ~SwOLENode();
 
     virtual SwCntntNode *SplitCntntNode( const SwPosition & );
-        // steht in ndcopy.cxx
+
+    // Is in ndcopy.cxx.
     virtual SwCntntNode* MakeCopy( SwDoc*, const SwNodeIndex& ) const;
 
     virtual Size GetTwipSize() const;
@@ -136,7 +135,7 @@ public:
     sal_Int64 GetAspect() const { return aOLEObj.GetObject().GetViewAspect(); }
     void SetAspect( sal_Int64 nAspect) { aOLEObj.GetObject().SetViewAspect( nAspect ); }
 
-    // OLE-Object aus dem "Speicher" entfernen
+    // Remove OLE-object from "memory".
     // inline void Unload() { aOLEObj.Unload(); }
     String GetDescription() const { return aOLEObj.GetDescription(); }
 
@@ -157,7 +156,7 @@ public:
 };
 
 
-// Inline Metoden aus Node.hxx - erst hier ist der TxtNode bekannt !!
+// Inline methods from Node.hxx - we know TxtNode only here!!
 inline SwOLENode *SwNode::GetOLENode()
 {
      return ND_OLENODE == nNodeType ? (SwOLENode*)this : 0;
diff --git a/sw/inc/ndtxt.hxx b/sw/inc/ndtxt.hxx
index 922e316..41bcd89 100644
--- a/sw/inc/ndtxt.hxx
+++ b/sw/inc/ndtxt.hxx
@@ -56,14 +56,14 @@ namespace utl {
 
 class SwTxtFmtColl;
 class SwCntntFrm;
-class SwTxtFld; 		 // Fuer GetTxtFld()
+class SwTxtFld; 		 // For GetTxtFld().
 class SfxItemSet;
 class SwUndoTransliterate;
 
 struct SwSpellArgs;             // for Spell(), splargs.hxx
 struct SwConversionArgs;        // for Convert(), splargs.hxx
 class SwInterHyphInfo;          // for Hyphenate(), splargs.hxx
-class SwWrongList;      // fuer OnlineSpelling
+class SwWrongList;      // For OnlineSpelling.
 class SwGrammarMarkUp;
 class OutputDevice;
 class SwScriptInfo;
@@ -79,23 +79,21 @@ namespace com { namespace sun { namespace star {
 
 typedef std::set< xub_StrLen > SwSoftPageBreakList;
 
-// --------------------
 // SwTxtNode
-// --------------------
 class SW_DLLPUBLIC SwTxtNode: public SwCntntNode, public ::sfx2::Metadatable
 {
 
-    // fuer das Erzeugen des ersten TextNode
-    friend class SwDoc; 		// CTOR und AppendTxtNode()
+    // For creating the first TextNode.
+    friend class SwDoc; 		// CTOR and AppendTxtNode()
     friend class SwNodes;
     friend class SwTxtFrm;
     friend class SwScriptInfo;
 
-    //Kann 0 sein, nur dann nicht 0 wenn harte Attribute drin stehen.
-    //Also niemals direkt zugreifen!
+    // May be 0. It is only then not 0 if it contains hard attributes.
+    // Therefore: never access directly!
     SwpHints    *m_pSwpHints;
 
-    mutable SwNodeNum* mpNodeNum;  // Numerierung fuer diesen Absatz
+    mutable SwNodeNum* mpNodeNum;  // Numbering for this paragraph.
 
     XubString   m_Text;
 
@@ -131,7 +129,7 @@ class SW_DLLPUBLIC SwTxtNode: public SwCntntNode, public ::sfx2::Metadatable
     SW_DLLPRIVATE SwTxtNode( const SwNodeIndex &rWhere, SwTxtFmtColl *pTxtColl,
                              const SfxItemSet* pAutoAttr = 0 );
 
-    // Kopiert die Attribute an nStart nach pDest.
+    // Copies the attributes at nStart to pDest.
     SW_DLLPRIVATE void CopyAttr( SwTxtNode *pDest, const xub_StrLen nStart, const xub_StrLen nOldPos);
 
     SW_DLLPRIVATE SwTxtNode* _MakeNewTxtNode( const SwNodeIndex&, BOOL bNext = TRUE,
@@ -142,10 +140,10 @@ class SW_DLLPUBLIC SwTxtNode: public SwCntntNode, public ::sfx2::Metadatable
           const SwIndex & rStart, /*const*/ xub_StrLen nLen,
           const bool bUpdate = true );
 
-    // Verlagere alles umfassende harte Attribute in den AttrSet des Absatzes
-    SW_DLLPRIVATE void MoveTxtAttr_To_AttrSet();  // wird von SplitNode gerufen.
+    // Move all comprising hard attributes to the AttrSet of the paragraph.
+    SW_DLLPRIVATE void MoveTxtAttr_To_AttrSet();  // Called by SplitNode.
 
-    // lege den spz. AttrSet an
+    // Create the specific AttrSet.
     SW_DLLPRIVATE virtual void NewAttrSet( SwAttrPool& );
 
     SW_DLLPRIVATE void Replace0xFF( XubString& rTxt, xub_StrLen& rTxtStt,
@@ -232,7 +230,7 @@ public:
 
     virtual xub_StrLen Len() const;
 
-    // steht in itratr
+    // Is in itratr.
     void GetMinMaxSize( ULONG nIndex, ULONG& rMin, ULONG &rMax, ULONG &rAbs,
                         OutputDevice* pOut = 0 ) const;
 
@@ -271,7 +269,7 @@ public:
                     const SfxItemSet* pSet = 0, BOOL bInclRefToxMark = FALSE );
     void	GCAttr();
 
-    // loesche das Text-Attribut (muss beim Pool abgemeldet werden!)
+    // Delete text attribute (needs to be deregistered at Pool!)
     void 	DestroyAttr( SwTxtAttr* pAttr );
 
     // delete all attributes from SwpHintsArray.
@@ -286,12 +284,12 @@ public:
                   const xub_StrLen nStart, const xub_StrLen nEnd,
                   const SetAttrMode nMode = nsSetAttrMode::SETATTR_DEFAULT );
 
-    // setze diese Attribute am TextNode. Wird der gesamte Bereich umspannt,
-    // dann setze sie nur im AutoAttrSet (SwCntntNode:: SetAttr)
+    // Set these attributes at TextNode. If the whole range is comprised
+    // set them only in AutoAttrSet (SwCntntNode::SetAttr).
     BOOL SetAttr( const SfxItemSet& rSet,
                   xub_StrLen nStt, xub_StrLen nEnd,
                   const SetAttrMode nMode = nsSetAttrMode::SETATTR_DEFAULT );
-    // erfrage die Attribute vom TextNode ueber den Bereich
+    // Query the attributes of textnode over the range.
     // Introduce 4th optional parameter <bMergeIndentValuesOfNumRule>.
     // If <bMergeIndentValuesOfNumRule> == TRUE, the indent attributes of
     // the corresponding list level of an applied list style is merged into
@@ -303,7 +301,7 @@ public:
                   BOOL bGetFromChrFmt = TRUE,
                   const bool bMergeIndentValuesOfNumRule = false ) const;
 
-    // uebertrage Attribute eines AttrSets ( AutoFmt ) in das SwpHintsArray
+    // Convey attributes of an AttrSet (AutoFmt) to SwpHintsArray.
     void FmtToTxtAttr( SwTxtNode* pNd );
 
     /// delete all attributes of type nWhich at nStart (opt. end nEnd)
@@ -312,7 +310,7 @@ public:
     /// delete the attribute pTxtAttr
     void DeleteAttribute ( SwTxtAttr * const pTxtAttr );
 
-    // Aktionen auf Text und Attributen
+    // Actions on text and attributes.
     // introduce optional parameter to control, if all attributes have to be copied.
     void CopyText( SwTxtNode * const pDest,
                const SwIndex &rStart,
@@ -335,7 +333,7 @@ public:
     void ReplaceTextOnly( xub_StrLen nPos, xub_StrLen nLen, const XubString& rText,
                     const ::com::sun::star::uno::Sequence<sal_Int32>& rOffsets );
 
-    // virtuelle Methoden aus dem CntntNode
+    // Virtual methods from CntntNode.
     virtual SwCntntFrm *MakeFrm();
     virtual SwCntntNode *SplitCntntNode( const SwPosition & );
     virtual SwCntntNode *JoinNext();
@@ -343,7 +341,7 @@ public:
 
     SwCntntNode *AppendNode( const SwPosition & );
 
-    // setze ggf. das DontExpand-Flag an INet bzw. Zeichenvorlagen
+    // When appropriate set DontExpand-flag at INet or character styles respectively.
     BOOL DontExpandFmt( const SwIndex& rIdx, bool bFlag = true,
                         BOOL bFmtToTxtAttributes = TRUE );
 
@@ -382,7 +380,6 @@ public:
     SwTxtAttr *GetTxtAttrForCharAt( const xub_StrLen nIndex,
                        const RES_TXTATR nWhich = RES_TXTATR_END ) const;
 
-    // Aktuelles Wort zurueckliefern
     XubString GetCurWord(xub_StrLen) const;
     USHORT Spell(SwSpellArgs*);
     USHORT Convert( SwConversionArgs & );
@@ -392,9 +389,9 @@ public:
     void _ChgTxtCollUpdateNum( const SwTxtFmtColl* pOld,
                                 const SwTxtFmtColl* pNew );
 
-    // kopiere die Collection mit allen Autoformaten zum Dest-Node
-    // dieser kann auch in einem anderen Dokument stehen!
-    // (Methode steht im ndcopy.cxx!!)
+    // Copy collection with all auto formats to dest-node.
+    // The latter might be in an other document!
+    // (Method in ndcopy.cxx!!).
     void CopyCollFmt( SwTxtNode& rDestNd );
 
     //const SwNodeNum* _GetNodeNum() const { return pNdNum; }
@@ -673,10 +670,10 @@ public:
                     USHORT nScript = 0 ) const;
 
     // in ndcopy.cxx
-    BOOL IsSymbol( const xub_StrLen nBegin ) const;	// steht in itratr.cxx
+    BOOL IsSymbol( const xub_StrLen nBegin ) const;	// In itratr.cxx.
     virtual SwCntntNode* MakeCopy( SwDoc*, const SwNodeIndex& ) const;
 
-    // interaktive Trennung: wir finden den TxtFrm und rufen sein CalcHyph
+    // Interactive hyphenation: we find TxtFrm and call its CalcHyph.
     BOOL Hyphenate( SwInterHyphInfo &rHyphInf );
     void DelSoftHyph( const xub_StrLen nStart, const xub_StrLen nEnd );
 
@@ -703,8 +700,9 @@ public:
                           xub_StrLen nLen = STRING_LEN,
                           BOOL bExpandFlds = FALSE,
                           BOOL bWithNum = FALSE ) const;
-    //Liefert fuer die Initalfunktion tatsaechliche Anzahl der Initialzeichen
-    //bei nWishLen == 0 die des ersten Wortes
+
+    // Returns actual count of initial chars for initial-function.
+    // If nWishLen == 0 that of first word.
     USHORT GetDropLen( USHORT nWishLen) const;
 
     // Passes back info needed on the dropcap dimensions
@@ -744,7 +742,7 @@ public:
 
     TYPEINFO();	// fuer rtti
 
-    // fuers Umhaengen der TxtFmtCollections (Outline-Nummerierung!!)
+    // For re-arranging TxtFmtCollections (outline-numbering!!).
     virtual void Modify( SfxPoolItem*, SfxPoolItem* );
 
     // override SwIndexReg
@@ -840,9 +838,9 @@ inline SwTxtFmtColl* SwTxtNode::GetTxtColl() const
     return static_cast<SwTxtFmtColl*>(const_cast<SwModify*>(GetRegisteredIn()));
 }
 
-// fuer den IBM-Compiler nicht inlinen wg. 42876
+// For IBM-Compiler do not inline this because of 42876
 #ifndef ICC
-// Inline Metoden aus Node.hxx - erst hier ist der TxtNode bekannt !!
+// Inline methods from Node.hxx - we know TxtNode only now!!
 inline       SwTxtNode   *SwNode::GetTxtNode()
 {
      return ND_TEXTNODE == nNodeType ? static_cast<SwTxtNode*>(this) : 0;
diff --git a/sw/inc/ndtyp.hxx b/sw/inc/ndtyp.hxx
index bad03ae..27ea841 100644
--- a/sw/inc/ndtyp.hxx
+++ b/sw/inc/ndtyp.hxx
@@ -31,8 +31,8 @@
 
 #include <tools/solar.h>
 
-// Ids fuer die verschiedenden Nodes; in der Basisklasse steht der Member,
-// der angibt, um was fuer einen es sich handelt
+// IDs for different nodes. The member indicating the type of node is
+// in base class.
 const BYTE ND_ENDNODE		= 0x01;
 const BYTE ND_STARTNODE		= 0x02;
 const BYTE ND_TABLENODE		= 0x06;
@@ -40,15 +40,15 @@ const BYTE ND_TEXTNODE 		= 0x08;
 const BYTE ND_GRFNODE 		= 0x10;
 const BYTE ND_OLENODE 		= 0x20;
 
-const BYTE ND_CONTENTNODE	= 0x38;	// ContentNode (eines von den 3 Bits)
-const BYTE ND_NOTXTNODE		= 0x30;	// NoTxtNode (eines von den 2 Bits)
+const BYTE ND_CONTENTNODE	= 0x38;	// ContentNode (one of the 3 bits).
+const BYTE ND_NOTXTNODE		= 0x30;	// NoTxtNode (one of the 2 bits).
 
 const BYTE ND_SECTIONNODE   = 0x42;
-// nur fuer internen Gebrauch!!
+// For internal use only!!
 const BYTE ND_SECTIONDUMMY  = 0x40; //(ND_SECTIONNODE & ~ND_STARTNODE);
 
-// spezielle Types der StartNodes, die keine Ableitungen sind, aber
-// "Bereiche" zusammenhalten.
+// Special types of StartNodes that are not derivations but keep
+// "sections" together.
 enum SwStartNodeType
 {
     SwNormalStartNode = 0,
diff --git a/sw/inc/newhdl.hxx b/sw/inc/newhdl.hxx
index 0a411d8..ccf89e1 100644
--- a/sw/inc/newhdl.hxx
+++ b/sw/inc/newhdl.hxx
@@ -30,7 +30,7 @@
 
 #include <tools/link.hxx>
 
-#include "errhdl.hxx"		// hier kommt auch swtypes rein, was ich brauche
+#include "errhdl.hxx"   // here swtypes comes in (need that).
 
 // ----------------------------------------------------------------------------
 
diff --git a/sw/inc/node.hxx b/sw/inc/node.hxx
index 87fc228..44b6d1c 100644
--- a/sw/inc/node.hxx
+++ b/sw/inc/node.hxx
@@ -98,10 +98,9 @@ class SW_DLLPUBLIC SwNode : private /* public*/ BigPtrEntry
 
     BYTE nNodeType;
 
-    // fuer Textnodes: Stufungslevel der Autoformatierung. Ist erstmal hier
-    //					gelandet, weil noch Bits frei sind
+    // For text nodes: level of auto format. Was put here because we had still free bits.
     BYTE nAFmtNumLvl : 3;
-    BOOL bSetNumLSpace : 1;			// fuer Numerierung: TRUE Einzug setzen
+    BOOL bSetNumLSpace : 1;			// For numbering: TRUE: set indent.
     BOOL bIgnoreDontExpand : 1;		// for Text Attributes - ignore the flag
 
 protected:
@@ -184,13 +183,13 @@ public:
      */
     BOOL IsInRedlines() const;
 
-    // suche den TabellenNode, in dem dieser steht. Wenn in keiner
-    // Tabelle wird 0 returnt.
+    // Search table node, in which it is. If it is in no table
+    // return 0.
                     SwTableNode *FindTableNode();
     inline const  SwTableNode *FindTableNode() const;
 
-    // suche den SectionNode, in dem dieser steht. Wenn es in keiner
-    // Section steht wird 0 returnt.
+    // Search section node, in which it is. If it is in no section
+    // return 0.
                     SwSectionNode *FindSectionNode();
     inline    const   SwSectionNode *FindSectionNode() const;
 
@@ -208,7 +207,7 @@ public:
     const SwStartNode* FindFooterStartNode() const
                         { return FindSttNodeByType( SwFooterStartNode ); }
 
-        // in welchem Nodes-Array/Doc steht der Node ?
+    // Node is in which nodes-array/doc?
     inline          SwNodes& GetNodes();
     inline const  SwNodes& GetNodes() const;
     inline            SwDoc* GetDoc();
@@ -271,26 +270,24 @@ public:
     */
     IDocumentListItems& getIDocumentListItems();
 
-    // liegt der Node im Sichtbarenbereich der Shell ?
+    // Is node in the visible area of the Shell?
     BOOL IsInVisibleArea( ViewShell* pSh = 0 ) const;
-    // befindet sich der Node in einem geschuetzten Bereich?
+    // Is node in an protected area?
     BOOL IsInProtectSect() const;
-    // befindet sich der Node in irgendetwas geschuetzten ?
-    // (Bereich/Rahmen/Tabellenzellen/... incl. des Ankers bei
-    //	Rahmen/Fussnoten/..)
+    //	Is node in something that is protected (range, frame, 
+    //	table cells ...	including anchor in case of frames or footnotes)?
     BOOL IsProtect() const;
-    // suche den PageDesc, mit dem dieser Node formatiert ist. Wenn das
-    // Layout vorhanden ist wird ueber das gesucht, ansonsten gibt es nur
-    // die harte Tour ueber die Nodes nach vorne suchen!!
+
+    // Search PageDesc with which this node is formated. If layout is existent
+    // search over layout, else only the hard way is left: search over the nodes
+    // to the front!!
 
     const SwPageDesc* FindPageDesc( BOOL bCalcLay, sal_uInt32* pPgDescNdIdx = 0 ) const;
 
-    // falls der Node in einem Fly steht, dann wird das entsprechende Format
-    // returnt
+    // If node is in a fly return the respective format.
     SwFrmFmt* GetFlyFmt() const;
 
-    // falls der Node in einer Tabelle steht, dann wird die entsprechende
-    // TabellenBox returnt
+    // If node is in a table return the respective table box.
     SwTableBox* GetTblBox() const;
 
     inline ULONG GetIndex() const { return GetPos(); }
@@ -300,7 +297,7 @@ public:
     BYTE HasPrevNextLayNode() const;
 
 private:
-    // privater Constructor, weil nie kopiert werden darf !!
+    // Private constructor because copying is never allowed!!
     SwNode( const SwNode & rNodes );
     SwNode & operator= ( const SwNode & rNodes );
 };
@@ -329,11 +326,11 @@ public:
 
     SwStartNodeType GetStartNodeType() const 		{ return eSttNdTyp; }
 
-    // an alle ContentNodes der Section das ChkCondColl rufen
+    // Call ChkCondcoll to all ContentNodes of section.
     void CheckSectionCondColl() const;
 
 private:
-    // privater Constructor, weil nie kopiert werden darf !!
+    // Private constructor because copying is never allowed!!
     SwStartNode( const SwStartNode & rNode );
     SwStartNode & operator= ( const SwStartNode & rNode );
 };
@@ -345,8 +342,8 @@ private:
 class SwEndNode : public SwNode
 {
     friend class SwNodes;
-    friend class SwTableNode;		// um seinen EndNode anlegen zukoennen
-    friend class SwSectionNode;		// um seinen EndNode anlegen zukoennen
+    friend class SwTableNode;		// To enable creation of its EndNote.
+    friend class SwSectionNode;		// To enable creation of its EndNote.
 
     // for the initial StartNode
     SwEndNode( SwNodes& rNodes, ULONG nPos, SwStartNode& rSttNd );
@@ -357,7 +354,7 @@ protected:
     DECL_FIXEDMEMPOOL_NEWDEL(SwEndNode)
 
 private:
-    // privater Constructor, weil nie kopiert werden darf !!
+    // Private constructor because copying is never allowed!!
     SwEndNode( const SwEndNode & rNode );
     SwEndNode & operator= ( const SwEndNode & rNode );
 };
@@ -379,11 +376,11 @@ protected:
                 SwFmtColl *pFmtColl );
     virtual ~SwCntntNode();
 
-    // Attribut-Set fuer alle AUTO-Attribute eines CntntNodes
-    //	( z.B: TxtNode oder NoTxtNode
+    //	Attribute-set for all auto attributes of a CntntNode.
+    //	(e.g. TxtNode or NoTxtNode).
     boost::shared_ptr<const SfxItemSet> mpAttrSet;
 
-    // lasse von den entsprechenden Nodes die spz. AttrSets anlegen
+    // Make respective nodes create the specific AttrSets.
     virtual void NewAttrSet( SwAttrPool& ) = 0;
 
     // There some functions that like to remove items from the internal
@@ -391,7 +388,7 @@ protected:
     USHORT ClearItemsFromAttrSet( const std::vector<USHORT>& rWhichIds );
 
 public:
-    TYPEINFO();		//Bereits in Basisklasse Client drin.
+    TYPEINFO();		//Already contained in base class Client.
 
     virtual void Modify( SfxPoolItem *pOld, SfxPoolItem *pNew);
 
@@ -399,8 +396,8 @@ public:
     virtual SwCntntNode *SplitCntntNode(const SwPosition & ) = 0;
     virtual SwCntntNode *JoinNext();
     virtual SwCntntNode *JoinPrev();
-    // koennen 2 Nodes zusammengefasst werden ?
-    // in pIdx kann die 2. Position returnt werden.
+    // Is it possible to join two nodes?
+    // In pIdx the second position can be returned.
     int CanJoinNext( SwNodeIndex* pIdx =0 ) const;
     int CanJoinPrev( SwNodeIndex* pIdx =0 ) const;
 
@@ -413,42 +410,35 @@ public:
     SwCntntFrm *GetFrm( const Point* pDocPos = 0,
                         const SwPosition *pPos = 0,
                         const BOOL bCalcFrm = TRUE ) const;
-    // Gibt die tatsaechlcheGroesse des Frames zurueck bzw. ein leeres
-    // Rechteck, wenn kein Layout existiert.
-    // Wird fuer die Export Filter benoetigt.
+    // Returns the real size of the frame or an empty rectangle if
+    // no layout exists. Needed for export filters.
     SwRect FindLayoutRect( const BOOL bPrtArea = FALSE,
                             const Point* pPoint = 0,
                             const BOOL bCalcFrm = FALSE  ) const;
     SwRect FindPageFrmRect( const BOOL bPrtArea = FALSE,
                             const Point* pPoint = 0,
                             const BOOL bCalcFrm = FALSE  ) const;
-    /*
-     * Methode erzeugt fuer den angegebenen Node alle Ansichten vom
-     * Dokument. Die erzeugten Contentframes werden in das entsprechende
-     * Layout gehaengt.
-     */
+
+    // Method creates all views of document for given node. The content
+    // frames that are created are put in the respective layout.
     void MakeFrms( SwCntntNode& rNode );
-    /*
-     * Methode loescht fuer den Node alle Ansichten vom
-     * Dokument. Die Contentframes werden aus dem entsprechenden
-     * Layout ausgehaengt.
-     */
+
+    // Method deletes all vies of document for the node. The content-
+    // frames are removed from the respective layout.
     void DelFrms();
 
-    /*
-     * liefert die Anzahl der Elemente des Inhalts des Nodes;
-     * Default ist 1, Unterschiede gibt es beim TextNode und beim
-     * Formelnode.
-     */
+    // Returns count of elements of node content. Default is 1. 
+    // There are differences between text node and formula node.
     virtual xub_StrLen Len() const;
 
     virtual SwCntntNode* MakeCopy( SwDoc*, const SwNodeIndex& ) const = 0;
-    // erfrage vom Client Informationen
+
+    // Get information from Client.
     virtual BOOL GetInfo( SfxPoolItem& ) const;
 
-    // SS fuer die PoolItems: (Harte-(Fmt)Attrbutierung)
+    // SS for PoolItems: hard attributation.
 
-    // Ist bInParent FALSE, wird nur in diesem Node nach dem Attribut gesucht.
+    // If bInParent is FALSE search for attribute only in this node.
     const SfxPoolItem& GetAttr( USHORT nWhich, BOOL bInParent=TRUE ) const;
     BOOL GetAttr( SfxItemSet& rSet, BOOL bInParent=TRUE ) const;
     // made virtual
@@ -458,11 +448,11 @@ public:
     virtual BOOL ResetAttr( const SvUShorts& rWhichArr );
     virtual USHORT ResetAllAttr();
 
-    // liefert das Attribut, das nicht ueber die bedingte Vorlage kommt!
+    // Obtains attribute that is not delivered via conditional style!
     const SfxPoolItem* GetNoCondAttr( USHORT nWhich, BOOL bInParents ) const;
 
-    // hat der Node schon eigene Auto-Attribute ?
-    // Zugriff auf SwAttrSet
+    // Does node has already its own auto-attributes?
+    // Access to SwAttrSet.
     inline const SwAttrSet &GetSwAttrSet() const;
     inline const SwAttrSet *GetpSwAttrSet() const { return static_cast<const SwAttrSet*>(mpAttrSet.get()); }
     inline BOOL  HasSwAttrSet() const { return mpAttrSet ? TRUE : FALSE; }
@@ -479,8 +469,8 @@ public:
     void ChkCondColl();
 //FEATURE::CONDCOLL
 
-    // invalidiert die am Node gesetzte NumRule. Diese wird
-    // spaetestend in EndAction einer Shell geupdatet
+    // Invalidates NumRule at the node. NumRule is updated
+    // on EndAction of a Shell at the latest.
     BOOL InvalidateNumRule();
 
     // determines the text direction for a certain
@@ -492,7 +482,7 @@ public:
     inline bool GetModifyAtAttr() const { return mbSetModifyAtAttr; }
 
 private:
-    // privater Constructor, weil nie kopiert werden darf !!
+    // Private constructor because copying is never allowed!!
     SwCntntNode( const SwCntntNode & rNode );
     SwCntntNode & operator= ( const SwCntntNode & rNode );
 
@@ -517,24 +507,22 @@ public:
     SwTable& GetTable() { return *pTable; }
     SwTabFrm *MakeFrm();
 
-    //Legt die Frms fuer den TableNode (also die TabFrms) an.
+    // Creates the frms for the table node (i.e. the TabFrms).
     void MakeFrms( SwNodeIndex* pIdxBehind );
 
-    //Methode loescht fuer den Node alle Ansichten vom
-    //Dokument. Die Contentframes werden aus dem entsprechenden
-    //Layout ausgehaengt.
+    // Method deletes all views of document for the node.
+    // The content frames are removed from the respective layout.
     void DelFrms();
 
-    //Methode erzeugt fuer den vorhergehenden Node alle Ansichten vom
-    //Dokument. Die erzeugten Contentframes werden in das entsprechende
-    //Layout gehaengt.
+    // Method creates all views of the document for the previous node.
+    // The content frames that are created are put into the respective layout.
     void MakeFrms( const SwNodeIndex & rIdx );
 
     SwTableNode* MakeCopy( SwDoc*, const SwNodeIndex& ) const;
     void SetNewTable( SwTable* , BOOL bNewFrames=TRUE );
 
 private:
-    // privater Constructor, weil nie kopiert werden darf !!
+    // Private constructor because copying is never allowed!!
     SwTableNode( const SwTableNode & rNode );
     SwTableNode & operator= ( const SwTableNode & rNode );
 };
@@ -564,29 +552,29 @@ public:
 
     SwFrm *MakeFrm();
 
-    //Legt die Frms fuer den SectionNode (also die SectionFrms) an.
-    //Im Defaultfall wird bis die Frames bis zum Ende des Bereichs angelegt,
-    //uebergibt man einen weiteren NodeIndex pEnd, so wird bis zu diesem
-    //ein MakeFrms gerufen, genutzt wird dies von TableToText
+    // Creates the frms for the SectionNode (i.e. the SectionFrms).
+    // On default the frames are created until the end of the range.
+    // When another NodeIndex pEnd is passed a MakeFrms is called up to it.
+    // Used by TableToText.
     void MakeFrms( SwNodeIndex* pIdxBehind, SwNodeIndex* pEnd = NULL );
 
-    //Methode loescht fuer den Node alle Ansichten vom
-    //Dokument. Die Contentframes werden aus dem entsprechenden
-    //Layout ausgehaengt.
+    // Method deletes all views of document for the node. The
+    // content frames are removed from the respective layout.
     void DelFrms();
 
-    //Methode erzeugt fuer den vorhergehenden Node alle Ansichten vom
-    //Dokument. Die erzeugten Contentframes werden in das entsprechende
-    //Layout gehaengt.
+    // Method creates all views of document for the previous node.
+    // The content frames created are put into the respective layout.
     void MakeFrms( const SwNodeIndex & rIdx );
 
     SwSectionNode* MakeCopy( SwDoc*, const SwNodeIndex& ) const;
 
-    // setze den Verweis im Format der Section auf sich selbst
+    // Set pointer in format of section on itself.
     void NodesArrChgd();
 
     // ueberprueft bei _nicht_ versteckten Bereichen, ob es Inhalt gibt, der
     // _nicht_ in einem versteckten (Unter-)Bereich liegt
+    // Check for not hidden areas whether there is content that is not in
+    // a hidden sub-area.
     BOOL IsCntntHidden() const;
 
 };
diff --git a/sw/inc/numrule.hxx b/sw/inc/numrule.hxx
index dafa1b5..63e37c4 100644
--- a/sw/inc/numrule.hxx
+++ b/sw/inc/numrule.hxx
@@ -36,8 +36,8 @@
 #include "swdllapi.h"
 #include <swtypes.hxx>
 #include <calbck.hxx>
-#include <errhdl.hxx> 		// Fuer die inline ASSERT
-#include <error.h>			// Fuer die inline ASSERT
+#include <errhdl.hxx>  // For inline ASSERT.
+#include <error.h>     // For inline ASSERT.
 #include <hints.hxx>
 #include <boost/unordered_map.hpp>
 #include <stringhash.hxx>
@@ -55,7 +55,7 @@ class SwDoc;
 class SwFmtVertOrient;
 class SwTxtNode;
 
-const sal_Unicode cBulletChar	= 0x2022;	// Charakter fuer Aufzaehlungen
+const sal_Unicode cBulletChar = 0x2022; // Character for lists.
 
 class SW_DLLPUBLIC SwNumFmt : public SvxNumberFormat, public SwClient
 {
@@ -132,13 +132,13 @@ private:
 
     String sName;
     SwNumRuleType eRuleType;
-    USHORT nPoolFmtId;		// Id-fuer "automatich" erzeugte NumRules
-    USHORT nPoolHelpId;		// HelpId fuer diese Pool-Vorlage
-    BYTE nPoolHlpFileId; 	// FilePos ans Doc auf die Vorlagen-Hilfen
+    USHORT nPoolFmtId;		// Id-for NumRules created "automatically"
+    USHORT nPoolHelpId;		// HelpId for this Pool-style.
+    BYTE nPoolHlpFileId; 	// FilePos at Doc on style helps.
     BOOL bAutoRuleFlag : 1;
     BOOL bInvalidRuleFlag : 1;
-    BOOL bContinusNum : 1;	// Fortlaufende Numerierung - ohne Ebenen
-    BOOL bAbsSpaces : 1;	// die Ebenen repraesentieren absol. Einzuege
+    BOOL bContinusNum : 1;	// Continuous numbering without levels.
+    BOOL bAbsSpaces : 1;	// Levels represent absolute indents.
     bool mbCountPhantoms;
 
     const SvxNumberFormat::SvxNumPositionAndSpaceMode meDefaultNumberFormatPositionAndSpaceMode;
@@ -217,13 +217,13 @@ public:
     void SetRuleType( SwNumRuleType eNew ) 		{ eRuleType = eNew;
                                                   bInvalidRuleFlag = TRUE; }
 
-    // eine Art Copy-Constructor, damit die Num-Formate auch an den
-    // richtigen CharFormaten eines Dokumentes haengen !!
-    // (Kopiert die NumFormate und returnt sich selbst)
+    // A kind of copy-constructor to make sure the num formats are
+    // attached to the correctCharFormats of a document!!
+    // (Copies the NumFormats and returns itself).
     SwNumRule& CopyNumRule( SwDoc*, const SwNumRule& );
 
-    // testet ob die CharFormate aus dem angegeben Doc sind und kopiert
-    // die gegebenfalls
+    // Tests whether the CharFormats are from the given doc
+    // and copies them if appropriate.
     void CheckCharFmts( SwDoc* pDoc );
 
     const String& GetName() const       { return sName; }
@@ -248,11 +248,11 @@ public:
     bool IsCountPhantoms() const;
     void SetCountPhantoms(bool bCountPhantoms);
 
-    // erfragen und setzen der Poolvorlagen-Id's
+    // Query and set PoolFormat IDs.
     USHORT GetPoolFmtId() const			{ return nPoolFmtId; }
     void SetPoolFmtId( USHORT nId ) 	{ nPoolFmtId = nId; }
 
-    // erfragen und setzen der Hilfe-Id's fuer die Document-Vorlagen
+    // Query and set Help-IDs for document styles.
     USHORT GetPoolHelpId() const 		{ return nPoolHelpId; }
     void SetPoolHelpId( USHORT nId ) 	{ nPoolHelpId = nId; }
     BYTE GetPoolHlpFileId() const 		{ return nPoolHlpFileId; }


More information about the Libreoffice-commits mailing list