diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/edit/autofmt.cxx | 24 | ||||
-rw-r--r-- | sw/source/core/edit/ednumber.cxx | 10 |
2 files changed, 17 insertions, 17 deletions
diff --git a/sw/source/core/edit/autofmt.cxx b/sw/source/core/edit/autofmt.cxx index 5f5c4297e65c..856d359a2447 100644 --- a/sw/source/core/edit/autofmt.cxx +++ b/sw/source/core/edit/autofmt.cxx @@ -132,7 +132,7 @@ class SwAutoFormat IS_ENDE } eStat; - bool bEnde : 1; + bool bEnd : 1; bool bEmptyLine : 1; bool bMoreLines : 1; @@ -205,7 +205,7 @@ class SwAutoFormat bool CanJoin( const SwTxtNode* pTxtNd ) const { - return !bEnde && pTxtNd && + return !bEnd && pTxtNd && !IsEmptyLine( *pTxtNd ) && !IsNoAlphaLine( *pTxtNd) && !IsEnumericChar( *pTxtNd ) && @@ -307,14 +307,14 @@ OUString SwAutoFormat::GoNextPara() // has to be checked twice before and after incrementation if( aNdIdx.GetIndex() >= aEndNdIdx.GetIndex() ) { - bEnde = true; + bEnd = true; return OUString(); } aNdIdx++; if( aNdIdx.GetIndex() >= aEndNdIdx.GetIndex() ) { - bEnde = true; + bEnd = true; return OUString(); } else @@ -326,7 +326,7 @@ OUString SwAutoFormat::GoNextPara() // EndNode : at the end, terminate if( pNewNd->IsEndNode() ) { - bEnde = true; + bEnd = true; return OUString(); } else if( pNewNd->IsTableNode() ) @@ -1267,7 +1267,7 @@ void SwAutoFormat::BuildIndent() { SetRedlineTxt( STR_AUTOFMTREDL_DEL_MORELINES ); const SwTxtNode* pNxtNd = GetNextNode(); - if( pNxtNd && !bEnde ) + if( pNxtNd && !bEnd ) { do { bBreak = !IsFastFullLine( *pNxtNd ) || @@ -2133,7 +2133,7 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFmtFlags& rFlags, else bEmptyLine = true; // at document beginning - bEnde = false; + bEnd = false; // set value for percentage display nEndNdIdx = aEndNdIdx.GetIndex(); @@ -2169,14 +2169,14 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFmtFlags& rFlags, // This is the automat for autoformatting eStat = READ_NEXT_PARA; - while( !bEnde ) + while( !bEnd ) { switch( eStat ) { case READ_NEXT_PARA: { GoNextPara(); - eStat = bEnde ? IS_ENDE : TST_EMPTY_LINE; + eStat = bEnd ? IS_ENDE : TST_EMPTY_LINE; } break; @@ -2422,7 +2422,7 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFmtFlags& rFlags, BuildTextIndent(); eStat = READ_NEXT_PARA; } - else if( nLevel && pNxtNd && !bEnde && + else if( nLevel && pNxtNd && !bEnd && !bNxtEmpty && !bNxtAlpha && !nNxtLevel && !IsEnumericChar( *pNxtNd ) ) { @@ -2448,7 +2448,7 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFmtFlags& rFlags, BuildText(); eStat = READ_NEXT_PARA; } - else if( !nLevel && pNxtNd && !bEnde && + else if( !nLevel && pNxtNd && !bEnd && !bNxtEmpty && !bNxtAlpha && nNxtLevel && !IsEnumericChar( *pNxtNd ) ) { @@ -2521,7 +2521,7 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFmtFlags& rFlags, break; case IS_ENDE: - bEnde = true; + bEnd = true; break; } } diff --git a/sw/source/core/edit/ednumber.cxx b/sw/source/core/edit/ednumber.cxx index 61b3ba454179..515146291b68 100644 --- a/sw/source/core/edit/ednumber.cxx +++ b/sw/source/core/edit/ednumber.cxx @@ -56,9 +56,9 @@ void SwPamRanges::Insert( const SwNodeIndex& rIdx1, const SwNodeIndex& rIdx2 ) return; // done, because by precondition everything is combined } - bool bEnde; + bool bEnd; do { - bEnde = true; + bEnd = true; // combine with predecessor? if( nPos > 0 ) @@ -68,7 +68,7 @@ void SwPamRanges::Insert( const SwNodeIndex& rIdx1, const SwNodeIndex& rIdx2 ) || rTmp.nEnd+1 == aRg.nStart ) { aRg.nStart = rTmp.nStart; - bEnde = false; + bEnd = false; erase( begin() + --nPos ); // combine } // range contained in rTmp? @@ -83,7 +83,7 @@ void SwPamRanges::Insert( const SwNodeIndex& rIdx1, const SwNodeIndex& rIdx2 ) rTmp.nStart == aRg.nEnd+1 ) { aRg.nEnd = rTmp.nEnd; - bEnde = false; + bEnd = false; erase( begin() + nPos ); // combine } @@ -91,7 +91,7 @@ void SwPamRanges::Insert( const SwNodeIndex& rIdx1, const SwNodeIndex& rIdx2 ) else if( rTmp.nStart <= aRg.nStart && aRg.nEnd <= rTmp.nEnd ) return; } - } while( !bEnde ); + } while( !bEnd ); _SwPamRanges::insert( aRg ); } |