diff options
Diffstat (limited to 'sw/source/core/edit')
-rw-r--r-- | sw/source/core/edit/acorrect.cxx | 26 | ||||
-rw-r--r-- | sw/source/core/edit/autofmt.cxx | 254 | ||||
-rw-r--r-- | sw/source/core/edit/edatmisc.cxx | 14 | ||||
-rw-r--r-- | sw/source/core/edit/edattr.cxx | 22 | ||||
-rw-r--r-- | sw/source/core/edit/eddel.cxx | 26 | ||||
-rw-r--r-- | sw/source/core/edit/edfcol.cxx | 12 | ||||
-rw-r--r-- | sw/source/core/edit/edfld.cxx | 54 | ||||
-rw-r--r-- | sw/source/core/edit/edfldexp.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/edit/edfmt.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/edit/edglbldc.cxx | 10 | ||||
-rw-r--r-- | sw/source/core/edit/edglss.cxx | 26 | ||||
-rw-r--r-- | sw/source/core/edit/editsh.cxx | 90 | ||||
-rw-r--r-- | sw/source/core/edit/edlingu.cxx | 176 | ||||
-rw-r--r-- | sw/source/core/edit/ednumber.cxx | 42 | ||||
-rw-r--r-- | sw/source/core/edit/edredln.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/edit/edsect.cxx | 14 | ||||
-rw-r--r-- | sw/source/core/edit/edtab.cxx | 12 | ||||
-rw-r--r-- | sw/source/core/edit/edtox.cxx | 44 | ||||
-rw-r--r-- | sw/source/core/edit/edundo.cxx | 20 | ||||
-rw-r--r-- | sw/source/core/edit/edws.cxx | 26 |
20 files changed, 439 insertions, 439 deletions
diff --git a/sw/source/core/edit/acorrect.cxx b/sw/source/core/edit/acorrect.cxx index b7e92570df42..7ab7bd26c179 100644 --- a/sw/source/core/edit/acorrect.cxx +++ b/sw/source/core/edit/acorrect.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -185,13 +185,13 @@ BOOL SwAutoCorrDoc::Replace( xub_StrLen nPos, const String& rTxt ) { SwDoc* pDoc = rEditSh.GetDoc(); -// if( !pDoc->IsAutoFmtRedline() && -// pPam != &rCrsr ) // nur an akt. Position das Redline sichern -// pDoc->SetRedlineMode_intern( eOld | REDLINE_IGNORE ); +// if( !pDoc->IsAutoFmtRedline() && +// pPam != &rCrsr ) // nur an akt. Position das Redline sichern +// pDoc->SetRedlineMode_intern( eOld | REDLINE_IGNORE ); if( pDoc->IsAutoFmtRedline() ) { - if( nPos == pNd->GetTxt().Len() ) // am Ende erfolgt ein Insert + if( nPos == pNd->GetTxt().Len() ) // am Ende erfolgt ein Insert { pDoc->InsertString( *pPam, rTxt ); } @@ -210,7 +210,7 @@ BOOL SwAutoCorrDoc::Replace( xub_StrLen nPos, const String& rTxt ) else pDoc->Overwrite( *pPam, rTxt ); -// pDoc->SetRedlineMode_intern( eOld ); +// pDoc->SetRedlineMode_intern( eOld ); if( bUndoIdInitialized ) { bUndoIdInitialized = true; @@ -270,9 +270,9 @@ BOOL SwAutoCorrDoc::SetINetAttr( xub_StrLen nStt, xub_StrLen nEnd, const String& // Dieser darf nicht leer sein! // Gibt es diesen nicht oder gibt es davor nur Leere, dann returne 0 // Das Flag gibt an: - // TRUE: den, vor der normalen Einfuegeposition (TRUE) - // FALSE: den, in den das korrigierte Wort eingfuegt wurde. - // (Muss nicht der gleiche Absatz sein!!!!) + // TRUE: den, vor der normalen Einfuegeposition (TRUE) + // FALSE: den, in den das korrigierte Wort eingfuegt wurde. + // (Muss nicht der gleiche Absatz sein!!!!) const String* SwAutoCorrDoc::GetPrevPara( BOOL bAtNormalPos ) { const String* pStr = 0; @@ -401,8 +401,8 @@ BOOL SwAutoCorrDoc::ChgAutoCorrWord( xub_StrLen & rSttPos, xub_StrLen nEndPos, // wird nach dem austauschen der Zeichen von den Funktionen - // - FnCptlSttWrd - // - FnCptlSttSntnc + // - FnCptlSttWrd + // - FnCptlSttSntnc // gerufen. Dann koennen die Worte ggfs. in die Ausnahmelisten // aufgenommen werden. void SwAutoCorrDoc::SaveCpltSttWord( ULONG nFlag, xub_StrLen nPos, @@ -438,7 +438,7 @@ void SwAutoCorrExceptWord::CheckChar( const SwPosition& rPos, sal_Unicode cChr ) rPos.nContent.GetIndex() == nCntnt ) { // die akt. Autokorrektur besorgen: - SvxAutoCorrect* pACorr = SvxAutoCorrCfg::Get()->GetAutoCorrect(); + SvxAutoCorrect* pACorr = SvxAutoCorrCfg::Get()->GetAutoCorrect(); // dann in die Liste aufnehmen: if( CptlSttWrd & nFlags ) @@ -497,7 +497,7 @@ void SwDontExpandItem::RestoreDontExpandItems( const SwPosition& rPos ) { SwTxtAttr* pHt = pTxtNd->GetpSwpHints()->GetTextHint( n ); nAttrStart = *pHt->GetStart(); - if( nAttrStart > nStart ) // ueber den Bereich hinaus + if( nAttrStart > nStart ) // ueber den Bereich hinaus break; if( 0 != ( pAttrEnd = pHt->GetEnd() ) && diff --git a/sw/source/core/edit/autofmt.cxx b/sw/source/core/edit/autofmt.cxx index 639bab3c10c5..c5ae0bd0cfaa 100644 --- a/sw/source/core/edit/autofmt.cxx +++ b/sw/source/core/edit/autofmt.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -58,7 +58,7 @@ #include <pam.hxx> #include <edimp.hxx> #include <fesh.hxx> -#include <swundo.hxx> // fuer die UndoIds +#include <swundo.hxx> // fuer die UndoIds #include <poolfmt.hxx> #include <ndtxt.hxx> #include <txtfrm.hxx> @@ -86,9 +86,9 @@ using namespace ::com::sun::star; //------------------------------------------------------------------- //JP 16.12.99: definition: -// from pos cPosEnDash to cPosEmDash all chars changed to endashes, -// from pos cPosEmDash to cPosEnd all chars changed to emdashes -// all other chars are changed to the user configuration +// from pos cPosEnDash to cPosEmDash all chars changed to endashes, +// from pos cPosEmDash to cPosEnd all chars changed to emdashes +// all other chars are changed to the user configuration const sal_Unicode pBulletChar[6] = { '+', '*', '-', 0x2013, 0x2014, 0 }; const int cnPosEnDash = 2, cnPosEmDash = 4, cnPosEnd = 5; @@ -106,16 +106,16 @@ const USHORT cnNumBullColls = 4; class SwAutoFormat { SvxSwAutoFmtFlags aFlags; - SwPaM aDelPam; // ein Pam der benutzt werden kann - SwNodeIndex aNdIdx; // der Index auf den akt. TextNode - SwNodeIndex aEndNdIdx; // Index auf das Ende vom Bereich + SwPaM aDelPam; // ein Pam der benutzt werden kann + SwNodeIndex aNdIdx; // der Index auf den akt. TextNode + SwNodeIndex aEndNdIdx; // Index auf das Ende vom Bereich SwEditShell* pEditShell; SwDoc* pDoc; - SwTxtNode* pAktTxtNd; // der akt. TextNode - SwTxtFrm* pAktTxtFrm; // Frame vom akt. TextNode - CharClass* pCharClass; // Character classification - ULONG nEndNdIdx; // fuer die Prozent-Anzeige + SwTxtNode* pAktTxtNd; // der akt. TextNode + SwTxtFrm* pAktTxtFrm; // Frame vom akt. TextNode + CharClass* pCharClass; // Character classification + ULONG nEndNdIdx; // fuer die Prozent-Anzeige LanguageType eCharClassLang; USHORT nLastHeadLvl, nLastCalcHeadLvl; @@ -181,7 +181,7 @@ class SwAutoFormat // TxtNode Methoden const SwTxtNode* GetNextNode() const; BOOL IsEmptyLine( const SwTxtNode& rNd ) const - { return 0 == rNd.GetTxt().Len() || + { return 0 == rNd.GetTxt().Len() || rNd.GetTxt().Len() == GetLeadingBlanks( rNd.GetTxt() ); } BOOL IsOneLine( const SwTxtNode& ) const; @@ -245,9 +245,9 @@ class SwAutoFormat void _SetRedlineTxt( USHORT nId ); BOOL SetRedlineTxt( USHORT nId ) - { if( aFlags.bWithRedlining ) _SetRedlineTxt( nId ); return TRUE; } + { if( aFlags.bWithRedlining ) _SetRedlineTxt( nId ); return TRUE; } BOOL ClearRedlineTxt() - { if( aFlags.bWithRedlining ) pDoc->SetAutoFmtRedlineComment(0); return TRUE; } + { if( aFlags.bWithRedlining ) pDoc->SetAutoFmtRedlineComment(0); return TRUE; } public: SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFmtFlags& rFlags, @@ -348,9 +348,9 @@ String SwAutoFormat::GoNextPara() pNewNd = &aNdIdx.GetNode(); // kein TextNode -> - // TableNode : Tabelle ueberspringen - // NoTxtNode : Nodes ueberspringen - // EndNode : Ende erreicht, beenden + // TableNode : Tabelle ueberspringen + // NoTxtNode : Nodes ueberspringen + // EndNode : Ende erreicht, beenden if( pNewNd->IsEndNode() ) { bEnde = TRUE; @@ -457,7 +457,7 @@ BOOL SwAutoFormat::IsBlanksInString( const SwTxtNode& rNd ) const { if( IsSpace( *pTmp ) ) { - if( IsSpace( *++pTmp )) // 2 Space nach einander + if( IsSpace( *++pTmp )) // 2 Space nach einander { const sal_Unicode* pStt = pTmp; while( *pTmp && IsSpace( *++pTmp )) @@ -499,10 +499,10 @@ USHORT SwAutoFormat::CalcLevel( const SwTxtNode& rNd, USHORT *pDigitLvl ) const { switch( rTxt.GetChar( n ) ) { - case ' ': if( 3 == ++nBlnk ) + case ' ': if( 3 == ++nBlnk ) ++nLvl, nBlnk = 0; break; - case '\t': ++nLvl, nBlnk = 0; + case '\t': ++nLvl, nBlnk = 0; break; default: if( pDigitLvl ) @@ -540,7 +540,7 @@ BOOL SwAutoFormat::IsNoAlphaLine( const SwTxtNode& rNd ) const if( !rStr.Len() ) return FALSE; // oder besser: ueber die Anzahl von Alpha/Num- und !AN-Zeichen - // bestimmen. + // bestimmen. xub_StrLen nANChar = 0, nBlnk = 0; CharClass& rCC = GetCharClass( rNd.GetSwAttrSet().GetLanguage().GetLanguage() ); @@ -552,7 +552,7 @@ BOOL SwAutoFormat::IsNoAlphaLine( const SwTxtNode& rNd ) const // sind zu 75% keine Alpha-Nummerische-Zeichen, dann TRUE ULONG nLen = rStr.Len() - nBlnk; - nLen = ( nLen * 3 ) / 4; // long overflow, if the strlen > USHORT + nLen = ( nLen * 3 ) / 4; // long overflow, if the strlen > USHORT return xub_StrLen(nLen) < (rStr.Len() - nANChar - nBlnk); } @@ -569,17 +569,17 @@ BOOL SwAutoFormat::DoUnderline() while( *pStr ) { //JP 29.03.96: Spaces unterbrechen die Umrandung! -// if( !IsSpace( *pStr ) ) +// if( !IsSpace( *pStr ) ) { int eTmp = 0; switch( *pStr ) { - case '-': eTmp = 1; break; - case '_': eTmp = 2; break; - case '=': eTmp = 3; break; - case '*': eTmp = 4; break; - case '~': eTmp = 5; break; - case '#': eTmp = 6; break; + case '-': eTmp = 1; break; + case '_': eTmp = 2; break; + case '=': eTmp = 3; break; + case '*': eTmp = 4; break; + case '~': eTmp = 5; break; + case '#': eTmp = 6; break; default: return FALSE; } @@ -599,33 +599,33 @@ BOOL SwAutoFormat::DoUnderline() aDelPam.SetMark(); aDelPam.GetMark()->nContent = 0; //JP 19.03.96: kein Underline sondern eine Umrandung setzen! -// pDoc->Insert( aDelPam, SvxUnderlineItem( eState ) ); +// pDoc->Insert( aDelPam, SvxUnderlineItem( eState ) ); SvxBorderLine aLine; switch( eState ) { - case 1: // einfach, 0,05 pt + case 1: // einfach, 0,05 pt aLine.SetOutWidth( DEF_LINE_WIDTH_0 ); break; - case 2: // einfach, 1,0 pt + case 2: // einfach, 1,0 pt aLine.SetOutWidth( DEF_LINE_WIDTH_1 ); break; - case 3: // doppelt, 1,1 pt + case 3: // doppelt, 1,1 pt aLine.SetOutWidth( DEF_DOUBLE_LINE0_OUT ); aLine.SetInWidth( DEF_DOUBLE_LINE0_IN ); aLine.SetDistance( DEF_DOUBLE_LINE0_DIST ); break; - case 4: // doppelt, 4,5 pt + case 4: // doppelt, 4,5 pt aLine.SetOutWidth( DEF_DOUBLE_LINE4_OUT ); aLine.SetInWidth( DEF_DOUBLE_LINE4_IN ); aLine.SetDistance( DEF_DOUBLE_LINE4_DIST ); break; - case 5: // doppelt, 6,0 pt + case 5: // doppelt, 6,0 pt aLine.SetOutWidth( DEF_DOUBLE_LINE5_OUT ); aLine.SetInWidth( DEF_DOUBLE_LINE5_IN ); aLine.SetDistance( DEF_DOUBLE_LINE5_DIST ); break; - case 6: // doppelt, 9,0 pt + case 6: // doppelt, 9,0 pt aLine.SetOutWidth( DEF_DOUBLE_LINE6_OUT ); aLine.SetInWidth( DEF_DOUBLE_LINE6_IN ); aLine.SetDistance( DEF_DOUBLE_LINE6_DIST ); @@ -638,7 +638,7 @@ BOOL SwAutoFormat::DoUnderline() aSet.Put( SwParaConnectBorderItem( FALSE ) ); SvxBoxItem aBox( RES_BOX ); aBox.SetLine( &aLine, BOX_LINE_BOTTOM ); - aBox.SetDistance( 42 ); // ~0,75 mm + aBox.SetDistance( 42 ); // ~0,75 mm aSet.Put(aBox); pDoc->InsertItemSet( aDelPam, aSet, 0 ); @@ -739,7 +739,7 @@ String& SwAutoFormat::DelLeadingBlanks( String& rStr ) const for( nL = rStr.Len(), n = 0; n < nL && IsSpace( rStr.GetChar(n) ); ++n ) ; - if( n ) // keine Spaces + if( n ) // keine Spaces rStr.Erase( 0, n ); return rStr; } @@ -753,7 +753,7 @@ String& SwAutoFormat::DelTrailingBlanks( String& rStr ) const while( --n && IsSpace( rStr.GetChar( n ) ) ) ; - if( n+1 != nL ) // keine Spaces + if( n+1 != nL ) // keine Spaces rStr.Erase( n+1 ); return rStr; } @@ -823,7 +823,7 @@ USHORT SwAutoFormat::GetDigitLevel( const SwTxtNode& rNd, xub_StrLen& rPos, { if( eScan & DELIM ) { - if( eScan & CHG ) // nicht wenns mit einer Zahl beginnt + if( eScan & CHG ) // nicht wenns mit einer Zahl beginnt { ++nDigitLvl; if( pPostFix ) @@ -838,12 +838,12 @@ USHORT SwAutoFormat::GetDigitLevel( const SwTxtNode& rNd, xub_StrLen& rPos, else if( pNumTypes && !(eScan & DIGIT) ) *pNumTypes += (sal_Unicode)('0' + SVX_NUM_ARABIC); - eScan &= ~DELIM; // Delim raus + eScan &= ~DELIM; // Delim raus if( 0 != (eScan & ~CHG) && DIGIT != (eScan & ~CHG)) return USHRT_MAX; - eScan |= DIGIT; // Digit rein - if( 3 == ++nDigitCnt ) // mehr als 2 Nummern sind kein Enum mehr + eScan |= DIGIT; // Digit rein + if( 3 == ++nDigitCnt ) // mehr als 2 Nummern sind kein Enum mehr return USHRT_MAX; nStart *= 10; @@ -860,7 +860,7 @@ USHORT SwAutoFormat::GetDigitLevel( const SwTxtNode& rNd, xub_StrLen& rPos, // roemische Zeichen sind "mdclxvi". Da man aber eher mal eine // Numerierung mit c oder d anfangen will, werden diese erstmal // zu chars und spaeter ggfs. zu romischen Zeichen! -// if( strchr( "mdclxvi", cLow )) +// if( strchr( "mdclxvi", cLow )) #ifdef WITH_ALPHANUM_AS_NUMFMT //detection of 'c' and 'd' a ROMAN numbering should not be done here if( 256 > cLow &&( (eScan & (LOWER_ROMAN|UPPER_ROMAN)) @@ -902,7 +902,7 @@ USHORT SwAutoFormat::GetDigitLevel( const SwTxtNode& rNd, xub_StrLen& rPos, if( eScan & DELIM ) { - if( eScan & CHG ) // nicht wenns mit einer Zahl beginnt + if( eScan & CHG ) // nicht wenns mit einer Zahl beginnt { ++nDigitLvl; if( pPostFix ) @@ -916,7 +916,7 @@ USHORT SwAutoFormat::GetDigitLevel( const SwTxtNode& rNd, xub_StrLen& rPos, else if( pNumTypes && !(eScan & eTmpScan) ) *pNumTypes += cNumTyp; - eScan &= ~DELIM; // Delim raus + eScan &= ~DELIM; // Delim raus // falls ein andere Type gesetzt ist, brechen wir ab if( 0 != ( eScan & ~CHG ) && eTmpScan != ( eScan & ~CHG )) @@ -934,12 +934,12 @@ USHORT SwAutoFormat::GetDigitLevel( const SwTxtNode& rNd, xub_StrLen& rPos, BOOL bError = FALSE; switch( cLow ) { - case 'm': nVal = 1000; goto CHECK_ROMAN_1; - case 'd': nVal = 500; goto CHECK_ROMAN_5; - case 'c': nVal = 100; goto CHECK_ROMAN_1; - case 'l': nVal = 50; goto CHECK_ROMAN_5; - case 'x': nVal = 10; goto CHECK_ROMAN_1; - case 'v': nVal = 5; goto CHECK_ROMAN_5; + case 'm': nVal = 1000; goto CHECK_ROMAN_1; + case 'd': nVal = 500; goto CHECK_ROMAN_5; + case 'c': nVal = 100; goto CHECK_ROMAN_1; + case 'l': nVal = 50; goto CHECK_ROMAN_5; + case 'x': nVal = 10; goto CHECK_ROMAN_1; + case 'v': nVal = 5; goto CHECK_ROMAN_5; CHECK_ROMAN_1: { @@ -992,7 +992,7 @@ CHECK_ROMAN_5: if( bError ) return USHRT_MAX; } - eScan |= eTmpScan; // Digit rein + eScan |= eTmpScan; // Digit rein ++nDigitCnt; } else if( (256 > cCurrentChar && @@ -1019,8 +1019,8 @@ CHECK_ROMAN_5: (*pPreFix += (sal_Unicode)1) += String::CreateFromInt32( nStart ); } - eScan &= ~NO_DELIM; // Delim raus - eScan |= DELIM; // Digit rein + eScan &= ~NO_DELIM; // Delim raus + eScan |= DELIM; // Digit rein nDigitCnt = 0; nStart = 0; } @@ -1033,11 +1033,11 @@ CHECK_ROMAN_5: (nOpeningParentheses > nClosingParentheses)) return USHRT_MAX; - if( (NO_DELIM & eScan) && pPreFix ) // den letzen nicht vergessen + if( (NO_DELIM & eScan) && pPreFix ) // den letzen nicht vergessen (*pPreFix += (sal_Unicode)1) += String::CreateFromInt32( nStart ); rPos = nPos; - return nDigitLvl; // 0 .. 9 (MAXLEVEL - 1) + return nDigitLvl; // 0 .. 9 (MAXLEVEL - 1) } @@ -1277,7 +1277,7 @@ void SwAutoFormat::DelMoreLinesBlanks( BOOL bWithLineBreaks ) { if( aFlags.bAFmtByInput ? aFlags.bAFmtByInpDelSpacesBetweenLines - : aFlags.bAFmtDelSpacesBetweenLines ) + : aFlags.bAFmtDelSpacesBetweenLines ) { // loesche alle "Blanks" Links und Rechts vom Einzug aDelPam.DeleteMark(); @@ -1389,7 +1389,7 @@ void SwAutoFormat::BuildTextIndent() { SetRedlineTxt( STR_AUTOFMTREDL_DEL_MORELINES ); const SwTxtNode* pNxtNd = GetNextNode(); - while( CanJoin( pNxtNd ) && + while( CanJoin( pNxtNd ) && CalcLevel( *pNxtNd ) ) { bBreak = !IsFastFullLine( *pNxtNd ) || IsBlanksInString( *pNxtNd ) || @@ -1425,7 +1425,7 @@ void SwAutoFormat::BuildText() { SetRedlineTxt( STR_AUTOFMTREDL_DEL_MORELINES ); const SwTxtNode* pNxtNd = GetNextNode(); - while( CanJoin( pNxtNd ) && + while( CanJoin( pNxtNd ) && !CalcLevel( *pNxtNd ) ) { bBreak = !IsFastFullLine( *pNxtNd ) || IsBlanksInString( *pNxtNd ) || @@ -1473,7 +1473,7 @@ void SwAutoFormat::BuildEnum( USHORT nLvl, USHORT nDigitLevel ) IsBlanksInString( *pAktTxtNd ) || IsSentenceAtEnd( *pAktTxtNd ); sal_Bool bRTL = pEditShell->IsInRightToLeftText(); -// SetColl( RES_POOLCOLL_NUM_LEVEL1 + ( nLvl * 4 ) ); +// SetColl( RES_POOLCOLL_NUM_LEVEL1 + ( nLvl * 4 ) ); DeleteAktPara( TRUE, TRUE ); BOOL bChgBullet = FALSE, bChgEnum = FALSE; @@ -1494,7 +1494,7 @@ void SwAutoFormat::BuildEnum( USHORT nLvl, USHORT nDigitLevel ) const String& rStr = pAktTxtNd->GetTxt(); xub_StrLen nTxtStt = 0, nOrigTxtStt = 0; const sal_Unicode* pFndBulletChr; -// if( aFlags.bAFmtByInput ? aFlags.bSetNumRule : aFlags.bChgEnumNum && +// if( aFlags.bAFmtByInput ? aFlags.bSetNumRule : aFlags.bChgEnumNum && if( aFlags.bChgEnumNum && 2 < rStr.Len() && 0 != ( pFndBulletChr = StrChr( pBulletChar, rStr.GetChar( nTxtStt ) )) @@ -1570,8 +1570,8 @@ void SwAutoFormat::BuildEnum( USHORT nLvl, USHORT nDigitLevel ) // dann ist das eine Nummerierung //JP 21.11.97: Der NumLevel wird entweder der DigitLevel oder - // wenn der nicht vorhanden oder 0 ist, durch den - // (Einrueckungs-)Level. + // wenn der nicht vorhanden oder 0 ist, durch den + // (Einrueckungs-)Level. String aPostFix, aPreFix, aNumTypes; if( USHRT_MAX != ( nDigitLevel = GetDigitLevel( *pAktTxtNd, nTxtStt, @@ -1590,7 +1590,7 @@ void SwAutoFormat::BuildEnum( USHORT nLvl, USHORT nDigitLevel ) if( bChgEnum && aFlags.bSetNumRule ) { - if( !pCur ) // NumRule anpassen, wenn sie neu ist + if( !pCur ) // NumRule anpassen, wenn sie neu ist { SwCharFmt* pCFmt = pDoc->GetCharFmtFromPool( RES_POOLCHR_NUM_LEVEL ); @@ -1736,7 +1736,7 @@ void SwAutoFormat::BuildEnum( USHORT nLvl, USHORT nDigitLevel ) if( bBreak ) { - AutoCorrect( nAutoCorrPos ); /* Offset wegen Bullet + Tab */ + AutoCorrect( nAutoCorrPos ); /* Offset wegen Bullet + Tab */ return; } @@ -1800,7 +1800,7 @@ void SwAutoFormat::BuildNegIndent( SwTwips nSpaces ) ; ++nSpaceStt; - if( bInsTab && '\t' == rStr.GetChar( nSpaceStt ) ) // ein Tab, das belassen wir + if( bInsTab && '\t' == rStr.GetChar( nSpaceStt ) ) // ein Tab, das belassen wir { ++nSpaceStt; bInsTab = FALSE; @@ -1829,7 +1829,7 @@ void SwAutoFormat::BuildNegIndent( SwTwips nSpaces ) SetRedlineTxt( STR_AUTOFMTREDL_DEL_MORELINES ); SwTxtFrmInfo aFInfo( pAktTxtFrm ); const SwTxtNode* pNxtNd = GetNextNode(); - while( CanJoin( pNxtNd ) && + while( CanJoin( pNxtNd ) && 20 < Abs( (long)(nSpaces - aFInfo.SetFrm( GetFrm( *pNxtNd ) ).GetLineStart() )) ) @@ -1930,9 +1930,9 @@ void SwAutoFormat::AutoCorrect( xub_StrLen nPos ) while( nPos < pTxt->Len() && IsSpace( cChar = pTxt->GetChar( nPos ) )) ++nPos; if( nPos == pTxt->Len() ) - break; // das wars + break; // das wars - if( ( ( bReplaceQuote && '\"' == cChar ) || + if( ( ( bReplaceQuote && '\"' == cChar ) || ( bReplaceSglQuote && '\'' == cChar ) ) && ( !nPos || ' ' == pTxt->GetChar( nPos-1 ) ) ) { @@ -2077,7 +2077,7 @@ void SwAutoFormat::AutoCorrect( xub_StrLen nPos ) LanguageType eLang = (bGetLanguage && pAktTxtNd) ? pAktTxtNd->GetLang( nSttPos ) : LANGUAGE_SYSTEM; - + SetRedlineTxt( STR_AUTOFMTREDL_NON_BREAK_SPACE ); if ( pATst->FnAddNonBrkSpace( aACorrDoc, *pTxt, nSttPos, nPos, eLang ) ) --nPos; @@ -2090,15 +2090,15 @@ void SwAutoFormat::AutoCorrect( xub_StrLen nPos ) if( aFlags.bCptlSttSntnc ) bFirstSent = TRUE; //alle Wortrenner loesen die Autokorrektur aus! -// break; +// break; default: //alle Wortrenner loesen die Autokorrektur aus! -// case ' ': -// case '\t': +// case ' ': +// case '\t': if( !( rAppCC.isLetterNumeric( *pTxt, nPos ) || '/' == cChar )) // '/' should not be a word seperator (e.g. '1/2' needs to be handled as one word for replacement) { - --nPos; // ++nPos von dem for ungueltig machen ! + --nPos; // ++nPos von dem for ungueltig machen ! ++bBreak; } break; @@ -2132,13 +2132,13 @@ void SwAutoFormat::AutoCorrect( xub_StrLen nPos ) aDelPam.DeleteMark(); } - continue; // nichts weiter mehr abpruefen + continue; // nichts weiter mehr abpruefen } LanguageType eLang = (bGetLanguage && pAktTxtNd) ? pAktTxtNd->GetLang( nSttPos ) : LANGUAGE_SYSTEM; - + if ( aFlags.bAddNonBrkSpace ) { SetRedlineTxt( STR_AUTOFMTREDL_NON_BREAK_SPACE ); @@ -2219,7 +2219,7 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFmtFlags& rFlags, if( pSttNd ) { aNdIdx = *pSttNd; - aNdIdx--; // fuer GoNextPara, ein Absatz davor + aNdIdx--; // fuer GoNextPara, ein Absatz davor aEndNdIdx = *pEndNd; aEndNdIdx++; @@ -2230,7 +2230,7 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFmtFlags& rFlags, IsNoAlphaLine( *pNxtNd ); } else - bEmptyLine = TRUE; // am Dokument Anfang + bEmptyLine = TRUE; // am Dokument Anfang bEnde = FALSE; @@ -2286,7 +2286,7 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFmtFlags& rFlags, aWarning.SetDefaultCheckBoxText(); USHORT nDefaultButton = nResult==RET_YES?BUTTONID_YES:(nResult==RET_NO?BUTTONID_NO:BUTTONID_CANCEL); aWarning.SetFocusButton(nDefaultButton); - nResult = aWarning.Execute(); + nResult = aWarning.Execute(); m_bAskForCancelUndoWhileBufferOverflow = !aWarning.GetCheckBoxState(); m_nActionWhileAutoformatUndoBufferOverflow = nResult; // TODO: #102007# store m_bAskForCancelUndoWhileBufferOverflow in configuration @@ -2335,7 +2335,7 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFmtFlags& rFlags, DelEmptyLine(); // wurde wiklich ein Node geloescht ? if( nOldCnt != pDoc->GetNodes().Count() ) - aNdIdx--; // nicht den naechsten Absatz ueberspringen + aNdIdx--; // nicht den naechsten Absatz ueberspringen } eStat = READ_NEXT_PARA; } @@ -2350,7 +2350,7 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFmtFlags& rFlags, if( aFlags.bAFmtByInput && aFlags.bCreateTable && DoTable() ) { //JP 30.09.96: das DoTable() verlaesst sich auf das - // Pop und Move - Crsr nach dem AutoFormat! + // Pop und Move - Crsr nach dem AutoFormat! pEdShell->Pop( FALSE ); *pEdShell->GetCrsr() = aDelPam; pEdShell->Push(); @@ -2390,8 +2390,8 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFmtFlags& rFlags, aFInfo.SetFrm( pAktTxtFrm ); // erstmal: wurden schon mal entsprechende Vorlagen - // vergeben, so behalte die bei, gehe zum - // naechsten Node. + // vergeben, so behalte die bei, gehe zum + // naechsten Node. USHORT nPoolId = pAktTxtNd->GetTxtColl()->GetPoolFmtId(); if( IsPoolUserFmt( nPoolId ) ? !aFlags.bChgUserColl @@ -2417,7 +2417,7 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFmtFlags& rFlags, 0 != pLRSpace->GetTxtLeft() ) ) { // Ausnahme: Numerierun/Aufzaehlung kann mit Einzug - // existieren!! + // existieren!! if( IsEnumericChar( *pAktTxtNd )) { nLevel = CalcLevel( *pAktTxtNd, &nDigitLvl ); @@ -2436,11 +2436,11 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFmtFlags& rFlags, if( bReplaceStyles ) { // dann setze doch eine unserer Vorlagen - if( 0 < nSz ) // positiver 1. Zeileneinzug + if( 0 < nSz ) // positiver 1. Zeileneinzug BuildIndent(); - else if( 0 > nSz ) // negativer 1. Zeileneinzug + else if( 0 > nSz ) // negativer 1. Zeileneinzug BuildNegIndent( aFInfo.GetLineStart() ); - else if( pLRSpace->GetTxtLeft() ) // ist ein Einzug + else if( pLRSpace->GetTxtLeft() ) // ist ein Einzug BuildTextIndent(); } eStat = READ_NEXT_PARA; @@ -2464,8 +2464,8 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFmtFlags& rFlags, // fuer z.B. selbst definierte Einzuege oder // rechts/zentierte Ausrichtung -// if( !nLevel && 0 != aFInfo.GetLineStart() ) -// nLevel = 1; +// if( !nLevel && 0 != aFInfo.GetLineStart() ) +// nLevel = 1; } else { @@ -2489,7 +2489,7 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFmtFlags& rFlags, { bEmptyLine = TRUE; eStat = READ_NEXT_PARA; - break; // naechsten Absatz lesen + break; // naechsten Absatz lesen } // Teste auf Ueberschrift @@ -2508,8 +2508,8 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFmtFlags& rFlags, // Wie ist denn nun die Bedingung fuer die Ueberschrift auf Ebene 3 ?? // Zur Zeit: generell wenn am Ende ein ':' ist. // -// if( bNxtEmpty || bNxtAlpha ) -// !IsEnumericChar( *pNxtNd ) ) +// if( bNxtEmpty || bNxtAlpha ) +// !IsEnumericChar( *pNxtNd ) ) //--------------------------------------------------------------------------- { BuildHeadLine( 2 ); @@ -2531,8 +2531,8 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFmtFlags& rFlags, ) { // wurde Level vom Text vorgegeben ? -// if( USHRT_MAX != nDigitLvl ) -// nLevel = nDigitLvl; +// if( USHRT_MAX != nDigitLvl ) +// nLevel = nDigitLvl; // eine Ebene runter ? if( nLevel >= MAXLEVEL ) @@ -2575,8 +2575,8 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFmtFlags& rFlags, eStat = READ_NEXT_PARA; } //JP 25.03.96: Vorlagen fuer Einzug zulassen -// else if( aFlags.bAFmtByInput ) -// eStat = READ_NEXT_PARA; +// else if( aFlags.bAFmtByInput ) +// eStat = READ_NEXT_PARA; else if( bReplaceStyles ) eStat = nLevel ? TST_IDENT : TST_NEG_IDENT; else @@ -2589,11 +2589,11 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFmtFlags& rFlags, if( bMoreLines && nLevel ) { SwTwips nSz = aFInfo.GetFirstIndent(); - if( 0 < nSz ) // positiver 1. Zeileneinzug + if( 0 < nSz ) // positiver 1. Zeileneinzug BuildIndent(); - else if( 0 > nSz ) // negativer 1. Zeileneinzug + else if( 0 > nSz ) // negativer 1. Zeileneinzug BuildNegIndent( aFInfo.GetLineStart() ); - else // ist ein Einzug + else // ist ein Einzug BuildTextIndent(); eStat = READ_NEXT_PARA; } @@ -2615,11 +2615,11 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFmtFlags& rFlags, if( bMoreLines && !nLevel ) { SwTwips nSz = aFInfo.GetFirstIndent(); - if( 0 < nSz ) // positiver 1. Zeileneinzug + if( 0 < nSz ) // positiver 1. Zeileneinzug BuildIndent(); - else if( 0 > nSz ) // negativer 1. Zeileneinzug + else if( 0 > nSz ) // negativer 1. Zeileneinzug BuildNegIndent( aFInfo.GetLineStart() ); - else // ist ein kein Einzug + else // ist ein kein Einzug BuildText(); eStat = READ_NEXT_PARA; } @@ -2641,11 +2641,11 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFmtFlags& rFlags, if( bMoreLines ) { SwTwips nSz = aFInfo.GetFirstIndent(); - if( 0 < nSz ) // positiver 1. Zeileneinzug + if( 0 < nSz ) // positiver 1. Zeileneinzug BuildIndent(); - else if( 0 > nSz ) // negativer 1. Zeileneinzug + else if( 0 > nSz ) // negativer 1. Zeileneinzug BuildNegIndent( aFInfo.GetLineStart() ); - else if( nLevel ) // ist ein Einzug + else if( nLevel ) // ist ein Einzug BuildTextIndent(); else BuildText(); @@ -2661,8 +2661,8 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFmtFlags& rFlags, case HAS_FMTCOLL: { // erstmal: wurden schon mal entsprechende Vorlagen - // vergeben, so behalte die bei, gehe zum - // naechsten Node. + // vergeben, so behalte die bei, gehe zum + // naechsten Node. bEmptyLine = FALSE; eStat = READ_NEXT_PARA; // loesche alle Blanks am Anfang/Ende @@ -2683,13 +2683,13 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFmtFlags& rFlags, 0 != pLRSpace->GetTxtLeft() ) ) { // dann setze doch eine unserer Vorlagen - if( 0 < nSz ) // positiver 1. Zeileneinzug + if( 0 < nSz ) // positiver 1. Zeileneinzug BuildIndent(); - else if( 0 > nSz ) // negativer 1. Zeileneinzug + else if( 0 > nSz ) // negativer 1. Zeileneinzug { BuildNegIndent( aFInfo.GetLineStart() ); } - else if( pLRSpace->GetTxtLeft() ) // ist ein Einzug + else if( pLRSpace->GetTxtLeft() ) // ist ein Einzug BuildTextIndent(); else BuildText(); @@ -2724,8 +2724,8 @@ void SwEditShell::AutoFormat( const SvxSwAutoFmtFlags* pAFlags ) StartAllAction(); StartUndo( UNDO_AUTOFORMAT ); - SvxSwAutoFmtFlags aAFFlags; // erst mal default - Werte - if( pAFlags ) // oder doch angegeben ?? + SvxSwAutoFmtFlags aAFFlags; // erst mal default - Werte + if( pAFlags ) // oder doch angegeben ?? { aAFFlags = *pAFlags; if( !aAFFlags.bAFmtByInput ) @@ -2788,15 +2788,15 @@ void SwEditShell::AutoFmtBySplitNode() if( bRange ) { - Push(); // Cursor sichern + Push(); // Cursor sichern - SvxSwAutoFmtFlags aAFFlags = *GetAutoFmtFlags(); // erst mal default - Werte + SvxSwAutoFmtFlags aAFFlags = *GetAutoFmtFlags(); // erst mal default - Werte SwAutoFormat aFmt( this, aAFFlags, &pCrsr->GetMark()->nNode, &pCrsr->GetPoint()->nNode ); //JP 30.09.96: das DoTable() verlaesst sich auf das PopCrsr - // und MoveCrsr! + // und MoveCrsr! Pop( FALSE ); pCrsr = GetCrsr(); } @@ -2820,21 +2820,21 @@ void SwEditShell::SetAutoFmtFlags(SvxSwAutoFmtFlags * pFlags) { SvxSwAutoFmtFlags* pEditFlags = GetAutoFmtFlags(); - pEditFlags->bSetNumRule = pFlags->bSetNumRule; - pEditFlags->bChgEnumNum = pFlags->bChgEnumNum; - pEditFlags->bSetBorder = pFlags->bSetBorder; - pEditFlags->bCreateTable = pFlags->bCreateTable; - pEditFlags->bReplaceStyles = pFlags->bReplaceStyles; + pEditFlags->bSetNumRule = pFlags->bSetNumRule; + pEditFlags->bChgEnumNum = pFlags->bChgEnumNum; + pEditFlags->bSetBorder = pFlags->bSetBorder; + pEditFlags->bCreateTable = pFlags->bCreateTable; + pEditFlags->bReplaceStyles = pFlags->bReplaceStyles; pEditFlags->bAFmtByInpDelSpacesAtSttEnd = pFlags->bAFmtByInpDelSpacesAtSttEnd; pEditFlags->bAFmtByInpDelSpacesBetweenLines = pFlags->bAFmtByInpDelSpacesBetweenLines; //JP 15.12.98: BulletZeichen und Font in die "normalen" kopieren, - // weil beim Autoformat nur mit diesen gearbeitet wird! - pEditFlags->cBullet = pFlags->cByInputBullet; - pEditFlags->aBulletFont = pFlags->aByInputBulletFont; - pEditFlags->cByInputBullet = pFlags->cByInputBullet; - pEditFlags->aByInputBulletFont = pFlags->aByInputBulletFont; + // weil beim Autoformat nur mit diesen gearbeitet wird! + pEditFlags->cBullet = pFlags->cByInputBullet; + pEditFlags->aBulletFont = pFlags->aByInputBulletFont; + pEditFlags->cByInputBullet = pFlags->cByInputBullet; + pEditFlags->aByInputBulletFont = pFlags->aByInputBulletFont; } diff --git a/sw/source/core/edit/edatmisc.cxx b/sw/source/core/edit/edatmisc.cxx index 6fda3a164c32..25770ba33bb7 100644 --- a/sw/source/core/edit/edatmisc.cxx +++ b/sw/source/core/edit/edatmisc.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -67,9 +67,9 @@ void SwEditShell::ResetAttr( const SvUShortsSort* pAttrs ) void SwEditShell::GCAttr() { //JP 04.02.97: wozu eine Action-Klammerung - ein Formatierung sollte nicht -// ausgeloest werden, so dass es hier ueberfluessig ist. -// Sonst Probleme im MouseBut.DownHdl - Bug 35562 -// StartAllAction(); +// ausgeloest werden, so dass es hier ueberfluessig ist. +// Sonst Probleme im MouseBut.DownHdl - Bug 35562 +// StartAllAction(); FOREACHPAM_START(this) SwTxtNode *pTxtNode; if ( !PCURCRSR->HasMark() ) @@ -91,7 +91,7 @@ void SwEditShell::GCAttr() aIdx <= rEnd ); } FOREACHPAM_END() -// EndAllAction(); +// EndAllAction(); } // Setze das Attribut als neues default Attribut im Dokument. @@ -130,7 +130,7 @@ void SwEditShell::SetAttr( const SfxPoolItem& rHint, USHORT nFlags ) SET_CURR_SHELL( this ); StartAllAction(); SwPaM* pCrsr = GetCrsr(); - if( pCrsr->GetNext() != pCrsr ) // Ring von Cursorn + if( pCrsr->GetNext() != pCrsr ) // Ring von Cursorn { BOOL bIsTblMode = IsTableMode(); GetDoc()->StartUndo(UNDO_INSATTR, NULL); @@ -160,7 +160,7 @@ void SwEditShell::SetAttr( const SfxItemSet& rSet, USHORT nFlags ) SET_CURR_SHELL( this ); StartAllAction(); SwPaM* pCrsr = GetCrsr(); - if( pCrsr->GetNext() != pCrsr ) // Ring von Cursorn + if( pCrsr->GetNext() != pCrsr ) // Ring von Cursorn { BOOL bIsTblMode = IsTableMode(); GetDoc()->StartUndo(UNDO_INSATTR, NULL); diff --git a/sw/source/core/edit/edattr.cxx b/sw/source/core/edit/edattr.cxx index 31c4a7dfea3e..b639c37a23b7 100644 --- a/sw/source/core/edit/edattr.cxx +++ b/sw/source/core/edit/edattr.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -39,9 +39,9 @@ #include <txtftn.hxx> #include <fmtftn.hxx> #include <editsh.hxx> -#include <edimp.hxx> // fuer MACROS +#include <edimp.hxx> // fuer MACROS #include <doc.hxx> -#include <swundo.hxx> // fuer UNDO-Ids +#include <swundo.hxx> // fuer UNDO-Ids #include <ndtxt.hxx> #include <ftnidx.hxx> #include <expfld.hxx> @@ -51,7 +51,7 @@ #include <txtfld.hxx> #include <fmtfld.hxx> #include <crsskip.hxx> -#include <txtfrm.hxx> // SwTxtFrm +#include <txtfrm.hxx> // SwTxtFrm #include <scriptinfo.hxx> #include <svl/ctloptions.hxx> #include <charfmt.hxx> // #i27615# @@ -386,7 +386,7 @@ void SwEditShell::MoveLeftMargin( BOOL bRight, BOOL bModulus ) StartUndo( UNDO_START ); SwPaM* pCrsr = GetCrsr(); - if( pCrsr->GetNext() != pCrsr ) // Mehrfachselektion ? + if( pCrsr->GetNext() != pCrsr ) // Mehrfachselektion ? { SwPamRanges aRangeArr( *pCrsr ); SwPaM aPam( *pCrsr->GetPoint() ); @@ -407,9 +407,9 @@ inline USHORT lcl_SetScriptFlags( USHORT nType ) USHORT nRet; switch( nType ) { - case ::com::sun::star::i18n::ScriptType::LATIN: nRet = SCRIPTTYPE_LATIN; break; - case ::com::sun::star::i18n::ScriptType::ASIAN: nRet = SCRIPTTYPE_ASIAN; break; - case ::com::sun::star::i18n::ScriptType::COMPLEX: nRet = SCRIPTTYPE_COMPLEX; break; + case ::com::sun::star::i18n::ScriptType::LATIN: nRet = SCRIPTTYPE_LATIN; break; + case ::com::sun::star::i18n::ScriptType::ASIAN: nRet = SCRIPTTYPE_ASIAN; break; + case ::com::sun::star::i18n::ScriptType::COMPLEX: nRet = SCRIPTTYPE_COMPLEX; break; default: nRet = 0; } return nRet; @@ -508,7 +508,7 @@ USHORT SwEditShell::GetScriptType() const xub_StrLen nPos = pStt->nContent.GetIndex(); //Task 90448: we need the scripttype of the previous - // position, if no selection exist! + // position, if no selection exist! if( nPos ) { SwIndex aIdx( pStt->nContent ); @@ -609,7 +609,7 @@ USHORT SwEditShell::GetCurLang() const if( pTNd ) { //JP 24.9.2001: if exist no selection, then get the language before - // the current character! + // the current character! xub_StrLen nPos = rPos.nContent.GetIndex(); if( nPos && !pCrsr->HasMark() ) --nPos; @@ -641,6 +641,6 @@ USHORT SwEditShell::GetScalingOfSelectedText() const nScaleWidth = pTNd->GetScalingOfSelectedText( nStt, nEnd ); } else - nScaleWidth = 100; // default are no scaling -> 100% + nScaleWidth = 100; // default are no scaling -> 100% return nScaleWidth; } diff --git a/sw/source/core/edit/eddel.cxx b/sw/source/core/edit/eddel.cxx index a996ed802a42..906732a19931 100644 --- a/sw/source/core/edit/eddel.cxx +++ b/sw/source/core/edit/eddel.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -34,7 +34,7 @@ #include <editsh.hxx> #include <cntfrm.hxx> #include <pam.hxx> -#include <swundo.hxx> // fuer die UndoIds +#include <swundo.hxx> // fuer die UndoIds #include <edimp.hxx> #include <IMark.hxx> #include <docary.hxx> @@ -58,8 +58,8 @@ void SwEditShell::DeleteSel( SwPaM& rPam, BOOL* pUndo ) // besteht eine Selection in einer Tabelle ? // dann nur den Inhalt der selektierten Boxen loeschen // jetzt gibt es 2 Faelle die beachtet werden muessen: - // 1. Point und Mark stehen in einer Box, Selection normal loeschen - // 2. Point und Mark stehen in unterschiedlichen Boxen, alle + // 1. Point und Mark stehen in einer Box, Selection normal loeschen + // 2. Point und Mark stehen in unterschiedlichen Boxen, alle // selektierten Boxen suchen in den Inhalt loeschen if( rPam.GetNode()->FindTableNode() && rPam.GetNode()->StartOfSectionNode() != @@ -80,7 +80,7 @@ void SwEditShell::DeleteSel( SwPaM& rPam, BOOL* pUndo ) if( pEndSelPos->nNode.GetIndex() <= rEndNd.GetIndex() ) { *aDelPam.GetPoint() = *pEndSelPos; - pEndSelPos = 0; // Pointer als Flag missbrauchen + pEndSelPos = 0; // Pointer als Flag missbrauchen } else { @@ -97,15 +97,15 @@ void SwEditShell::DeleteSel( SwPaM& rPam, BOOL* pUndo ) SaveTblBoxCntnt( aDelPam.GetPoint() ); } - if( !pEndSelPos ) // am Ende der Selection + if( !pEndSelPos ) // am Ende der Selection break; aDelPam.DeleteMark(); - aDelPam.Move( fnMoveForward, fnGoCntnt ); // naechste Box + aDelPam.Move( fnMoveForward, fnGoCntnt ); // naechste Box } while( pEndSelPos ); } else { - // alles loeschen + // alles loeschen GetDoc()->DeleteAndJoin( rPam ); SaveTblBoxCntnt( rPam.GetPoint() ); } @@ -175,7 +175,7 @@ long SwEditShell::Copy( SwEditShell* pDestShell ) pPos = pDestShell->GetCrsr()->GetPoint(); } if( IsBlockMode() ) - { // In block mode different insert positions will be calculated + { // In block mode different insert positions will be calculated // by simulated cursor movements from the given first insert position if( nMove ) { @@ -192,7 +192,7 @@ long SwEditShell::Copy( SwEditShell* pDestShell ) } SwPosition *pTmp = IsBlockMode() ? pInsertPos.get() : pPos; // Check if a selection would be copied into itself - if( pDestShell->GetDoc() == GetDoc() && + if( pDestShell->GetDoc() == GetDoc() && *PCURCRSR->Start() <= *pTmp && *pTmp < *PCURCRSR->End() ) return FALSE; FOREACHPAM_END() @@ -301,9 +301,9 @@ long SwEditShell::Copy( SwEditShell* pDestShell ) // Ersetz einen selektierten Bereich in einem TextNode mit dem // String. Ist fuers Suchen&Ersetzen gedacht. // bRegExpRplc - ersetze Tabs (\\t) und setze den gefundenen String - // ein ( nicht \& ) - // z.B.: Fnd: "zzz", Repl: "xx\t\\t..&..\&" - // --> "xx\t<Tab>..zzz..&" + // ein ( nicht \& ) + // z.B.: Fnd: "zzz", Repl: "xx\t\\t..&..\&" + // --> "xx\t<Tab>..zzz..&" BOOL SwEditShell::Replace( const String& rNewStr, BOOL bRegExpRplc ) { SET_CURR_SHELL( this ); diff --git a/sw/source/core/edit/edfcol.cxx b/sw/source/core/edit/edfcol.cxx index c3dc53f1ba26..214e47a10342 100644 --- a/sw/source/core/edit/edfcol.cxx +++ b/sw/source/core/edit/edfcol.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -32,8 +32,8 @@ #include <hintids.hxx> #include <editeng/brkitem.hxx> #include <editsh.hxx> -#include <doc.hxx> // fuer SwTxtFmtColls -#include <edimp.hxx> // fuer MACROS +#include <doc.hxx> // fuer SwTxtFmtColls +#include <edimp.hxx> // fuer MACROS #include <ndtxt.hxx> #include <paratr.hxx> #include <fmtpdsc.hxx> @@ -123,9 +123,9 @@ void SwEditShell::FillByEx(SwTxtFmtColl* pColl, BOOL bReset) if( pSet ) { // JP 05.10.98: falls eines der Attribute Break/PageDesc/NumRule(auto) - // im ItemSet steht, so entferne die VORM setzen an der Collection. - // Ansonst wird zu viel gemacht oder falsche gemacht (NumRules!) - // Bug 57568 + // im ItemSet steht, so entferne die VORM setzen an der Collection. + // Ansonst wird zu viel gemacht oder falsche gemacht (NumRules!) + // Bug 57568 // AutoNumRules NICHT in die Vorlagen uebernehmen const SfxPoolItem* pItem; diff --git a/sw/source/core/edit/edfld.cxx b/sw/source/core/edit/edfld.cxx index 1e4f699fa203..8c5b02794e6d 100644 --- a/sw/source/core/edit/edfld.cxx +++ b/sw/source/core/edit/edfld.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -32,7 +32,7 @@ #include <unotools/charclass.hxx> #include <editsh.hxx> #include <fldbas.hxx> -#include <ndtxt.hxx> // GetCurFld +#include <ndtxt.hxx> // GetCurFld #include <doc.hxx> #include <docary.hxx> #include <fmtfld.hxx> @@ -205,7 +205,7 @@ void SwEditShell::FieldToText( SwFieldType* pType ) SwClientIter aIter( *pType ); SwClient * pLast = aIter.GoStart(); - if( pLast ) // konnte zum Anfang gesprungen werden ?? + if( pLast ) // konnte zum Anfang gesprungen werden ?? do { pPaM->DeleteMark(); const SwFmtFld* pFmtFld = bDDEFld @@ -248,10 +248,10 @@ void SwEditShell::FieldToText( SwFieldType* pType ) /************************************************************************* |* -|* SwEditShell::Insert( SwField ) +|* SwEditShell::Insert( SwField ) |* -|* Beschreibung an der Cursorposition ein Feld einfuegen -|* Quelle: vgl. SwEditShell::Insert( String ) +|* Beschreibung an der Cursorposition ein Feld einfuegen +|* Quelle: vgl. SwEditShell::Insert( String ) |* *************************************************************************/ void SwEditShell::Insert2(SwField& rFld, const bool bForceExpandHints) @@ -264,21 +264,21 @@ void SwEditShell::Insert2(SwField& rFld, const bool bForceExpandHints) ? nsSetAttrMode::SETATTR_FORCEHINTEXPAND : nsSetAttrMode::SETATTR_DEFAULT; - FOREACHPAM_START(this) // fuer jeden PaM + FOREACHPAM_START(this) // fuer jeden PaM bool bSuccess(GetDoc()->InsertPoolItem(*PCURCRSR, aFld, nInsertFlags)); ASSERT( bSuccess, "Doc->Insert(Field) failed"); (void) bSuccess; - FOREACHPAM_END() // fuer jeden PaM + FOREACHPAM_END() // fuer jeden PaM EndAllAction(); } /************************************************************************* |* -|* SwEditShell::GetCurFld() +|* SwEditShell::GetCurFld() |* -|* Beschreibung Stehen die PaMs auf Feldern ? -|* Quelle: edtfrm.cxx: +|* Beschreibung Stehen die PaMs auf Feldern ? +|* Quelle: edtfrm.cxx: |* *************************************************************************/ @@ -327,10 +327,10 @@ SwField* SwEditShell::GetCurFld() const /************************************************************************* |* -|* SwEditShell::UpdateFlds() +|* SwEditShell::UpdateFlds() |* -|* Beschreibung Stehen die PaMs auf Feldern ? -|* BP 12.05.92 +|* Beschreibung Stehen die PaMs auf Feldern ? +|* BP 12.05.92 |* *************************************************************************/ SwTxtFld* lcl_FindInputFld( SwDoc* pDoc, SwField& rFld ) @@ -375,11 +375,11 @@ void SwEditShell::UpdateFlds( SwField &rFld ) SwTxtFld *pTxtFld; SwFmtFld *pFmtFld; -// if( pCrsr->GetNext() == pCrsr && !pCrsr->HasMark() && -// ( 0 != ( pTxtFld = GetDocTxtFld( pCrsr->Start() ) ) || -// 0 != ( pTxtFld = lcl_FindInputFld( GetDoc(), rFld ) ) ) && -// ( pFmtFld = (SwFmtFld*)&pTxtFld->GetFld())->GetFld() -// ->GetTyp()->Which() == rFld.GetTyp()->Which() ) +// if( pCrsr->GetNext() == pCrsr && !pCrsr->HasMark() && +// ( 0 != ( pTxtFld = GetDocTxtFld( pCrsr->Start() ) ) || +// 0 != ( pTxtFld = lcl_FindInputFld( GetDoc(), rFld ) ) ) && +// ( pFmtFld = (SwFmtFld*)&pTxtFld->GetFld())->GetFld() +// ->GetTyp()->Which() == rFld.GetTyp()->Which() ) if ( pCrsr->GetNext() == pCrsr && !pCrsr->HasMark()) { pTxtFld = GetDocTxtFld(pCrsr->Start()); @@ -398,8 +398,8 @@ void SwEditShell::UpdateFlds( SwField &rFld ) BOOL bTblSelBreak = FALSE; SwMsgPoolItem aHint( RES_TXTATR_FIELD ); // Such-Hint - FOREACHPAM_START(this) // fuer jeden PaM - if( PCURCRSR->HasMark() && bOkay ) // ... mit Selektion + FOREACHPAM_START(this) // fuer jeden PaM + if( PCURCRSR->HasMark() && bOkay ) // ... mit Selektion { // Kopie des PaM SwPaM aCurPam( *PCURCRSR->GetMark(), *PCURCRSR->GetPoint() ); @@ -416,11 +416,11 @@ void SwEditShell::UpdateFlds( SwField &rFld ) */ // Suche nach SwTxtFld ... - while( bOkay + while( bOkay && pCurStt->nContent != pCurEnd->nContent && aPam.Find( aHint, FALSE, fnMoveForward, &aCurPam ) ) { - // wenn nur ein Pam mehr als ein Feld enthaelt ... + // wenn nur ein Pam mehr als ein Feld enthaelt ... if( aPam.Start()->nContent != pCurStt->nContent ) bOkay = FALSE; @@ -443,10 +443,10 @@ void SwEditShell::UpdateFlds( SwField &rFld ) } } - if( bTblSelBreak ) // wenn Tabellen Selektion und Tabellen- - break; // Formel aktualisiert wurde -> beenden + if( bTblSelBreak ) // wenn Tabellen Selektion und Tabellen- + break; // Formel aktualisiert wurde -> beenden - FOREACHPAM_END() // fuer jeden PaM + FOREACHPAM_END() // fuer jeden PaM } GetDoc()->SetModified(); EndAllAction(); @@ -492,7 +492,7 @@ void SwEditShell::UpdateExpFlds(BOOL bCloseDB) StartAllAction(); GetDoc()->UpdateExpFlds(NULL, true); if (bCloseDB) - GetDoc()->GetNewDBMgr()->CloseAll(); // Alle Datenbankverbindungen dichtmachen + GetDoc()->GetNewDBMgr()->CloseAll(); // Alle Datenbankverbindungen dichtmachen EndAllAction(); } diff --git a/sw/source/core/edit/edfldexp.cxx b/sw/source/core/edit/edfldexp.cxx index 1bc78a5a7482..ff548882ffa5 100644 --- a/sw/source/core/edit/edfldexp.cxx +++ b/sw/source/core/edit/edfldexp.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -37,7 +37,7 @@ #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <doc.hxx> #include <docary.hxx> -#include <ndtxt.hxx> // GetCurFld +#include <ndtxt.hxx> // GetCurFld #include <txtfld.hxx> #include <fmtfld.hxx> #include <edimp.hxx> diff --git a/sw/source/core/edit/edfmt.cxx b/sw/source/core/edit/edfmt.cxx index a23f6ae784ae..ee35ed384a12 100644 --- a/sw/source/core/edit/edfmt.cxx +++ b/sw/source/core/edit/edfmt.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -92,7 +92,7 @@ void SwEditShell::FillByEx(SwCharFmt* pCharFmt, BOOL bReset) { const SwPosition* pPtPos = pPam->GetPoint(); const SwPosition* pMkPos = pPam->GetMark(); - if( pPtPos->nNode == pMkPos->nNode ) // im selben Node ? + if( pPtPos->nNode == pMkPos->nNode ) // im selben Node ? { nStt = pPtPos->nContent.GetIndex(); if( nStt < pMkPos->nContent.GetIndex() ) diff --git a/sw/source/core/edit/edglbldc.cxx b/sw/source/core/edit/edglbldc.cxx index 6f884f244326..2f932c308dca 100644 --- a/sw/source/core/edit/edglbldc.cxx +++ b/sw/source/core/edit/edglbldc.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -35,7 +35,7 @@ #include <ndtxt.hxx> #include <docary.hxx> #include <swwait.hxx> -#include <swundo.hxx> // fuer die UndoIds +#include <swundo.hxx> // fuer die UndoIds #include <section.hxx> #include <doctxm.hxx> #include <edglbldc.hxx> @@ -51,7 +51,7 @@ BOOL SwEditShell::IsGlobalDoc() const void SwEditShell::SetGlblDocSaveLinks( BOOL bFlag ) { getIDocumentSettingAccess()->set(IDocumentSettingAccess::GLOBAL_DOCUMENT_SAVE_LINKS, bFlag); - if( !GetDoc()->IsModified() ) // Bug 57028 + if( !GetDoc()->IsModified() ) // Bug 57028 GetDoc()->SetUndoNoResetModified(); GetDoc()->SetModified(); } @@ -82,7 +82,7 @@ USHORT SwEditShell::GetGlobalDocContent( SwGlblDocContents& rArr ) const SwGlblDocContentPtr pNew; switch( pSect->GetType() ) { - case TOX_HEADER_SECTION: break; // ignore + case TOX_HEADER_SECTION: break; // ignore case TOX_CONTENT_SECTION: ASSERT( pSect->ISA( SwTOXBaseSection ), "keine TOXBaseSection!" ); pNew = new SwGlblDocContent( (SwTOXBaseSection*)pSect ); @@ -113,7 +113,7 @@ USHORT SwEditShell::GetGlobalDocContent( SwGlblDocContents& rArr ) const if( !rArr.Insert( pNew ) ) delete pNew; else - ++n; // auf die naechste Position + ++n; // auf die naechste Position break; } diff --git a/sw/source/core/edit/edglss.cxx b/sw/source/core/edit/edglss.cxx index 50709990f0ff..40d24fd3db11 100644 --- a/sw/source/core/edit/edglss.cxx +++ b/sw/source/core/edit/edglss.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -39,15 +39,15 @@ #include <editsh.hxx> #include <edimp.hxx> #include <frmfmt.hxx> -#include <swundo.hxx> // fuer die UndoIds +#include <swundo.hxx> // fuer die UndoIds #include <ndtxt.hxx> -#include <swtable.hxx> // fuers kopieren von Tabellen -#include <shellio.hxx> // SwTextBlocks +#include <swtable.hxx> // fuers kopieren von Tabellen +#include <shellio.hxx> // SwTextBlocks #include <acorrect.hxx> -#include <swerror.h> // SwTextBlocks +#include <swerror.h> // SwTextBlocks /****************************************************************************** - * jetzt mit einem verkappten Reader/Writer/Dokument + * jetzt mit einem verkappten Reader/Writer/Dokument ******************************************************************************/ void SwEditShell::InsertGlossary( SwTextBlocks& rGlossary, const String& rStr ) @@ -59,8 +59,8 @@ void SwEditShell::InsertGlossary( SwTextBlocks& rGlossary, const String& rStr ) /****************************************************************************** - * aktuelle Selektion zum Textbaustein machen und ins - * Textbausteindokument einfuegen, einschliesslich Vorlagen + * aktuelle Selektion zum Textbaustein machen und ins + * Textbausteindokument einfuegen, einschliesslich Vorlagen ******************************************************************************/ @@ -175,7 +175,7 @@ USHORT SwEditShell::SaveGlossaryDoc( SwTextBlocks& rBlock, } /****************************************************************************** - * kopiere alle Selectionen und das Doc + * kopiere alle Selectionen und das Doc ******************************************************************************/ @@ -242,7 +242,7 @@ BOOL SwEditShell::_CopySelToDoc( SwDoc* pInsDoc, SwNodeIndex* pSttNd ) if( !PCURCRSR->HasMark() ) { - if( 0 != (pNd = PCURCRSR->GetCntntNode()) && + if( 0 != (pNd = PCURCRSR->GetCntntNode()) && ( bColSel || !pNd->GetTxtNode() ) ) { PCURCRSR->SetMark(); @@ -275,15 +275,15 @@ BOOL SwEditShell::_CopySelToDoc( SwDoc* pInsDoc, SwNodeIndex* pSttNd ) } /*------------------------------------------------------------------------ - Beschreibung: Text innerhalb der Selektion erfragen - Returnwert: liefert FALSE, wenn der selektierte Bereich + Beschreibung: Text innerhalb der Selektion erfragen + Returnwert: liefert FALSE, wenn der selektierte Bereich zu gross ist, um in den Stringpuffer kopiert zu werden. ------------------------------------------------------------------------*/ BOOL SwEditShell::GetSelectedText( String &rBuf, int nHndlParaBrk ) { BOOL bRet = FALSE; - GetCrsr(); // ggfs. alle Cursor erzeugen lassen + GetCrsr(); // ggfs. alle Cursor erzeugen lassen if( IsSelOnePara() ) { rBuf = GetSelTxt(); diff --git a/sw/source/core/edit/editsh.cxx b/sw/source/core/edit/editsh.cxx index 32ab9fa07e94..e3ebcbcdf416 100644 --- a/sw/source/core/edit/editsh.cxx +++ b/sw/source/core/edit/editsh.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -46,11 +46,11 @@ #include <frame.hxx> #include <cntfrm.hxx> #include <pam.hxx> -#include <ndtxt.hxx> // fuer SwTxtNode +#include <ndtxt.hxx> // fuer SwTxtNode #include <grfatr.hxx> #include <flyfrm.hxx> #include <swtable.hxx> -#include <swundo.hxx> // UNDO_START, UNDO_END +#include <swundo.hxx> // UNDO_START, UNDO_END #include <calc.hxx> #include <edimp.hxx> #include <ndgrf.hxx> @@ -74,7 +74,7 @@ using namespace com::sun::star; SV_IMPL_PTRARR(SwGetINetAttrs, SwGetINetAttr*) /****************************************************************************** - * void SwEditShell::Insert(char c) + * void SwEditShell::Insert(char c) ******************************************************************************/ @@ -98,7 +98,7 @@ void SwEditShell::Insert( sal_Unicode c, BOOL bOnlyCurrCrsr ) /****************************************************************************** - * void SwEditShell::Insert(const String &rStr) + * void SwEditShell::Insert(const String &rStr) ******************************************************************************/ @@ -176,7 +176,7 @@ void SwEditShell::Insert2(const String &rStr, const bool bForceExpandHints ) /****************************************************************************** - * void SwEditShell::Overwrite(const String &rStr) + * void SwEditShell::Overwrite(const String &rStr) ******************************************************************************/ @@ -195,7 +195,7 @@ void SwEditShell::Overwrite(const String &rStr) /****************************************************************************** - * long SwEditShell::SplitNode() + * long SwEditShell::SplitNode() ******************************************************************************/ long SwEditShell::SplitNode( BOOL bAutoFormat, BOOL bCheckTableStart ) @@ -243,8 +243,8 @@ sal_Bool SwEditShell::AppendTxtNode() } /****************************************************************************** - * liefert einen Pointer auf einen SwGrfNode; dieser wird von - * GetGraphic() und GetGraphicSize() verwendet. + * liefert einen Pointer auf einen SwGrfNode; dieser wird von + * GetGraphic() und GetGraphicSize() verwendet. ******************************************************************************/ @@ -259,9 +259,9 @@ SwGrfNode * SwEditShell::_GetGrfNode() const return pGrfNode; } /****************************************************************************** - * liefert Pointer auf eine Graphic, wenn CurCrsr->GetPoint() auf - * einen SwGrfNode zeigt (und GetMark nicht gesetzt ist - * oder auf die gleiche Graphic zeigt) + * liefert Pointer auf eine Graphic, wenn CurCrsr->GetPoint() auf + * einen SwGrfNode zeigt (und GetMark nicht gesetzt ist + * oder auf die gleiche Graphic zeigt) ******************************************************************************/ // --> OD 2005-02-09 #119353# - robust @@ -330,9 +330,9 @@ USHORT SwEditShell::GetGraphicType() const } /****************************************************************************** - * liefert die Groesse der Graphic, wenn CurCrsr->GetPoint() auf - * einen SwGrfNode zeigt (und GetMark nicht gesetzt ist - * oder auf die gleiche Graphic zeigt) + * liefert die Groesse der Graphic, wenn CurCrsr->GetPoint() auf + * einen SwGrfNode zeigt (und GetMark nicht gesetzt ist + * oder auf die gleiche Graphic zeigt) ******************************************************************************/ BOOL SwEditShell::GetGrfSize(Size& rSz) const @@ -350,8 +350,8 @@ BOOL SwEditShell::GetGrfSize(Size& rSz) const } /****************************************************************************** - * erneutes Einlesen, falls Graphic nicht Ok ist. Die - * aktuelle wird durch die neue ersetzt. + * erneutes Einlesen, falls Graphic nicht Ok ist. Die + * aktuelle wird durch die neue ersetzt. ******************************************************************************/ void SwEditShell::ReRead( const String& rGrfName, const String& rFltName, @@ -364,9 +364,9 @@ void SwEditShell::ReRead( const String& rGrfName, const String& rFltName, /****************************************************************************** - * liefert den Namen und den FilterNamen einer Graphic, wenn der Cursor - * auf einer Graphic steht - * Ist ein String-Ptr != 0 dann returne den entsp. Namen + * liefert den Namen und den FilterNamen einer Graphic, wenn der Cursor + * auf einer Graphic steht + * Ist ein String-Ptr != 0 dann returne den entsp. Namen ******************************************************************************/ @@ -447,11 +447,11 @@ void SwEditShell::ClearAutomaticContour() } /****************************************************************************** - * liefert Pointer auf ein SvInPlaceObjectRef, wenn CurCrsr->GetPoint() auf - * einen SwOLENode zeigt (und GetMark nicht gesetzt ist - * oder auf das gleiche SvInPlaceObjectRef zeigt) - * besorgt den Pointer vom Doc wenn das Objekt per Namen gesucht werden - * soll + * liefert Pointer auf ein SvInPlaceObjectRef, wenn CurCrsr->GetPoint() auf + * einen SwOLENode zeigt (und GetMark nicht gesetzt ist + * oder auf das gleiche SvInPlaceObjectRef zeigt) + * besorgt den Pointer vom Doc wenn das Objekt per Namen gesucht werden + * soll ******************************************************************************/ svt::EmbeddedObjectRef& SwEditShell::GetOLEObject() const @@ -502,7 +502,7 @@ void SwEditShell::UpdateCharts( const String &rName ) /****************************************************************************** - * Aenderung des Tabellennamens + * Aenderung des Tabellennamens ******************************************************************************/ void SwEditShell::SetTableName( SwFrmFmt& rTblFmt, const String &rNewName ) @@ -523,7 +523,7 @@ String SwEditShell::GetCurWord() } /**************************************************************************** - * void SwEditShell::UpdateDocStat( SwDocStat& rStat ) + * void SwEditShell::UpdateDocStat( SwDocStat& rStat ) ****************************************************************************/ @@ -550,7 +550,7 @@ USHORT SwEditShell::GetRefMarks( SvStringsDtor* pStrings ) const } /****************************************************************************** - * DropCap-SS + * DropCap-SS ******************************************************************************/ @@ -620,18 +620,18 @@ void SwEditShell::ReplaceDropTxt( const String &rStr ) } /****************************************************************************** - * Methode : - * Beschreibung: - * Erstellt : OK 25.04.94 13:45 - * Aenderung : + * Methode : + * Beschreibung: + * Erstellt : OK 25.04.94 13:45 + * Aenderung : ******************************************************************************/ String SwEditShell::Calculate() { - String aFormel; // die entgueltige Formel - SwPaM *pPaMLast = (SwPaM*)GetCrsr()->GetNext(), - *pPaM = pPaMLast; // die Pointer auf Cursor - SwCalc aCalc( *GetDoc() ); + String aFormel; // die entgueltige Formel + SwPaM *pPaMLast = (SwPaM*)GetCrsr()->GetNext(), + *pPaM = pPaMLast; // die Pointer auf Cursor + SwCalc aCalc( *GetDoc() ); const CharClass& rCC = GetAppCharClass(); do { @@ -646,7 +646,7 @@ String SwEditShell::Calculate() rCC.toLower( aStr ); sal_Unicode ch; - BOOL bValidFlds = FALSE; + BOOL bValidFlds = FALSE; xub_StrLen nPos = 0; while( nPos < aStr.Len() ) @@ -749,7 +749,7 @@ Graphic SwEditShell::GetIMapGraphic() const BOOL SwEditShell::InsertURL( const SwFmtINetFmt& rFmt, const String& rStr, BOOL bKeepSelection ) { // URL und Hinweistext (direkt oder via Selektion) notwendig - if( !rFmt.GetValue().Len() || ( !rStr.Len() && !HasSelection() ) ) + if( !rFmt.GetValue().Len() || ( !rStr.Len() && !HasSelection() ) ) return FALSE; StartAllAction(); GetDoc()->StartUndo( UNDO_UI_INSERT_URLTXT, NULL); @@ -770,7 +770,7 @@ BOOL SwEditShell::InsertURL( const SwFmtINetFmt& rFmt, const String& rStr, BOOL if( sTxt == rStr ) bDelTxt = bInsTxt = FALSE; } - else if( rFmt.GetValue() == rStr ) // Name und URL gleich? + else if( rFmt.GetValue() == rStr ) // Name und URL gleich? bDelTxt = bInsTxt = FALSE; if( bDelTxt ) @@ -975,12 +975,12 @@ USHORT SwEditShell::GetLineCount( BOOL bActPos ) 0 != ( pCntFrm = pCNd->GetFrm() ) ) { const SwStartNode *pTmp; - if( pCntFrm->IsInFly() ) // Fly + if( pCntFrm->IsInFly() ) // Fly pTmp = pCNd->FindFlyStartNode(); - else if( pCntFrm->IsInFtn() ) // Footnote + else if( pCntFrm->IsInFtn() ) // Footnote pTmp = pCNd->FindFootnoteStartNode(); else - { // Footer/Header + { // Footer/Header const USHORT nTyp = FRM_HEADER | FRM_FOOTER; SwFrm* pFrm = pCntFrm; while( pFrm && !(pFrm->GetType() & nTyp) ) @@ -1099,8 +1099,8 @@ String SwEditShell::DeleteExtTextInput( SwExtTextInput* pDel, BOOL bInsText ) if( !pDel ) { //JP 25.10.2001: under UNIX the cursor is moved before the Input- - // Engine event comes in. So take any - normally there - // exist only one at the time. -- Task 92016 + // Engine event comes in. So take any - normally there + // exist only one at the time. -- Task 92016 pDel = GetDoc()->GetExtTextInput(); } } @@ -1155,7 +1155,7 @@ void SwEditShell::SetExtTextInputData( const CommandExtTextInputData& rData ) EndAllAction(); - if( !rData.IsCursorVisible() ) // must be called after the EndAction + if( !rData.IsCursorVisible() ) // must be called after the EndAction HideCrsr(); } } diff --git a/sw/source/core/edit/edlingu.cxx b/sw/source/core/edit/edlingu.cxx index c9ab4a591383..536a6a0b8c3d 100644 --- a/sw/source/core/edit/edlingu.cxx +++ b/sw/source/core/edit/edlingu.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -51,12 +51,12 @@ #include <doc.hxx> #include <rootfrm.hxx> // SwRootFrm #include <pam.hxx> -#include <swundo.hxx> // fuer die UndoIds +#include <swundo.hxx> // fuer die UndoIds #include <ndtxt.hxx> // AdjHyphPos #include <viewopt.hxx> // HyphStart/End -#include <viscrs.hxx> // SwShellCrsr -#include <SwGrammarMarkUp.hxx> // SwWrongList -#include <mdiexp.hxx> // Statusanzeige +#include <viscrs.hxx> // SwShellCrsr +#include <SwGrammarMarkUp.hxx> // SwWrongList +#include <mdiexp.hxx> // Statusanzeige #ifndef _STATSTR_HRC #include <statstr.hrc> // StatLine-String #endif @@ -80,21 +80,21 @@ using namespace ::com::sun::star::linguistic2; extern void repaintTextFrames( SwModify& rModify ); /************************************************************************* - * class SwLinguIter + * class SwLinguIter *************************************************************************/ class SwLinguIter { SwEditShell *pSh; - SwPosition *pStart; - SwPosition *pEnd; - SwPosition *pCurr; - SwPosition *pCurrX; + SwPosition *pStart; + SwPosition *pEnd; + SwPosition *pCurr; + SwPosition *pCurrX; sal_uInt16 nCrsrCnt; public: SwLinguIter(); - inline SwEditShell *GetSh() { return pSh; } + inline SwEditShell *GetSh() { return pSh; } inline const SwEditShell *GetSh() const { return pSh; } inline const SwPosition *GetEnd() const { return pEnd; } @@ -118,7 +118,7 @@ public: }; /************************************************************************* - * class SwSpellIter + * class SwSpellIter *************************************************************************/ // #i18881# to be able to identify the postions of the changed words @@ -131,7 +131,7 @@ struct SpellContentPosition typedef std::vector<SpellContentPosition> SpellContentPositions; class SwSpellIter : public SwLinguIter { - uno::Reference< XSpellChecker1 > xSpeller; + uno::Reference< XSpellChecker1 > xSpeller; ::svx::SpellPortions aLastPortions; SpellContentPositions aLastPositions; @@ -142,12 +142,12 @@ class SwSpellIter : public SwLinguIter void CreatePortion(uno::Reference< XSpellAlternatives > xAlt, linguistic2::ProofreadingResult* pGrammarResult, bool bIsField, bool bIsHidden); - + void AddPortion(uno::Reference< XSpellAlternatives > xAlt, - linguistic2::ProofreadingResult* pGrammarResult, + linguistic2::ProofreadingResult* pGrammarResult, const SpellContentPositions& rDeletedRedlines); public: - SwSpellIter() : + SwSpellIter() : bBackToStartOfSentence(false), bMoveToEndOfSentence(false) {} void Start( SwEditShell *pSh, SwDocPositions eStart, SwDocPositions eEnd ); @@ -180,7 +180,7 @@ public: }; /************************************************************************* - * class SwHyphIter + * class SwHyphIter *************************************************************************/ class SwHyphIter : public SwLinguIter @@ -203,9 +203,9 @@ public: void ShowSelection(); }; -static SwSpellIter* pSpellIter = 0; +static SwSpellIter* pSpellIter = 0; static SwConvIter* pConvIter = 0; -static SwHyphIter* pHyphIter = 0; +static SwHyphIter* pHyphIter = 0; // Wir ersparen uns in Hyphenate ein GetFrm() // Achtung: in txtedt.cxx stehen extern-Deklarationen auf diese Pointer! @@ -213,7 +213,7 @@ const SwTxtNode *pLinguNode; SwTxtFrm *pLinguFrm; /************************************************************************* - * SwLinguIter::SwLinguIter + * SwLinguIter::SwLinguIter *************************************************************************/ SwLinguIter::SwLinguIter() @@ -223,7 +223,7 @@ SwLinguIter::SwLinguIter() } /************************************************************************* - * SwLinguIter::Start + * SwLinguIter::Start *************************************************************************/ @@ -246,7 +246,7 @@ void SwLinguIter::_Start( SwEditShell *pShell, SwDocPositions eStart, SwPaM *pCrsr = pSh->GetCrsr(); // pStk->SetCurCrsr(); -// if( pCrsr->HasMark() || pCrsr != pCrsr->GetNext() ) +// if( pCrsr->HasMark() || pCrsr != pCrsr->GetNext() ) if( pShell->HasSelection() || pCrsr != pCrsr->GetNext() ) { bSetCurr = 0 != GetCurr(); @@ -292,7 +292,7 @@ void SwLinguIter::_Start( SwEditShell *pShell, SwDocPositions eStart, } /************************************************************************* - * SwLinguIter::End + * SwLinguIter::End *************************************************************************/ @@ -324,7 +324,7 @@ void SwLinguIter::_End(bool bRestoreSelection) } /************************************************************************* - * virtual SwSpellIter::Start() + * virtual SwSpellIter::Start() *************************************************************************/ @@ -344,7 +344,7 @@ void SwSpellIter::Start( SwEditShell *pShell, SwDocPositions eStart, } /************************************************************************* - * SwSpellIter::Continue + * SwSpellIter::Continue *************************************************************************/ // SwSpellIter::Continue ist das alte Original von @@ -361,7 +361,7 @@ uno::Any SwSpellIter::Continue( sal_uInt16* pPageCnt, sal_uInt16* pPageSt ) if( !pMySh ) return aSpellRet; -// const SwPosition *pEnd = GetEnd(); +// const SwPosition *pEnd = GetEnd(); ASSERT( GetEnd(), "SwEditShell::SpellContinue() ohne Start?"); @@ -516,7 +516,7 @@ void SwHyphIter::ShowSelection() } /************************************************************************* - * virtual SwHyphIter::Start() + * virtual SwHyphIter::Start() *************************************************************************/ @@ -537,7 +537,7 @@ void SwHyphIter::Start( SwEditShell *pShell, SwDocPositions eStart, SwDocPositio } /************************************************************************* - * virtual SwHyphIter::End + * virtual SwHyphIter::End *************************************************************************/ // Selektionen wiederherstellen @@ -553,7 +553,7 @@ void SwHyphIter::End() } /************************************************************************* - * SwHyphIter::Continue + * SwHyphIter::Continue *************************************************************************/ uno::Any SwHyphIter::Continue( sal_uInt16* pPageCnt, sal_uInt16* pPageSt ) @@ -597,7 +597,7 @@ uno::Any SwHyphIter::Continue( sal_uInt16* pPageCnt, sal_uInt16* pPageSt ) { pMySh->InsertSoftHyph( xHyphWord->getHyphenationPos() + 1); } - } while( bAuto && xHyphWord.is() ); //end of do-while + } while( bAuto && xHyphWord.is() ); //end of do-while bGoOn = !xHyphWord.is() && GetCrsrCnt() > 1; if( bGoOn ) @@ -617,7 +617,7 @@ uno::Any SwHyphIter::Continue( sal_uInt16* pPageCnt, sal_uInt16* pPageSt ) } /************************************************************************* - * SwHyphIter::HyphIgnore + * SwHyphIter::HyphIgnore *************************************************************************/ // Beschreibung: Trennstelle ignorieren @@ -636,7 +636,7 @@ void SwHyphIter::Ignore() } /************************************************************************* - * SwHyphIter::DelSoftHyph + * SwHyphIter::DelSoftHyph *************************************************************************/ void SwHyphIter::DelSoftHyph( SwPaM &rPam ) @@ -649,7 +649,7 @@ void SwHyphIter::DelSoftHyph( SwPaM &rPam ) } /************************************************************************* - * SwHyphIter::InsertSoftHyph + * SwHyphIter::InsertSoftHyph *************************************************************************/ @@ -703,7 +703,7 @@ bool SwEditShell::HasLastSentenceGotGrammarChecked() const ::svx::SpellPortions aLastPortions( pSpellIter->GetLastPortions() ); for (size_t i = 0; i < aLastPortions.size() && !bTextWasGrammarChecked; ++i) { - // bIsGrammarError is also true if the text was only checked but no + // bIsGrammarError is also true if the text was only checked but no // grammar error was found. (That is if a ProofreadingResult was obtained in // SwDoc::Spell and in turn bIsGrammarError was set in SwSpellIter::CreatePortion) if (aLastPortions[i].bIsGrammarError) @@ -834,8 +834,8 @@ uno::Any SwEditShell::SpellContinue( ASSERT( pConvArgs || pSpellIter, "SpellIter missing" ); ASSERT( !pConvArgs || pConvIter, "ConvIter missing" ); //JP 18.07.95: verhinder bei Fehlermeldungen die Anzeige der Selektionen - // KEIN StartAction, da damit auch die Paints abgeschaltet - // werden !!!!! + // KEIN StartAction, da damit auch die Paints abgeschaltet + // werden !!!!! ++nStartAction; rtl::OUString aRet; uno::Reference< uno::XInterface > xRet; @@ -860,7 +860,7 @@ uno::Any SwEditShell::SpellContinue( return aRes; } /************************************************************************* - * SwEditShell::HyphStart + * SwEditShell::HyphStart *************************************************************************/ /* Interaktive Trennung, BP 10.03.93 @@ -868,26 +868,26 @@ uno::Any SwEditShell::SpellContinue( * 1) HyphStart * - Aufheben aller Selektionen * - Sichern des aktuellen Cursors - * - falls keine Selektion vorhanden: - * - neue Selektion bis zum Dokumentende + * - falls keine Selektion vorhanden: + * - neue Selektion bis zum Dokumentende * 2) HyphContinue - * - nLastHyphLen wird auf den Selektionsstart addiert - * - iteriert ueber alle selektierten Bereiche - * - pDoc->Hyphenate() iteriert ueber alle Nodes der Selektion - * - pTxtNode->Hyphenate() ruft das SwTxtFrm::Hyphenate zur EditShell - * - SwTxtFrm:Hyphenate() iteriert ueber die Zeilen des Pams - * - LineIter::Hyphenate() stellt den Hyphenator - * und den Pam auf das zu trennende Wort ein. - * - Es gibt nur zwei Returnwerte sal_True, wenn eine Trennstelle anliegt - * und sal_False, wenn der Pam abgearbeitet wurde. - * - Bei sal_True wird das selektierte Wort zur Anzeige gebracht und - * nLastHyphLen gesetzt. - * - Bei sal_False wird die aktuelle Selektion geloescht und die naechste - * zur aktuellen gewaehlt. Return HYPH_OK, wenn keine mehr vorhanden. + * - nLastHyphLen wird auf den Selektionsstart addiert + * - iteriert ueber alle selektierten Bereiche + * - pDoc->Hyphenate() iteriert ueber alle Nodes der Selektion + * - pTxtNode->Hyphenate() ruft das SwTxtFrm::Hyphenate zur EditShell + * - SwTxtFrm:Hyphenate() iteriert ueber die Zeilen des Pams + * - LineIter::Hyphenate() stellt den Hyphenator + * und den Pam auf das zu trennende Wort ein. + * - Es gibt nur zwei Returnwerte sal_True, wenn eine Trennstelle anliegt + * und sal_False, wenn der Pam abgearbeitet wurde. + * - Bei sal_True wird das selektierte Wort zur Anzeige gebracht und + * nLastHyphLen gesetzt. + * - Bei sal_False wird die aktuelle Selektion geloescht und die naechste + * zur aktuellen gewaehlt. Return HYPH_OK, wenn keine mehr vorhanden. * 3) InsertSoftHyph (wird ggf. von der UI gerufen) - * - Der aktuelle Cursor wird plaziert und das Attribut eingefuegt. + * - Der aktuelle Cursor wird plaziert und das Attribut eingefuegt. * 4) HyphEnd - * - Wiederherstellen des alten Cursors, EndAction + * - Wiederherstellen des alten Cursors, EndAction */ @@ -904,7 +904,7 @@ void SwEditShell::HyphStart( SwDocPositions eStart, SwDocPositions eEnd ) } /************************************************************************* - * SwEditShell::HyphEnd + * SwEditShell::HyphEnd *************************************************************************/ // Selektionen wiederherstellen @@ -922,7 +922,7 @@ void SwEditShell::HyphEnd() } /************************************************************************* - * SwEditShell::HyphContinue + * SwEditShell::HyphContinue *************************************************************************/ // Returnwerte: (BP: ich wuerde es genau umdrehen, aber die UI wuenscht es so) @@ -945,14 +945,14 @@ uno::Reference< uno::XInterface > *pPageCnt = nEndPage; ::StartProgress( STR_STATSTR_HYPHEN, 0, nEndPage, GetDoc()->GetDocShell()); } - else // Hiermit unterdruecken wir ein fuer allemal - *pPageSt = 1; // das StatLineStartPercent + else // Hiermit unterdruecken wir ein fuer allemal + *pPageSt = 1; // das StatLineStartPercent } ASSERT( pHyphIter, "wo ist mein Iterator?" ); //JP 18.07.95: verhinder bei Fehlermeldungen die Anzeige der Selektionen - // KEIN StartAction, da damit auch die Paints abgeschaltet - // werden !!!!! + // KEIN StartAction, da damit auch die Paints abgeschaltet + // werden !!!!! ++nStartAction; uno::Reference< uno::XInterface > xRet; pHyphIter->Continue( pPageCnt, pPageSt ) >>= xRet; @@ -966,7 +966,7 @@ uno::Reference< uno::XInterface > /************************************************************************* - * SwEditShell::InsertSoftHyph + * SwEditShell::InsertSoftHyph *************************************************************************/ // Zum Einfuegen des SoftHyphens, Position ist der Offset @@ -981,7 +981,7 @@ void SwEditShell::InsertSoftHyph( const xub_StrLen nHyphPos ) /************************************************************************* - * SwEditShell::HyphIgnore + * SwEditShell::HyphIgnore *************************************************************************/ // Beschreibung: Trennstelle ignorieren @@ -990,8 +990,8 @@ void SwEditShell::HyphIgnore() { ASSERT( pHyphIter, "wo ist mein Iterator?" ); //JP 18.07.95: verhinder bei Fehlermeldungen die Anzeige der Selektionen - // KEIN StartAction, da damit auch die Paints abgeschaltet - // werden !!!!! + // KEIN StartAction, da damit auch die Paints abgeschaltet + // werden !!!!! ++nStartAction; pHyphIter->Ignore(); --nStartAction; @@ -1000,7 +1000,7 @@ void SwEditShell::HyphIgnore() } /************************************************************************* - * SwEditShell::GetCorrection() + * SwEditShell::GetCorrection() * liefert eine Liste von Vorschlaegen fuer falsch geschriebene Worte, * ein NULL-Pointer signalisiert, dass das Wort richtig geschrieben ist, * eine leere Liste, dass das Wort zwar unbekannt ist, aber keine Alternativen @@ -1028,7 +1028,7 @@ uno::Reference< XSpellAlternatives > { xub_StrLen nBegin = aPos.nContent.GetIndex(); xub_StrLen nLen = 1; - if( pWrong->InWrongWord(nBegin,nLen) && !pNode->IsSymbol(nBegin) ) + if( pWrong->InWrongWord(nBegin,nLen) && !pNode->IsSymbol(nBegin) ) { String aText( pNode->GetTxt().Copy( nBegin, nLen ) ); String aWord( aText ); @@ -1117,8 +1117,8 @@ uno::Reference< XSpellAlternatives > /*------------------------------------------------------------------------- -----------------------------------------------------------------------*/ - -bool SwEditShell::GetGrammarCorrection( + +bool SwEditShell::GetGrammarCorrection( linguistic2::ProofreadingResult /*out*/ &rResult, // the complete result sal_Int32 /*out*/ &rErrorPosInText, // offset of error position in string that was grammar checked... sal_Int32 /*out*/ &rErrorIndexInResult, // index of error in rResult.aGrammarErrors @@ -1154,17 +1154,17 @@ bool SwEditShell::GetGrammarCorrection( { // LanguageType eActLang = (LanguageType)pNode->GetLang( nBegin, nLen ); uno::Reference< lang::XComponent > xDoc( pDoc->GetDocShell()->GetBaseModel(), uno::UNO_QUERY ); - + // Expand the string: rtl::OUString aExpandText; const ModelToViewHelper::ConversionMap* pConversionMap = pNode->BuildConversionMap( aExpandText ); // get XFlatParagraph to use... uno::Reference< text::XFlatParagraph > xFlatPara = new SwXFlatParagraph( *pNode, aExpandText, pConversionMap ); - + // get error position of cursor in XFlatParagraph rErrorPosInText = ModelToViewHelper::ConvertToViewPosition( pConversionMap, nBegin ); - + sal_Int32 nStartOfSentence = ModelToViewHelper::ConvertToViewPosition( pConversionMap, pWrong->getSentenceStart( nBegin ) ); sal_Int32 nEndOfSentence = ModelToViewHelper::ConvertToViewPosition( pConversionMap, pWrong->getSentenceEnd( nBegin ) ); if( nEndOfSentence == STRING_LEN ) @@ -1177,11 +1177,11 @@ bool SwEditShell::GetGrammarCorrection( else */ nEndOfSentence = aExpandText.getLength(); } - - rResult = xGCIterator->checkSentenceAtPosition( + + rResult = xGCIterator->checkSentenceAtPosition( xDoc, xFlatPara, aExpandText, lang::Locale(), nStartOfSentence, nEndOfSentence, rErrorPosInText ); bRes = true; - + // get suggestions to use for the specific error position sal_Int32 nErrors = rResult.aErrors.getLength(); rSuggestions.realloc( 0 ); @@ -1189,14 +1189,14 @@ bool SwEditShell::GetGrammarCorrection( { // return suggestions for first error that includes the given error position const linguistic2::SingleProofreadingError &rError = rResult.aErrors[i]; - if (rError.nErrorStart <= rErrorPosInText && + if (rError.nErrorStart <= rErrorPosInText && rErrorPosInText < rError.nErrorStart + rError.nErrorLength) { rSuggestions = rError.aSuggestions; rErrorIndexInResult = i; break; } - } + } } if (rResult.aErrors.getLength() > 0) // error found? @@ -1257,7 +1257,7 @@ bool SwEditShell::GetGrammarCorrection( } return bRes; -} +} /*-- 18.09.2003 15:08:18--------------------------------------------------- @@ -1306,7 +1306,7 @@ sal_uInt32 lcl_CountRedlines( void SwEditShell::MoveContinuationPosToEndOfCheckedSentence() { - // give hint that continuation position for spell/grammar checking is + // give hint that continuation position for spell/grammar checking is // at the end of this sentence if (pSpellIter) { @@ -1404,7 +1404,7 @@ void SwEditShell::ApplyChangedSentence(const ::svx::SpellPortions& rNewPortions, //add the 'ignore' markup to the TextNode's grammar ignore markup list IgnoreGrammarErrorAt( *pCrsr ); DBG_ERROR("TODO: add ignore mark to text node"); - } + } if(aCurrentNewPortion == rNewPortions.begin()) break; } @@ -1448,8 +1448,8 @@ void SwEditShell::ApplyChangedSentence(const ::svx::SpellPortions& rNewPortions, } } - // restore cursor to the end of the sentence - // (will work also if the sentence length has changed, + // restore cursor to the end of the sentence + // (will work also if the sentence length has changed, // since cursors get updated automatically!) Pop( FALSE ); @@ -1578,7 +1578,7 @@ bool SwSpellIter::SpellSentence(::svx::SpellPortions& rPortions, bool bIsGrammar pMySh->GoStartSentence(); bBackToStartOfSentence = false; } - uno::Any aSpellRet = + uno::Any aSpellRet = pMySh->GetDoc()->Spell(*pCrsr, xSpeller, 0, 0, bIsGrammarCheck ); aSpellRet >>= xSpellRet; @@ -1657,9 +1657,9 @@ bool SwSpellIter::SpellSentence(::svx::SpellPortions& rPortions, bool bIsGrammar --nSentenceEnd; if( pCrsr->End()->nContent.GetIndex() < nSentenceEnd ) { - pCrsr->End()->nContent.Assign( + pCrsr->End()->nContent.Assign( pCrsr->End()->nNode.GetNode().GetCntntNode(), nSentenceEnd); - } + } } lcl_CutRedlines( aDeletedRedlines, pMySh ); @@ -1718,7 +1718,7 @@ bool SwSpellIter::SpellSentence(::svx::SpellPortions& rPortions, bool bIsGrammar { //go to the end of sentence as the grammar check returned it // at this time the Point is behind the grammar error - // and the mark points to the sentence end as + // and the mark points to the sentence end as if ( *pCrsr->GetPoint() < *pCrsr->GetMark() ) pCrsr->Exchange(); } @@ -1810,7 +1810,7 @@ void SwSpellIter::CreatePortion(uno::Reference< XSpellAlternatives > xAlt, } } } - } + } else aPortion.sText = sText; aPortion.eLanguage = lcl_GetLanguage(*GetSh()); @@ -1829,7 +1829,7 @@ void SwSpellIter::CreatePortion(uno::Reference< XSpellAlternatives > xAlt, -----------------------------------------------------------------------*/ void SwSpellIter::AddPortion(uno::Reference< XSpellAlternatives > xAlt, - linguistic2::ProofreadingResult* pGrammarResult, + linguistic2::ProofreadingResult* pGrammarResult, const SpellContentPositions& rDeletedRedlines) { SwEditShell *pMySh = GetSh(); @@ -1974,6 +1974,6 @@ void SwEditShell::IgnoreGrammarErrorAt( SwPaM& rErrorPosition ) ++aIdx; nStart = 0; } -} +} diff --git a/sw/source/core/edit/ednumber.cxx b/sw/source/core/edit/ednumber.cxx index ea1088f36f69..9c56f5456329 100644 --- a/sw/source/core/edit/ednumber.cxx +++ b/sw/source/core/edit/ednumber.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -54,20 +54,20 @@ void SwPamRanges::Insert( const SwNodeIndex& rIdx1, const SwNodeIndex& rIdx2 ) { SwPamRange aRg( rIdx1.GetIndex(), rIdx2.GetIndex() ); if( aRg.nEnd < aRg.nStart ) - { aRg.nStart = aRg.nEnd; aRg.nEnd = rIdx1.GetIndex(); } + { aRg.nStart = aRg.nEnd; aRg.nEnd = rIdx1.GetIndex(); } USHORT nPos = 0; const SwPamRange* pTmp; - if( Count() && Seek_Entry( aRg, &nPos )) // suche Insert Position + if( Count() && Seek_Entry( aRg, &nPos )) // suche Insert Position { // ist der im Array stehende kleiner ?? if( ( pTmp = GetData()+ nPos )->nEnd < aRg.nEnd ) { aRg.nEnd = pTmp->nEnd; - Remove( nPos, 1 ); // zusammenfassen + Remove( nPos, 1 ); // zusammenfassen } else - return; // ende, weil schon alle zusammengefasst waren + return; // ende, weil schon alle zusammengefasst waren } BOOL bEnde; @@ -82,7 +82,7 @@ void SwPamRanges::Insert( const SwNodeIndex& rIdx1, const SwNodeIndex& rIdx2 ) { aRg.nStart = pTmp->nStart; bEnde = FALSE; - Remove( --nPos, 1 ); // zusammenfassen + Remove( --nPos, 1 ); // zusammenfassen } // SSelection im Bereich ?? else if( pTmp->nStart <= aRg.nStart && aRg.nEnd <= pTmp->nEnd ) @@ -96,7 +96,7 @@ void SwPamRanges::Insert( const SwNodeIndex& rIdx1, const SwNodeIndex& rIdx2 ) { aRg.nEnd = pTmp->nEnd; bEnde = FALSE; - Remove( nPos, 1 ); // zusammenfassen + Remove( nPos, 1 ); // zusammenfassen } // SSelection im Bereich ?? @@ -129,7 +129,7 @@ SwPaM& SwPamRanges::SetPam( USHORT nArrPos, SwPaM& rPam ) void SwEditShell::SetOutlineNumRule(const SwNumRule& rRule) { - StartAllAction(); // Klammern fuers Updaten !! + StartAllAction(); // Klammern fuers Updaten !! GetDoc()->SetOutlineNumRule(rRule); EndAllAction(); } @@ -151,7 +151,7 @@ BOOL SwEditShell::NoNum() StartAllAction(); SwPaM* pCrsr = GetCrsr(); - if( pCrsr->GetNext() != pCrsr ) // Mehrfachselektion ? + if( pCrsr->GetNext() != pCrsr ) // Mehrfachselektion ? { GetDoc()->StartUndo( UNDO_START, NULL ); SwPamRanges aRangeArr( *pCrsr ); @@ -215,7 +215,7 @@ void SwEditShell::DelNumRules() StartAllAction(); SwPaM* pCrsr = GetCrsr(); - if( pCrsr->GetNext() != pCrsr ) // Mehrfachselektion ? + if( pCrsr->GetNext() != pCrsr ) // Mehrfachselektion ? { GetDoc()->StartUndo( UNDO_START, NULL ); SwPamRanges aRangeArr( *pCrsr ); @@ -251,7 +251,7 @@ BOOL SwEditShell::NumUpDown( BOOL bDown ) BOOL bRet = TRUE; SwPaM* pCrsr = GetCrsr(); - if( pCrsr->GetNext() == pCrsr ) // keine Mehrfachselektion ? + if( pCrsr->GetNext() == pCrsr ) // keine Mehrfachselektion ? bRet = GetDoc()->NumUpDown( *pCrsr, bDown ); else { @@ -436,7 +436,7 @@ BOOL SwEditShell::MoveNumParas( BOOL bUpperLower, BOOL bUpperLeft ) long nOffset = 0; const SwNode* pNd; - if( bUpperLeft ) // verschiebe nach oben + if( bUpperLeft ) // verschiebe nach oben { SwPosition aPos( *aCrsr.GetMark() ); if( GetDoc()->GotoPrevNum( aPos, FALSE ) ) @@ -453,7 +453,7 @@ BOOL SwEditShell::MoveNumParas( BOOL bUpperLower, BOOL bUpperLeft ) nOffset = nIdx - nStt; } } - else // verschiebe nach unten + else // verschiebe nach unten { const SwNumRule* pOrig = aCrsr.GetNode(FALSE)->GetTxtNode()->GetNumRule(); if( aCrsr.GetNode()->IsTxtNode() && @@ -513,7 +513,7 @@ BOOL SwEditShell::OutlineUpDown( short nOffset ) BOOL bRet = TRUE; SwPaM* pCrsr = GetCrsr(); - if( pCrsr->GetNext() == pCrsr ) // keine Mehrfachselektion ? + if( pCrsr->GetNext() == pCrsr ) // keine Mehrfachselektion ? bRet = GetDoc()->OutlineUpDown( *pCrsr, nOffset ); else { @@ -564,7 +564,7 @@ BOOL SwEditShell::IsProtectedOutlinePara() const // int nTmpLvl = pTmpNd->GetTxtNode()->GetOutlineLevel();//#outline level,zhaojianwei int nTmpLvl = pTmpNd->GetTxtNode()->GetAttrOutlineLevel(); // ASSERT( nTmpLvl >= 0 && nTmpLvl < MAXLEVEL, - ASSERT( nTmpLvl >= 0 && nTmpLvl <= MAXLEVEL, //<-end,zhaojianwei + ASSERT( nTmpLvl >= 0 && nTmpLvl <= MAXLEVEL, //<-end,zhaojianwei "<SwEditShell::IsProtectedOutlinePara()>" ); // <-- if( bFirst ) @@ -625,7 +625,7 @@ BOOL SwEditShell::NumOrNoNum( BOOL bNumOn, BOOL bChkStart ) // #115901# if( pCrsr->GetNext() == pCrsr && !pCrsr->HasMark() && ( !bChkStart || !pCrsr->GetPoint()->nContent.GetIndex()) ) { - StartAllAction(); // Klammern fuers Updaten !! + StartAllAction(); // Klammern fuers Updaten !! // #115901# bRet = GetDoc()->NumOrNoNum( pCrsr->GetPoint()->nNode, !bNumOn ); // #i29560# EndAllAction(); @@ -657,8 +657,8 @@ BOOL SwEditShell::IsNoNum( BOOL bChkStart ) const BYTE SwEditShell::GetNumLevel() const { // gebe die akt. Ebene zurueck, auf der sich der Point vom Cursor befindet - //BYTE nLevel = NO_NUMBERING; //#outline level,zhaojianwei - BYTE nLevel = MAXLEVEL; //end,zhaojianwei + //BYTE nLevel = NO_NUMBERING; //#outline level,zhaojianwei + BYTE nLevel = MAXLEVEL; //end,zhaojianwei SwPaM* pCrsr = GetCrsr(); const SwTxtNode* pTxtNd = pCrsr->GetNode()->GetTxtNode(); @@ -699,7 +699,7 @@ void SwEditShell::SetCurNumRule( const SwNumRule& rRule, StartAllAction(); SwPaM* pCrsr = GetCrsr(); - if( pCrsr->GetNext() != pCrsr ) // Mehrfachselektion ? + if( pCrsr->GetNext() != pCrsr ) // Mehrfachselektion ? { GetDoc()->StartUndo( UNDO_START, NULL ); SwPamRanges aRangeArr( *pCrsr ); @@ -759,7 +759,7 @@ void SwEditShell::SetNumRuleStart( BOOL bFlag ) StartAllAction(); SwPaM* pCrsr = GetCrsr(); - if( pCrsr->GetNext() != pCrsr ) // Mehrfachselektion ? + if( pCrsr->GetNext() != pCrsr ) // Mehrfachselektion ? { GetDoc()->StartUndo( UNDO_START, NULL ); SwPamRanges aRangeArr( *pCrsr ); @@ -788,7 +788,7 @@ void SwEditShell::SetNodeNumStart( USHORT nStt ) StartAllAction(); SwPaM* pCrsr = GetCrsr(); - if( pCrsr->GetNext() != pCrsr ) // Mehrfachselektion ? + if( pCrsr->GetNext() != pCrsr ) // Mehrfachselektion ? { GetDoc()->StartUndo( UNDO_START, NULL ); SwPamRanges aRangeArr( *pCrsr ); diff --git a/sw/source/core/edit/edredln.cxx b/sw/source/core/edit/edredln.cxx index b78dfb761ebe..9fc470a40d0e 100644 --- a/sw/source/core/edit/edredln.cxx +++ b/sw/source/core/edit/edredln.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sw/source/core/edit/edsect.cxx b/sw/source/core/edit/edsect.cxx index ba3c2e9c7966..fa1c234c0aca 100644 --- a/sw/source/core/edit/edsect.cxx +++ b/sw/source/core/edit/edsect.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -33,12 +33,12 @@ #include <editsh.hxx> #include <pam.hxx> #include <docary.hxx> -#include <swundo.hxx> // fuer die UndoIds +#include <swundo.hxx> // fuer die UndoIds #include <section.hxx> #include <edimp.hxx> -#include <sectfrm.hxx> // SwSectionFrm -#include <cntfrm.hxx> // SwCntntFrm -#include <tabfrm.hxx> // SwTabFrm +#include <sectfrm.hxx> // SwSectionFrm +#include <cntfrm.hxx> // SwCntntFrm +#include <tabfrm.hxx> // SwTabFrm #include <rootfrm.hxx> // SwRootFrm @@ -287,9 +287,9 @@ USHORT SwEditShell::GetFullSelectedSectionCount() const // !!!!!!!!!!!!!!!!!!!!!!!!!! // what about table at start or end ? -// There is no selection possible! +// There is no selection possible! // What about only a table inside the section ? -// There is only a table selection possible! +// There is only a table selection possible! SwNodeIndex aSIdx( pStt->nNode, -1 ), aEIdx( pEnd->nNode, +1 ); if( !aSIdx.GetNode().IsSectionNode() || diff --git a/sw/source/core/edit/edtab.cxx b/sw/source/core/edit/edtab.cxx index 76a37e4e8627..a17b50674995 100644 --- a/sw/source/core/edit/edtab.cxx +++ b/sw/source/core/edit/edtab.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -167,7 +167,7 @@ BOOL SwEditShell::IsTextToTableAvailable() const // pruefe ob in der Selection eine Tabelle liegt ULONG nStt = PCURCRSR->GetMark()->nNode.GetIndex(), nEnd = PCURCRSR->GetPoint()->nNode.GetIndex(); - if( nStt > nEnd ) { ULONG n = nStt; nStt = nEnd; nEnd = n; } + if( nStt > nEnd ) { ULONG n = nStt; nStt = nEnd; nEnd = n; } for( ; nStt <= nEnd; ++nStt ) if( !GetDoc()->GetNodes()[ nStt ]->IsTxtNode() ) @@ -208,7 +208,7 @@ void SwEditShell::InsertDDETable( const SwInsertTableOptions& rInsTblOpts, SwTableNode* pTblNode = (SwTableNode*)pTbl->GetTabSortBoxes()[ 0 ]-> GetSttNd()->FindTableNode(); SwDDETable* pDDETbl = new SwDDETable( *pTbl, pDDEType ); - pTblNode->SetNewTable( pDDETbl ); // setze die DDE-Tabelle + pTblNode->SetNewTable( pDDETbl ); // setze die DDE-Tabelle if( bEndUndo ) EndUndo( UNDO_END ); @@ -258,7 +258,7 @@ void SwEditShell::SetTblChgMode( TblChgMode eMode ) if( pTblNd ) { ((SwTable&)pTblNd->GetTable()).SetTblChgMode( eMode ); - if( !GetDoc()->IsModified() ) // Bug 57028 + if( !GetDoc()->IsModified() ) // Bug 57028 GetDoc()->SetUndoNoResetModified(); GetDoc()->SetModified(); } @@ -453,13 +453,13 @@ BOOL SwEditShell::CanMergeTable( BOOL bWithPrev, BOOL* pChkNxtPrv ) const // --> FME 2004-09-17 #117418# Consider table in table case pChkNd->EndOfSectionIndex() == pTblNd->GetIndex() - 1 ) // <-- - *pChkNxtPrv = TRUE, bRet = TRUE; // mit Prev ist moeglich + *pChkNxtPrv = TRUE, bRet = TRUE; // mit Prev ist moeglich else { pChkNd = rNds[ pTblNd->EndOfSectionIndex() + 1 ]->GetTableNode(); if( pChkNd && !pChkNd->GetTable().ISA( SwDDETable ) && bNew == pChkNd->GetTable().IsNewModel() ) - *pChkNxtPrv = FALSE, bRet = TRUE; // mit Next ist moeglich + *pChkNxtPrv = FALSE, bRet = TRUE; // mit Next ist moeglich } } else diff --git a/sw/source/core/edit/edtox.cxx b/sw/source/core/edit/edtox.cxx index 230e45f71079..a2c5cfd36314 100644 --- a/sw/source/core/edit/edtox.cxx +++ b/sw/source/core/edit/edtox.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -59,7 +59,7 @@ #endif #include <bookmrk.hxx> #include <xmloff/odffields.hxx> - + using namespace ::com::sun::star; using namespace ::com::sun::star::i18n; @@ -123,7 +123,7 @@ BOOL SwEditShell::IsTOXBaseReadonly(const SwTOXBase& rTOXBase) const { ASSERT( rTOXBase.ISA( SwTOXBaseSection ), "no TOXBaseSection!" ); const SwTOXBaseSection& rTOXSect = (const SwTOXBaseSection&)rTOXBase; - return rTOXSect.IsProtect(); + return rTOXSect.IsProtect(); } /* -----------------18.10.99 15:53------------------- @@ -143,14 +143,14 @@ void SwEditShell::SetTOXBaseReadonly(const SwTOXBase& rTOXBase, BOOL bReadonly) /* -----------------02.09.99 07:47------------------- --------------------------------------------------*/ -const SwTOXBase* SwEditShell::GetDefaultTOXBase( TOXTypes eTyp, BOOL bCreate ) +const SwTOXBase* SwEditShell::GetDefaultTOXBase( TOXTypes eTyp, BOOL bCreate ) { return GetDoc()->GetDefaultTOXBase( eTyp, bCreate ); } /* -----------------02.09.99 08:05------------------- --------------------------------------------------*/ -void SwEditShell::SetDefaultTOXBase(const SwTOXBase& rBase) +void SwEditShell::SetDefaultTOXBase(const SwTOXBase& rBase) { GetDoc()->SetDefaultTOXBase(rBase); } @@ -234,7 +234,7 @@ BOOL SwEditShell::UpdateTableOf( const SwTOXBase& rTOX, const SfxItemSet* pSet ) return bRet; } -BOOL SwEditShell::UpdateField( sw::mark::IFieldmark &fieldBM) +BOOL SwEditShell::UpdateField( sw::mark::IFieldmark &fieldBM) { // SwDocShell* pDocSh = pDoc->GetDocShell(); //@TODO implement me...; add undo etc... @@ -335,7 +335,7 @@ BOOL SwEditShell::IsUpdateTOX() const /* -----------------26.08.99 13:49------------------- --------------------------------------------------*/ -const String& SwEditShell::GetTOIAutoMarkURL() const +const String& SwEditShell::GetTOIAutoMarkURL() const { return GetDoc()->GetTOIAutoMarkURL(); } @@ -355,7 +355,7 @@ void SwEditShell::ApplyAutoMark() BOOL bDoesUndo = DoesUndo(); DoUndo(FALSE); //1. remove all automatic generated index entries if AutoMarkURL has a - // length and the file exists + // length and the file exists //2. load file //3. select all occurrences of the searched words //4. apply index entries @@ -384,15 +384,15 @@ void SwEditShell::ApplyAutoMark() // // SearchOptions to be used in loop below // - //SearchAlgorithms eSrchType = SearchAlgorithms_ABSOLUTE; - //OUString aSrchStr = rText; - BOOL bCaseSensitive = TRUE; - BOOL bWordOnly = FALSE; - BOOL bSrchInSel = FALSE; - BOOL bLEV_Relaxed = TRUE; - INT32 nLEV_Other = 2; // -> changedChars; - INT32 nLEV_Longer = 3; //! -> deletedChars; - INT32 nLEV_Shorter = 1; //! -> insertedChars; + //SearchAlgorithms eSrchType = SearchAlgorithms_ABSOLUTE; + //OUString aSrchStr = rText; + BOOL bCaseSensitive = TRUE; + BOOL bWordOnly = FALSE; + BOOL bSrchInSel = FALSE; + BOOL bLEV_Relaxed = TRUE; + INT32 nLEV_Other = 2; // -> changedChars; + INT32 nLEV_Longer = 3; //! -> deletedChars; + INT32 nLEV_Shorter = 1; //! -> insertedChars; INT32 nTransliterationFlags = 0; // INT32 nSrchFlags = 0; @@ -435,14 +435,14 @@ void SwEditShell::ApplyAutoMark() if( sToSelect.Len() ) { String sAlternative = sLine.GetToken(0, ';', nTokenPos); - String sPrimary = sLine.GetToken(0, ';', nTokenPos); - String sSecondary = sLine.GetToken(0, ';', nTokenPos); + String sPrimary = sLine.GetToken(0, ';', nTokenPos); + String sSecondary = sLine.GetToken(0, ';', nTokenPos); String sCase = sLine.GetToken(0, ';', nTokenPos); - String sWordOnly = sLine.GetToken(0, ';', nTokenPos); + String sWordOnly = sLine.GetToken(0, ';', nTokenPos); //3. - bCaseSensitive = sCase.Len() && sCase != sZero; - bWordOnly = sWordOnly.Len() && sWordOnly != sZero; + bCaseSensitive = sCase.Len() && sCase != sZero; + bWordOnly = sWordOnly.Len() && sWordOnly != sZero; // if (!bCaseSensitive) { diff --git a/sw/source/core/edit/edundo.cxx b/sw/source/core/edit/edundo.cxx index a27b09f5d4ff..c9c1d5ce13e7 100644 --- a/sw/source/core/edit/edundo.cxx +++ b/sw/source/core/edit/edundo.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -68,14 +68,14 @@ BOOL SwEditShell::Undo( SwUndoId nUndoId, USHORT nCnt ) ClearMark(); // JP 02.04.98: Cursor merken - beim Auto-Format/-Korrektur - // soll dieser wieder an die Position + // soll dieser wieder an die Position SwUndoId nLastUndoId = GetDoc()->GetUndoIds(NULL, NULL); BOOL bRestoreCrsr = 1 == nCnt && ( UNDO_AUTOFORMAT == nLastUndoId || UNDO_AUTOCORRECT == nLastUndoId ); Push(); //JP 18.09.97: gesicherten TabellenBoxPtr zerstoeren, eine autom. - // Erkennung darf nur noch fuer die neue "Box" erfolgen! + // Erkennung darf nur noch fuer die neue "Box" erfolgen! ClearTblBoxCntnt(); RedlineMode_t eOld = GetDoc()->GetRedlineMode(); @@ -103,7 +103,7 @@ BOOL SwEditShell::Undo( SwUndoId nUndoId, USHORT nCnt ) Pop( !bRestoreCrsr ); - if( aUndoIter.pSelFmt ) // dann erzeuge eine Rahmen-Selection + if( aUndoIter.pSelFmt ) // dann erzeuge eine Rahmen-Selection { if( RES_DRAWFRMFMT == aUndoIter.pSelFmt->Which() ) { @@ -123,8 +123,8 @@ BOOL SwEditShell::Undo( SwUndoId nUndoId, USHORT nCnt ) { lcl_SelectSdrMarkList( this, aUndoIter.pMarkList ); } - else if( GetCrsr()->GetNext() != GetCrsr() ) // gehe nach einem - GoNextCrsr(); // Undo zur alten Undo-Position !! + else if( GetCrsr()->GetNext() != GetCrsr() ) // gehe nach einem + GoNextCrsr(); // Undo zur alten Undo-Position !! GetDoc()->SetRedlineMode( eOld ); GetDoc()->CompressRedlines(); @@ -161,7 +161,7 @@ USHORT SwEditShell::Redo( USHORT nCnt ) ClearMark(); //JP 18.09.97: gesicherten TabellenBoxPtr zerstoeren, eine autom. - // Erkennung darf nur noch fuer die neue "Box" erfolgen! + // Erkennung darf nur noch fuer die neue "Box" erfolgen! ClearTblBoxCntnt(); RedlineMode_t eOld = GetDoc()->GetRedlineMode(); @@ -189,7 +189,7 @@ USHORT SwEditShell::Redo( USHORT nCnt ) if( aUndoIter.IsUpdateAttr() ) UpdateAttr(); - if( aUndoIter.pSelFmt ) // dann erzeuge eine Rahmen-Selection + if( aUndoIter.pSelFmt ) // dann erzeuge eine Rahmen-Selection { if( RES_DRAWFRMFMT == aUndoIter.pSelFmt->Which() ) { @@ -209,8 +209,8 @@ USHORT SwEditShell::Redo( USHORT nCnt ) { lcl_SelectSdrMarkList( this, aUndoIter.pMarkList ); } - else if( GetCrsr()->GetNext() != GetCrsr() ) // gehe nach einem - GoNextCrsr(); // Redo zur alten Undo-Position !! + else if( GetCrsr()->GetNext() != GetCrsr() ) // gehe nach einem + GoNextCrsr(); // Redo zur alten Undo-Position !! GetDoc()->SetRedlineMode( eOld ); GetDoc()->CompressRedlines(); diff --git a/sw/source/core/edit/edws.cxx b/sw/source/core/edit/edws.cxx index 81088bcc0e56..358492928226 100644 --- a/sw/source/core/edit/edws.cxx +++ b/sw/source/core/edit/edws.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -68,7 +68,7 @@ SwEditShell::~SwEditShell() // USED } /****************************************************************************** - * sal_Bool SwEditShell::IsModified() const + * sal_Bool SwEditShell::IsModified() const ******************************************************************************/ @@ -77,7 +77,7 @@ sal_Bool SwEditShell::IsModified() const return GetDoc()->IsModified(); } /****************************************************************************** - * void SwEditShell::SetModified() + * void SwEditShell::SetModified() ******************************************************************************/ @@ -86,7 +86,7 @@ void SwEditShell::SetModified() GetDoc()->SetModified(); } /****************************************************************************** - * void SwEditShell::ResetModified() + * void SwEditShell::ResetModified() ******************************************************************************/ @@ -102,7 +102,7 @@ void SwEditShell::SetUndoNoResetModified() } /****************************************************************************** - * void SwEditShell::StartAllAction() + * void SwEditShell::StartAllAction() ******************************************************************************/ @@ -118,7 +118,7 @@ void SwEditShell::StartAllAction() } while(pSh != this); } /****************************************************************************** - * void SwEditShell::EndAllAction() + * void SwEditShell::EndAllAction() ******************************************************************************/ @@ -135,7 +135,7 @@ void SwEditShell::EndAllAction() } /****************************************************************************** - * void SwEditShell::CalcLayout() + * void SwEditShell::CalcLayout() ******************************************************************************/ @@ -157,7 +157,7 @@ void SwEditShell::CalcLayout() } /****************************************************************************** - * Inhaltsform bestimmen, holen + * Inhaltsform bestimmen, holen ******************************************************************************/ // OPT: wird fuer jedes Attribut gerufen? @@ -171,7 +171,7 @@ sal_uInt16 SwEditShell::GetCntType() const else switch( GetCrsr()->GetNode()->GetNodeType() ) { - case ND_TEXTNODE: nRet = CNT_TXT; break; + case ND_TEXTNODE: nRet = CNT_TXT; break; case ND_GRFNODE: nRet = CNT_GRF; break; case ND_OLENODE: nRet = CNT_OLE; break; } @@ -204,7 +204,7 @@ sal_Bool SwEditShell::HasOtherCnt() const } /****************************************************************************** - * Zugriffsfunktionen fuer Filename-Behandlung + * Zugriffsfunktionen fuer Filename-Behandlung ******************************************************************************/ @@ -221,8 +221,8 @@ SwActKontext::~SwActKontext() } /****************************************************************************** - * Klasse fuer den automatisierten Aufruf von Start- und - * EndCrsrMove(); + * Klasse fuer den automatisierten Aufruf von Start- und + * EndCrsrMove(); ******************************************************************************/ @@ -238,7 +238,7 @@ SwMvKontext::~SwMvKontext() } -SwFrmFmt *SwEditShell::GetTableFmt() // OPT: schnellster Test auf Tabelle? +SwFrmFmt *SwEditShell::GetTableFmt() // OPT: schnellster Test auf Tabelle? { const SwTableNode* pTblNd = IsCrsrInTbl(); return pTblNd ? (SwFrmFmt*)pTblNd->GetTable().GetFrmFmt() : 0; |