Kaydet (Commit) a3f62b53 authored tarafından Philipp Riemer's avatar Philipp Riemer

adjusted code indentation for consistency

Change-Id: I0316e8753e440ff691e9c84f55aad8a6a7079652
üst 379bacf8
...@@ -69,7 +69,8 @@ sal_uInt16 SwEditShell::GetGlobalDocContent( SwGlblDocContents& rArr ) const ...@@ -69,7 +69,8 @@ sal_uInt16 SwEditShell::GetGlobalDocContent( SwGlblDocContents& rArr ) const
SwGlblDocContent* pNew; SwGlblDocContent* pNew;
switch( pSect->GetType() ) switch( pSect->GetType() )
{ {
case TOX_HEADER_SECTION: break; // ignore case TOX_HEADER_SECTION:
break; // ignore
case TOX_CONTENT_SECTION: case TOX_CONTENT_SECTION:
OSL_ENSURE( pSect->ISA( SwTOXBaseSection ), "no TOXBaseSection!" ); OSL_ENSURE( pSect->ISA( SwTOXBaseSection ), "no TOXBaseSection!" );
pNew = new SwGlblDocContent( (SwTOXBaseSection*)pSect ); pNew = new SwGlblDocContent( (SwTOXBaseSection*)pSect );
......
...@@ -711,7 +711,7 @@ sal_uInt16 SwEditShell::GetINetAttrs( SwGetINetAttrs& rArr ) ...@@ -711,7 +711,7 @@ sal_uInt16 SwEditShell::GetINetAttrs( SwGetINetAttrs& rArr )
rArr.push_back( pNew ); rArr.push_back( pNew );
} }
} }
} }
} }
return rArr.size(); return rArr.size();
} }
......
...@@ -900,7 +900,8 @@ uno::Reference< XSpellAlternatives > ...@@ -900,7 +900,8 @@ uno::Reference< XSpellAlternatives >
// don't determine the rectangle in the current line // don't determine the rectangle in the current line
xub_StrLen nWordStart = (nBegin + nLeft) < nLineStart ? nLineStart : nBegin + nLeft; xub_StrLen nWordStart = (nBegin + nLeft) < nLineStart ? nLineStart : nBegin + nLeft;
// take one less than the line end - otherwise the next line would be calculated // take one less than the line end - otherwise the next line would be calculated
xub_StrLen nWordEnd = (nBegin + nLen - nLeft - nRight) > nLineEnd ? nLineEnd: (nBegin + nLen - nLeft - nRight); xub_StrLen nWordEnd = (nBegin + nLen - nLeft - nRight) > nLineEnd
? nLineEnd : (nBegin + nLen - nLeft - nRight);
Push(); Push();
pCrsr->DeleteMark(); pCrsr->DeleteMark();
SwIndex& rContent = GetCrsr()->GetPoint()->nContent; SwIndex& rContent = GetCrsr()->GetPoint()->nContent;
...@@ -1025,7 +1026,8 @@ bool SwEditShell::GetGrammarCorrection( ...@@ -1025,7 +1026,8 @@ bool SwEditShell::GetGrammarCorrection(
// don't determine the rectangle in the current line // don't determine the rectangle in the current line
xub_StrLen nWordStart = (nBegin + nLeft) < nLineStart ? nLineStart : nBegin + nLeft; xub_StrLen nWordStart = (nBegin + nLeft) < nLineStart ? nLineStart : nBegin + nLeft;
// take one less than the line end - otherwise the next line would be calculated // take one less than the line end - otherwise the next line would be calculated
xub_StrLen nWordEnd = (nBegin + nLen - nLeft - nRight) > nLineEnd ? nLineEnd: (nBegin + nLen - nLeft - nRight); xub_StrLen nWordEnd = (nBegin + nLen - nLeft - nRight) > nLineEnd
? nLineEnd : (nBegin + nLen - nLeft - nRight);
Push(); Push();
pCrsr->DeleteMark(); pCrsr->DeleteMark();
SwIndex& rContent = GetCrsr()->GetPoint()->nContent; SwIndex& rContent = GetCrsr()->GetPoint()->nContent;
...@@ -1072,8 +1074,7 @@ void SwEditShell::PutSpellingToSentenceStart() ...@@ -1072,8 +1074,7 @@ void SwEditShell::PutSpellingToSentenceStart()
pSpellIter->ToSentenceStart(); pSpellIter->ToSentenceStart();
} }
static sal_uInt32 lcl_CountRedlines( static sal_uInt32 lcl_CountRedlines(const ::svx::SpellPortions& rLastPortions)
const ::svx::SpellPortions& rLastPortions)
{ {
sal_uInt32 nRet = 0; sal_uInt32 nRet = 0;
SpellPortions::const_iterator aIter = rLastPortions.begin(); SpellPortions::const_iterator aIter = rLastPortions.begin();
...@@ -1385,8 +1386,8 @@ bool SwSpellIter::SpellSentence(::svx::SpellPortions& rPortions, bool bIsGrammar ...@@ -1385,8 +1386,8 @@ bool SwSpellIter::SpellSentence(::svx::SpellPortions& rPortions, bool bIsGrammar
pCrsr->SetMark(); pCrsr->SetMark();
--GetCrsrCnt(); --GetCrsrCnt();
} }
} } while ( bGoOn );
while ( bGoOn );
if(xSpellRet.is() || bGrammarErrorFound) if(xSpellRet.is() || bGrammarErrorFound)
{ {
// an error has been found // an error has been found
......
...@@ -443,8 +443,7 @@ void SwEditShell::GetCurrentOutlineLevels( sal_uInt8& rUpper, sal_uInt8& rLower ...@@ -443,8 +443,7 @@ void SwEditShell::GetCurrentOutlineLevels( sal_uInt8& rUpper, sal_uInt8& rLower
aCrsr.SetMark(); aCrsr.SetMark();
if( pCrsr->HasMark() ) if( pCrsr->HasMark() )
*aCrsr.GetPoint() = *pCrsr->End(); *aCrsr.GetPoint() = *pCrsr->End();
GetDoc()->GotoNextNum( *aCrsr.GetPoint(), false, GetDoc()->GotoNextNum( *aCrsr.GetPoint(), false, &rUpper, &rLower );
&rUpper, &rLower );
} }
bool SwEditShell::MoveNumParas( bool bUpperLower, bool bUpperLeft ) bool SwEditShell::MoveNumParas( bool bUpperLower, bool bUpperLeft )
......
...@@ -43,8 +43,7 @@ bool SwEditShell::CursorsLocked() const ...@@ -43,8 +43,7 @@ bool SwEditShell::CursorsLocked() const
return GetDoc()->GetDocShell()->GetModel()->hasControllersLocked(); return GetDoc()->GetDocShell()->GetModel()->hasControllersLocked();
} }
void void SwEditShell::HandleUndoRedoContext(::sw::UndoRedoContext & rContext)
SwEditShell::HandleUndoRedoContext(::sw::UndoRedoContext & rContext)
{ {
// do nothing if somebody has locked controllers! // do nothing if somebody has locked controllers!
if (CursorsLocked()) if (CursorsLocked())
......
...@@ -228,8 +228,7 @@ SwUndoId SwEditShell::StartUndo( SwUndoId eUndoId, ...@@ -228,8 +228,7 @@ SwUndoId SwEditShell::StartUndo( SwUndoId eUndoId,
* @param eUndoId ID of the undo container * @param eUndoId ID of the undo container
* @param pRewriter ? * @param pRewriter ?
*/ */
SwUndoId SwEditShell::EndUndo(SwUndoId eUndoId, SwUndoId SwEditShell::EndUndo(SwUndoId eUndoId, const SwRewriter *pRewriter)
const SwRewriter *pRewriter)
{ return GetDoc()->GetIDocumentUndoRedo().EndUndo(eUndoId, pRewriter); } { return GetDoc()->GetIDocumentUndoRedo().EndUndo(eUndoId, pRewriter); }
bool SwEditShell::GetLastUndoInfo(OUString *const o_pStr, bool SwEditShell::GetLastUndoInfo(OUString *const o_pStr,
......
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