Kaydet (Commit) e4f982f5 authored tarafından Matteo Casalin's avatar Matteo Casalin

sal_Bool to bool

Change-Id: I7472b6fad91fc349dc4cea2b490cb6cb7796fd34
üst 7e798c2a
...@@ -65,7 +65,7 @@ bool SwFlyPortion::Format( SwTxtFormatInfo &rInf ) ...@@ -65,7 +65,7 @@ bool SwFlyPortion::Format( SwTxtFormatInfo &rInf )
// resetting // resetting
rInf.SetFly( 0 ); rInf.SetFly( 0 );
rInf.Width( rInf.RealWidth() ); rInf.Width( rInf.RealWidth() );
rInf.GetParaPortion()->SetFly( sal_True ); rInf.GetParaPortion()->SetFly( true );
// trailing blank: // trailing blank:
if( rInf.GetIdx() < rInf.GetTxt().getLength() && 1 < rInf.GetIdx() if( rInf.GetIdx() < rInf.GetTxt().getLength() && 1 < rInf.GetIdx()
...@@ -130,7 +130,7 @@ bool SwFlyCntPortion::Format( SwTxtFormatInfo &rInf ) ...@@ -130,7 +130,7 @@ bool SwFlyCntPortion::Format( SwTxtFormatInfo &rInf )
} }
} }
rInf.GetParaPortion()->SetFly( sal_True ); rInf.GetParaPortion()->SetFly( true );
return bFull; return bFull;
} }
...@@ -262,8 +262,8 @@ SwFlyCntPortion::SwFlyCntPortion( const SwTxtFrm& rFrm, ...@@ -262,8 +262,8 @@ SwFlyCntPortion::SwFlyCntPortion( const SwTxtFrm& rFrm,
long nFlyAsc, long nFlyDesc, long nFlyAsc, long nFlyDesc,
objectpositioning::AsCharFlags nFlags ) : objectpositioning::AsCharFlags nFlags ) :
pContact( pFly ), pContact( pFly ),
bDraw( sal_False ), bDraw( false ),
bMax( sal_False ), bMax( false ),
nAlign( 0 ) nAlign( 0 )
{ {
OSL_ENSURE( pFly, "SwFlyCntPortion::SwFlyCntPortion: no SwFlyInCntFrm!" ); OSL_ENSURE( pFly, "SwFlyCntPortion::SwFlyCntPortion: no SwFlyInCntFrm!" );
...@@ -280,8 +280,8 @@ SwFlyCntPortion::SwFlyCntPortion( const SwTxtFrm& rFrm, ...@@ -280,8 +280,8 @@ SwFlyCntPortion::SwFlyCntPortion( const SwTxtFrm& rFrm,
long nFlyAsc, long nFlyDesc, long nFlyAsc, long nFlyDesc,
objectpositioning::AsCharFlags nFlags ) : objectpositioning::AsCharFlags nFlags ) :
pContact( pDrawContact ), pContact( pDrawContact ),
bDraw( sal_True ), bDraw( true ),
bMax( sal_False ), bMax( false ),
nAlign( 0 ) nAlign( 0 )
{ {
OSL_ENSURE( pDrawContact, "SwFlyCntPortion::SwFlyCntPortion: no SwDrawContact!" ); OSL_ENSURE( pDrawContact, "SwFlyCntPortion::SwFlyCntPortion: no SwDrawContact!" );
......
...@@ -54,8 +54,8 @@ class SwFlyCntPortion : public SwLinePortion ...@@ -54,8 +54,8 @@ class SwFlyCntPortion : public SwLinePortion
{ {
void *pContact; // bDraw ? DrawContact : FlyInCntFrm void *pContact; // bDraw ? DrawContact : FlyInCntFrm
Point aRef; // Relatively to this point we calculate the AbsPos Point aRef; // Relatively to this point we calculate the AbsPos
sal_Bool bDraw : 1; // DrawContact? bool bDraw : 1; // DrawContact?
sal_Bool bMax : 1; // Line adjustment and height == line height bool bMax : 1; // Line adjustment and height == line height
sal_uInt8 nAlign : 3; // Line adjustment? No, above, middle, bottom sal_uInt8 nAlign : 3; // Line adjustment? No, above, middle, bottom
virtual sal_Int32 GetCrsrOfst( const KSHORT nOfst ) const; virtual sal_Int32 GetCrsrOfst( const KSHORT nOfst ) const;
...@@ -77,11 +77,11 @@ public: ...@@ -77,11 +77,11 @@ public:
inline SwDrawContact *GetDrawContact() { return (SwDrawContact*)pContact; } inline SwDrawContact *GetDrawContact() { return (SwDrawContact*)pContact; }
inline const SwDrawContact* GetDrawContact() const inline const SwDrawContact* GetDrawContact() const
{ return (SwDrawContact*)pContact; } { return (SwDrawContact*)pContact; }
inline sal_Bool IsDraw() const { return bDraw; } inline bool IsDraw() const { return bDraw; }
inline sal_Bool IsMax() const { return bMax; } inline bool IsMax() const { return bMax; }
inline sal_uInt8 GetAlign() const { return nAlign; } inline sal_uInt8 GetAlign() const { return nAlign; }
inline void SetAlign( sal_uInt8 nNew ) { nAlign = nNew; } inline void SetAlign( sal_uInt8 nNew ) { nAlign = nNew; }
inline void SetMax( sal_Bool bNew ) { bMax = bNew; } inline void SetMax( bool bNew ) { bMax = bNew; }
// OD 29.07.2003 #110978# - use new datatype for parameter <nFlags> // OD 29.07.2003 #110978# - use new datatype for parameter <nFlags>
void SetBase( const SwTxtFrm& rFrm, const Point &rBase, void SetBase( const SwTxtFrm& rFrm, const Point &rBase,
long nLnAscent, long nLnDescent, long nLnAscent, long nLnDescent,
......
...@@ -69,7 +69,7 @@ public: ...@@ -69,7 +69,7 @@ public:
class SwSoftHyphPortion : public SwHyphPortion class SwSoftHyphPortion : public SwHyphPortion
{ {
sal_Bool bExpand; bool bExpand;
KSHORT nViewWidth; KSHORT nViewWidth;
KSHORT nHyphWidth; KSHORT nHyphWidth;
...@@ -80,8 +80,8 @@ public: ...@@ -80,8 +80,8 @@ public:
virtual void Paint( const SwTxtPaintInfo &rInf ) const; virtual void Paint( const SwTxtPaintInfo &rInf ) const;
virtual bool Format( SwTxtFormatInfo &rInf ); virtual bool Format( SwTxtFormatInfo &rInf );
virtual void FormatEOL( SwTxtFormatInfo &rInf ); virtual void FormatEOL( SwTxtFormatInfo &rInf );
inline void SetExpand( const sal_Bool bNew ) { bExpand = bNew; } inline void SetExpand( const bool bNew ) { bExpand = bNew; }
sal_Bool IsExpand() const { return bExpand; } bool IsExpand() const { return bExpand; }
virtual KSHORT GetViewWidth( const SwTxtSizeInfo &rInf ) const; virtual KSHORT GetViewWidth( const SwTxtSizeInfo &rInf ) const;
......
...@@ -450,7 +450,7 @@ void SwLineLayout::CalcLine( SwTxtFormatter &rLine, SwTxtFormatInfo &rInf ) ...@@ -450,7 +450,7 @@ void SwLineLayout::CalcLine( SwTxtFormatter &rLine, SwTxtFormatInfo &rInf )
if( pPos->IsFlyCntPortion() && if( pPos->IsFlyCntPortion() &&
((SwFlyCntPortion*)pPos)->GetAlign() ) ((SwFlyCntPortion*)pPos)->GetAlign() )
{ {
((SwFlyCntPortion*)pPos)->SetMax( sal_False ); ((SwFlyCntPortion*)pPos)->SetMax( false );
if( !pFlyCnt || pPos->Height() > pFlyCnt->Height() ) if( !pFlyCnt || pPos->Height() > pFlyCnt->Height() )
pFlyCnt = (SwFlyCntPortion*)pPos; pFlyCnt = (SwFlyCntPortion*)pPos;
} }
...@@ -490,7 +490,7 @@ void SwLineLayout::CalcLine( SwTxtFormatter &rLine, SwTxtFormatInfo &rInf ) ...@@ -490,7 +490,7 @@ void SwLineLayout::CalcLine( SwTxtFormatter &rLine, SwTxtFormatInfo &rInf )
{ {
if( pFlyCnt->Height() == Height() ) if( pFlyCnt->Height() == Height() )
{ {
pFlyCnt->SetMax( sal_True ); pFlyCnt->SetMax( true );
if( Height() > nMaxDescent + nAscent ) if( Height() > nMaxDescent + nAscent )
{ {
if( 3 == pFlyCnt->GetAlign() ) // Bottom if( 3 == pFlyCnt->GetAlign() ) // Bottom
......
...@@ -431,7 +431,7 @@ void SwHyphStrPortion::HandlePortion( SwPortionHandler& rPH ) const ...@@ -431,7 +431,7 @@ void SwHyphStrPortion::HandlePortion( SwPortionHandler& rPH ) const
SwLinePortion *SwSoftHyphPortion::Compress() { return this; } SwLinePortion *SwSoftHyphPortion::Compress() { return this; }
SwSoftHyphPortion::SwSoftHyphPortion() : SwSoftHyphPortion::SwSoftHyphPortion() :
bExpand(sal_False), nViewWidth(0), nHyphWidth(0) bExpand(false), nViewWidth(0), nHyphWidth(0)
{ {
SetLen(1); SetLen(1);
SetWhichPor( POR_SOFTHYPH ); SetWhichPor( POR_SOFTHYPH );
...@@ -533,9 +533,9 @@ bool SwSoftHyphPortion::Format( SwTxtFormatInfo &rInf ) ...@@ -533,9 +533,9 @@ bool SwSoftHyphPortion::Format( SwTxtFormatInfo &rInf )
} }
rInf.SetSoftHyphPos(0); rInf.SetSoftHyphPos(0);
SetExpand( sal_True ); SetExpand( true );
bFull = SwHyphPortion::Format( rInf ); bFull = SwHyphPortion::Format( rInf );
SetExpand( sal_False ); SetExpand( false );
if( !bFull ) if( !bFull )
{ {
// default-maessig besitzen wir keine Breite, aber eine Hoehe // default-maessig besitzen wir keine Breite, aber eine Hoehe
...@@ -554,7 +554,7 @@ void SwSoftHyphPortion::FormatEOL( SwTxtFormatInfo &rInf ) ...@@ -554,7 +554,7 @@ void SwSoftHyphPortion::FormatEOL( SwTxtFormatInfo &rInf )
{ {
if( !IsExpand() ) if( !IsExpand() )
{ {
SetExpand( sal_True ); SetExpand( true );
if( rInf.GetLast() == this ) if( rInf.GetLast() == this )
rInf.SetLast( FindPrevPortion( rInf.GetRoot() ) ); rInf.SetLast( FindPrevPortion( rInf.GetRoot() ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment