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

sal_Bool to bool

Change-Id: I98da667e406aef18e0f8b8bdb9b380cf76b36952
üst 54cbd46d
...@@ -344,7 +344,7 @@ public: ...@@ -344,7 +344,7 @@ public:
// Wir formatieren eine Zeile fuer die interaktive Trennung // Wir formatieren eine Zeile fuer die interaktive Trennung
// Return: found // Return: found
sal_Bool Hyphenate( SwInterHyphInfo &rInf ); bool Hyphenate( SwInterHyphInfo &rInf );
// Probegrow // Probegrow
inline SwTwips GrowTst( const SwTwips nGrow ); inline SwTwips GrowTst( const SwTwips nGrow );
......
...@@ -61,19 +61,19 @@ Reference< XHyphenatedWord > SwTxtFormatInfo::HyphWord( ...@@ -61,19 +61,19 @@ Reference< XHyphenatedWord > SwTxtFormatInfo::HyphWord(
* Wir formatieren eine Zeile fuer die interaktive Trennung * Wir formatieren eine Zeile fuer die interaktive Trennung
*************************************************************************/ *************************************************************************/
sal_Bool SwTxtFrm::Hyphenate( SwInterHyphInfo &rHyphInf ) bool SwTxtFrm::Hyphenate( SwInterHyphInfo &rHyphInf )
{ {
OSL_ENSURE( ! IsVertical() || ! IsSwapped(),"swapped frame at SwTxtFrm::Hyphenate" ); OSL_ENSURE( ! IsVertical() || ! IsSwapped(),"swapped frame at SwTxtFrm::Hyphenate" );
if( !g_pBreakIt->GetBreakIter().is() ) if( !g_pBreakIt->GetBreakIter().is() )
return sal_False; return false;
// Wir machen den Laden erstmal dicht: // Wir machen den Laden erstmal dicht:
OSL_ENSURE( !IsLocked(), "SwTxtFrm::Hyphenate: this is locked" ); OSL_ENSURE( !IsLocked(), "SwTxtFrm::Hyphenate: this is locked" );
// 4935: Der frame::Frame muss eine gueltige SSize haben! // 4935: Der frame::Frame muss eine gueltige SSize haben!
Calc(); Calc();
GetFormatted(); GetFormatted();
sal_Bool bRet = sal_False; bool bRet = false;
if( !IsEmpty() ) if( !IsEmpty() )
{ {
// Wir muessen die Trennung immer einschalten. // Wir muessen die Trennung immer einschalten.
...@@ -230,7 +230,7 @@ bool SwTxtFormatter::Hyphenate( SwInterHyphInfo &rHyphInf ) ...@@ -230,7 +230,7 @@ bool SwTxtFormatter::Hyphenate( SwInterHyphInfo &rHyphInf )
Boundary aBound = Boundary aBound =
g_pBreakIt->GetBreakIter()->getWordBoundary( rInf.GetTxt(), nWrdStart, g_pBreakIt->GetBreakIter()->getWordBoundary( rInf.GetTxt(), nWrdStart,
g_pBreakIt->GetLocale( rInf.GetFont()->GetLanguage() ), WordType::DICTIONARY_WORD, sal_True ); g_pBreakIt->GetLocale( rInf.GetFont()->GetLanguage() ), WordType::DICTIONARY_WORD, true );
nWrdStart = aBound.startPos; nWrdStart = aBound.startPos;
nLen = aBound.endPos - nWrdStart; nLen = aBound.endPos - nWrdStart;
if ( nLen == 0 ) if ( nLen == 0 )
...@@ -481,12 +481,12 @@ void SwSoftHyphPortion::Paint( const SwTxtPaintInfo &rInf ) const ...@@ -481,12 +481,12 @@ void SwSoftHyphPortion::Paint( const SwTxtPaintInfo &rInf ) const
* Fall 1: "Au-to" * Fall 1: "Au-to"
* 1) {Au}{-}{to}, {to} passt nicht mehr => Underflow * 1) {Au}{-}{to}, {to} passt nicht mehr => Underflow
* 2) {-} ruft Hyphenate => keine Alternative * 2) {-} ruft Hyphenate => keine Alternative
* 3) FormatEOL() und bFull = sal_True * 3) FormatEOL() und bFull = true
* *
* Fall 2: "Zuc-ker" * Fall 2: "Zuc-ker"
* 1) {Zuc}{-}{ker}, {ker} passt nicht mehr => Underflow * 1) {Zuc}{-}{ker}, {ker} passt nicht mehr => Underflow
* 2) {-} ruft Hyphenate => Alternative! * 2) {-} ruft Hyphenate => Alternative!
* 3) Underflow() und bFull = sal_True * 3) Underflow() und bFull = true
* 4) {Zuc} ruft Hyphenate => {Zuk}{-}{ker} * 4) {Zuc} ruft Hyphenate => {Zuk}{-}{ker}
*/ */
......
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