summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/text/pordrop.hxx2
-rw-r--r--sw/source/core/text/porexp.cxx8
-rw-r--r--sw/source/core/text/porexp.hxx8
-rw-r--r--sw/source/core/text/txtdrop.cxx27
4 files changed, 22 insertions, 23 deletions
diff --git a/sw/source/core/text/pordrop.hxx b/sw/source/core/text/pordrop.hxx
index 4c9f6590090c..d530ed8702be 100644
--- a/sw/source/core/text/pordrop.hxx
+++ b/sw/source/core/text/pordrop.hxx
@@ -79,7 +79,7 @@ class SwDropPortion : public SwTxtPortion
short nX; // X PaintOffset
short nY; // Y Offset
- sal_Bool FormatTxt( SwTxtFormatInfo &rInf );
+ bool FormatTxt( SwTxtFormatInfo &rInf );
void PaintTxt( const SwTxtPaintInfo &rInf ) const;
inline void Fix( const KSHORT nNew ) { nFix = nNew; }
diff --git a/sw/source/core/text/porexp.cxx b/sw/source/core/text/porexp.cxx
index d1353aada6b5..cfcbd8cd687c 100644
--- a/sw/source/core/text/porexp.cxx
+++ b/sw/source/core/text/porexp.cxx
@@ -74,7 +74,7 @@ bool SwExpandPortion::Format( SwTxtFormatInfo &rInf )
// So komisch es aussieht, die Abfrage auf GetLen() muss wegen der
// ExpandPortions _hinter_ aDiffTxt (vgl. SoftHyphs)
- // sal_False returnen wegen SetFull ...
+ // false returnen wegen SetFull ...
if( !nFullLen )
{
// nicht Init(), weil wir Hoehe und Ascent brauchen
@@ -137,7 +137,7 @@ SwLinePortion *SwBlankPortion::Compress() { return this; }
// Komplikationen bei Flys...
MSHORT SwBlankPortion::MayUnderFlow( const SwTxtFormatInfo &rInf,
- sal_Int32 nIdx, sal_Bool bUnderFlow ) const
+ sal_Int32 nIdx, bool bUnderFlow ) const
{
if( rInf.StopUnderFlow() )
return 0;
@@ -189,7 +189,7 @@ MSHORT SwBlankPortion::MayUnderFlow( const SwTxtFormatInfo &rInf,
void SwBlankPortion::FormatEOL( SwTxtFormatInfo &rInf )
{
- MSHORT nMay = MayUnderFlow( rInf, rInf.GetIdx() - nLineLength, sal_True );
+ MSHORT nMay = MayUnderFlow( rInf, rInf.GetIdx() - nLineLength, true );
if( nMay )
{
if( nMay > 1 )
@@ -259,7 +259,7 @@ void SwBlankPortion::HandlePortion( SwPortionHandler& rPH ) const
* class SwPostItsPortion
*************************************************************************/
-SwPostItsPortion::SwPostItsPortion( sal_Bool bScrpt )
+SwPostItsPortion::SwPostItsPortion( bool bScrpt )
: bScript( bScrpt )
{
nLineLength = 1;
diff --git a/sw/source/core/text/porexp.hxx b/sw/source/core/text/porexp.hxx
index e31517a512c0..8b420bb86146 100644
--- a/sw/source/core/text/porexp.hxx
+++ b/sw/source/core/text/porexp.hxx
@@ -65,7 +65,7 @@ public:
virtual bool Format( SwTxtFormatInfo &rInf );
virtual void Paint( const SwTxtPaintInfo &rInf ) const;
MSHORT MayUnderFlow( const SwTxtFormatInfo &rInf, sal_Int32 nIdx,
- sal_Bool bUnderFlow ) const;
+ bool bUnderFlow ) const;
// Accessibility: pass information about this portion to the PortionHandler
virtual void HandlePortion( SwPortionHandler& rPH ) const;
@@ -79,14 +79,14 @@ public:
class SwPostItsPortion : public SwExpandPortion
{
- sal_Bool bScript;
+ bool bScript;
public:
- SwPostItsPortion( sal_Bool bScrpt );
+ SwPostItsPortion( bool bScrpt );
virtual void Paint( const SwTxtPaintInfo &rInf ) const;
virtual bool Format( SwTxtFormatInfo &rInf );
virtual KSHORT GetViewWidth( const SwTxtSizeInfo &rInf ) const;
virtual bool GetExpTxt( const SwTxtSizeInfo &rInf, OUString &rTxt ) const;
- sal_Bool IsScript() const { return bScript; }
+ bool IsScript() const { return bScript; }
OUTPUT_OPERATOR
};
diff --git a/sw/source/core/text/txtdrop.cxx b/sw/source/core/text/txtdrop.cxx
index ec6e922fe32a..e60d9c862dea 100644
--- a/sw/source/core/text/txtdrop.cxx
+++ b/sw/source/core/text/txtdrop.cxx
@@ -49,7 +49,7 @@ using namespace ::com::sun::star;
* the position is calculated from the values in rInf
*************************************************************************/
-static sal_Bool lcl_IsDropFlyInter( const SwTxtFormatInfo &rInf,
+static bool lcl_IsDropFlyInter( const SwTxtFormatInfo &rInf,
sal_uInt16 nWidth, sal_uInt16 nHeight )
{
const SwTxtFly *pTxtFly = rInf.GetTxtFly();
@@ -63,7 +63,7 @@ static sal_Bool lcl_IsDropFlyInter( const SwTxtFormatInfo &rInf,
return aRect.HasArea();
}
- return sal_False;
+ return false;
}
/*************************************************************************
@@ -168,7 +168,7 @@ MSHORT SwTxtNode::GetDropLen( MSHORT nWishLen ) const
Boundary aBound =
g_pBreakIt->GetBreakIter()->getWordBoundary( GetTxt(), 0,
- g_pBreakIt->GetLocale( eLanguage ), WordType::DICTIONARY_WORD, sal_True );
+ g_pBreakIt->GetLocale( eLanguage ), WordType::DICTIONARY_WORD, true );
nEnd = aBound.endPos;
}
@@ -401,20 +401,19 @@ void SwDropPortion::Paint( const SwTxtPaintInfo &rInf ) const
*************************************************************************/
-sal_Bool SwDropPortion::FormatTxt( SwTxtFormatInfo &rInf )
+bool SwDropPortion::FormatTxt( SwTxtFormatInfo &rInf )
{
const sal_Int32 nOldLen = GetLen();
const sal_Int32 nOldInfLen = rInf.GetLen();
- const sal_Bool bFull = SwTxtPortion::Format( rInf );
- if( bFull )
- {
- // sieht zwar Scheisse aus, aber was soll man schon machen?
- rInf.SetUnderFlow( 0 );
- Truncate();
- SetLen( nOldLen );
- rInf.SetLen( nOldInfLen );
- }
- return bFull;
+ if (!SwTxtPortion::Format( rInf ))
+ return false;
+
+ // sieht zwar Scheisse aus, aber was soll man schon machen?
+ rInf.SetUnderFlow( 0 );
+ Truncate();
+ SetLen( nOldLen );
+ rInf.SetLen( nOldInfLen );
+ return true;
}
/*************************************************************************