Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


---
 sw/inc/cellfml.hxx                |   18 +++++++++---------
 sw/source/core/fields/cellfml.cxx |   18 +++++++++---------
 2 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/sw/inc/cellfml.hxx b/sw/inc/cellfml.hxx
index 7579256..92441d8 100644
--- a/sw/inc/cellfml.hxx
+++ b/sw/inc/cellfml.hxx
@@ -53,9 +53,9 @@ public:
     SwTblCalcPara( SwCalc& rCalculator, const SwTable& rTable );
     ~SwTblCalcPara();
 
-    BOOL CalcWithStackOverflow();
-    BOOL IsStackOverFlow() const               { return nMaxSize == nStackCnt; }
-    BOOL IncStackCnt()                                         { return nMaxSize == ++nStackCnt; }
+    bool CalcWithStackOverflow();
+    bool IsStackOverFlow() const               { return nMaxSize == nStackCnt; }
+    bool IncStackCnt()                                         { return nMaxSize == ++nStackCnt; }
     void DecStackCnt()                                         { if( nStackCnt ) --nStackCnt; }
     void SetLastTblBox( const SwTableBox* pBox )       { pLastTblBox = pBox; }
 };
@@ -98,7 +98,7 @@ protected:
 
     String             sFormel;                        // akt. Formel
     NameType   eNmType;                        // akt. Darstellungs Art
-    BOOL               bValidValue;            // TRUE: Formel neu berechnen
+    bool               bValidValue;            // TRUE: Formel neu berechnen
 
     // suche den Node, in dem die Formel steht:
     // TextFeld        -> TextNode,
@@ -138,25 +138,25 @@ public:
     void ToSplitMergeBoxNm( SwTableFmlUpdate& rTblUpd );
 
     // ist gerade eine intern Darstellung aktiv
-    BOOL IsIntrnlName() const                  { return eNmType == INTRNL_NAME; }
+    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; }
+    bool               IsValid() const                         { return bValidValue; }
+    inline void        ChgValid( bool bNew )           { bValidValue = bNew; }
 
     const String& GetFormula() const           { return sFormel; }
     void SetFormula( const String& rNew )
         {
             sFormel = rNew;
-            bValidValue = FALSE;
+            bValidValue = false;
             eNmType = EXTRNL_NAME;
         }
 
     USHORT GetBoxesOfFormula( const SwTable& rTbl, SwSelBoxes& rBoxes );
     // sind alle Boxen gueltig, auf die sich die Formel bezieht?
-    BOOL HasValidBoxes() const;
+    bool HasValidBoxes() const;
 };
 
 
diff --git a/sw/source/core/fields/cellfml.cxx b/sw/source/core/fields/cellfml.cxx
index fb98a31..a9caae6 100644
--- a/sw/source/core/fields/cellfml.cxx
+++ b/sw/source/core/fields/cellfml.cxx
@@ -60,7 +60,7 @@ const SwFrm* lcl_GetBoxFrm( const SwTableBox& rBox );
 long lcl_GetLongBoxNum( String& rStr );
 const SwTableBox* lcl_RelToBox( const SwTable&, const SwTableBox*, const String& );
 String lcl_BoxNmToRel( const SwTable&, const SwTableNode&,
-                        const String& , const String& , BOOL );
+                        const String& , const String& , bool );
 
 
 /*************************************************************************
@@ -266,7 +266,7 @@ SwTblCalcPara::~SwTblCalcPara()
     delete pBoxStk;
 }
 
-BOOL SwTblCalcPara::CalcWithStackOverflow()
+bool SwTblCalcPara::CalcWithStackOverflow()
 {
     // falls ein StackUeberlauf erkannt wurde, sollte mit
     // der letzten Box noch mal aufgesetzt werden. Irgend
@@ -311,7 +311,7 @@ SwTableFormula::SwTableFormula( const String& rFormel )
     : sFormel( rFormel )
 {
     eNmType = EXTRNL_NAME;
-    bValidValue = FALSE;
+    bValidValue = false;
 }
 
 SwTableFormula::~SwTableFormula()
@@ -850,7 +850,7 @@ const SwTableBox* lcl_RelToBox( const SwTable& rTbl,
 
 String lcl_BoxNmToRel( const SwTable& rTbl, const SwTableNode& rTblNd,
                             const String& rRefBoxNm, const String& rGetStr,
-                            BOOL bExtrnlNm )
+                            bool bExtrnlNm )
 {
     String sCpy( rRefBoxNm );
     String sTmp( rGetStr );
@@ -997,7 +997,7 @@ void SwTableFormula::GetBoxes( const SwTableBox& rSttBox,
 void SwTableFormula::_HasValidBoxes( const SwTable& rTbl, String& ,
                     String& rFirstBox, String* pLastBox, void* pPara ) const
 {
-    BOOL* pBValid = (BOOL*)pPara;
+    bool* pBValid = (bool*)pPara;
     if( *pBValid )             // einmal falsch, immer falsch
     {
         SwTableBox* pSttBox = 0, *pEndBox = 0;
@@ -1038,13 +1038,13 @@ void SwTableFormula::_HasValidBoxes( const SwTable& rTbl, String& ,
         if( ( pLastBox &&
               ( !pEndBox || !rTbl.GetTabSortBoxes().Seek_Entry( pEndBox ) ) ) ||
             ( !pSttBox || !rTbl.GetTabSortBoxes().Seek_Entry( pSttBox ) ) )
-                *pBValid = FALSE;
+                *pBValid = false;
     }
 }
 
-BOOL SwTableFormula::HasValidBoxes() const
+bool SwTableFormula::HasValidBoxes() const
 {
-    BOOL bRet = TRUE;
+    bool bRet = true;
     const SwNode* pNd = GetNodeOfFormula();
     if( pNd && 0 != ( pNd = pNd->FindTableNode() ) )
         ScanString( &SwTableFormula::_HasValidBoxes,
@@ -1152,7 +1152,7 @@ void SwTableFormula::_SplitMergeBoxNm( const SwTable& rTbl, String& rNewStr,
     if( TBL_SPLITTBL == rTblUpd.eFlags )
     {
         // wo liegen die Boxen, in der "alten" oder in der neuen Tabelle?
-        BOOL bInNewTbl = FALSE;
+        bool bInNewTbl = false;
         if( pLastBox )
         {
             // das ist die "erste" Box in der Selektion. Die bestimmt ob die
-- 
1.7.1


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.