summaryrefslogtreecommitdiff
path: root/sw/inc/cellfml.hxx
diff options
context:
space:
mode:
authorDaniel Di Marco <d.dimarco@gmx.de>2010-11-15 23:37:49 +0100
committerSebastian Spaeth <Sebastian@SSpaeth.de>2010-11-16 06:40:23 +0100
commitf0add820a11ca5e405ec35467303034287be34ec (patch)
treeb2ab38b2af694e53d323c837bbbba43fd0b8129a /sw/inc/cellfml.hxx
parentba00765e6bbcbca6bb53a705e6cb041c04502bda (diff)
translated some comments from german -> english
Diffstat (limited to 'sw/inc/cellfml.hxx')
-rw-r--r--sw/inc/cellfml.hxx29
1 files changed, 13 insertions, 16 deletions
diff --git a/sw/inc/cellfml.hxx b/sw/inc/cellfml.hxx
index efdccf488995..e806e215d5d4 100644
--- a/sw/inc/cellfml.hxx
+++ b/sw/inc/cellfml.hxx
@@ -47,9 +47,9 @@ class SwTblCalcPara
USHORT nStackCnt, nMaxSize;
public:
- SwTableSortBoxes *pBoxStk; // Stack fuers erkennen von Rekursionen !
- SwCalc& rCalc; // akt. Calculator
- const SwTable* pTbl; // akt. Tabelle
+ SwTableSortBoxes *pBoxStk; // stack for recognizing recursion
+ SwCalc& rCalc; // current Calculator
+ const SwTable* pTbl; // current table
SwTblCalcPara( SwCalc& rCalculator, const SwTable& rTable );
~SwTblCalcPara();
@@ -97,14 +97,14 @@ typedef void (SwTableFormula:: *FnScanFormel)( const SwTable&, String&,
protected:
enum NameType { EXTRNL_NAME, INTRNL_NAME, REL_NAME };
- String sFormel; // akt. Formel
- NameType eNmType; // akt. Darstellungs Art
- bool bValidValue; // TRUE: Formel neu berechnen
+ String sFormel; // current formula
+ NameType eNmType; // current display method
+ bool bValidValue; // TRUE: recalculate formula
- // suche den Node, in dem die Formel steht:
+ // find the node in which the formula is located
// TextFeld -> TextNode,
// BoxAttribut -> BoxStartNode
- // !!! MUSS VON JEDER ABLEITUNG UEBERLADEN WERDEN !!!
+ // !!! has to be overloaded by every derivation !!!
virtual const SwNode* GetNodeOfFormula() const = 0;
SwTableFormula( const String& rFormel );
@@ -129,21 +129,18 @@ public:
return *this;
}
- // erzeuge aus der internen (fuer CORE) die externe (fuer UI) Formel
+ // create from the internal formula (for CORE) the external formula (for UI)
void PtrToBoxNm( const SwTable* pTbl );
- // erzeuge aus der externen (fuer UI) die interne (fuer CORE) Formel
+ // create from the external formula the internal
void BoxNmToPtr( const SwTable* pTbl );
- // erzeuge aus der externen/internen Formel die relative Formel
+ // create from the external/internal formula the relative formula
void ToRelBoxNm( const SwTable* pTbl );
- // wird vorm/nach dem mergen/splitten von Tabellen rerufen
+ // gets called before/after merging/splitting of tables
void ToSplitMergeBoxNm( SwTableFmlUpdate& rTblUpd );
- // ist gerade eine intern Darstellung aktiv
bool IsIntrnlName() const { return eNmType == INTRNL_NAME; }
- // erfrage die akt. Darstellung der Formel
NameType GetNameType() const { return eNmType; }
- // erfrage/setze das Flag, ob der akt. Wert gueltig ist
bool IsValid() const { return bValidValue; }
inline void ChgValid( bool bNew ) { bValidValue = bNew; }
@@ -156,7 +153,7 @@ public:
}
USHORT GetBoxesOfFormula( const SwTable& rTbl, SwSelBoxes& rBoxes );
- // sind alle Boxen gueltig, auf die sich die Formel bezieht?
+ // are all boxes valid which this formula relies on?
bool HasValidBoxes() const;
};