diff options
author | Noel Grandin <noel@peralex.com> | 2014-04-25 14:00:35 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-04-30 08:44:42 +0200 |
commit | 6aa35db39311dcd7965c9c9c21fcf4143a1f9b43 (patch) | |
tree | 04320eaf8c7481c1b496460624ee20ec11360ac2 /sw/source/core/inc/layact.hxx | |
parent | 1417061d1b2c110e7e690523a544b58e7ffd05c0 (diff) |
sw: sal_Bool->bool
Change-Id: I324a0ffde2ddcca105451c19e7aadcfad15211d8
Diffstat (limited to 'sw/source/core/inc/layact.hxx')
-rw-r--r-- | sw/source/core/inc/layact.hxx | 114 |
1 files changed, 57 insertions, 57 deletions
diff --git a/sw/source/core/inc/layact.hxx b/sw/source/core/inc/layact.hxx index 6cdd2924ae5c..ac87a66bd084 100644 --- a/sw/source/core/inc/layact.hxx +++ b/sw/source/core/inc/layact.hxx @@ -69,52 +69,52 @@ class SwLayAction sal_uInt16 nCheckPageNum; //CheckPageDesc() was delayed if != USHRT_MAX // check from this page on - sal_Bool bPaint; // painting or only formatting? - sal_Bool bComplete; //Alles bis zum sichtbaren Bereich Formatieren oder + bool bPaint; // painting or only formatting? + bool bComplete; //Alles bis zum sichtbaren Bereich Formatieren oder // or only the visible area? - sal_Bool bCalcLayout; //Vollstaendige Reformatierung? - sal_Bool bAgain; //Zur automatisch wiederholten Action wenn Seiten + bool bCalcLayout; //Vollstaendige Reformatierung? + bool bAgain; //Zur automatisch wiederholten Action wenn Seiten //geloscht werden. - sal_Bool bNextCycle; //Wiederaufsetzen bei der ersten Ungueltigen Seite. - sal_Bool bInput; //Zum Abbrechen der Verarbeitung wenn ein Input anliegt. - sal_Bool bIdle; //True wenn die Layaction vom Idler ausgeloest wurde. - sal_Bool bReschedule; //Soll das Reschedule - abhaengig vom Progress - + bool bNextCycle; //Wiederaufsetzen bei der ersten Ungueltigen Seite. + bool bInput; //Zum Abbrechen der Verarbeitung wenn ein Input anliegt. + bool bIdle; //True wenn die Layaction vom Idler ausgeloest wurde. + bool bReschedule; //Soll das Reschedule - abhaengig vom Progress - //gerufen werden? - sal_Bool bCheckPages; //CheckPageDescs() ausfuehren oder verzoegern. - sal_Bool bUpdateExpFlds;//Wird gesetzt wenn nach dem Formatierien noch eine + bool bCheckPages; //CheckPageDescs() ausfuehren oder verzoegern. + bool bUpdateExpFlds;//Wird gesetzt wenn nach dem Formatierien noch eine //Runde fuer den ExpFld laufen muss. - sal_Bool bBrowseActionStop; //Action fruehzeitig beenden (per bInput) und den + bool bBrowseActionStop; //Action fruehzeitig beenden (per bInput) und den //Rest dem Idler ueberlassen. - sal_Bool bWaitAllowed; //Wartecursor erlaubt? + bool bWaitAllowed; //Wartecursor erlaubt? bool bPaintExtraData; //Anzeige von Zeilennumerierung o. ae. eingeschaltet? - sal_Bool bActionInProgress; // wird in Action() anfangs gesetzt und zum Schluss geloescht + bool bActionInProgress; // wird in Action() anfangs gesetzt und zum Schluss geloescht // OD 14.04.2003 #106346# - new flag for content formatting on interrupt. - sal_Bool mbFormatCntntOnInterrupt; + bool mbFormatCntntOnInterrupt; #ifdef _LAYACT_CXX void PaintCntnt( const SwCntntFrm *, const SwPageFrm *, const SwRect &rOldRect, long nOldBottom ); - sal_Bool PaintWithoutFlys( const SwRect &, const SwCntntFrm *, + bool PaintWithoutFlys( const SwRect &, const SwCntntFrm *, const SwPageFrm * ); - inline sal_Bool _PaintCntnt( const SwCntntFrm *, const SwPageFrm *, + inline bool _PaintCntnt( const SwCntntFrm *, const SwPageFrm *, const SwRect & ); - sal_Bool FormatLayout( SwLayoutFrm *, sal_Bool bAddRect = sal_True ); - sal_Bool FormatLayoutTab( SwTabFrm *, sal_Bool bAddRect = sal_True ); - sal_Bool FormatCntnt( const SwPageFrm* pPage ); + bool FormatLayout( SwLayoutFrm *, bool bAddRect = true ); + bool FormatLayoutTab( SwTabFrm *, bool bAddRect = true ); + bool FormatCntnt( const SwPageFrm* pPage ); void _FormatCntnt( const SwCntntFrm* pCntnt, const SwPageFrm* pPage ); - sal_Bool IsShortCut( SwPageFrm *& ); + bool IsShortCut( SwPageFrm *& ); - sal_Bool TurboAction(); - sal_Bool _TurboAction( const SwCntntFrm * ); + bool TurboAction(); + bool _TurboAction( const SwCntntFrm * ); void InternalAction(); SwPageFrm *CheckFirstVisPage( SwPageFrm *pPage ); - sal_Bool RemoveEmptyBrowserPages(); + bool RemoveEmptyBrowserPages(); inline void CheckIdleEnd(); inline sal_uLong GetStartTicks() { return nStartTicks; } @@ -126,35 +126,35 @@ public: ~SwLayAction(); #ifdef _LAYACT_CXX - void SetIdle ( sal_Bool bNew ) { bIdle = bNew; } - void SetCheckPages ( sal_Bool bNew ) { bCheckPages = bNew; } - void SetBrowseActionStop(sal_Bool bNew ) { bBrowseActionStop = bNew; } - void SetNextCycle ( sal_Bool bNew ) { bNextCycle = bNew; } - - sal_Bool IsWaitAllowed() const { return bWaitAllowed; } - sal_Bool IsNextCycle() const { return bNextCycle; } - sal_Bool IsInput() const { return bInput; } - sal_Bool IsWait() const { return 0 != pWait; } - sal_Bool IsPaint() const { return bPaint; } - sal_Bool IsIdle() const { return bIdle; } - sal_Bool IsReschedule() const { return bReschedule; } + void SetIdle ( bool bNew ) { bIdle = bNew; } + void SetCheckPages ( bool bNew ) { bCheckPages = bNew; } + void SetBrowseActionStop( bool bNew ) { bBrowseActionStop = bNew; } + void SetNextCycle ( bool bNew ) { bNextCycle = bNew; } + + bool IsWaitAllowed() const { return bWaitAllowed; } + bool IsNextCycle() const { return bNextCycle; } + bool IsInput() const { return bInput; } + bool IsWait() const { return 0 != pWait; } + bool IsPaint() const { return bPaint; } + bool IsIdle() const { return bIdle; } + bool IsReschedule() const { return bReschedule; } bool IsPaintExtraData() const { return bPaintExtraData;} - sal_Bool IsInterrupt() const { return IsInput(); } + bool IsInterrupt() const { return IsInput(); } sal_uInt16 GetInputType() const { return nInputType; } #endif // adjusting Action to the wanted behaviour - void SetPaint ( sal_Bool bNew ) { bPaint = bNew; } - void SetComplete ( sal_Bool bNew ) { bComplete = bNew; } - void SetStatBar ( sal_Bool bNew ); + void SetPaint ( bool bNew ) { bPaint = bNew; } + void SetComplete ( bool bNew ) { bComplete = bNew; } + void SetStatBar ( bool bNew ); void SetInputType ( sal_uInt16 nNew ) { nInputType = nNew; } - void SetCalcLayout ( sal_Bool bNew ) { bCalcLayout = bNew; } - void SetReschedule ( sal_Bool bNew ) { bReschedule = bNew; } - void SetWaitAllowed ( sal_Bool bNew ) { bWaitAllowed = bNew; } + void SetCalcLayout ( bool bNew ) { bCalcLayout = bNew; } + void SetReschedule ( bool bNew ) { bReschedule = bNew; } + void SetWaitAllowed ( bool bNew ) { bWaitAllowed = bNew; } - void SetAgain() { bAgain = sal_True; } - void SetUpdateExpFlds() {bUpdateExpFlds = sal_True; } + void SetAgain() { bAgain = true; } + void SetUpdateExpFlds() {bUpdateExpFlds = true; } inline void SetCheckPageNum( sal_uInt16 nNew ); inline void SetCheckPageNumDirect( sal_uInt16 nNew ) { nCheckPageNum = nNew; } @@ -162,13 +162,13 @@ public: void Action(); // here it begins void Reset(); // back to CTor-defaults - sal_Bool IsAgain() const { return bAgain; } - sal_Bool IsComplete() const { return bComplete; } - sal_Bool IsExpFlds() const { return bUpdateExpFlds; } - sal_Bool IsCalcLayout() const { return bCalcLayout; } - sal_Bool IsCheckPages() const { return bCheckPages; } - sal_Bool IsBrowseActionStop() const { return bBrowseActionStop; } - sal_Bool IsActionInProgress() const { return bActionInProgress; } + bool IsAgain() const { return bAgain; } + bool IsComplete() const { return bComplete; } + bool IsExpFlds() const { return bUpdateExpFlds; } + bool IsCalcLayout() const { return bCalcLayout; } + bool IsCheckPages() const { return bCheckPages; } + bool IsBrowseActionStop() const { return bBrowseActionStop; } + bool IsActionInProgress() const { return bActionInProgress; } sal_uInt16 GetCheckPageNum() const { return nCheckPageNum; } @@ -177,9 +177,9 @@ public: // #i28701# - method is now public; // delete 2nd parameter, because its not used; - sal_Bool FormatLayoutFly( SwFlyFrm * ); + bool FormatLayoutFly( SwFlyFrm * ); // #i28701# - method is now public - sal_Bool _FormatFlyCntnt( const SwFlyFrm * ); + bool _FormatFlyCntnt( const SwFlyFrm * ); }; @@ -190,8 +190,8 @@ class SwLayIdle SwViewImp *pImp; // Hier Meldet sich der Idler an und ab. SwCntntNode *pCntntNode; // Hier wird die aktuelle Cursorposition sal_Int32 nTxtPos; // zwischengespeichert. - sal_Bool bPageValid; // Konnte die Seite alles validiert werden? - sal_Bool bAllValid; // Konnte alles validiert werden? + bool bPageValid; // Konnte die Seite alles validiert werden? + bool bAllValid; // Konnte alles validiert werden? #ifdef DBG_UTIL bool m_bIndicator; @@ -204,8 +204,8 @@ class SwLayIdle #endif enum IdleJobType{ ONLINE_SPELLING, AUTOCOMPLETE_WORDS, WORD_COUNT, SMART_TAGS }; - sal_Bool _DoIdleJob( const SwCntntFrm*, IdleJobType ); - sal_Bool DoIdleJob( IdleJobType, sal_Bool bVisAreaOnly ); + bool _DoIdleJob( const SwCntntFrm*, IdleJobType ); + bool DoIdleJob( IdleJobType, bool bVisAreaOnly ); #endif |