diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2012-11-21 07:34:08 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2012-11-21 07:38:58 +0900 |
commit | 1aad15bf3968e243ff2ee2572e5bc3fc5cd8f108 (patch) | |
tree | a82c68c5f03d2aff67506d52f1d285fc931d2a70 /sw/inc | |
parent | 4b9c10e298a5285edbeb87c47303c151209abded (diff) |
sal_Bool to bool
Change-Id: I0845702a9d0d590b0410df8bdcc3a12661f87714
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/calbck.hxx | 8 | ||||
-rw-r--r-- | sw/inc/swtable.hxx | 12 |
2 files changed, 10 insertions, 10 deletions
diff --git a/sw/inc/calbck.hxx b/sw/inc/calbck.hxx index 75e3ead5b9f3..4eb30e1c8f2e 100644 --- a/sw/inc/calbck.hxx +++ b/sw/inc/calbck.hxx @@ -133,7 +133,7 @@ inline SwClient::SwClient() : class SW_DLLPUBLIC SwModify: public SwClient { SwClient* pRoot; // the start of the linked list of clients - sal_Bool bModifyLocked : 1; // don't broadcast changes now + bool bModifyLocked : 1; // don't broadcast changes now sal_Bool bLockClientList : 1; // may be set when this instance notifies its clients sal_Bool bInDocDTOR : 1; // workaround for problems when a lot of objects are destroyed sal_Bool bInCache : 1; @@ -167,12 +167,12 @@ public: // get information about attribute virtual bool GetInfo( SfxPoolItem& ) const; - void LockModify() { bModifyLocked = sal_True; } - void UnlockModify() { bModifyLocked = sal_False; } + void LockModify() { bModifyLocked = true; } + void UnlockModify() { bModifyLocked = false; } void SetInCache( sal_Bool bNew ) { bInCache = bNew; } void SetInSwFntCache( sal_Bool bNew ) { bInSwFntCache = bNew; } void SetInDocDTOR() { bInDocDTOR = sal_True; } - sal_Bool IsModifyLocked() const { return bModifyLocked; } + bool IsModifyLocked() const { return bModifyLocked; } sal_Bool IsInDocDTOR() const { return bInDocDTOR; } sal_Bool IsInCache() const { return bInCache; } sal_Bool IsInSwFntCache() const { return bInSwFntCache; } diff --git a/sw/inc/swtable.hxx b/sw/inc/swtable.hxx index 59c75045d209..be5b1de2e303 100644 --- a/sw/inc/swtable.hxx +++ b/sw/inc/swtable.hxx @@ -124,14 +124,14 @@ protected: // at HTML-import. sal_uInt16 nRowsToRepeat; // Number of rows to repeat on every page. - sal_Bool bModifyLocked :1; + bool bModifyLocked :1; sal_Bool bNewModel :1; // sal_False: old SubTableModel; sal_True: new RowSpanModel #ifdef DBG_UTIL /// This is set by functions (like Merge()) to forbid a late model change. bool m_bDontChangeModel; #endif - sal_Bool IsModifyLocked(){ return bModifyLocked;} + bool IsModifyLocked(){ return bModifyLocked;} virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew ); @@ -179,8 +179,8 @@ public: sal_uInt16 IncGrfsThatResize() { return ++nGrfsThatResize; } sal_uInt16 DecGrfsThatResize() { return nGrfsThatResize ? --nGrfsThatResize : 0; } - void LockModify() { bModifyLocked = sal_True; } // Must be used always - void UnlockModify() { bModifyLocked = sal_False;} // in pairs! + void LockModify() { bModifyLocked = true; } // Must be used always + void UnlockModify() { bModifyLocked = false;} // in pairs! void SetTableModel( sal_Bool bNew ){ bNewModel = bNew; } sal_Bool IsNewModel() const { return bNewModel; } @@ -308,9 +308,9 @@ public: // Search all content-bearing boxes of the base line on which this box stands. // rBoxes as a return value for immediate use. // steht. rBoxes auch als Return-Wert, um es gleich weiter zu benutzen - // bToTop = sal_True -> up to base line, sal_False-> else only line of box. + // bToTop = true -> up to base line, sal_False-> else only line of box. SwSelBoxes& SelLineFromBox( const SwTableBox* pBox, - SwSelBoxes& rBoxes, sal_Bool bToTop = sal_True ) const; + SwSelBoxes& rBoxes, bool bToTop = true ) const; // Get information from client. virtual bool GetInfo( SfxPoolItem& ) const; |