diff options
Diffstat (limited to 'sw/source/core/docnode')
24 files changed, 637 insertions, 637 deletions
diff --git a/sw/source/core/docnode/cancellablejob.cxx b/sw/source/core/docnode/cancellablejob.cxx index ec32c602137f..40c57e5b4cc0 100644 --- a/sw/source/core/docnode/cancellablejob.cxx +++ b/sw/source/core/docnode/cancellablejob.cxx @@ -2,7 +2,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/docnode/cancellablejob.hxx b/sw/source/core/docnode/cancellablejob.hxx index d675159f757b..6c881acb020d 100644 --- a/sw/source/core/docnode/cancellablejob.hxx +++ b/sw/source/core/docnode/cancellablejob.hxx @@ -2,7 +2,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/docnode/finalthreadmanager.cxx b/sw/source/core/docnode/finalthreadmanager.cxx index 2b871af0b6bc..1517b00b08ea 100644 --- a/sw/source/core/docnode/finalthreadmanager.cxx +++ b/sw/source/core/docnode/finalthreadmanager.cxx @@ -2,7 +2,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/docnode/ndcopy.cxx b/sw/source/core/docnode/ndcopy.cxx index 31c309519cff..8427d30a583f 100644 --- a/sw/source/core/docnode/ndcopy.cxx +++ b/sw/source/core/docnode/ndcopy.cxx @@ -2,7 +2,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 @@ -292,7 +292,7 @@ BOOL lcl_SrchNew( const _MapTblFrmFmt& rMap, void * pPara ) if( rMap.pOld != *(const SwFrmFmt**)pPara ) return TRUE; *((const SwFrmFmt**)pPara) = rMap.pNew; - return FALSE; // abbrechen, Pointer gefunden + return FALSE; // abbrechen, Pointer gefunden } @@ -323,7 +323,7 @@ BOOL lcl_CopyTblBox( const SwTableBox*& rpBox, void* pPara ) SwTableBoxFmt* pBoxFmt = (SwTableBoxFmt*)rpBox->GetFrmFmt(); pCT->rMapArr.ForEach( lcl_SrchNew, &pBoxFmt ); - if( pBoxFmt == rpBox->GetFrmFmt() ) // ein neues anlegen ?? + if( pBoxFmt == rpBox->GetFrmFmt() ) // ein neues anlegen ?? { const SfxPoolItem* pItem; if( SFX_ITEM_SET == pBoxFmt->GetItemState( RES_BOXATR_FORMULA, FALSE, @@ -386,7 +386,7 @@ BOOL lcl_CopyTblLine( const SwTableLine*& rpLine, void* pPara ) _CopyTable* pCT = (_CopyTable*)pPara; SwTableLineFmt* pLineFmt = (SwTableLineFmt*)rpLine->GetFrmFmt(); pCT->rMapArr.ForEach( lcl_SrchNew, &pLineFmt ); - if( pLineFmt == rpLine->GetFrmFmt() ) // ein neues anlegen ?? + if( pLineFmt == rpLine->GetFrmFmt() ) // ein neues anlegen ?? { pLineFmt = pCT->pDoc->MakeTableLineFmt(); pLineFmt->CopyAttrs( *rpLine->GetFrmFmt() ); @@ -453,7 +453,7 @@ SwTableNode* SwTableNode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) const SwNodeIndex aInsPos( *pEndNd ); SwTable& rTbl = (SwTable&)pTblNd->GetTable(); - pTblFmt->Add( &rTbl ); // das Frame-Format setzen + pTblFmt->Add( &rTbl ); // das Frame-Format setzen rTbl.SetRowsToRepeat( GetTable().GetRowsToRepeat() ); rTbl.SetTblChgMode( GetTable().GetTblChgMode() ); @@ -477,7 +477,7 @@ SwTableNode* SwTableNode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) const } // dann kopiere erstmal den Inhalt der Tabelle, die Zuordnung der // Boxen/Lines und das anlegen der Frames erfolgt spaeter - SwNodeRange aRg( *this, +1, *EndOfSectionNode() ); // (wo stehe in denn nun ??) + SwNodeRange aRg( *this, +1, *EndOfSectionNode() ); // (wo stehe in denn nun ??) // If there is a table in this table, the table format for the outer table // does not seem to be used, because the table does not have any contents yet @@ -570,11 +570,11 @@ BOOL lcl_ChkFlyFly( SwDoc* pDoc, ULONG nSttNd, ULONG nEndNd, if( pSNd->GetIndex() < nInsNd && nInsNd < pSNd->EndOfSectionIndex() ) - return TRUE; // nicht kopieren !! + return TRUE; // nicht kopieren !! if( lcl_ChkFlyFly( pDoc, pSNd->GetIndex(), pSNd->EndOfSectionIndex(), nInsNd ) ) - return TRUE; // nicht kopieren !! + return TRUE; // nicht kopieren !! } } @@ -608,11 +608,11 @@ void lcl_DeleteRedlines( const SwPaM& rPam, SwPaM& rCpyPam ) switch( eCmpPos ) { case POS_COLLIDE_END: - case POS_BEFORE: // Pos1 liegt vor Pos2 + case POS_BEFORE: // Pos1 liegt vor Pos2 break; case POS_COLLIDE_START: - case POS_BEHIND: // Pos1 liegt hinter Pos2 + case POS_BEHIND: // Pos1 liegt hinter Pos2 n = rTbl.Count(); break; @@ -736,13 +736,13 @@ SwDoc::CopyRange( SwPaM& rPam, SwPosition& rPos, const bool bCopyAll ) const pDoc->SetRedlineMode_intern((RedlineMode_t)(eOld | nsRedlineMode_t::REDLINE_IGNORE)); BOOL bDoUndo = pDoc->DoesUndo(); - pDoc->DoUndo( FALSE ); // Auf jedenfall Undo abschalten + pDoc->DoUndo( FALSE ); // Auf jedenfall Undo abschalten // dann kopiere den Bereich im unteren DokumentBereich, // (mit Start/End-Nodes geklammert) und verschiebe diese // dann an die gewuenschte Stelle. SwUndoCpyDoc* pUndo = 0; - SwPaM aPam( rPos ); // UndoBereich sichern + SwPaM aPam( rPos ); // UndoBereich sichern if( bDoUndo ) { pDoc->ClearRedo(); @@ -767,10 +767,10 @@ SwDoc::CopyRange( SwPaM& rPam, SwPosition& rPos, const bool bCopyAll ) const pDoc->MoveRange( aPam, rPos, DOC_MOVEDEFAULT ); pNode = aPam.GetCntntNode(); - *aPam.GetPoint() = rPos; // Cursor umsetzen fuers Undo ! - aPam.SetMark(); // auch den Mark umsetzen !! - aPam.DeleteMark(); // aber keinen Bereich makieren !! - pDoc->DeleteSection( pNode ); // Bereich wieder loeschen + *aPam.GetPoint() = rPos; // Cursor umsetzen fuers Undo ! + aPam.SetMark(); // auch den Mark umsetzen !! + aPam.DeleteMark(); // aber keinen Bereich makieren !! + pDoc->DeleteSection( pNode ); // Bereich wieder loeschen // falls Undo eingeschaltet ist, so speicher den eingefuegten Bereich pDoc->DoUndo( bDoUndo ); @@ -1002,7 +1002,7 @@ bool SwDoc::CopyImpl( SwPaM& rPam, SwPosition& rPos, aRg.aEnd = pEnd->nNode; pEndTxtNd = pEnd->nNode.GetNode().GetTxtNode(); } - else if( rPos == *pEnd ) // Wurde das Ende auch verschoben + else if( rPos == *pEnd ) // Wurde das Ende auch verschoben { pEnd->nNode--; pEnd->nContent.Assign( pDestTxtNd, nCntntEnd ); @@ -1119,7 +1119,7 @@ bool SwDoc::CopyImpl( SwPaM& rPam, SwPosition& rPos, // korrigiere den Bereich wieder !! if( bEndEqualIns ) aRg.aEnd--; - else if( rPos == *pEnd ) // Wurde das Ende auch verschoben + else if( rPos == *pEnd ) // Wurde das Ende auch verschoben { rPos.nNode-=2; rPos.nContent.Assign( rPos.nNode.GetNode().GetCntntNode(), @@ -1331,8 +1331,8 @@ void SwDoc::CopyWithFlyInFly( const SwNodeRange& rRg, const xub_StrLen nEndConte #if OSL_DEBUG_LEVEL > 1 { //JP 17.06.99: Bug 66973 - check count only if the selection is in - // the same (or no) section. Becaus not full selected - // section are not copied. + // the same (or no) section. Becaus not full selected + // section are not copied. const SwSectionNode* pSSectNd = rRg.aStart.GetNode().FindSectionNode(); SwNodeIndex aTmpI( rRg.aEnd, -1 ); const SwSectionNode* pESectNd = aTmpI.GetNode().FindSectionNode(); @@ -1391,9 +1391,9 @@ void SwDoc::CopyFlyInFlyImpl( const SwNodeRange& rRg, const bool bCopyFlyAtFly ) const { // Bug 22727: suche erst mal alle Flys zusammen, sortiere sie entsprechend - // ihrer Ordnungsnummer und kopiere sie erst dann. Damit wird - // die Ordnungsnummer (wird nur im DrawModel verwaltet) - // beibehalten. + // ihrer Ordnungsnummer und kopiere sie erst dann. Damit wird + // die Ordnungsnummer (wird nur im DrawModel verwaltet) + // beibehalten. SwDoc *const pDest = rStartIdx.GetNode().GetDoc(); _ZSortFlys aArr; USHORT nArrLen = GetSpzFrmFmts()->Count(); diff --git a/sw/source/core/docnode/ndindex.cxx b/sw/source/core/docnode/ndindex.cxx index 4e830f37b66c..3b5e5ecef6c9 100644 --- a/sw/source/core/docnode/ndindex.cxx +++ b/sw/source/core/docnode/ndindex.cxx @@ -2,7 +2,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 @@ -31,8 +31,8 @@ -#include "errhdl.hxx" // fuers ASSERT -#include "error.h" // fuers ASSERT +#include "errhdl.hxx" // fuers ASSERT +#include "error.h" // fuers ASSERT #include "ndindex.hxx" #if OSL_DEBUG_LEVEL > 1 @@ -70,7 +70,7 @@ SwNodeIndex::SwNodeIndex( SwNodes& rNds, ULONG nIdx ) rNds.RegisterIndex( *this ); #if OSL_DEBUG_LEVEL > 1 - MySerial = ++nSerial; // nur in der nicht PRODUCT-Version + MySerial = ++nSerial; // nur in der nicht PRODUCT-Version #endif } @@ -85,7 +85,7 @@ SwNodeIndex::SwNodeIndex( const SwNodeIndex& rIdx, long nDiff ) pNd->GetNodes().RegisterIndex( *this ); #if OSL_DEBUG_LEVEL > 1 - MySerial = ++nSerial; // nur in der nicht PRODUCT-Version + MySerial = ++nSerial; // nur in der nicht PRODUCT-Version #endif } @@ -100,7 +100,7 @@ SwNodeIndex::SwNodeIndex( const SwNode& rNd, long nDiff ) pNd->GetNodes().RegisterIndex( *this ); #if OSL_DEBUG_LEVEL > 1 - MySerial = ++nSerial; // nur in der nicht PRODUCT-Version + MySerial = ++nSerial; // nur in der nicht PRODUCT-Version #endif } diff --git a/sw/source/core/docnode/ndnotxt.cxx b/sw/source/core/docnode/ndnotxt.cxx index aeb4dcb8e797..001394d43c28 100644 --- a/sw/source/core/docnode/ndnotxt.cxx +++ b/sw/source/core/docnode/ndnotxt.cxx @@ -2,7 +2,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 @@ -42,7 +42,7 @@ #include <ndgrf.hxx> #include <ndole.hxx> #include <ndindex.hxx> -#include <hints.hxx> // fuer SwFmtChg +#include <hints.hxx> // fuer SwFmtChg #include <istyleaccess.hxx> #include <SwStyleNameMapper.hxx> diff --git a/sw/source/core/docnode/ndnum.cxx b/sw/source/core/docnode/ndnum.cxx index c7974c05b9a6..cde6cbc5f5c2 100644 --- a/sw/source/core/docnode/ndnum.cxx +++ b/sw/source/core/docnode/ndnum.cxx @@ -2,7 +2,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 <doc.hxx> #include <pam.hxx> #include <ndtxt.hxx> -#include <fldbas.hxx> // UpdateFlds der KapitelNummerierung +#include <fldbas.hxx> // UpdateFlds der KapitelNummerierung #include <docary.hxx> _SV_IMPL_SORTAR_ALG( SwOutlineNodes, SwNodePtr ) @@ -46,8 +46,8 @@ BOOL SwOutlineNodes::Seek_Entry( const SwNodePtr rSrch, USHORT* pFndPos ) const if( nO > 0 ) { //JP 17.03.98: aufgrund des Bug 48592 - wo unter anderem nach Undo/Redo -// Nodes aus dem falschen NodesArray im OutlineArray standen, -// jetzt mal einen Check eingebaut. +// Nodes aus dem falschen NodesArray im OutlineArray standen, +// jetzt mal einen Check eingebaut. #if OSL_DEBUG_LEVEL > 1 { for( USHORT n = 1; n < nO; ++n ) @@ -128,23 +128,23 @@ void SwNodes::UpdateOutlineNode(SwNode & rNd) //void SwNodes::UpdateOutlineNode( const SwNode& rNd, BYTE nOldLevel, //#outline level,removed by zhaojianwei // BYTE nNewLevel ) //{ -// const SwNodePtr pSrch = (SwNodePtr)&rNd; -// USHORT nSttPos; -// BOOL bSeekIdx = pOutlineNds->Seek_Entry( pSrch, &nSttPos ); +// const SwNodePtr pSrch = (SwNodePtr)&rNd; +// USHORT nSttPos; +// BOOL bSeekIdx = pOutlineNds->Seek_Entry( pSrch, &nSttPos ); // -// //if( NO_NUMBERING == nOldLevel ) //#outline level,zhaojianwei -// if( 0 == nOldLevel ) //<-end, zhaojianwei -// { -// // nicht vorhanden, also einfuegen -// / OSL_ENSURE( !bSeekIdx, "Der Node ist schon als OutlineNode vorhanden" ); +// //if( NO_NUMBERING == nOldLevel ) //#outline level,zhaojianwei +// if( 0 == nOldLevel ) //<-end, zhaojianwei +// { +// // nicht vorhanden, also einfuegen +// / OSL_ENSURE( !bSeekIdx, "Der Node ist schon als OutlineNode vorhanden" ); // -// //JP 12.03.99: 63293 - Nodes vom RedlineBereich NIE aufnehmen -// ULONG nNd = rNd.GetIndex(); -// if( nNd < GetEndOfRedlines().GetIndex() && +// //JP 12.03.99: 63293 - Nodes vom RedlineBereich NIE aufnehmen +// ULONG nNd = rNd.GetIndex(); +// if( nNd < GetEndOfRedlines().GetIndex() && // nNd > GetEndOfRedlines().StartOfSectionNode()->GetIndex() ) -// return ; +// return ; // -// // jetzt noch alle nachfolgende Outline-Nodes updaten +// // jetzt noch alle nachfolgende Outline-Nodes updaten // if (! bSeekIdx) // { // // --> OD 2005-11-03 #125329# @@ -161,33 +161,33 @@ void SwNodes::UpdateOutlineNode(SwNode & rNd) // // <-- // } // -// } -// //else if( NO_NUMBERING == nNewLevel ) //#outline level,removed by zhaojianwei -// else if( 0 == nNewLevel ) //<-end,added by zhaojianwei // Level entfernen -// { -// if( !bSeekIdx ) -// return; +// } +// //else if( NO_NUMBERING == nNewLevel ) //#outline level,removed by zhaojianwei +// else if( 0 == nNewLevel ) //<-end,added by zhaojianwei // Level entfernen +// { +// if( !bSeekIdx ) +// return; // -// // jetzt noch alle nachfolgende Outline-Nodes updaten -// pOutlineNds->Remove( nSttPos ); -// } -// else if( !bSeekIdx ) // Update und Index nicht gefunden ?? -// return ; +// // jetzt noch alle nachfolgende Outline-Nodes updaten +// pOutlineNds->Remove( nSttPos ); +// } +// else if( !bSeekIdx ) // Update und Index nicht gefunden ?? +// return ; // // { // SwTxtNode & rTxtNd = (SwTxtNode &) rNd; // SwPaM aPam(rTxtNd); // #115901# // // //if (nNewLevel != NO_NUMBERING) //#outline level,zhaojianwei // #115901# -// if (nNewLevel != 0) //<-end,zhaojianwei // #115901# +// if (nNewLevel != 0) //<-end,zhaojianwei // #115901# // { -// //rTxtNd.SetLevel(rTxtNd.GetTxtColl()->GetOutlineLevel()); //#outline level,zhaojianwei -// //rTxtNd.NumRuleChgd(); -// if(rTxtNd.GetTxtColl()->IsAssignedToListLevelOfOutlineStyle()) -// { -// rTxtNd.SetLevel(rTxtNd.GetTxtColl()->GetAssignedOutlineStyleLevel()); -// rTxtNd.NumRuleChgd(); -// }//<-end,zhaojianwei +// //rTxtNd.SetLevel(rTxtNd.GetTxtColl()->GetOutlineLevel()); //#outline level,zhaojianwei +// //rTxtNd.NumRuleChgd(); +// if(rTxtNd.GetTxtColl()->IsAssignedToListLevelOfOutlineStyle()) +// { +// rTxtNd.SetLevel(rTxtNd.GetTxtColl()->GetAssignedOutlineStyleLevel()); +// rTxtNd.NumRuleChgd(); +// }//<-end,zhaojianwei // // //GetDoc()->SetNumRule(aPam, *GetDoc()->GetOutlineNumRule()); // } @@ -197,20 +197,20 @@ void SwNodes::UpdateOutlineNode(SwNode & rNd) // } // } // -// // die Gliederungs-Felder Updaten -// GetDoc()->GetSysFldType( RES_CHAPTERFLD )->UpdateFlds(); +// // die Gliederungs-Felder Updaten +// GetDoc()->GetSysFldType( RES_CHAPTERFLD )->UpdateFlds(); // GetDoc()->ChkCondColls(); //}//<-end,zhaojianwei void SwNodes::UpdtOutlineIdx( const SwNode& rNd ) { - if( !pOutlineNds->Count() ) // keine OutlineNodes vorhanden ? + if( !pOutlineNds->Count() ) // keine OutlineNodes vorhanden ? return; const SwNodePtr pSrch = (SwNodePtr)&rNd; USHORT nPos; pOutlineNds->Seek_Entry( pSrch, &nPos ); - if( nPos == pOutlineNds->Count() ) // keine zum Updaten vorhanden ? + if( nPos == pOutlineNds->Count() ) // keine zum Updaten vorhanden ? return; if( nPos ) diff --git a/sw/source/core/docnode/ndsect.cxx b/sw/source/core/docnode/ndsect.cxx index 25994a475e88..4ce74c6b85b3 100644 --- a/sw/source/core/docnode/ndsect.cxx +++ b/sw/source/core/docnode/ndsect.cxx @@ -2,7 +2,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 @@ -219,7 +219,7 @@ SwDoc::InsertSwSection(SwPaM const& rRange, SwSectionData & rNewData, while( pPrvNd != aEnd.GetNode().StartOfSectionNode() ) aEnd++; - --aEnd; // im InsertSection ist Ende inclusive + --aEnd; // im InsertSection ist Ende inclusive pNewSectNode = GetNodes().InsertTextSection( aStt, *pFmt, rNewData, pTOXBase, & aEnd); } @@ -464,7 +464,7 @@ USHORT SwDoc::IsInsRegionAvailable( const SwPaM& rRange, aIdx++; } while( aIdx.GetNode().IsEndNode() && 0 != aIdx.GetNode().FindSectionNode() ); -// if( !aIdx.GetNode().IsEndNode() ) +// if( !aIdx.GetNode().IsEndNode() ) { nRet = 2; if( ppSttNd ) @@ -582,8 +582,8 @@ void SwDoc::DelSectionFmt( SwSectionFmt *pFmt, BOOL bDelNodes ) nPos = pSectionFmtTbl->GetPos( pFmt ); // ACHTUNG: erst aus dem Array entfernen und dann loeschen. - // Der Section-DTOR versucht selbst noch sein Format - // zu loeschen! + // Der Section-DTOR versucht selbst noch sein Format + // zu loeschen! pSectionFmtTbl->Remove( nPos ); //FEATURE::CONDCOLL ULONG nCnt = 0, nSttNd = 0; @@ -830,7 +830,7 @@ SwSectionNode* SwNodes::InsertTextSection(SwNodeIndex const& rNdIdx, bool const bInsAtStart, bool const bCreateFrms) { SwNodeIndex aInsPos( rNdIdx ); - if( !pEnde ) // kein Bereich also neue Section davor/hinter anlegen + if( !pEnde ) // kein Bereich also neue Section davor/hinter anlegen { // #i26762# OSL_ENSURE(!pEnde || rNdIdx <= *pEnde, @@ -904,7 +904,7 @@ SwSectionNode* SwNodes::InsertTextSection(SwNodeIndex const& rNdIdx, if( pCpyTNd->HasSwAttrSet() ) { // Task 70955 - move PageDesc/Break to the first Node of the - // section + // section const SfxItemSet& rSet = *pCpyTNd->GetpSwAttrSet(); if( SFX_ITEM_SET == rSet.GetItemState( RES_BREAK ) || SFX_ITEM_SET == rSet.GetItemState( RES_PAGEDESC )) @@ -955,7 +955,7 @@ SwSectionNode* SwNodes::InsertTextSection(SwNodeIndex const& rNdIdx, SwNode* pNd = (*this)[n]; //JP 30.04.99: Bug 65644 - alle in der NodeSection liegenden - // Sections unter die neue haengen + // Sections unter die neue haengen if( ULONG_MAX == nSkipIdx ) pNd->pStartOfSection = pSectNd; else if( n >= nSkipIdx ) @@ -1276,9 +1276,9 @@ void SwSectionNode::DelFrms() m_pSection->m_Data.SetHiddenFlag(true); // Bug 30582: falls der Bereich in Fly oder TabellenBox ist, dann - // kann er nur "gehiddet" werden, wenn weiterer Content - // vorhanden ist, der "Frames" haelt. Sonst hat der - // Fly/TblBox-Frame keinen Lower !!! + // kann er nur "gehiddet" werden, wenn weiterer Content + // vorhanden ist, der "Frames" haelt. Sonst hat der + // Fly/TblBox-Frame keinen Lower !!! { SwNodeIndex aIdx( *this ); if( !rNds.GoPrevSection( &aIdx, TRUE, FALSE ) || @@ -1351,7 +1351,7 @@ SwSectionNode* SwSectionNode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) c pNewSect->SetEditInReadonly( TRUE ); // <-- - SwNodeRange aRg( *this, +1, *EndOfSectionNode() ); // (wo stehe in denn nun ??) + SwNodeRange aRg( *this, +1, *EndOfSectionNode() ); // (wo stehe in denn nun ??) rNds._Copy( aRg, aInsPos, FALSE ); // loesche alle Frames vom kopierten Bereich, diese werden beim @@ -1359,7 +1359,7 @@ SwSectionNode* SwSectionNode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) c pSectNd->DelFrms(); // dann kopiere auch noch die Links/Server - if( pNewSect->IsLinkType() ) // den Link eintragen + if( pNewSect->IsLinkType() ) // den Link eintragen pNewSect->CreateLink( pDoc->GetRootFrm() ? CREATE_CONNECT : CREATE_NONE ); diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx index 4bf6e94be153..6d5912419e2e 100644 --- a/sw/source/core/docnode/ndtbl.cxx +++ b/sw/source/core/docnode/ndtbl.cxx @@ -2,7 +2,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 @@ -142,10 +142,10 @@ void lcl_SetDfltBoxAttr( SwFrmFmt& rFmt, BYTE nId ) BOOL bTop = FALSE, bBottom = FALSE, bLeft = FALSE, bRight = FALSE; switch ( nId ) { - case 0: bTop = bBottom = bLeft = TRUE; break; - case 1: bTop = bBottom = bLeft = bRight = TRUE; break; - case 2: bBottom = bLeft = TRUE; break; - case 3: bBottom = bLeft = bRight = TRUE; break; + case 0: bTop = bBottom = bLeft = TRUE; break; + case 1: bTop = bBottom = bLeft = bRight = TRUE; break; + case 2: bBottom = bLeft = TRUE; break; + case 3: bBottom = bLeft = bRight = TRUE; break; } const BOOL bHTML = rFmt.getIDocumentSettingAccess()->get(IDocumentSettingAccess::HTML_MODE); @@ -314,9 +314,9 @@ BOOL SwNodes::InsBoxen( SwTableNode* pTblNd, // Tabelle ohne irgendeinen Inhalt oder am Ende, also vors Ende nIdxPos = pTblNd->EndOfSectionIndex(); } - else if( pNxtBox ) // es gibt einen Nachfolger + else if( pNxtBox ) // es gibt einen Nachfolger nIdxPos = pNxtBox->GetSttIdx(); - else // es gibt einen Vorgaenger + else // es gibt einen Vorgaenger nIdxPos = pPrvBox->GetSttNd()->EndOfSectionIndex() + 1; SwNodeIndex aEndIdx( *this, nIdxPos ); @@ -330,7 +330,7 @@ BOOL SwNodes::InsBoxen( SwTableNode* pTblNd, pPrvBox = new SwTableBox( pBoxFmt, *pSttNd, pLine ); SwTableBoxes & rTabBoxes = pLine->GetTabBoxes(); - USHORT nRealInsPos = nInsPos + n; + USHORT nRealInsPos = nInsPos + n; if (nRealInsPos > rTabBoxes.Count()) nRealInsPos = rTabBoxes.Count(); @@ -612,7 +612,7 @@ SwTableNode* SwNodes::InsertTable( const SwNodeIndex& rNdIdx, SwTableNode * pTblNd = new SwTableNode( rNdIdx ); SwEndNode* pEndNd = new SwEndNode( rNdIdx, *pTblNd ); - if( !nLines ) // fuer die FOR-Schleife + if( !nLines ) // fuer die FOR-Schleife ++nLines; SwNodeIndex aIdx( *pEndNd ); @@ -788,7 +788,7 @@ const SwTable* SwDoc::TextToTable( const SwInsertTableOptions& rInsTblOpts, //Orientation am Fmt der Table setzen pTableFmt->SetFmtAttr( SwFmtHoriOrient( 0, eAdjust ) ); - pTableFmt->Add( pNdTbl ); // das Frame-Format setzen + pTableFmt->Add( pNdTbl ); // das Frame-Format setzen if( pTAFmt || ( rInsTblOpts.mnInsMode & tabopts::DEFAULT_BORDER) ) { @@ -902,7 +902,7 @@ const SwTable* SwDoc::TextToTable( const SwInsertTableOptions& rInsTblOpts, aNode2Layout.RestoreUpperFrms( GetNodes(), nIdx, nIdx + 1 ); { - SwPaM& rTmp = (SwPaM&)rRange; // Point immer an den Anfang + SwPaM& rTmp = (SwPaM&)rRange; // Point immer an den Anfang rTmp.DeleteMark(); rTmp.GetPoint()->nNode = *pTblNd; SwCntntNode* pCNd = GetNodes().GoNext( &rTmp.GetPoint()->nNode ); @@ -951,9 +951,9 @@ SwTableNode* SwNodes::TextToTable( const SwNodeRange& rRange, sal_Unicode cCh, cCh = 0x09; // JP 28.10.96: vom 1. Node die Positionen des Trenners besorgen, - // damit die Boxen entsprechend eingestellt werden + // damit die Boxen entsprechend eingestellt werden SwTxtFrmInfo aFInfo( (SwTxtFrm*)pTxtNd->GetFrm() ); - if( aFInfo.IsOneLine() ) // nur dann sinnvoll! + if( aFInfo.IsOneLine() ) // nur dann sinnvoll! { const sal_Unicode* pTxt = pTxtNd->GetTxt().GetBuffer(); for( xub_StrLen nChPos = 0; *pTxt; ++nChPos, ++pTxt ) @@ -983,7 +983,7 @@ SwTableNode* SwNodes::TextToTable( const SwNodeRange& rRange, sal_Unicode cCh, { // das entfernen der PageBreaks erst nach dem erzeugen der Tabelle // erfolgen, denn sonst stehen sie falsch in der History !!! -// SwRegHistory aRegH( pTxtNd, *pTxtNd, pHistory ); +// SwRegHistory aRegH( pTxtNd, *pTxtNd, pHistory ); const SfxPoolItem* pItem; if( SFX_ITEM_SET == pSet->GetItemState( RES_BREAK, FALSE, &pItem ) ) { @@ -1097,7 +1097,7 @@ SwTableNode* SwNodes::TextToTable( const SwNodeRange& rRange, sal_Unicode cCh, aPosArr[ n ] - nLastPos )); for( USHORT nTmpLine = 0; nTmpLine < rLns.Count(); ++nTmpLine ) //JP 24.06.98: hier muss ein Add erfolgen, da das BoxFormat - // von der rufenden Methode noch gebraucht wird! + // von der rufenden Methode noch gebraucht wird! pNewFmt->Add( rLns[ nTmpLine ]->GetTabBoxes()[ n ] ); nLastPos = aPosArr[ n ]; @@ -1269,23 +1269,23 @@ SwNodeRange * SwNodes::ExpandRangeForTableBox(const SwNodeRange & rRange) { SwNodeRange * pResult = NULL; bool bChanged = false; - + SwNodeIndex aNewStart = rRange.aStart; SwNodeIndex aNewEnd = rRange.aEnd; - + SwNodeIndex aEndIndex = rRange.aEnd; SwNodeIndex aIndex = rRange.aStart; - + while (aIndex < aEndIndex) { SwNode& rNode = aIndex.GetNode(); - + if (rNode.IsStartNode()) { // advance aIndex to the end node of this start node SwNode * pEndNode = rNode.EndOfSectionNode(); aIndex = *pEndNode; - + if (aIndex > aNewEnd) { aNewEnd = aIndex; @@ -1296,34 +1296,34 @@ SwNodeRange * SwNodes::ExpandRangeForTableBox(const SwNodeRange & rRange) { SwNode * pStartNode = rNode.StartOfSectionNode(); SwNodeIndex aStartIndex = *pStartNode; - + if (aStartIndex < aNewStart) { aNewStart = aStartIndex; bChanged = true; } } - + if (aIndex < aEndIndex) - ++aIndex; + ++aIndex; } - + SwNode * pNode = &aIndex.GetNode(); while (pNode->IsEndNode()) { SwNode * pStartNode = pNode->StartOfSectionNode(); SwNodeIndex aStartIndex(*pStartNode); - aNewStart = aStartIndex; + aNewStart = aStartIndex; aNewEnd = aIndex; bChanged = true; - + ++aIndex; pNode = &aIndex.GetNode(); } - + if (bChanged) pResult = new SwNodeRange(aNewStart, aNewEnd); - + return pResult; } @@ -1552,7 +1552,7 @@ BOOL SwDoc::TableToText( const SwTableNode* pTblNd, sal_Unicode cCh ) } // -- benutze die ForEach Methode vom PtrArray um aus einer Tabelle wieder -// Text zuerzeugen. (Die Boxen koennen auch noch Lines enthalten !!) +// Text zuerzeugen. (Die Boxen koennen auch noch Lines enthalten !!) struct _DelTabPara { SwTxtNode* pLastNd; @@ -1576,7 +1576,7 @@ BOOL lcl_DelLine( const SwTableLine*& rpLine, void* pPara ) OSL_ENSURE( pPara, "die Parameter fehlen" ); _DelTabPara aPara( *(_DelTabPara*)pPara ); ((SwTableLine*&)rpLine)->GetTabBoxes().ForEach( &lcl_DelBox, &aPara ); - if( rpLine->GetUpper() ) // gibt es noch eine uebergeordnete Box ?? + if( rpLine->GetUpper() ) // gibt es noch eine uebergeordnete Box ?? // dann gebe den letzten TextNode zurueck ((_DelTabPara*)pPara)->pLastNd = aPara.pLastNd; return TRUE; @@ -1639,7 +1639,7 @@ BOOL lcl_DelBox( const SwTableBox*& rpBox, void* pPara ) pDelPara->pLastNd = aDelRg.aEnd.GetNode().GetTxtNode(); //JP 03.04.97: die Ausrichtung der ZahlenFormatierung auf - // keinen Fall uebernehmen + // keinen Fall uebernehmen if( pDelPara->pLastNd && pDelPara->pLastNd->HasSwAttrSet() ) pDelPara->pLastNd->ResetAttr( RES_PARATR_ADJUST ); } @@ -1679,7 +1679,7 @@ BOOL SwNodes::TableToText( const SwNodeRange& rRange, sal_Unicode cCh, SwNodeRange aDelRg( rRange.aStart, rRange.aEnd ); // JP 14.01.97: hat die Tabelle PageDesc-/Break-Attribute? Dann in den - // ersten TextNode uebernehmen + // ersten TextNode uebernehmen { // was ist mit UNDO??? const SfxItemSet& rTblSet = pTblNd->pTable->GetFrmFmt()->GetAttrSet(); @@ -1700,7 +1700,7 @@ BOOL SwNodes::TableToText( const SwNodeRange& rRange, sal_Unicode cCh, } } - SectionUp( &aDelRg ); // loesche die Section und damit die Tabelle + SectionUp( &aDelRg ); // loesche die Section und damit die Tabelle // #i28006# ULONG nStt = aDelRg.aStart.GetIndex(), nEnd = aDelRg.aEnd.GetIndex(); if( !pFrmNd ) @@ -1909,9 +1909,9 @@ BOOL SwDoc::DeleteRow( const SwCursor& rCursor ) // die Crsr aus dem Loeschbereich entfernen. // Der Cursor steht danach: - // - es folgt noch eine Zeile, in dieser - // - vorher steht noch eine Zeile, in dieser - // - sonst immer dahinter + // - es folgt noch eine Zeile, in dieser + // - vorher steht noch eine Zeile, in dieser + // - sonst immer dahinter { SwTableNode* pTblNd = rCursor.GetNode()->FindTableNode(); @@ -1941,7 +1941,7 @@ BOOL SwDoc::DeleteRow( const SwCursor& rCursor ) { _FndBox* pTmp = pFndBox->GetLines()[0]->GetBoxes()[0]; if( pTmp->GetBox()->GetSttNd() ) - break; // das ist sonst zu weit + break; // das ist sonst zu weit pFndBox = pTmp; } @@ -1961,7 +1961,7 @@ BOOL SwDoc::DeleteRow( const SwCursor& rCursor ) pNextBox->GetFrmFmt()->GetProtect().IsCntntProtected() ) pNextBox = pNextBox->FindNextBox( pTblNd->GetTable(), pNextBox ); - if( !pNextBox ) // keine nachfolgende? dann die vorhergehende + if( !pNextBox ) // keine nachfolgende? dann die vorhergehende { pDelLine = pFndBox->GetLines()[ 0 ]->GetLine(); pDelBox = pDelLine->GetTabBoxes()[ 0 ]; @@ -1975,9 +1975,9 @@ BOOL SwDoc::DeleteRow( const SwCursor& rCursor ) } ULONG nIdx; - if( pNextBox ) // dann den Cursor hier hinein + if( pNextBox ) // dann den Cursor hier hinein nIdx = pNextBox->GetSttIdx() + 1; - else // ansonsten hinter die Tabelle + else // ansonsten hinter die Tabelle nIdx = pTblNd->EndOfSectionIndex() + 1; SwNodeIndex aIdx( GetNodes(), nIdx ); @@ -1991,7 +1991,7 @@ BOOL SwDoc::DeleteRow( const SwCursor& rCursor ) SwPaM* pPam = (SwPaM*)&rCursor; pPam->GetPoint()->nNode = aIdx; pPam->GetPoint()->nContent.Assign( pCNd, 0 ); - pPam->SetMark(); // beide wollen etwas davon haben + pPam->SetMark(); // beide wollen etwas davon haben pPam->DeleteMark(); } } @@ -2131,10 +2131,10 @@ BOOL SwDoc::DeleteRowCol( const SwSelBoxes& rBoxes, bool bColumn ) if( pNextNd ) { //JP 24.08.98: will man wirklich den PageDesc/Break vom -// nachfolgen Absatz ueberbuegeln? -// const SwAttrSet& rAttrSet = pNextNd->GetSwAttrSet(); -// if( SFX_ITEM_SET != rAttrSet.GetItemState( RES_PAGEDESC ) && -// SFX_ITEM_SET != rAttrSet.GetItemState( RES_BREAK )) +// nachfolgen Absatz ueberbuegeln? +// const SwAttrSet& rAttrSet = pNextNd->GetSwAttrSet(); +// if( SFX_ITEM_SET != rAttrSet.GetItemState( RES_PAGEDESC ) && +// SFX_ITEM_SET != rAttrSet.GetItemState( RES_BREAK )) { SwFrmFmt* pTableFmt = pTblNd->GetTable().GetFrmFmt(); const SfxPoolItem *pItem; @@ -3187,10 +3187,10 @@ BOOL lcl_BoxSetSplitBoxFmts( const SwTableBox*& rpBox, void* pPara ) else { USHORT __FAR_DATA aTableSplitBoxSetRange[] = { - RES_LR_SPACE, RES_UL_SPACE, - RES_BACKGROUND, RES_SHADOW, - RES_PROTECT, RES_PROTECT, - RES_VERT_ORIENT, RES_VERT_ORIENT, + RES_LR_SPACE, RES_UL_SPACE, + RES_BACKGROUND, RES_SHADOW, + RES_PROTECT, RES_PROTECT, + RES_VERT_ORIENT, RES_VERT_ORIENT, 0 }; SfxItemSet aTmpSet( pFmt->GetDoc()->GetAttrPool(), aTableSplitBoxSetRange ); @@ -3236,7 +3236,7 @@ BOOL SwDoc::SplitTable( const SwPosition& rPos, USHORT eHdlnMode, return FALSE; SwTable& rTbl = pTNd->GetTable(); - rTbl.SetHTMLTableLayout( 0 ); // MIB 9.7.97: HTML-Layout loeschen + rTbl.SetHTMLTableLayout( 0 ); // MIB 9.7.97: HTML-Layout loeschen SwTableFmlUpdate aMsgHnt( &rTbl ); @@ -3386,7 +3386,7 @@ BOOL lcl_ChgTblSize( SwTable& rTbl ) aTblMaxSz.SetWidth( nMaxLnWidth ); } pFmt->SetFmtAttr( aTblMaxSz ); - if( !bLocked ) // und gegebenenfalls Lock wieder freigeben + if( !bLocked ) // und gegebenenfalls Lock wieder freigeben pFmt->UnlockModify(); return TRUE; @@ -3489,7 +3489,7 @@ SwTableNode* SwNodes::SplitTable( const SwNodeIndex& rPos, BOOL bAfter, USHORT nLinePos = rTbl.GetTabLines().C40_GETPOS( SwTableLine, pLine ); if( USHRT_MAX == nLinePos || ( bAfter ? ++nLinePos >= rTbl.GetTabLines().Count() : !nLinePos )) - return 0; // nicht gefunden oder letze Line !! + return 0; // nicht gefunden oder letze Line !! // Suche jetzt die 1. Box der nachfolgenden Line SwTableLine* pNextLine = rTbl.GetTabLines()[ nLinePos ]; @@ -3573,7 +3573,7 @@ SwTableNode* SwNodes::SplitTable( const SwNodeIndex& rPos, BOOL bAfter, // TL_CHART2: need to inform chart of probably changed cell names rTbl.UpdateCharts(); - return pNewTblNd; // das wars + return pNewTblNd; // das wars } // und die Umkehrung davon. rPos muss in der Tabelle stehen, die bestehen @@ -3726,7 +3726,7 @@ BOOL SwNodes::MergeTable( const SwNodeIndex& rPos, BOOL bWithPrev, // jetzt an der 1. eingefuegten Line die bedingten Vorlagen umschubsen const SwTableLine* pFirstLn = rTbl.GetTabLines()[ nOldSize ]; - if( 1 == nMode ) // + if( 1 == nMode ) // { // Header-Vorlagen in der Zeile setzen // und ggfs. in der History speichern fuers Undo!!! @@ -3780,7 +3780,7 @@ BOOL lcl_SetAFmtBox( const _FndBox*& rpBox, void *pPara ) { _SetAFmtTabPara* pSetPara = (_SetAFmtTabPara*)pPara; - if( !rpBox->GetUpper()->GetUpper() ) // Box auf 1. Ebene ? + if( !rpBox->GetUpper()->GetUpper() ) // Box auf 1. Ebene ? { if( !pSetPara->nCurBox ) pSetPara->nAFmtBox = 0; @@ -3829,7 +3829,7 @@ BOOL lcl_SetAFmtBox( const _FndBox*& rpBox, void *pPara ) else ((_FndBox*&)rpBox)->GetLines().ForEach( &lcl_SetAFmtLine, pPara ); - if( !rpBox->GetUpper()->GetUpper() ) // eine BaseLine + if( !rpBox->GetUpper()->GetUpper() ) // eine BaseLine ++pSetPara->nCurBox; return TRUE; } @@ -3859,7 +3859,7 @@ BOOL SwDoc::SetTableAutoFmt( const SwSelBoxes& rBoxes, const SwTableAutoFmt& rNe 1 == pFndBox->GetLines()[0]->GetBoxes().Count() ) pFndBox = pFndBox->GetLines()[0]->GetBoxes()[0]; - if( !pFndBox->GetLines().Count() ) // eine zu weit? (nur 1 sel.Box) + if( !pFndBox->GetLines().Count() ) // eine zu weit? (nur 1 sel.Box) pFndBox = pFndBox->GetUpper()->GetUpper(); @@ -3932,7 +3932,7 @@ BOOL SwDoc::GetTableAutoFmt( const SwSelBoxes& rBoxes, SwTableAutoFmt& rGet ) 1 == pFndBox->GetLines()[0]->GetBoxes().Count() ) pFndBox = pFndBox->GetLines()[0]->GetBoxes()[0]; - if( !pFndBox->GetLines().Count() ) // eine zu weit? (nur 1 sel.Box) + if( !pFndBox->GetLines().Count() ) // eine zu weit? (nur 1 sel.Box) pFndBox = pFndBox->GetUpper()->GetUpper(); _FndLines& rFLns = pFndBox->GetLines(); @@ -4081,7 +4081,7 @@ BOOL SwDoc::SetColRowWidthHeight( SwTableBox& rAktBox, USHORT eType, { ClearRedo(); AppendUndo( pUndo ); - DoUndo( TRUE ); // im SetColWidth kann es abgeschaltet werden! + DoUndo( TRUE ); // im SetColWidth kann es abgeschaltet werden! } if( bRet ) @@ -4097,7 +4097,7 @@ BOOL SwDoc::SetColRowWidthHeight( SwTableBox& rAktBox, USHORT eType, void SwDoc::ChkBoxNumFmt( SwTableBox& rBox, BOOL bCallUpdate ) { //JP 09.07.97: Optimierung: wenn die Box schon sagt, das es Text - // sein soll, dann bleibt das auch Text! + // sein soll, dann bleibt das auch Text! const SfxPoolItem* pNumFmtItem = 0; if( SFX_ITEM_SET == rBox.GetFrmFmt()->GetItemState( RES_BOXATR_FORMAT, FALSE, &pNumFmtItem ) && GetNumberFormatter()->IsTextFormat( @@ -4161,14 +4161,14 @@ void SwDoc::ChkBoxNumFmt( SwTableBox& rBox, BOOL bCallUpdate ) } // JP 28.04.98: Nur Formel zuruecksetzen reicht nicht. - // Sorge dafuer, das der Text auch entsprechend - // formatiert wird! + // Sorge dafuer, das der Text auch entsprechend + // formatiert wird! if( !bSetNumFmt && !bIsEmptyTxtNd && pNumFmtItem ) { // JP 15.01.99: Nur Attribute zuruecksetzen reicht nicht. - // Sorge dafuer, das der Text auch entsprechend - // formatiert wird! + // Sorge dafuer, das der Text auch entsprechend + // formatiert wird! pBoxFmt->SetFmtAttr( *GetDfltAttr( RES_BOXATR_FORMAT )); } @@ -4208,8 +4208,8 @@ void SwDoc::ChkBoxNumFmt( SwTableBox& rBox, BOOL bCallUpdate ) nWhich1 = RES_BOXATR_FORMAT; // JP 15.01.99: Nur Attribute zuruecksetzen reicht nicht. - // Sorge dafuer, das der Text auch entsprechend - // formatiert wird! + // Sorge dafuer, das der Text auch entsprechend + // formatiert wird! pBoxFmt->SetFmtAttr( *GetDfltAttr( nWhich1 )); } pBoxFmt->ResetFmtAttr( nWhich1, RES_BOXATR_VALUE ); @@ -4340,8 +4340,8 @@ void SwDoc::ClearBoxNumAttrs( const SwNodeIndex& rNode ) nWhich1 = RES_BOXATR_FORMULA; else // JP 15.01.99: Nur Attribute zuruecksetzen reicht nicht. - // Sorge dafuer, das der Text auch entsprechend - // formatiert wird! + // Sorge dafuer, das der Text auch entsprechend + // formatiert wird! pBoxFmt->SetFmtAttr( *GetDfltAttr( RES_BOXATR_FORMAT )); pBoxFmt->ResetFmtAttr( nWhich1, RES_BOXATR_VALUE ); @@ -4435,7 +4435,7 @@ BOOL SwDoc::InsCopyOfTbl( SwPosition& rInsPos, const SwSelBoxes& rBoxes, } return FALSE; } - aPos.nNode -= 1; // auf den EndNode der Tabelle + aPos.nNode -= 1; // auf den EndNode der Tabelle pSrcTblNd = aPos.nNode.GetNode().FindTableNode(); pCpyDoc->SetRefForDocShell( NULL ); @@ -4629,7 +4629,7 @@ BOOL SwDoc::UnProtectTbls( const SwPaM& rPam ) } while( !bFound && &rPam != ( pTmp = (SwPaM*)pTmp->GetNext() ) ); if( !bFound ) - continue; // weitersuchen + continue; // weitersuchen } // dann mal den Schutz aufheben diff --git a/sw/source/core/docnode/ndtbl1.cxx b/sw/source/core/docnode/ndtbl1.cxx index 573a29de8b2e..35d0cd133254 100644 --- a/sw/source/core/docnode/ndtbl1.cxx +++ b/sw/source/core/docnode/ndtbl1.cxx @@ -2,7 +2,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 @@ -158,10 +158,10 @@ BOOL lcl_GetBoxSel( const SwCursor& rCursor, SwSelBoxes& rBoxes, } /*********************************************************************** -#* Class : SwDoc -#* Methoden : SetRowHeight(), GetRowHeight() -#* Datum : MA 17. May. 93 -#* Update : JP 28.04.98 +#* Class : SwDoc +#* Methoden : SetRowHeight(), GetRowHeight() +#* Datum : MA 17. May. 93 +#* Update : JP 28.04.98 #***********************************************************************/ //Die Zeilenhoehe wird ausgehend von der Selektion ermittelt/gesetzt. //Ausgehend von jeder Zelle innerhalb der Selektion werden nach oben alle @@ -198,7 +198,7 @@ struct LinesAndTable { SvPtrarr &rLines; const SwTable &rTable; - BOOL bInsertLines; + BOOL bInsertLines; LinesAndTable( SvPtrarr &rL, const SwTable &rTbl ) : rLines( rL ), rTable( rTbl ), bInsertLines( TRUE ) {} @@ -387,14 +387,14 @@ void SwDoc::GetRowSplit( const SwCursor& rCursor, SwFmtRowSplit *& rpSz ) const /****************************************************************************** - * void SwDoc::SetRowHeight( SwTwips nNew ) + * void SwDoc::SetRowHeight( SwTwips nNew ) ******************************************************************************/ void SwDoc::SetRowHeight( const SwCursor& rCursor, const SwFmtFrmSize &rNew ) { SwTableNode* pTblNd = rCursor.GetPoint()->nNode.GetNode().FindTableNode(); if( pTblNd ) { - SvPtrarr aRowArr( 25, 50 ); //Zum sammeln Lines. + SvPtrarr aRowArr( 25, 50 ); //Zum sammeln Lines. ::lcl_CollectLines( aRowArr, rCursor, true ); if( aRowArr.Count() ) @@ -417,7 +417,7 @@ void SwDoc::SetRowHeight( const SwCursor& rCursor, const SwFmtFrmSize &rNew ) /****************************************************************************** - * SwTwips SwDoc::GetRowHeight() const + * SwTwips SwDoc::GetRowHeight() const ******************************************************************************/ void SwDoc::GetRowHeight( const SwCursor& rCursor, SwFmtFrmSize *& rpSz ) const { @@ -426,7 +426,7 @@ void SwDoc::GetRowHeight( const SwCursor& rCursor, SwFmtFrmSize *& rpSz ) const SwTableNode* pTblNd = rCursor.GetPoint()->nNode.GetNode().FindTableNode(); if( pTblNd ) { - SvPtrarr aRowArr( 25, 50 ); //Zum sammeln der Lines. + SvPtrarr aRowArr( 25, 50 ); //Zum sammeln der Lines. ::lcl_CollectLines( aRowArr, rCursor, true ); if( aRowArr.Count() ) @@ -451,7 +451,7 @@ BOOL SwDoc::BalanceRowHeight( const SwCursor& rCursor, BOOL bTstOnly ) SwTableNode* pTblNd = rCursor.GetPoint()->nNode.GetNode().FindTableNode(); if( pTblNd ) { - SvPtrarr aRowArr( 25, 50 ); //Zum sammeln der Lines. + SvPtrarr aRowArr( 25, 50 ); //Zum sammeln der Lines. ::lcl_CollectLines( aRowArr, rCursor, true ); if( 1 < aRowArr.Count() ) @@ -493,14 +493,14 @@ BOOL SwDoc::BalanceRowHeight( const SwCursor& rCursor, BOOL bTstOnly ) } /****************************************************************************** - * void SwDoc::SetRowBackground() + * void SwDoc::SetRowBackground() ******************************************************************************/ void SwDoc::SetRowBackground( const SwCursor& rCursor, const SvxBrushItem &rNew ) { SwTableNode* pTblNd = rCursor.GetPoint()->nNode.GetNode().FindTableNode(); if( pTblNd ) { - SvPtrarr aRowArr( 25, 50 ); //Zum sammeln Lines. + SvPtrarr aRowArr( 25, 50 ); //Zum sammeln Lines. ::lcl_CollectLines( aRowArr, rCursor, true ); if( aRowArr.Count() ) @@ -523,7 +523,7 @@ void SwDoc::SetRowBackground( const SwCursor& rCursor, const SvxBrushItem &rNew } /****************************************************************************** - * SwTwips SwDoc::GetRowBackground() const + * SwTwips SwDoc::GetRowBackground() const ******************************************************************************/ BOOL SwDoc::GetRowBackground( const SwCursor& rCursor, SvxBrushItem &rToFill ) const { @@ -531,7 +531,7 @@ BOOL SwDoc::GetRowBackground( const SwCursor& rCursor, SvxBrushItem &rToFill ) c SwTableNode* pTblNd = rCursor.GetPoint()->nNode.GetNode().FindTableNode(); if( pTblNd ) { - SvPtrarr aRowArr( 25, 50 ); //Zum sammeln Lines. + SvPtrarr aRowArr( 25, 50 ); //Zum sammeln Lines. ::lcl_CollectLines( aRowArr, rCursor, true ); if( aRowArr.Count() ) @@ -551,10 +551,10 @@ BOOL SwDoc::GetRowBackground( const SwCursor& rCursor, SvxBrushItem &rToFill ) c } /*********************************************************************** -#* Class : SwDoc -#* Methoden : SetTabBorders(), GetTabBorders() -#* Datum : MA 18. May. 93 -#* Update : JP 29.04.98 +#* Class : SwDoc +#* Methoden : SetTabBorders(), GetTabBorders() +#* Datum : MA 18. May. 93 +#* Update : JP 29.04.98 #***********************************************************************/ inline void InsertCell( SvPtrarr& rCellArr, SwCellFrm* pCellFrm ) { @@ -579,7 +579,7 @@ void lcl_CollectCells( SvPtrarr &rArr, const SwRect &rUnion, //Dafuer sorgen, dass die Zelle auch verlassen wird (Bereiche) SwLayoutFrm *pTmp = pCell; do - { pTmp = pTmp->GetNextLayoutLeaf(); + { pTmp = pTmp->GetNextLayoutLeaf(); } while ( pCell->IsAnLower( pTmp ) ); pCell = pTmp; } while( pCell && pTab->IsAnLower( pCell ) ); @@ -622,7 +622,7 @@ void SwDoc::SetTabBorders( const SwCursor& rCursor, const SfxItemSet& rSet ) bLeftValid = TRUE, bRightValid = TRUE; // JP 21.07.95: die Flags im BoxInfo-Item entscheiden, wann eine - // BorderLine gueltig ist!! + // BorderLine gueltig ist!! if( SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_BORDER_INNER, FALSE, (const SfxPoolItem**)&pSetBoxInfo) ) { @@ -925,15 +925,15 @@ void SwDoc::GetTabBorders( const SwCursor& rCursor, SfxItemSet& rSet ) const if( aUnions.Count() ) { - SvxBoxItem aSetBox ((const SvxBoxItem &) rSet.Get(RES_BOX )); + SvxBoxItem aSetBox ((const SvxBoxItem &) rSet.Get(RES_BOX )); SvxBoxInfoItem aSetBoxInfo((const SvxBoxInfoItem&) rSet.Get(SID_ATTR_BORDER_INNER)); - BOOL bTopSet = FALSE, - bBottomSet = FALSE, - bLeftSet = FALSE, - bRightSet = FALSE, - bHoriSet = FALSE, - bVertSet = FALSE, + BOOL bTopSet = FALSE, + bBottomSet = FALSE, + bLeftSet = FALSE, + bRightSet = FALSE, + bHoriSet = FALSE, + bVertSet = FALSE, bDistanceSet = FALSE; aSetBoxInfo.ResetFlags(); @@ -977,7 +977,7 @@ void SwDoc::GetTabBorders( const SwCursor& rCursor, SfxItemSet& rSet ) const bLeftOver = bTmp; } - const SwFrmFmt *pFmt = pCell->GetFmt(); + const SwFrmFmt *pFmt = pCell->GetFmt(); const SvxBoxItem &rBox = pFmt->GetBox(); //Obere Kante @@ -986,7 +986,7 @@ void SwDoc::GetTabBorders( const SwCursor& rCursor, SfxItemSet& rSet ) const if (aSetBoxInfo.IsValid(VALID_TOP)) { if ( !bTopSet ) - { bTopSet = TRUE; + { bTopSet = TRUE; aSetBox.SetLine( rBox.GetTop(), BOX_LINE_TOP ); } else if ((aSetBox.GetTop() && rBox.GetTop() && @@ -1005,7 +1005,7 @@ void SwDoc::GetTabBorders( const SwCursor& rCursor, SfxItemSet& rSet ) const if (aSetBoxInfo.IsValid(VALID_LEFT)) { if ( !bLeftSet ) - { bLeftSet = TRUE; + { bLeftSet = TRUE; aSetBox.SetLine( rBox.GetLeft(), BOX_LINE_LEFT ); } else if ((aSetBox.GetLeft() && rBox.GetLeft() && @@ -1022,13 +1022,13 @@ void SwDoc::GetTabBorders( const SwCursor& rCursor, SfxItemSet& rSet ) const if (aSetBoxInfo.IsValid(VALID_VERT)) { if ( !bVertSet ) - { bVertSet = TRUE; + { bVertSet = TRUE; aSetBoxInfo.SetLine( rBox.GetLeft(), BOXINFO_LINE_VERT ); } else if ((aSetBoxInfo.GetVert() && rBox.GetLeft() && !(*aSetBoxInfo.GetVert() == *rBox.GetLeft())) || ((!aSetBoxInfo.GetVert()) ^ (!rBox.GetLeft()))) - { aSetBoxInfo.SetValid( VALID_VERT, FALSE ); + { aSetBoxInfo.SetValid( VALID_VERT, FALSE ); aSetBoxInfo.SetLine( 0, BOXINFO_LINE_VERT ); } } @@ -1038,13 +1038,13 @@ void SwDoc::GetTabBorders( const SwCursor& rCursor, SfxItemSet& rSet ) const if ( aSetBoxInfo.IsValid(VALID_RIGHT) && bRightOver ) { if ( !bRightSet ) - { bRightSet = TRUE; + { bRightSet = TRUE; aSetBox.SetLine( rBox.GetRight(), BOX_LINE_RIGHT ); } else if ((aSetBox.GetRight() && rBox.GetRight() && !(*aSetBox.GetRight() == *rBox.GetRight())) || (!aSetBox.GetRight() ^ !rBox.GetRight())) - { aSetBoxInfo.SetValid( VALID_RIGHT, FALSE ); + { aSetBoxInfo.SetValid( VALID_RIGHT, FALSE ); aSetBox.SetLine( 0, BOX_LINE_RIGHT ); } } @@ -1055,13 +1055,13 @@ void SwDoc::GetTabBorders( const SwCursor& rCursor, SfxItemSet& rSet ) const if ( aSetBoxInfo.IsValid(VALID_BOTTOM) ) { if ( !bBottomSet ) - { bBottomSet = TRUE; + { bBottomSet = TRUE; aSetBox.SetLine( rBox.GetBottom(), BOX_LINE_BOTTOM ); } else if ((aSetBox.GetBottom() && rBox.GetBottom() && !(*aSetBox.GetBottom() == *rBox.GetBottom())) || (!aSetBox.GetBottom() ^ !rBox.GetBottom())) - { aSetBoxInfo.SetValid( VALID_BOTTOM, FALSE ); + { aSetBoxInfo.SetValid( VALID_BOTTOM, FALSE ); aSetBox.SetLine( 0, BOX_LINE_BOTTOM ); } } @@ -1073,7 +1073,7 @@ void SwDoc::GetTabBorders( const SwCursor& rCursor, SfxItemSet& rSet ) const if (aSetBoxInfo.IsValid(VALID_HORI)) { if ( !bHoriSet ) - { bHoriSet = TRUE; + { bHoriSet = TRUE; aSetBoxInfo.SetLine( rBox.GetBottom(), BOXINFO_LINE_HORI ); } else if ((aSetBoxInfo.GetHori() && rBox.GetBottom() && @@ -1094,7 +1094,7 @@ void SwDoc::GetTabBorders( const SwCursor& rCursor, SfxItemSet& rSet ) const BOX_LINE_RIGHT, BOX_LINE_LEFT }; const USHORT* pBrd = aBorders; - if( !bDistanceSet ) // bei 1. Durchlauf erstmal setzen + if( !bDistanceSet ) // bei 1. Durchlauf erstmal setzen { bDistanceSet = TRUE; for( int k = 0; k < 4; ++k, ++pBrd ) @@ -1121,10 +1121,10 @@ void SwDoc::GetTabBorders( const SwCursor& rCursor, SfxItemSet& rSet ) const } /*********************************************************************** -#* Class : SwDoc -#* Methoden : SetBoxAttr -#* Datum : MA 18. Dec. 96 -#* Update : JP 29.04.98 +#* Class : SwDoc +#* Methoden : SetBoxAttr +#* Datum : MA 18. Dec. 96 +#* Update : JP 29.04.98 #***********************************************************************/ void SwDoc::SetBoxAttr( const SwCursor& rCursor, const SfxPoolItem &rNew ) { @@ -1171,10 +1171,10 @@ void SwDoc::SetBoxAttr( const SwCursor& rCursor, const SfxPoolItem &rNew ) } /*********************************************************************** -#* Class : SwDoc +#* Class : SwDoc #* Methoden : GetBoxAttr() -#* Datum : MA 01. Jun. 93 -#* Update : JP 29.04.98 +#* Datum : MA 01. Jun. 93 +#* Update : JP 29.04.98 #***********************************************************************/ BOOL SwDoc::GetBoxAttr( const SwCursor& rCursor, SfxPoolItem& rToFill ) const @@ -1227,10 +1227,10 @@ BOOL SwDoc::GetBoxAttr( const SwCursor& rCursor, SfxPoolItem& rToFill ) const } /*********************************************************************** -#* Class : SwDoc -#* Methoden : SetBoxAlign, SetBoxAlign -#* Datum : MA 18. Dec. 96 -#* Update : JP 29.04.98 +#* Class : SwDoc +#* Methoden : SetBoxAlign, SetBoxAlign +#* Datum : MA 18. Dec. 96 +#* Update : JP 29.04.98 #***********************************************************************/ void SwDoc::SetBoxAlign( const SwCursor& rCursor, USHORT nAlign ) { @@ -1264,15 +1264,15 @@ USHORT SwDoc::GetBoxAlign( const SwCursor& rCursor ) const /*********************************************************************** -#* Class : SwDoc -#* Methoden : AdjustCellWidth() -#* Datum : MA 20. Feb. 95 -#* Update : JP 29.04.98 +#* Class : SwDoc +#* Methoden : AdjustCellWidth() +#* Datum : MA 20. Feb. 95 +#* Update : JP 29.04.98 #***********************************************************************/ USHORT lcl_CalcCellFit( const SwLayoutFrm *pCell ) { SwTwips nRet = 0; - const SwFrm *pFrm = pCell->Lower(); //Die ganze Zelle. + const SwFrm *pFrm = pCell->Lower(); //Die ganze Zelle. SWRECTFN( pCell ) while ( pFrm ) { @@ -1322,7 +1322,7 @@ void lcl_CalcSubColValues( SvUShorts &rToFill, const SwTabCols &rCols, for ( USHORT i = 0 ; i <= rCols.Count(); ++i ) { - long nColLeft = i == 0 ? rCols.GetLeft() : rCols[i-1]; + long nColLeft = i == 0 ? rCols.GetLeft() : rCols[i-1]; long nColRight = i == rCols.Count() ? rCols.GetRight() : rCols[i]; nColLeft += rCols.GetLeftMin(); nColRight += rCols.GetLeftMin(); @@ -1358,16 +1358,16 @@ void lcl_CalcSubColValues( SvUShorts &rToFill, const SwTabCols &rCols, *Es wird nicht ueber die Eintrage in den TabCols itereriert, sondern *quasi ueber die Zwischenraeume, die ja die Zellen beschreiben. * - *bWishValues == TRUE: Es werden zur aktuellen Selektion bzw. zur aktuellen - * Zelle die Wunschwerte aller betroffen Zellen ermittelt. - * Sind mehrere Zellen in einer Spalte, so wird der - * groesste Wunschwert als Ergebnis geliefert. - * Fuer die TabCol-Eintraege, zu denen keine Zellen - * ermittelt wurden, werden 0-en eingetragen. + *bWishValues == TRUE: Es werden zur aktuellen Selektion bzw. zur aktuellen + * Zelle die Wunschwerte aller betroffen Zellen ermittelt. + * Sind mehrere Zellen in einer Spalte, so wird der + * groesste Wunschwert als Ergebnis geliefert. + * Fuer die TabCol-Eintraege, zu denen keine Zellen + * ermittelt wurden, werden 0-en eingetragen. * *bWishValues == FALSE: Die Selektion wird senkrecht ausgedehnt. Zu jeder - * Spalte in den TabCols, die sich mit der Selektion - * schneidet wird der Minimalwert ermittelt. + * Spalte in den TabCols, die sich mit der Selektion + * schneidet wird der Minimalwert ermittelt. */ void lcl_CalcColValues( SvUShorts &rToFill, const SwTabCols &rCols, @@ -1400,7 +1400,7 @@ void lcl_CalcColValues( SvUShorts &rToFill, const SwTabCols &rCols, for ( USHORT i = 0; i <= rCols.Count(); ++i ) { USHORT nFit = rToFill[i]; - long nColLeft = i == 0 ? rCols.GetLeft() : rCols[i-1]; + long nColLeft = i == 0 ? rCols.GetLeft() : rCols[i-1]; long nColRight = i == rCols.Count() ? rCols.GetRight() : rCols[i]; if ( bRTL ) @@ -1416,10 +1416,10 @@ void lcl_CalcColValues( SvUShorts &rToFill, const SwTabCols &rCols, //Werte auf die Verhaeltnisse der Tabelle (Follows) anpassen. long nLeftA = nColLeft; long nRightA = nColRight; - if ( rCols.GetLeftMin() != USHORT((pTab->Frm().*fnRect->fnGetLeft)()) ) + if ( rCols.GetLeftMin() != USHORT((pTab->Frm().*fnRect->fnGetLeft)()) ) { const long nDiff = (pTab->Frm().*fnRect->fnGetLeft)() - rCols.GetLeftMin(); - nLeftA += nDiff; + nLeftA += nDiff; nRightA += nDiff; } @@ -1434,7 +1434,7 @@ void lcl_CalcColValues( SvUShorts &rToFill, const SwTabCols &rCols, nFit = nWish; } else - { const USHORT nMin = MINLAY + USHORT(pCell->Frm().Width() - + { const USHORT nMin = MINLAY + USHORT(pCell->Frm().Width() - pCell->Prt().Width()); if ( !nFit || nMin < nFit ) nFit = nMin; @@ -1562,7 +1562,7 @@ void SwDoc::AdjustCellWidth( const SwCursor& rCursor, BOOL bBalance ) if ( !bBalance && nTabRight > aTabCols.GetRightMax() ) { const long nTmpD = nTabRight - aTabCols.GetRightMax(); - nDiff -= nTmpD; + nDiff -= nTmpD; nTabRight -= nTmpD; } for ( USHORT i2 = i; i2 < aTabCols.Count(); ++i2 ) diff --git a/sw/source/core/docnode/node.cxx b/sw/source/core/docnode/node.cxx index 58e65a0b1df5..37d6e581089d 100644 --- a/sw/source/core/docnode/node.cxx +++ b/sw/source/core/docnode/node.cxx @@ -2,7 +2,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 @@ -273,25 +273,25 @@ USHORT ClearItem_BC( boost::shared_ptr<const SfxItemSet>& mrpAttrSet, /******************************************************************* |* -|* SwNode::GetSectionLevel +|* SwNode::GetSectionLevel |* -|* Beschreibung -|* Die Funktion liefert den Sectionlevel an der durch -|* aIndex bezeichneten Position. +|* Beschreibung +|* Die Funktion liefert den Sectionlevel an der durch +|* aIndex bezeichneten Position. |* -|* Die Logik ist wie folgt: ( S -> Start, E -> End, C -> CntntNode) -|* Level 0 E -|* 1 S E -|* 2 SC +|* Die Logik ist wie folgt: ( S -> Start, E -> End, C -> CntntNode) +|* Level 0 E +|* 1 S E +|* 2 SC |* -|* alle EndNodes der GrundSection haben den Level 0 -|* alle StartNodes der GrundSection haben den Level 1 +|* alle EndNodes der GrundSection haben den Level 0 +|* alle StartNodes der GrundSection haben den Level 1 |* -|* Ersterstellung -|* VER0100 vb 901214 +|* Ersterstellung +|* VER0100 vb 901214 |* -|* Aenderung: JP 11.08.93 -|* keine Rekursion mehr !! +|* Aenderung: JP 11.08.93 +|* keine Rekursion mehr !! |* *******************************************************************/ @@ -311,29 +311,29 @@ USHORT SwNode::GetSectionLevel() const /******************************************************************* |* -|* SwNode::SwNode +|* SwNode::SwNode |* -|* Beschreibung -|* Konstruktor; dieser fuegt einen Node in das Array rNodes -|* an der Position rWhere ein. Dieser bekommt als -|* theEndOfSection den EndOfSection-Index des Nodes -|* unmittelbar vor ihm. Falls er sich an der Position 0 -|* innerhalb des variablen Arrays befindet, wird -|* theEndOfSection 0 (der neue selbst). +|* Beschreibung +|* Konstruktor; dieser fuegt einen Node in das Array rNodes +|* an der Position rWhere ein. Dieser bekommt als +|* theEndOfSection den EndOfSection-Index des Nodes +|* unmittelbar vor ihm. Falls er sich an der Position 0 +|* innerhalb des variablen Arrays befindet, wird +|* theEndOfSection 0 (der neue selbst). |* -|* Parameter -|* IN -|* rNodes bezeichnet das variable Array, in das der Node -|* eingefuegt werden soll -|* IN -|* rWhere bezeichnet die Position innerhalb dieses Arrays, -|* an der der Node eingefuegt werden soll +|* Parameter +|* IN +|* rNodes bezeichnet das variable Array, in das der Node +|* eingefuegt werden soll +|* IN +|* rWhere bezeichnet die Position innerhalb dieses Arrays, +|* an der der Node eingefuegt werden soll |* -|* Ersterstellung -|* VER0100 vb 901214 +|* Ersterstellung +|* VER0100 vb 901214 |* -|* Stand -|* VER0100 vb 901214 +|* Stand +|* VER0100 vb 901214 |* *******************************************************************/ @@ -348,7 +348,7 @@ SwNode::SwNode( const SwNodeIndex &rWhere, const BYTE nNdType ) nAFmtNumLvl = 0; SwNodes& rNodes = (SwNodes&)rWhere.GetNodes(); - SwNode* pInsNd = this; // der MAC kann this nicht einfuegen !! + SwNode* pInsNd = this; // der MAC kann this nicht einfuegen !! if( rWhere.GetIndex() ) { SwNode* pNd = rNodes[ rWhere.GetIndex() -1 ]; @@ -356,7 +356,7 @@ SwNode::SwNode( const SwNodeIndex &rWhere, const BYTE nNdType ) if( 0 == ( pStartOfSection = pNd->GetStartNode()) ) { pStartOfSection = pNd->pStartOfSection; - if( pNd->GetEndNode() ) // EndNode ? Section ueberspringen! + if( pNd->GetEndNode() ) // EndNode ? Section ueberspringen! { pNd = pStartOfSection; pStartOfSection = pNd->pStartOfSection; @@ -381,7 +381,7 @@ SwNode::SwNode( SwNodes& rNodes, ULONG nPos, const BYTE nNdType ) bSetNumLSpace = bIgnoreDontExpand = FALSE; nAFmtNumLvl = 0; - SwNode* pInsNd = this; // der MAC kann this nicht einfuegen !! + SwNode* pInsNd = this; // der MAC kann this nicht einfuegen !! if( nPos ) { SwNode* pNd = rNodes[ nPos - 1 ]; @@ -389,7 +389,7 @@ SwNode::SwNode( SwNodes& rNodes, ULONG nPos, const BYTE nNdType ) if( 0 == ( pStartOfSection = pNd->GetStartNode()) ) { pStartOfSection = pNd->pStartOfSection; - if( pNd->GetEndNode() ) // EndNode ? Section ueberspringen! + if( pNd->GetEndNode() ) // EndNode ? Section ueberspringen! { pNd = pStartOfSection; pStartOfSection = pNd->pStartOfSection; @@ -464,7 +464,7 @@ BOOL SwNode::IsInVisibleArea( ViewShell* pSh ) const if( !pFrm->IsValid() ) do - { pFrm = pFrm->FindPrev(); + { pFrm = pFrm->FindPrev(); } while ( pFrm && !pFrm->IsValid() ); if( !pFrm || pSh->VisArea().IsOver( pFrm->Frm() ) ) @@ -484,7 +484,7 @@ BOOL SwNode::IsInProtectSect() const // befindet sich der Node in irgendetwas geschuetzten ? // (Bereich/Rahmen/Tabellenzellen/... incl. des Ankers bei - // Rahmen/Fussnoten/..) + // Rahmen/Fussnoten/..) BOOL SwNode::IsProtect() const { const SwNode* pNd = ND_SECTIONNODE == nNodeType ? pStartOfSection : this; @@ -882,7 +882,7 @@ const SwTxtNode* SwNode::FindOutlineNodeOfLevel( BYTE nLvl ) const ->GetAttrOutlineLevel() - 1 ) //<-end,zhaojianwei --nPos; - if( !nPos ) // bei 0 gesondert holen !! + if( !nPos ) // bei 0 gesondert holen !! pRet = rONds[0]->GetTxtNode(); } } @@ -935,20 +935,20 @@ BYTE SwNode::HasPrevNextLayNode() const /******************************************************************* |* -|* SwNode::StartOfSection +|* SwNode::StartOfSection |* -|* Beschreibung -|* Die Funktion liefert die StartOfSection des Nodes. +|* Beschreibung +|* Die Funktion liefert die StartOfSection des Nodes. |* -|* Parameter -|* IN -|* rNodes bezeichnet das variable Array, in dem sich der Node -|* befindet -|* Ersterstellung -|* VER0100 vb 901214 +|* Parameter +|* IN +|* rNodes bezeichnet das variable Array, in dem sich der Node +|* befindet +|* Ersterstellung +|* VER0100 vb 901214 |* -|* Stand -|* VER0100 vb 901214 +|* Stand +|* VER0100 vb 901214 |* *******************************************************************/ @@ -983,31 +983,31 @@ void SwStartNode::CheckSectionCondColl() const /******************************************************************* |* -|* SwEndNode::SwEndNode +|* SwEndNode::SwEndNode |* -|* Beschreibung -|* Konstruktor; dieser fuegt einen Node in das Array rNodes -|* an der Position aWhere ein. Der -|* theStartOfSection-Pointer wird entsprechend gesetzt, -|* und der EndOfSection-Pointer des zugehoerigen -|* Startnodes -- durch rStartOfSection bezeichnet -- -|* wird auf diesen Node gesetzt. +|* Beschreibung +|* Konstruktor; dieser fuegt einen Node in das Array rNodes +|* an der Position aWhere ein. Der +|* theStartOfSection-Pointer wird entsprechend gesetzt, +|* und der EndOfSection-Pointer des zugehoerigen +|* Startnodes -- durch rStartOfSection bezeichnet -- +|* wird auf diesen Node gesetzt. |* -|* Parameter -|* IN -|* rNodes bezeichnet das variable Array, in das der Node -|* eingefuegt werden soll -|* IN -|* aWhere bezeichnet die Position innerhalb dieses Arrays, -|* an der der Node eingefuegt werden soll -|* !!!!!!!!!!!! -|* Es wird eine Kopie uebergeben! +|* Parameter +|* IN +|* rNodes bezeichnet das variable Array, in das der Node +|* eingefuegt werden soll +|* IN +|* aWhere bezeichnet die Position innerhalb dieses Arrays, +|* an der der Node eingefuegt werden soll +|* !!!!!!!!!!!! +|* Es wird eine Kopie uebergeben! |* -|* Ersterstellung -|* VER0100 vb 901214 +|* Ersterstellung +|* VER0100 vb 901214 |* -|* Stand -|* VER0100 vb 901214 +|* Stand +|* VER0100 vb 901214 |* *******************************************************************/ @@ -1035,7 +1035,7 @@ SwEndNode::SwEndNode( SwNodes& rNds, ULONG nPos, SwStartNode& rSttNd ) SwCntntNode::SwCntntNode( const SwNodeIndex &rWhere, const BYTE nNdType, SwFmtColl *pColl ) - : SwModify( pColl ), // CrsrsShell, FrameFmt, + : SwModify( pColl ), // CrsrsShell, FrameFmt, SwNode( rWhere, nNdType ), pCondColl( 0 ), mbSetModifyAtAttr( false ) @@ -1113,7 +1113,7 @@ void SwCntntNode::Modify( SfxPoolItem* pOldValue, SfxPoolItem* pNewValue ) { ChkCondColl(); } - return ; // nicht an die Basisklasse / Frames weitergeben + return ; // nicht an die Basisklasse / Frames weitergeben //FEATURE::CONDCOLL case RES_ATTRSET_CHG: @@ -1209,7 +1209,7 @@ SwFmtColl *SwCntntNode::ChgFmtColl( SwFmtColl *pNewColl ) //FEATURE::CONDCOLL // HACK: hier muss die entsprechend der neuen Vorlage die Bedingungen - // neu ueberprueft werden! + // neu ueberprueft werden! if( TRUE /*pNewColl */ ) { SetCondFmtColl( 0 ); @@ -1342,7 +1342,7 @@ void SwCntntNode::MakeFrms( SwCntntNode& rNode ) OSL_ENSURE( &rNode != this, "Kein Contentnode oder Copy-Node und neuer Node identisch." ); - if( !GetDepends() || &rNode == this ) // gibt es ueberhaupt Frames ?? + if( !GetDepends() || &rNode == this ) // gibt es ueberhaupt Frames ?? return; SwFrm *pFrm, *pNew; @@ -1525,7 +1525,7 @@ BOOL SwCntntNode::GetInfo( SfxPoolItem& rInfo ) const BOOL SwCntntNode::SetAttr(const SfxPoolItem& rAttr ) { if( !GetpSwAttrSet() ) // lasse von den entsprechenden Nodes die - NewAttrSet( GetDoc()->GetAttrPool() ); // AttrSets anlegen + NewAttrSet( GetDoc()->GetAttrPool() ); // AttrSets anlegen OSL_ENSURE( GetpSwAttrSet(), "warum wurde kein AttrSet angelegt?" ); @@ -1550,7 +1550,7 @@ BOOL SwCntntNode::SetAttr(const SfxPoolItem& rAttr ) { SwAttrSetChg aChgOld( *GetpSwAttrSet(), aOld ); SwAttrSetChg aChgNew( *GetpSwAttrSet(), aNew ); - Modify( &aChgOld, &aChgNew ); // alle veraenderten werden verschickt + Modify( &aChgOld, &aChgNew ); // alle veraenderten werden verschickt } } return bRet; @@ -1606,7 +1606,7 @@ BOOL SwCntntNode::SetAttr( const SfxItemSet& rSet ) } if( !GetpSwAttrSet() ) // lasse von den entsprechenden Nodes die - NewAttrSet( GetDoc()->GetAttrPool() ); // AttrSets anlegen + NewAttrSet( GetDoc()->GetAttrPool() ); // AttrSets anlegen BOOL bRet = FALSE; // wenn Modify gelockt ist, werden keine Modifies verschickt @@ -1626,7 +1626,7 @@ BOOL SwCntntNode::SetAttr( const SfxItemSet& rSet ) // einige Sonderbehandlungen fuer Attribute SwAttrSetChg aChgOld( *GetpSwAttrSet(), aOld ); SwAttrSetChg aChgNew( *GetpSwAttrSet(), aNew ); - Modify( &aChgOld, &aChgNew ); // alle veraenderten werden verschickt + Modify( &aChgOld, &aChgNew ); // alle veraenderten werden verschickt } } return bRet; @@ -1666,7 +1666,7 @@ BOOL SwCntntNode::ResetAttr( USHORT nWhich1, USHORT nWhich2 ) // sollte kein gueltiger Bereich definiert sein ? if( !nWhich2 || nWhich2 < nWhich1 ) - nWhich2 = nWhich1; // dann setze auf 1. Id, nur dieses Item + nWhich2 = nWhich1; // dann setze auf 1. Id, nur dieses Item SwAttrSet aOld( *GetpSwAttrSet()->GetPool(), GetpSwAttrSet()->GetRanges() ), aNew( *GetpSwAttrSet()->GetPool(), GetpSwAttrSet()->GetRanges() ); @@ -1676,7 +1676,7 @@ BOOL SwCntntNode::ResetAttr( USHORT nWhich1, USHORT nWhich2 ) { SwAttrSetChg aChgOld( *GetpSwAttrSet(), aOld ); SwAttrSetChg aChgNew( *GetpSwAttrSet(), aNew ); - Modify( &aChgOld, &aChgNew ); // alle veraenderten werden verschickt + Modify( &aChgOld, &aChgNew ); // alle veraenderten werden verschickt if( !GetpSwAttrSet()->Count() ) // leer, dann loeschen mpAttrSet.reset();//DELETEZ( mpAttrSet ); @@ -1717,7 +1717,7 @@ BOOL SwCntntNode::ResetAttr( const SvUShorts& rWhichArr ) { SwAttrSetChg aChgOld( *GetpSwAttrSet(), aOld ); SwAttrSetChg aChgNew( *GetpSwAttrSet(), aNew ); - Modify( &aChgOld, &aChgNew ); // alle veraenderten werden verschickt + Modify( &aChgOld, &aChgNew ); // alle veraenderten werden verschickt } } if( !GetpSwAttrSet()->Count() ) // leer, dann loeschen @@ -1756,7 +1756,7 @@ USHORT SwCntntNode::ResetAllAttr() { SwAttrSetChg aChgOld( *GetpSwAttrSet(), aOld ); SwAttrSetChg aChgNew( *GetpSwAttrSet(), aNew ); - Modify( &aChgOld, &aChgNew ); // alle veraenderten werden verschickt + Modify( &aChgOld, &aChgNew ); // alle veraenderten werden verschickt if( !GetpSwAttrSet()->Count() ) // leer, dann loeschen mpAttrSet.reset();//DELETEZ( mpAttrSet ); @@ -1917,8 +1917,8 @@ BOOL SwCntntNode::IsAnyCondition( SwCollCondition& rTmp ) const { switch( pSttNd->GetNodeType() ) { - case ND_TABLENODE: nCond = PARA_IN_TABLEBODY; break; - case ND_SECTIONNODE: nCond = PARA_IN_SECTION; break; + case ND_TABLENODE: nCond = PARA_IN_TABLEBODY; break; + case ND_SECTIONNODE: nCond = PARA_IN_SECTION; break; default: switch( pSttNd->GetStartNodeType() ) @@ -1934,7 +1934,7 @@ BOOL SwCntntNode::IsAnyCondition( SwCollCondition& rTmp ) const nCond = PARA_IN_TABLEHEAD; } break; - case SwFlyStartNode: nCond = PARA_IN_FRAME; break; + case SwFlyStartNode: nCond = PARA_IN_FRAME; break; case SwFootnoteStartNode: { nCond = PARA_IN_FOOTENOTE; diff --git a/sw/source/core/docnode/node2lay.cxx b/sw/source/core/docnode/node2lay.cxx index 6f8f495d213c..3ff7287a3ad0 100644 --- a/sw/source/core/docnode/node2lay.cxx +++ b/sw/source/core/docnode/node2lay.cxx @@ -2,7 +2,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 @@ -30,7 +30,7 @@ #include "precompiled_sw.hxx" -#include <calbck.hxx> // SwClientIter +#include <calbck.hxx> // SwClientIter #include <node.hxx> #include <ndindex.hxx> #include <swtable.hxx> @@ -53,8 +53,8 @@ class SwNode2LayImpl SwClientIter *pIter; // Der eigentliche Iterator SvPtrarr *pUpperFrms;// Zum Einsammeln der Upper ULONG nIndex; // Der Index des einzufuegenden Nodes - BOOL bMaster : 1; // TRUE => nur Master , FALSE => nur Frames ohne Follow - BOOL bInit : 1; // Ist am SwClient bereits ein First()-Aufruf erfolgt? + BOOL bMaster : 1; // TRUE => nur Master , FALSE => nur Frames ohne Follow + BOOL bInit : 1; // Ist am SwClient bereits ein First()-Aufruf erfolgt? public: SwNode2LayImpl( const SwNode& rNode, ULONG nIdx, BOOL bSearch ); ~SwNode2LayImpl() { delete pIter; delete pUpperFrms; } diff --git a/sw/source/core/docnode/nodes.cxx b/sw/source/core/docnode/nodes.cxx index 2342d3283ac6..e47a094dd990 100644 --- a/sw/source/core/docnode/nodes.cxx +++ b/sw/source/core/docnode/nodes.cxx @@ -2,7 +2,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 @@ -70,11 +70,11 @@ USHORT HighestLevel( SwNodes & rNodes, const SwNodeRange & rRange ); //----------------------------------------------------------------------- /******************************************************************* -|* SwNodes::SwNodes +|* SwNodes::SwNodes |* -|* Beschreibung -|* Konstruktor; legt die vier Grundsektions (PostIts, -|* Inserts, Icons, Inhalt) an +|* Beschreibung +|* Konstruktor; legt die vier Grundsektions (PostIts, +|* Inserts, Icons, Inhalt) an *******************************************************************/ SwNodes::SwNodes( SwDoc* pDocument ) : pRoot( 0 ), pMyDoc( pDocument ) @@ -107,19 +107,19 @@ SwNodes::SwNodes( SwDoc* pDocument ) /******************************************************************* |* -|* SwNodes::~SwNodes +|* SwNodes::~SwNodes |* -|* Beschreibung -|* dtor, loescht alle Nodes, deren Pointer in diesem dynamischen -|* Array sind. Ist kein Problem, da Nodes ausserhalb dieses -|* Arrays nicht erzeugt werden koennen und somit auch nicht -|* in mehreren drin sein koennen +|* Beschreibung +|* dtor, loescht alle Nodes, deren Pointer in diesem dynamischen +|* Array sind. Ist kein Problem, da Nodes ausserhalb dieses +|* Arrays nicht erzeugt werden koennen und somit auch nicht +|* in mehreren drin sein koennen |* -|* Ersterstellung -|* VER0100 vb 901214 +|* Ersterstellung +|* VER0100 vb 901214 |* -|* Stand -|* VER0100 vb 901214 +|* Stand +|* VER0100 vb 901214 |* *******************************************************************/ @@ -153,7 +153,7 @@ void SwNodes::ChgNode( SwNodeIndex& rDelPos, ULONG nSz, const SwNode* pPrevInsNd = rNds[ rInsPos.GetIndex() -1 ]; //JP 03.02.99: alle Felder als invalide erklaeren, aktu. erfolgt im - // Idle-Handler des Docs + // Idle-Handler des Docs if( GetDoc()->SetFieldsDirty( TRUE, &rDelPos.GetNode(), nSz ) && rNds.GetDoc() != GetDoc() ) rNds.GetDoc()->SetFieldsDirty( true, NULL, 0 ); @@ -164,7 +164,7 @@ void SwNodes::ChgNode( SwNodeIndex& rDelPos, ULONG nSz, rNds.GetEndOfRedlines().StartOfSectionNode()->GetIndex() < nNd && nNd < rNds.GetEndOfRedlines().GetIndex() ); - if( &rNds == this ) // im gleichen Nodes-Array -> moven !! + if( &rNds == this ) // im gleichen Nodes-Array -> moven !! { // wird von vorne nach hinten gemovt, so wird nach vorne immer // nachgeschoben, d.H. die Loeschposition ist immer gleich @@ -279,7 +279,7 @@ void SwNodes::ChgNode( SwNodeIndex& rDelPos, ULONG nSz, // <-- } - RemoveNode( rDelPos.GetIndex(), 1, FALSE ); // Indizies verschieben !! + RemoveNode( rDelPos.GetIndex(), 1, FALSE ); // Indizies verschieben !! SwCntntNode * pCNd = pNd->GetCntntNode(); rNds.InsertNode( pNd, aInsPos ); @@ -290,8 +290,8 @@ void SwNodes::ChgNode( SwNodeIndex& rDelPos, ULONG nSz, { SwpHints * const pHts = pTxtNd->GetpSwpHints(); // setze die OultineNodes im neuen Nodes-Array - //if( bInsOutlineIdx && NO_NUMBERING != //#outline level,removed by zhaojianwei - // pTxtNd->GetTxtColl()->GetOutlineLevel() ) + //if( bInsOutlineIdx && NO_NUMBERING != //#outline level,removed by zhaojianwei + // pTxtNd->GetTxtColl()->GetOutlineLevel() ) if( bInsOutlineIdx && 0 != pTxtNd->GetAttrOutlineLevel() ) //#outline level,added by zhaojianwei { @@ -388,7 +388,7 @@ void SwNodes::ChgNode( SwNodeIndex& rDelPos, ULONG nSz, } //JP 03.02.99: alle Felder als invalide erklaeren, aktu. erfolgt im - // Idle-Handler des Docs + // Idle-Handler des Docs GetDoc()->SetFieldsDirty( true, NULL, 0 ); if( rNds.GetDoc() != GetDoc() ) rNds.GetDoc()->SetFieldsDirty( true, NULL, 0 ); @@ -440,19 +440,19 @@ void SwNodes::ChgNode( SwNodeIndex& rDelPos, ULONG nSz, /*********************************************************************** |* -|* SwNodes::Move +|* SwNodes::Move |* -|* Beschreibung -|* Move loescht die Node-Pointer ab und einschliesslich der Startposition -|* bis zu und ausschliesslich der Endposition und fuegt sie an -|* der vor der Zielposition ein. -|* Wenn das Ziel vor dem ersten oder dem letzten zu bewegenden Element oder -|* dazwischen liegt, geschieht nichts. -|* Wenn der zu bewegende Bereich leer ist oder das Ende vor -|* dem Anfang liegt, geschieht nichts. +|* Beschreibung +|* Move loescht die Node-Pointer ab und einschliesslich der Startposition +|* bis zu und ausschliesslich der Endposition und fuegt sie an +|* der vor der Zielposition ein. +|* Wenn das Ziel vor dem ersten oder dem letzten zu bewegenden Element oder +|* dazwischen liegt, geschieht nichts. +|* Wenn der zu bewegende Bereich leer ist oder das Ende vor +|* dem Anfang liegt, geschieht nichts. |* -|* Allg.: aRange beschreibt den Bereich -exklusive- aEnd !! -|* ( 1.Node: aStart, letzer Node: aEnd-1 !! ) +|* Allg.: aRange beschreibt den Bereich -exklusive- aEnd !! +|* ( 1.Node: aStart, letzer Node: aEnd-1 !! ) |* |* |* @@ -466,7 +466,7 @@ BOOL SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, ( (pAktNode = &aIndex.GetNode())->GetStartNode() && !pAktNode->StartOfSectionIndex() )) return FALSE; - + SwNodeRange aRg( aRange ); // "einfache" StartNodes oder EndNodes ueberspringen @@ -498,8 +498,8 @@ BOOL SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, return FALSE; } - USHORT nLevel = 0; // Level-Counter - ULONG nInsPos = 0; // Cnt fuer das TmpArray + USHORT nLevel = 0; // Level-Counter + ULONG nInsPos = 0; // Cnt fuer das TmpArray // das Array bildet einen Stack, es werden alle StartOfSelction's gesichert SwSttNdPtrs aSttNdStack( 1, 5 ); @@ -513,8 +513,8 @@ BOOL SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, SwStartNode* pStartNode = aIdx.GetNode().pStartOfSection; aSttNdStack.C40_INSERT( SwStartNode, pStartNode, 0 ); -// aSttNdStack.Insert( rNodes[ aIdx ]->pStartOfSection, 0 ); - SwNodeRange aOrigInsPos( aIdx, -1, aIdx ); // Originale Insert Pos +// aSttNdStack.Insert( rNodes[ aIdx ]->pStartOfSection, 0 ); + SwNodeRange aOrigInsPos( aIdx, -1, aIdx ); // Originale Insert Pos //JP 16.01.98: SectionNodes: DelFrms/MakeFrms beim obersten SectionNode! USHORT nSectNdCnt = 0; @@ -526,7 +526,7 @@ BOOL SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, { case ND_ENDNODE: { - if( nInsPos ) // verschieb schon mal alle bis hier her + if( nInsPos ) // verschieb schon mal alle bis hier her { // loeschen und kopieren. ACHTUNG: die Indizies ab // "aRg.aEnd+1" werden mit verschoben !! @@ -555,7 +555,7 @@ BOOL SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, if( bNewFrms ) // loesche erstmal die Frames pTblNd->DelFrms(); - if( &rNodes == this ) // in sich selbst moven ?? + if( &rNodes == this ) // in sich selbst moven ?? { // dann bewege alle Start/End/ContentNodes. Loesche // bei den ContentNodes auch die Frames !! @@ -571,22 +571,22 @@ BOOL SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, if( pTmpNd->IsTxtNode() ) ((SwTxtNode*)pTmpNd)->RemoveFromList(); -// if( bNewFrms ) -// pCNd->DelFrms(); +// if( bNewFrms ) +// pCNd->DelFrms(); // setze bei Start/EndNodes die richtigen Indizies // loesche die Gliederungs-Indizies aus // dem alten Nodes-Array - //if( pCNd->IsTxtNode() && NO_NUMBERING != //#outline level,zhaojianwei - // ((SwTxtNode*)pCNd)->GetTxtColl()->GetOutlineLevel() ) + //if( pCNd->IsTxtNode() && NO_NUMBERING != //#outline level,zhaojianwei + // ((SwTxtNode*)pCNd)->GetTxtColl()->GetOutlineLevel() ) if( pCNd->IsTxtNode() && 0 != ((SwTxtNode*)pCNd)->GetAttrOutlineLevel() )//<-end,by zhaojianwei pOutlineNds->Remove( pCNd ); else pCNd = 0; } -// else if( bNewFrms && pTmpNd->IsSectionNode() ) -// ((SwSectionNode*)pTmpNd)->DelFrms(); +// else if( bNewFrms && pTmpNd->IsSectionNode() ) +// ((SwSectionNode*)pTmpNd)->DelFrms(); BigPtrArray::Move( aMvIdx.GetIndex(), aIdx.GetIndex() ); if( bInsOutlineIdx && pCNd ) @@ -610,7 +610,7 @@ BOOL SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, for( ULONG n = 0; n < nInsPos; ++n ) { SwNode* pNd = &aMvIdx.GetNode(); -/* if( bNewFrms ) +/* if( bNewFrms ) { if( pNd->IsCntntNode() ) ((SwCntntNode*)pNd)->DelFrms(); @@ -619,7 +619,7 @@ BOOL SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, } */ //BOOL bOutlNd = pNd->IsTxtNode() && NO_NUMBERING !=//#outline level,zhaojianwei - // ((SwTxtNode*)pNd)->GetTxtColl()->GetOutlineLevel(); + // ((SwTxtNode*)pNd)->GetTxtColl()->GetOutlineLevel(); const bool bOutlNd = pNd->IsTxtNode() && 0 != ((SwTxtNode*)pNd)->GetAttrOutlineLevel();//<-end,zhaojianwei // loesche die Gliederungs-Indizies aus @@ -678,10 +678,10 @@ BOOL SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, else if( pSttNd->GetIndex() < aRg.aStart.GetIndex() ) { // SectionNode: es wird nicht die gesamte Section - // verschoben, also bewege nur die - // ContentNodes - // StartNode: erzeuge an der Postion eine neue Section - do { // middle check loop + // verschoben, also bewege nur die + // ContentNodes + // StartNode: erzeuge an der Postion eine neue Section + do { // middle check loop if( !pSttNd->IsSectionNode() ) { // Start und EndNode an der InsertPos erzeugen @@ -690,7 +690,7 @@ BOOL SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, /*?? welcher NodeTyp ??*/ SwNormalStartNode ); - nLevel++; // den Index auf StartNode auf den Stack + nLevel++; // den Index auf StartNode auf den Stack aSttNdStack.C40_INSERT( SwStartNode, pTmp, nLevel ); // noch den EndNode erzeugen @@ -720,7 +720,7 @@ BOOL SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, // Start und EndNode komplett verschieben // s. u. SwIndex aOldStt( pSttNd->theIndex ); //JP 21.05.97: sollte der Start genau der Start des Bereiches sein, so muss -// der Node auf jedenfall noch besucht werden! +// der Node auf jedenfall noch besucht werden! if( &aRg.aStart.GetNode() == pSttNd ) --aRg.aStart; @@ -745,7 +745,7 @@ BOOL SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, aRg.aEnd--; - nLevel++; // den Index auf StartNode auf den Stack + nLevel++; // den Index auf StartNode auf den Stack aSttNdStack.C40_INSERT( SwStartNode, pSttNd, nLevel ); // SectionNode muss noch ein paar Indizies ummelden @@ -767,7 +767,7 @@ BOOL SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, { // dann muss an der akt. InsPos ein SectionDummyNode // eingefuegt werden - if( nInsPos ) // verschieb schon mal alle bis hier her + if( nInsPos ) // verschieb schon mal alle bis hier her { // loeschen und kopieren. ACHTUNG: die Indizies ab // "aRg.aEnd+1" werden mit verschoben !! @@ -793,7 +793,7 @@ BOOL SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, break; } - if( !nLevel ) // es wird eine Stufe runter gestuft + if( !nLevel ) // es wird eine Stufe runter gestuft { // erzeuge die Runterstufung SwNodeIndex aTmpSIdx( aOrigInsPos.aStart, 1 ); @@ -826,8 +826,8 @@ BOOL SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, aTmpEIdx--; } - aIdx--; // hinter den eingefuegten StartNode - aRg.aEnd--; // vor den StartNode + aIdx--; // hinter den eingefuegten StartNode + aRg.aEnd--; // vor den StartNode // kopiere jetzt das Array. ACHTUNG: die Indizies ab // "aRg.aEnd+1" werden mit verschoben !! SwNodeIndex aSwIndex( aRg.aEnd, 1 ); @@ -835,8 +835,8 @@ BOOL SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, aIdx -= nInsPos+1; nInsPos = 0; } - else // es wurden alle Nodes innerhalb eines - { // Start- und End-Nodes verschoben + else // es wurden alle Nodes innerhalb eines + { // Start- und End-Nodes verschoben OSL_ENSURE( pAktNode == aSttNdStack[nLevel] || ( pAktNode->IsStartNode() && aSttNdStack[nLevel]->IsSectionNode()), @@ -844,11 +844,11 @@ BOOL SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, SwNodeIndex aSwIndex( aRg.aEnd, 1 ); ChgNode( aSwIndex, nInsPos, aIdx, bNewFrms ); - aIdx -= nInsPos+1; // vor den eingefuegten StartNode + aIdx -= nInsPos+1; // vor den eingefuegten StartNode nInsPos = 0; // loesche nur noch den Pointer aus dem Nodes-Array. -// RemoveNode( aRg.aEnd.GetIndex(), 1, FALSE ); +// RemoveNode( aRg.aEnd.GetIndex(), 1, FALSE ); RemoveNode( aRg.aEnd.GetIndex(), 1, TRUE ); aRg.aEnd--; @@ -859,7 +859,7 @@ BOOL SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, pSectNd->MakeFrms( &aTmp ); bNewFrms = bSaveNewFrms; } - aSttNdStack.Remove( nLevel ); // vom Stack loeschen + aSttNdStack.Remove( nLevel ); // vom Stack loeschen nLevel--; } @@ -872,7 +872,7 @@ BOOL SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, DelNodes( aRg.aEnd, 2 ); aRg.aEnd--; } -// aRg.aEnd--; +// aRg.aEnd--; } break; @@ -892,18 +892,18 @@ BOOL SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, case ND_SECTIONDUMMY: if( (const SwNodes*)this == GetDoc()->GetUndoNds() ) { - if( &rNodes == this ) // innerhalb vom UndoNodesArray + if( &rNodes == this ) // innerhalb vom UndoNodesArray { // mit verschieben pAktNode->pStartOfSection = aSttNdStack[ nLevel ]; nInsPos++; } - else // in ein "normales" Nodes-Array verschieben + else // in ein "normales" Nodes-Array verschieben { // dann muss an der akt. InsPos auch ein SectionNode // (Start/Ende) stehen; dann diesen ueberspringen. // Andernfalls nicht weiter beachten. - if( nInsPos ) // verschieb schon mal alle bis hier her + if( nInsPos ) // verschieb schon mal alle bis hier her { // loeschen und kopieren. ACHTUNG: die Indizies ab // "aRg.aEnd+1" werden mit verschoben !! @@ -915,7 +915,7 @@ BOOL SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, SwNode* pTmpNd = &aIdx.GetNode(); if( pTmpNd->IsSectionNode() || pTmpNd->StartOfSectionNode()->IsSectionNode() ) - aIdx--; // ueberspringen + aIdx--; // ueberspringen } } else { @@ -928,14 +928,14 @@ BOOL SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, OSL_ENSURE( FALSE, "was ist das fuer ein Node??" ); break; } - - if( nInsPos ) // kopiere den Rest + + if( nInsPos ) // kopiere den Rest { // der Rest muesste so stimmen SwNodeIndex aSwIndex( aRg.aEnd, 1 ); ChgNode( aSwIndex, nInsPos, aIdx, bNewFrms ); } - aRg.aEnd++; // wieder exklusive Ende + aRg.aEnd++; // wieder exklusive Ende // loesche alle leeren Start-/End-Node-Paare if( ( pAktNode = &aRg.aStart.GetNode())->GetStartNode() && @@ -980,47 +980,47 @@ extern Writer* GetDebugWriter(const String&); /******************************************************************* |* -|* SwNodes::SectionDown +|* SwNodes::SectionDown |* -|* Beschreibung -|* SectionDown() legt ein Paar von Start- und EndSection-Node -|* (andere Nodes koennen dazwischen liegen) an. +|* Beschreibung +|* SectionDown() legt ein Paar von Start- und EndSection-Node +|* (andere Nodes koennen dazwischen liegen) an. |* -|* Zustand des SRange beim Verlassen der Funktion: nStart ist der -|* Index des ersten Node hinter dem Start Section Node, nEnd ist -|* der Index des End Section Nodes. Beispiel: Wird Insert Section -|* mehrmals hintereinander aufgerufen, so werden mehrere -|* unmittelbar geschachtelte Sections (keine Content Nodes -|* zwischen Start- bzw. End Nodes) angelegt. +|* Zustand des SRange beim Verlassen der Funktion: nStart ist der +|* Index des ersten Node hinter dem Start Section Node, nEnd ist +|* der Index des End Section Nodes. Beispiel: Wird Insert Section +|* mehrmals hintereinander aufgerufen, so werden mehrere +|* unmittelbar geschachtelte Sections (keine Content Nodes +|* zwischen Start- bzw. End Nodes) angelegt. |* -|* Allg.: aRange beschreibt den Bereich -exklusive- aEnd !! -|* ( 1.Node: aStart, letzer Node: aEnd-1 !! ) +|* Allg.: aRange beschreibt den Bereich -exklusive- aEnd !! +|* ( 1.Node: aStart, letzer Node: aEnd-1 !! ) |* -|* Parameter -|* SwRange &rRange -|* IO: -|* IN -|* rRange.aStart: Einfuegeposition des StartNodes -|* rRange.aEnd: Einfuegeposition des EndNodes -|* OUT -|* rRange.aStart: steht hinter dem eingefuegten Startnode -|* rRange.aEnd: steht auf dem eingefuegen Endnode +|* Parameter +|* SwRange &rRange +|* IO: +|* IN +|* rRange.aStart: Einfuegeposition des StartNodes +|* rRange.aEnd: Einfuegeposition des EndNodes +|* OUT +|* rRange.aStart: steht hinter dem eingefuegten Startnode +|* rRange.aEnd: steht auf dem eingefuegen Endnode |* -|* Ausnahmen -|* 1. SRange-Anfang und SRange-Ende muessen auf dem gleichen Level sein -|* 2. duerfen nicht auf dem obersten Level sein -|* Ist dies nicht der Fall, wird die -|* Funktion durch Aufruf von ERR_RAISE verlassen. +|* Ausnahmen +|* 1. SRange-Anfang und SRange-Ende muessen auf dem gleichen Level sein +|* 2. duerfen nicht auf dem obersten Level sein +|* Ist dies nicht der Fall, wird die +|* Funktion durch Aufruf von ERR_RAISE verlassen. |* -|* Debug-Funktionen -|* die Debugging Tools geben rRange beim Eintritt und beim -|* Verlassen der Funktion aus +|* Debug-Funktionen +|* die Debugging Tools geben rRange beim Eintritt und beim +|* Verlassen der Funktion aus |* -|* Ersterstellung -|* VER0100 vb 901214 +|* Ersterstellung +|* VER0100 vb 901214 |* -|* Stand -|* VER0100 vb 901214 +|* Stand +|* VER0100 vb 901214 |* *******************************************************************/ void SwNodes::SectionDown(SwNodeRange *pRange, SwStartNodeType eSttNdTyp ) @@ -1037,7 +1037,7 @@ void SwNodes::SectionDown(SwNodeRange *pRange, SwStartNodeType eSttNdTyp ) SwNodeIndex aTmpIdx( *pAktNode->StartOfSectionNode() ); if( pAktNode->GetEndNode() ) - DelNodes( pRange->aStart, 1 ); // verhinder leere Section + DelNodes( pRange->aStart, 1 ); // verhinder leere Section else { // fuege einen neuen StartNode ein @@ -1065,39 +1065,39 @@ void SwNodes::SectionDown(SwNodeRange *pRange, SwStartNodeType eSttNdTyp ) /******************************************************************* |* -|* SwNodes::SectionUp +|* SwNodes::SectionUp |* -|* Beschreibung -|* Der von rRange umspannte Bereich wird auf die naechst hoehere -|* Ebene gehoben. Das geschieht dadurch, dass bei -|* rRange.aStart ein Endnode und bei rRange.aEnd ein -|* Startnode eingefuegt wird. Die Indices fuer den Bereich -|* innerhalb von rRange werden geupdated. +|* Beschreibung +|* Der von rRange umspannte Bereich wird auf die naechst hoehere +|* Ebene gehoben. Das geschieht dadurch, dass bei +|* rRange.aStart ein Endnode und bei rRange.aEnd ein +|* Startnode eingefuegt wird. Die Indices fuer den Bereich +|* innerhalb von rRange werden geupdated. |* -|* Allg.: aRange beschreibt den Bereich -exklusive- aEnd !! -|* ( 1.Node: aStart, letzer Node: aEnd-1 !! ) +|* Allg.: aRange beschreibt den Bereich -exklusive- aEnd !! +|* ( 1.Node: aStart, letzer Node: aEnd-1 !! ) |* -|* Parameter -|* SwRange &rRange -|* IO: -|* IN -|* rRange.aStart: Anfang des hoeher zubewegenden Bereiches -|* rRange.aEnd: der 1.Node hinter dem Bereich -|* OUT -|* rRange.aStart: an der ersten Position innerhalb des -|* hochbewegten Bereiches -|* rRange.aEnd: an der letzten Position innerhalb des -|* hochbewegten Bereiches +|* Parameter +|* SwRange &rRange +|* IO: +|* IN +|* rRange.aStart: Anfang des hoeher zubewegenden Bereiches +|* rRange.aEnd: der 1.Node hinter dem Bereich +|* OUT +|* rRange.aStart: an der ersten Position innerhalb des +|* hochbewegten Bereiches +|* rRange.aEnd: an der letzten Position innerhalb des +|* hochbewegten Bereiches |* -|* Debug-Funktionen -|* die Debugging Tools geben rRange beim Eintritt und beim -|* Verlassen der Funktion aus +|* Debug-Funktionen +|* die Debugging Tools geben rRange beim Eintritt und beim +|* Verlassen der Funktion aus |* -|* Ersterstellung -|* VER0100 vb 901214 +|* Ersterstellung +|* VER0100 vb 901214 |* -|* Stand -|* VER0100 vb 901214 +|* Stand +|* VER0100 vb 901214 |* *******************************************************************/ void SwNodes::SectionUp(SwNodeRange *pRange) @@ -1113,7 +1113,7 @@ void SwNodes::SectionUp(SwNodeRange *pRange) // Bei anderen Nodes wird eine neuer EndNode eingefuegt SwNode * pAktNode = &pRange->aStart.GetNode(); SwNodeIndex aIdx( *pAktNode->StartOfSectionNode() ); - if( pAktNode->IsStartNode() ) // selbst StartNode + if( pAktNode->IsStartNode() ) // selbst StartNode { SwEndNode* pEndNd = pRange->aEnd.GetNode().GetEndNode(); if( pAktNode == pEndNd->pStartOfSection ) @@ -1137,7 +1137,7 @@ void SwNodes::SectionUp(SwNodeRange *pRange) } DelNodes( pRange->aStart, 1 ); } - else if( aIdx == pRange->aStart.GetIndex()-1 ) // vor StartNode + else if( aIdx == pRange->aStart.GetIndex()-1 ) // vor StartNode DelNodes( aIdx, 1 ); else new SwEndNode( pRange->aStart, *aIdx.GetNode().GetStartNode() ); @@ -1162,19 +1162,19 @@ void SwNodes::SectionUp(SwNodeRange *pRange) /************************************************************************* |* -|* SwNodes::SectionUpDown() +|* SwNodes::SectionUpDown() |* -|* Beschreibung -|* Methode setzt die Indizies die bei SectionUp oder SectionDwon -|* veraendert wurden wieder richtig, sodass die Ebenen wieder -|* Konsistent sind. +|* Beschreibung +|* Methode setzt die Indizies die bei SectionUp oder SectionDwon +|* veraendert wurden wieder richtig, sodass die Ebenen wieder +|* Konsistent sind. |* -|* Parameter -|* SwIndex & aStart StartNode !!! -|* SwIndex & aEnd EndPunkt +|* Parameter +|* SwIndex & aStart StartNode !!! +|* SwIndex & aEnd EndPunkt |* -|* Ersterstellung JP 23.04.91 -|* Letzte Aenderung JP 23.04.91 +|* Ersterstellung JP 23.04.91 +|* Letzte Aenderung JP 23.04.91 |* *************************************************************************/ void SwNodes::SectionUpDown( const SwNodeIndex & aStart, const SwNodeIndex & aEnd ) @@ -1204,15 +1204,15 @@ void SwNodes::SectionUpDown( const SwNodeIndex & aStart, const SwNodeIndex & aEn pSttNd->pEndOfSection = (SwEndNode*)pAktNode; aSttNdStack.Remove( aSttNdStack.Count() - 1 ); if( aSttNdStack.Count() ) - continue; // noch genuegend EndNodes auf dem Stack + continue; // noch genuegend EndNodes auf dem Stack - else if( aTmpIdx < aEnd ) // Uebergewicht an StartNodes + else if( aTmpIdx < aEnd ) // Uebergewicht an StartNodes // ist das Ende noch nicht erreicht, so hole den Start von // der uebergeordneten Section { aSttNdStack.C40_INSERT( SwStartNode, pSttNd->pStartOfSection, 0 ); } - else // wenn ueber den Bereich hinaus, dann Ende + else // wenn ueber den Bereich hinaus, dann Ende break; } } @@ -1223,43 +1223,43 @@ void SwNodes::SectionUpDown( const SwNodeIndex & aStart, const SwNodeIndex & aEn /******************************************************************* |* -|* SwNodes::Delete +|* SwNodes::Delete |* -|* Beschreibung -|* Spezielle Implementierung der Delete-Funktion des -|* variablen Array. Diese spezielle Implementierung ist -|* notwendig, da durch das Loeschen von Start- bzw. -|* Endnodes Inkonsistenzen entstehen koennen. Diese werden -|* durch diese Funktion beseitigt. +|* Beschreibung +|* Spezielle Implementierung der Delete-Funktion des +|* variablen Array. Diese spezielle Implementierung ist +|* notwendig, da durch das Loeschen von Start- bzw. +|* Endnodes Inkonsistenzen entstehen koennen. Diese werden +|* durch diese Funktion beseitigt. |* -|* Parameter -|* IN -|* SwIndex &rIndex bezeichnet die Position, an der -|* geloescht wird -|* rIndex ist nach Aufruf der Funktion unveraendert (Kopie?!) -|* USHORT nNodes bezeichnet die Anzahl der zu loeschenden -|* Nodes; ist auf 1 defaulted +|* Parameter +|* IN +|* SwIndex &rIndex bezeichnet die Position, an der +|* geloescht wird +|* rIndex ist nach Aufruf der Funktion unveraendert (Kopie?!) +|* USHORT nNodes bezeichnet die Anzahl der zu loeschenden +|* Nodes; ist auf 1 defaulted |* -|* Debug-Funktionen -|* geben beim Eintritt in die Funktion Position und Anzahl -|* der zu loeschenden Nodes aus. +|* Debug-Funktionen +|* geben beim Eintritt in die Funktion Position und Anzahl +|* der zu loeschenden Nodes aus. |* -|* Ersterstellung -|* VER0100 vb 901214 +|* Ersterstellung +|* VER0100 vb 901214 |* -|* Stand -|* VER0100 vb 901214 +|* Stand +|* VER0100 vb 901214 |* *******************************************************************/ void SwNodes::Delete(const SwNodeIndex &rIndex, ULONG nNodes) { - USHORT nLevel = 0; // Level-Counter + USHORT nLevel = 0; // Level-Counter SwNode * pAktNode; ULONG nCnt = Count() - rIndex.GetIndex() - 1; if( nCnt > nNodes ) nCnt = nNodes; - if( nCnt == 0 ) // keine Anzahl -> return + if( nCnt == 0 ) // keine Anzahl -> return return; SwNodeRange aRg( rIndex, 0, rIndex, nCnt-1 ); @@ -1307,8 +1307,8 @@ void SwNodes::Delete(const SwNodeIndex &rIndex, ULONG nNodes) if( pNd->IsTxtNode() ) { - //if( NO_NUMBERING != //#outline level,zhaojianwei - // ((SwTxtNode*)pNd)->GetTxtColl()->GetOutlineLevel() && + //if( NO_NUMBERING != //#outline level,zhaojianwei + // ((SwTxtNode*)pNd)->GetTxtColl()->GetOutlineLevel() && if( 0 != ((SwTxtNode*)pNd)->GetAttrOutlineLevel() &&//<-end,zhaojianwei pOutlineNds->Seek_Entry( pNd, &nIdxPos )) { @@ -1329,15 +1329,15 @@ void SwNodes::Delete(const SwNodeIndex &rIndex, ULONG nNodes) } else { - RemoveNode( aRg.aEnd.GetIndex()+1, nCnt, TRUE ); // loesche + RemoveNode( aRg.aEnd.GetIndex()+1, nCnt, TRUE ); // loesche nCnt = 0; - aRg.aEnd--; // vor den EndNode + aRg.aEnd--; // vor den EndNode nLevel++; } } - else if( pAktNode->GetStartNode() ) // StartNode gefunden + else if( pAktNode->GetStartNode() ) // StartNode gefunden { - if( nLevel == 0 ) // es wird eine Stufe runter gestuft + if( nLevel == 0 ) // es wird eine Stufe runter gestuft { if( nCnt ) { @@ -1347,9 +1347,9 @@ void SwNodes::Delete(const SwNodeIndex &rIndex, ULONG nNodes) nCnt = 0; } } - else // es werden alle Nodes Innerhalb eines Start- und - { // End-Nodes geloescht, loesche mit Start/EndNode - RemoveNode( aRg.aEnd.GetIndex(), nCnt + 2, TRUE ); // loesche Array + else // es werden alle Nodes Innerhalb eines Start- und + { // End-Nodes geloescht, loesche mit Start/EndNode + RemoveNode( aRg.aEnd.GetIndex(), nCnt + 2, TRUE ); // loesche Array nCnt = 0; nLevel--; } @@ -1368,13 +1368,13 @@ void SwNodes::Delete(const SwNodeIndex &rIndex, ULONG nNodes) aRg.aEnd--; } } - else // normaler Node, also ins TmpArray einfuegen + else // normaler Node, also ins TmpArray einfuegen { SwTxtNode* pTxtNd = pAktNode->GetTxtNode(); if( pTxtNd ) { if( pTxtNd->IsOutline()) - { // loesche die Gliederungs-Indizies. + { // loesche die Gliederungs-Indizies. pOutlineNds->Remove( pTxtNd ); bUpdateOutline = TRUE; } @@ -1390,7 +1390,7 @@ void SwNodes::Delete(const SwNodeIndex &rIndex, ULONG nNodes) aRg.aEnd++; if( nCnt != 0 ) - RemoveNode( aRg.aEnd.GetIndex(), nCnt, TRUE ); // loesche den Rest + RemoveNode( aRg.aEnd.GetIndex(), nCnt, TRUE ); // loesche den Rest // loesche alle leeren Start-/End-Node-Paare while( aRg.aEnd.GetNode().GetEndNode() && @@ -1398,7 +1398,7 @@ void SwNodes::Delete(const SwNodeIndex &rIndex, ULONG nNodes) pAktNode->StartOfSectionIndex() ) // aber ja keinen der heiligen 5. { - DelNodes( aRg.aStart, 2 ); // loesche den Start- und EndNode + DelNodes( aRg.aStart, 2 ); // loesche den Start- und EndNode aRg.aStart--; } @@ -1423,36 +1423,36 @@ void SwNodes::Delete(const SwNodeIndex &rIndex, ULONG nNodes) /******************************************************************* |* -|* SwNodes::GetSectionLevel -|* -|* Beschreibung -|* Die Funktion liefert den Sectionlevel an der durch -|* aIndex bezeichneten Position. Die Funktion ruft die -|* GetSectionlevel-Funktion des durch aIndex bezeichneten -|* Nodes. Diese ist eine virtuelle Funktion, die fuer -|* Endnodes speziell implementiert werden musste. -|* Die Sectionlevels werden ermittelt, indem rekursiv durch -|* die Nodesstruktur (jeweils zum naechsten theEndOfSection) -|* gegangen wird, bis die oberste Ebene erreicht ist -|* (theEndOfSection == 0) -|* -|* Parameter -|* aIndex bezeichnet die Position des Nodes, dessen -|* Sectionlevel ermittelt werden soll. Hier wird eine Kopie -|* uebergeben, da eine Veraenderung der Variablen in der -|* rufenden Funktion nicht wuenschenswert ist. -|* -|* Ausnahmen -|* Der erste Node im Array sollte immer ein Startnode sein. -|* Dieser erfaehrt in der Funktion SwNodes::GetSectionLevel() +|* SwNodes::GetSectionLevel +|* +|* Beschreibung +|* Die Funktion liefert den Sectionlevel an der durch +|* aIndex bezeichneten Position. Die Funktion ruft die +|* GetSectionlevel-Funktion des durch aIndex bezeichneten +|* Nodes. Diese ist eine virtuelle Funktion, die fuer +|* Endnodes speziell implementiert werden musste. +|* Die Sectionlevels werden ermittelt, indem rekursiv durch +|* die Nodesstruktur (jeweils zum naechsten theEndOfSection) +|* gegangen wird, bis die oberste Ebene erreicht ist +|* (theEndOfSection == 0) +|* +|* Parameter +|* aIndex bezeichnet die Position des Nodes, dessen +|* Sectionlevel ermittelt werden soll. Hier wird eine Kopie +|* uebergeben, da eine Veraenderung der Variablen in der +|* rufenden Funktion nicht wuenschenswert ist. +|* +|* Ausnahmen +|* Der erste Node im Array sollte immer ein Startnode sein. +|* Dieser erfaehrt in der Funktion SwNodes::GetSectionLevel() |* eine Sonderbehandlung; es wird davon ausgegangen, dass der -|* erste Node auch ein Startnode ist. +|* erste Node auch ein Startnode ist. |* -|* Ersterstellung -|* VER0100 vb 901214 +|* Ersterstellung +|* VER0100 vb 901214 |* -|* Stand -|* VER0100 vb 901214 +|* Stand +|* VER0100 vb 901214 |* *******************************************************************/ USHORT SwNodes::GetSectionLevel(const SwNodeIndex &rIdx) const { @@ -1474,15 +1474,15 @@ void SwNodes::GoStartOfSection(SwNodeIndex *pIdx) const // steht der Index auf keinem ContentNode, dann gehe dahin. Ist aber // kein weiterer vorhanden, dann lasse den Index an alter Pos stehen !!! while( !aTmp.GetNode().IsCntntNode() ) - { // gehe vom StartNode ( es kann nur ein StartNode sein ! ) an sein + { // gehe vom StartNode ( es kann nur ein StartNode sein ! ) an sein // Ende if( *pIdx <= aTmp ) - return; // FEHLER: Steht schon hinter der Sektion + return; // FEHLER: Steht schon hinter der Sektion aTmp = aTmp.GetNode().EndOfSectionIndex()+1; if( *pIdx <= aTmp ) - return; // FEHLER: Steht schon hinter der Sektion + return; // FEHLER: Steht schon hinter der Sektion } - (*pIdx) = aTmp; // steht auf einem ContentNode + (*pIdx) = aTmp; // steht auf einem ContentNode } void SwNodes::GoEndOfSection(SwNodeIndex *pIdx) const @@ -1601,26 +1601,26 @@ SwNode* SwNodes::GoPreviousWithFrm(SwNodeIndex *pIdx) const /************************************************************************* |* -|* BOOL SwNodes::CheckNodesRange() +|* BOOL SwNodes::CheckNodesRange() |* -|* Beschreibung -|* Teste ob der uebergene SRange nicht ueber die Grenzen der -|* einzelnen Bereiche (PosIts, Autotext, Content, Icons und Inserts ) -|* hinaus reicht. -|* Nach Wahrscheinlichkeit des Ranges sortiert. +|* Beschreibung +|* Teste ob der uebergene SRange nicht ueber die Grenzen der +|* einzelnen Bereiche (PosIts, Autotext, Content, Icons und Inserts ) +|* hinaus reicht. +|* Nach Wahrscheinlichkeit des Ranges sortiert. |* -|* Alg.: Da festgelegt ist, das aRange.aEnd den 1.Node hinter dem Bereich -|* bezeichnet, wird hier auf aEnd <= End.. getestet !! +|* Alg.: Da festgelegt ist, das aRange.aEnd den 1.Node hinter dem Bereich +|* bezeichnet, wird hier auf aEnd <= End.. getestet !! |* -|* Parameter SwIndex & Start-Index vom Bereich -|* SwIndex & End-Index vom Bereich -|* BOOL TRUE: Start+End in gleicher Section! -|* FALSE: Start+End in verschiedenen Sect. -|* Return-Wert BOOL TRUE: gueltiger SRange -|* FALSE: ungueltiger SRange +|* Parameter SwIndex & Start-Index vom Bereich +|* SwIndex & End-Index vom Bereich +|* BOOL TRUE: Start+End in gleicher Section! +|* FALSE: Start+End in verschiedenen Sect. +|* Return-Wert BOOL TRUE: gueltiger SRange +|* FALSE: ungueltiger SRange |* -|* Ersterstellung JP 23.04.91 -|* Letzte Aenderung JP 18.06.92 +|* Ersterstellung JP 23.04.91 +|* Letzte Aenderung JP 18.06.92 |* *************************************************************************/ @@ -1644,22 +1644,22 @@ BOOL SwNodes::CheckNodesRange( const SwNodeIndex& rStt, const SwNodeIndex& rEnd if( TstIdx( nStt, nEnd, pEndOfRedlines->StartOfSectionIndex(), pEndOfRedlines->GetIndex() )) return TRUE; - return FALSE; // liegt irgendwo dazwischen, FEHLER + return FALSE; // liegt irgendwo dazwischen, FEHLER } /************************************************************************* |* -|* void SwNodes::DelNodes() +|* void SwNodes::DelNodes() |* -|* Beschreibung -|* Loesche aus den NodesArray ab einer Position entsprechend Node's. +|* Beschreibung +|* Loesche aus den NodesArray ab einer Position entsprechend Node's. |* -|* Parameter SwIndex & Der Startpunkt im Nodes-Array -|* USHORT die Anzahl +|* Parameter SwIndex & Der Startpunkt im Nodes-Array +|* USHORT die Anzahl |* -|* Ersterstellung JP 23.04.91 -|* Letzte Aenderung JP 23.04.91 +|* Ersterstellung JP 23.04.91 +|* Letzte Aenderung JP 23.04.91 |* *************************************************************************/ void SwNodes::DelNodes( const SwNodeIndex & rStart, ULONG nCnt ) @@ -1698,7 +1698,7 @@ void SwNodes::DelNodes( const SwNodeIndex & rStart, ULONG nCnt ) if( pNd->IsTxtNode() && //NO_NUMBERING != ((SwTxtNode*)pNd)->GetTxtColl()->GetOutlineLevel() )//#outline level,zhaojianwei - 0 != ((SwTxtNode*)pNd)->GetAttrOutlineLevel() ) //<-end,zhaojianwei + 0 != ((SwTxtNode*)pNd)->GetAttrOutlineLevel() ) //<-end,zhaojianwei { // loesche die Gliederungs-Indizies. USHORT nIdxPos; if( pOutlineNds->Seek_Entry( pNd, &nIdxPos )) @@ -1724,17 +1724,17 @@ void SwNodes::DelNodes( const SwNodeIndex & rStart, ULONG nCnt ) /************************************************************************* |* -|* USHORT HighestLevel( SwNodes & rNodes, const SwNodeRange & rRange ) +|* USHORT HighestLevel( SwNodes & rNodes, const SwNodeRange & rRange ) |* -|* Beschreibung -|* Berechne den hoehsten Level innerhalb des Bereiches +|* Beschreibung +|* Berechne den hoehsten Level innerhalb des Bereiches |* -|* Parameter SwNodes & das Node-Array -|* SwNodeRange & der zu ueberpruefende Bereich -|* Return USHORT der hoechste Level +|* Parameter SwNodes & das Node-Array +|* SwNodeRange & der zu ueberpruefende Bereich +|* Return USHORT der hoechste Level |* -|* Ersterstellung JP 24.04.91 -|* Letzte Aenderung JP 24.04.91 +|* Ersterstellung JP 24.04.91 +|* Letzte Aenderung JP 24.04.91 |* *************************************************************************/ @@ -1771,9 +1771,9 @@ USHORT HighestLevel( SwNodes & rNodes, const SwNodeRange & rRange ) |* SwNodes::Move() |* |* Beschreibung -|* Parameter SwPaM& zu kopierender Bereich -|* SwNodes& in dieses Nodes-Array -|* SwPosition& auf diese Position im Nodes-Array +|* Parameter SwPaM& zu kopierender Bereich +|* SwNodes& in dieses Nodes-Array +|* SwPosition& auf diese Position im Nodes-Array |* Ersterstellung JP 09.07.92 |* Letzte Aenderung JP 09.07.92 |* @@ -1880,7 +1880,7 @@ void SwNodes::MoveRange( SwPaM & rPam, SwPosition & rPos, SwNodes& rNodes ) bCopyCollFmt = FALSE; } - if( bOneNd ) // das wars schon + if( bOneNd ) // das wars schon { // der PaM wird korrigiert, denn falls ueber Nodegrenzen verschoben // wurde, so stehen sie in unterschieden Nodes. Auch die Selektion @@ -2028,9 +2028,9 @@ void SwNodes::MoveRange( SwPaM & rPam, SwPosition & rPos, SwNodes& rNodes ) |* SwNodes::_Copy() |* |* Beschreibung -|* Parameter SwNodeRange& zu kopierender Bereich -|* SwDoc& in dieses Dokument -|* SwIndex& auf diese Position im Nodes-Array +|* Parameter SwNodeRange& zu kopierender Bereich +|* SwDoc& in dieses Dokument +|* SwIndex& auf diese Position im Nodes-Array |* Ersterstellung JP 11.11.92 |* Letzte Aenderung JP 11.11.92 |* @@ -2092,8 +2092,8 @@ void SwNodes::_CopyNodes( const SwNodeRange& rRange, return; SwNodeIndex aInsPos( rIndex ); - SwNodeIndex aOrigInsPos( rIndex, -1 ); // Originale Insert Pos - USHORT nLevel = 0; // Level-Counter + SwNodeIndex aOrigInsPos( rIndex, -1 ); // Originale Insert Pos + USHORT nLevel = 0; // Level-Counter for( ULONG nNodeCnt = aRg.aEnd.GetIndex() - aRg.aStart.GetIndex(); nNodeCnt > 0; --nNodeCnt ) @@ -2157,7 +2157,7 @@ void SwNodes::_CopyNodes( const SwNodeRange& rRange, } break; - case ND_SECTIONNODE: // SectionNode + case ND_SECTIONNODE: // SectionNode // If the end of the section is outside the copy range, // the section node will skipped, not copied! // If someone want to change this behaviour, he has to adjust the function @@ -2178,7 +2178,7 @@ void SwNodes::_CopyNodes( const SwNodeRange& rRange, } break; - case ND_STARTNODE: // StartNode gefunden + case ND_STARTNODE: // StartNode gefunden { SwStartNode* pTmp = new SwStartNode( aInsPos, ND_STARTNODE, ((SwStartNode*)pAktNode)->GetStartNodeType() ); @@ -2189,10 +2189,10 @@ void SwNodes::_CopyNodes( const SwNodeRange& rRange, break; case ND_ENDNODE: - if( nLevel ) // vollstaendige Section + if( nLevel ) // vollstaendige Section { --nLevel; - aInsPos++; // EndNode schon vorhanden + aInsPos++; // EndNode schon vorhanden } else if( !pAktNode->pStartOfSection->IsSectionNode() ) { @@ -2209,7 +2209,7 @@ void SwNodes::_CopyNodes( const SwNodeRange& rRange, { SwCntntNode* pNew = ((SwCntntNode*)pAktNode)->MakeCopy( pDoc, aInsPos ); - if( !bNewFrms ) // dflt. werden die Frames immer angelegt + if( !bNewFrms ) // dflt. werden die Frames immer angelegt pNew->DelFrms(); } break; @@ -2223,7 +2223,7 @@ void SwNodes::_CopyNodes( const SwNodeRange& rRange, SwNode* pTmpNd = pDoc->GetNodes()[ aInsPos ]; if( pTmpNd->IsSectionNode() || pTmpNd->StartOfSectionNode()->IsSectionNode() ) - aInsPos++; // ueberspringen + aInsPos++; // ueberspringen } else { OSL_ENSURE( FALSE, "wie kommt diser Node ins Nodes-Array??" ); @@ -2591,10 +2591,10 @@ void SwNodes::RemoveNode( ULONG nDelPos, ULONG nSz, BOOL bDel ) // temp. Object setzen //JP 24.08.98: muessten eigentlich einzeln removed werden, weil - // das Remove auch rekursiv gerufen werden kann, z.B. bei - // zeichengebundenen Rahmen. Da aber dabei viel zu viel - // ablaueft, wird hier ein temp. Objekt eingefuegt, das - // dann mit dem Remove wieder entfernt wird. + // das Remove auch rekursiv gerufen werden kann, z.B. bei + // zeichengebundenen Rahmen. Da aber dabei viel zu viel + // ablaueft, wird hier ein temp. Objekt eingefuegt, das + // dann mit dem Remove wieder entfernt wird. // siehe Bug 55406 _TempBigPtrEntry aTempEntry; BigPtrEntry* pTempEntry = &aTempEntry; @@ -2616,7 +2616,7 @@ void SwNodes::RemoveNode( ULONG nDelPos, ULONG nSz, BOOL bDel ) void SwNodes::RegisterIndex( SwNodeIndex& rIdx ) { - if( !pRoot ) // noch keine Root gesetzt? + if( !pRoot ) // noch keine Root gesetzt? { pRoot = &rIdx; pRoot->pPrev = 0; diff --git a/sw/source/core/docnode/observablethread.cxx b/sw/source/core/docnode/observablethread.cxx index f8cd4afd146e..411cfd44d978 100644 --- a/sw/source/core/docnode/observablethread.cxx +++ b/sw/source/core/docnode/observablethread.cxx @@ -2,7 +2,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/docnode/pausethreadstarting.cxx b/sw/source/core/docnode/pausethreadstarting.cxx index 5dfd94e898c8..2b3b5bb58356 100644 --- a/sw/source/core/docnode/pausethreadstarting.cxx +++ b/sw/source/core/docnode/pausethreadstarting.cxx @@ -2,7 +2,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/docnode/retrievedinputstreamdata.cxx b/sw/source/core/docnode/retrievedinputstreamdata.cxx index 03a1c4a7c396..52a19ae715f3 100644 --- a/sw/source/core/docnode/retrievedinputstreamdata.cxx +++ b/sw/source/core/docnode/retrievedinputstreamdata.cxx @@ -2,7 +2,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/docnode/retrieveinputstream.cxx b/sw/source/core/docnode/retrieveinputstream.cxx index eff719bd195d..cddae56040cb 100644 --- a/sw/source/core/docnode/retrieveinputstream.cxx +++ b/sw/source/core/docnode/retrieveinputstream.cxx @@ -2,7 +2,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/docnode/retrieveinputstreamconsumer.cxx b/sw/source/core/docnode/retrieveinputstreamconsumer.cxx index ac7aa90b18d3..f55809fbb56d 100644 --- a/sw/source/core/docnode/retrieveinputstreamconsumer.cxx +++ b/sw/source/core/docnode/retrieveinputstreamconsumer.cxx @@ -2,7 +2,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/docnode/section.cxx b/sw/source/core/docnode/section.cxx index 45f91e7478e9..2474b0f09465 100644 --- a/sw/source/core/docnode/section.cxx +++ b/sw/source/core/docnode/section.cxx @@ -2,7 +2,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 @@ -255,7 +255,7 @@ SwSection::~SwSection() } else { - pFmt->Remove( this ); // austragen, + pFmt->Remove( this ); // austragen, if (CONTENT_SECTION != m_Data.GetType()) { @@ -274,10 +274,10 @@ SwSection::~SwSection() if( !pFmt->GetDepends() ) { // Bug: 28191 - nicht ins Undo aufnehmen, sollte schon vorher - // geschehen sein!! + // geschehen sein!! BOOL bUndo = pDoc->DoesUndo(); pDoc->DoUndo( FALSE ); - pDoc->DelSectionFmt( pFmt ); // und loeschen + pDoc->DelSectionFmt( pFmt ); // und loeschen pDoc->DoUndo( bUndo ); } } @@ -492,7 +492,7 @@ void SwSection::Modify( SfxPoolItem* pOld, SfxPoolItem* pNew ) if( !bNewFlag ) { // Abschalten: teste ob nicht vielleich ueber die Parents - // doch ein Schutzt besteht! + // doch ein Schutzt besteht! const SwSection* pSect = this; do { if( pSect->IsProtect() ) @@ -904,12 +904,12 @@ void SwSectionFmt::Modify( SfxPoolItem* pOld, SfxPoolItem* pNew ) { SwClientIter aIter( *this ); SwClient * pLast = aIter.GoStart(); - if( pLast ) // konnte zum Anfang gesprungen werden ?? + if( pLast ) // konnte zum Anfang gesprungen werden ?? do { pLast->Modify( pOld, pNew ); } while( 0 != ( pLast = aIter++ )); } - return; // das wars + return; // das wars case RES_OBJECTDYING: if( !GetDoc()->IsInDtor() && @@ -917,7 +917,7 @@ void SwSectionFmt::Modify( SfxPoolItem* pOld, SfxPoolItem* pNew ) { // mein Parent wird vernichtet, dann an den Parent vom Parent // umhaengen und wieder aktualisieren - SwFrmFmt::Modify( pOld, pNew ); // erst umhaengen !!! + SwFrmFmt::Modify( pOld, pNew ); // erst umhaengen !!! UpdateParent(); return; } @@ -929,7 +929,7 @@ void SwSectionFmt::Modify( SfxPoolItem* pOld, SfxPoolItem* pNew ) ((SwFmtChg*)pNew)->pChangedFmt->IsA( TYPE( SwSectionFmt )) ) { // mein Parent wird veraendert, muss mich aktualisieren - SwFrmFmt::Modify( pOld, pNew ); // erst umhaengen !!! + SwFrmFmt::Modify( pOld, pNew ); // erst umhaengen !!! UpdateParent(); return; } @@ -1074,7 +1074,7 @@ BOOL SwSectionFmt::IsInNodesArr() const } -void SwSectionFmt::UpdateParent() // Parent wurde veraendert +void SwSectionFmt::UpdateParent() // Parent wurde veraendert { if( !GetDepends() ) return; @@ -1088,7 +1088,7 @@ void SwSectionFmt::UpdateParent() // Parent wurde veraendert SwClientIter aIter( *this ); SwClient * pLast = aIter.GoStart(); - if( pLast ) // konnte zum Anfang gesprungen werden ?? + if( pLast ) // konnte zum Anfang gesprungen werden ?? do { if( pLast->IsA( TYPE(SwSectionFmt) ) ) { @@ -1278,7 +1278,7 @@ void lcl_UpdateLinksInSect( SwBaseLink& rUpdLnk, SwSectionNode& rSectNd ) SwBaseLink* pBLink; String sMimeType( SotExchange::GetFormatMimeType( FORMAT_FILE )); uno::Any aValue; - aValue <<= ::rtl::OUString( sName ); // beliebiger Name + aValue <<= ::rtl::OUString( sName ); // beliebiger Name const ::sfx2::SvBaseLinks& rLnks = pDoc->GetLinkManager().GetLinks(); for( USHORT n = rLnks.Count(); n; ) @@ -1318,9 +1318,9 @@ void lcl_UpdateLinksInSect( SwBaseLink& rUpdLnk, SwSectionNode& rSectNd ) // sucht sich die richtige DocShell raus oder erzeugt eine neue: // Der Return-Wert gibt an, was mit der Shell zu geschehen hat: -// 0 - Fehler, konnte DocShell nicht finden -// 1 - DocShell ist ein existieren Document -// 2 - DocShell wurde neu angelegt, muss also wieder geschlossen werden +// 0 - Fehler, konnte DocShell nicht finden +// 1 - DocShell ist ein existieren Document +// 2 - DocShell wurde neu angelegt, muss also wieder geschlossen werden int lcl_FindDocShell( SfxObjectShellRef& xDocSh, const String& rFileName, @@ -1379,7 +1379,7 @@ int lcl_FindDocShell( SfxObjectShellRef& xDocSh, SfxMedium* pMed = new SfxMedium( aTmpObj.GetMainURL( INetURLObject::NO_DECODE ), STREAM_READ, TRUE ); if( INET_PROT_FILE == aTmpObj.GetProtocol() ) - pMed->DownLoad(); // nur mal das Medium anfassen (DownLoaden) + pMed->DownLoad(); // nur mal das Medium anfassen (DownLoaden) const SfxFilter* pSfxFlt = 0; if( !pMed->GetError() ) @@ -1414,10 +1414,10 @@ int lcl_FindDocShell( SfxObjectShellRef& xDocSh, } } - if( !xDocSh.Is() ) // Medium muss noch geloescht werden + if( !xDocSh.Is() ) // Medium muss noch geloescht werden delete pMed; - return 0; // das war wohl nichts + return 0; // das war wohl nichts } @@ -1613,7 +1613,7 @@ void SwIntrnlSectRefLink::DataChanged( const String& rMimeType, { aSave = rInsPos; pPam->Move( fnMoveBackward, fnGoNode ); - pPam->SetMark(); // beide SwPositions ummelden! + pPam->SetMark(); // beide SwPositions ummelden! pDoc->CorrAbs( aSave, *pPam->GetPoint(), 0, TRUE ); pDoc->GetNodes().Delete( aSave, 1 ); @@ -1677,7 +1677,7 @@ void SwIntrnlSectRefLink::DataChanged( const String& rMimeType, if( pESh ) { pESh->Pop( FALSE ); - pPam = 0; // pam is deleted before + pPam = 0; // pam is deleted before } } @@ -1695,7 +1695,7 @@ void SwIntrnlSectRefLink::DataChanged( const String& rMimeType, pESh->EndAllAction(); else if( pVSh ) pVSh->EndAction(); - delete pPam; // wurde am Anfang angelegt + delete pPam; // wurde am Anfang angelegt } @@ -1802,11 +1802,11 @@ void SwSection::CreateLink( LinkCreateType eCreateType ) switch( eCreateType ) { - case CREATE_CONNECT: // Link gleich connecten + case CREATE_CONNECT: // Link gleich connecten pLnk->Connect(); break; - case CREATE_UPDATE: // Link connecten und updaten + case CREATE_UPDATE: // Link connecten und updaten pLnk->Update(); break; case CREATE_NONE: break; diff --git a/sw/source/core/docnode/swbaslnk.cxx b/sw/source/core/docnode/swbaslnk.cxx index 6aaef5e5e962..32dabad9bb3d 100644 --- a/sw/source/core/docnode/swbaslnk.cxx +++ b/sw/source/core/docnode/swbaslnk.cxx @@ -2,7 +2,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 @@ -41,7 +41,7 @@ #include <sfx2/linkmgr.hxx> #include <sfx2/objsh.hxx> #include <editeng/boxitem.hxx> -#include <svx/svxids.hrc> // fuer die EventIds +#include <svx/svxids.hrc> // fuer die EventIds #include <sfx2/linkmgr.hxx> #include <svtools/soerr.hxx> #include <fmtfsize.hxx> @@ -74,16 +74,16 @@ SV_IMPL_REF( SwServerObject ) void lcl_CallModify( SwGrfNode& rGrfNd, SfxPoolItem& rItem ) { //JP 4.7.2001: call fist all not SwNoTxtFrames, then the SwNoTxtFrames. - // The reason is, that in the SwNoTxtFrames the Graphic - // after a Paint will be swapped out! So all other "behind" - // them havent't a loaded Graphic. - #86501# + // The reason is, that in the SwNoTxtFrames the Graphic + // after a Paint will be swapped out! So all other "behind" + // them havent't a loaded Graphic. - #86501# rGrfNd.LockModify(); SwClientIter aIter( rGrfNd ); for( int n = 0; n < 2; ++n ) { SwClient * pLast = aIter.GoStart(); - if( pLast ) // konnte zum Anfang gesprungen werden ?? + if( pLast ) // konnte zum Anfang gesprungen werden ?? { do { if( (0 == n) ^ ( 0 != pLast->ISA( SwCntntFrm )) ) @@ -123,9 +123,9 @@ void SwBaseLink::DataChanged( const String& rMimeType, USHORT nEvent = 0; switch( sState.toInt32() ) { - case sfx2::LinkManager::STATE_LOAD_OK: nEvent = SVX_EVENT_IMAGE_LOAD; break; - case sfx2::LinkManager::STATE_LOAD_ERROR: nEvent = SVX_EVENT_IMAGE_ERROR; break; - case sfx2::LinkManager::STATE_LOAD_ABORT: nEvent = SVX_EVENT_IMAGE_ABORT; break; + case sfx2::LinkManager::STATE_LOAD_OK: nEvent = SVX_EVENT_IMAGE_LOAD; break; + case sfx2::LinkManager::STATE_LOAD_ERROR: nEvent = SVX_EVENT_IMAGE_ERROR; break; + case sfx2::LinkManager::STATE_LOAD_ABORT: nEvent = SVX_EVENT_IMAGE_ABORT; break; } SwFrmFmt* pFmt; @@ -136,7 +136,7 @@ void SwBaseLink::DataChanged( const String& rMimeType, pDoc->CallEvent( nEvent, aCallEvent ); } } - return; // das wars! + return; // das wars! } BOOL bUpdate = FALSE; @@ -190,12 +190,12 @@ void SwBaseLink::DataChanged( const String& rMimeType, bUpdate = TRUE; // Bug 33999: damit der Node den Transparent-Status - // richtig gesetzt hat, ohne auf die Grafik - // zugreifen zu muessen (sonst erfolgt ein SwapIn!). + // richtig gesetzt hat, ohne auf die Grafik + // zugreifen zu muessen (sonst erfolgt ein SwapIn!). if( bGraphicArrived ) { // Bug #34735#: immer mit der korrekten Grafik-Size - // arbeiten + // arbeiten if( aGrfSz.Height() && aGrfSz.Width() && aSz.Height() && aSz.Width() && aGrfSz != aSz ) @@ -330,7 +330,7 @@ BOOL SetGrfFlySize( const Size& rGrfSz, const Size& rFrmSz, SwGrfNode* pGrfNd ) //Hoehe und Breite uebernehmen aCalcSz = rFrmSz; - const SvxBoxItem &rBox = pFmt->GetBox(); + const SvxBoxItem &rBox = pFmt->GetBox(); aCalcSz.Width() += rBox.CalcLineSpace(BOX_LINE_LEFT) + rBox.CalcLineSpace(BOX_LINE_RIGHT); aCalcSz.Height()+= rBox.CalcLineSpace(BOX_LINE_TOP) + @@ -359,12 +359,12 @@ BOOL SetGrfFlySize( const Size& rGrfSz, const Size& rFrmSz, SwGrfNode* pGrfNd ) const BOOL bLastGrf = !pTblNd->GetTable().DecGrfsThatResize(); SwHTMLTableLayout *pLayout = pTblNd->GetTable().GetHTMLTableLayout(); - if( pLayout ) + if( pLayout ) { const USHORT nBrowseWidth = pLayout->GetBrowseWidthByTable( *pDoc ); if ( nBrowseWidth ) - { + { pLayout->Resize( nBrowseWidth, TRUE, TRUE, bLastGrf ? HTMLTABLE_RESIZE_NOW : 500 ); @@ -429,8 +429,8 @@ BOOL SwBaseLink::SwapIn( BOOL bWaitForData, BOOL bNativFormat ) String aMimeType( SotExchange::GetFormatMimeType( GetContentType() )); //!! ??? what have we here to do ???? -//!! if( bNativFormat ) -//!! aData.SetAspect( aData.GetAspect() | ASPECT_ICON ); +//!! if( bNativFormat ) +//!! aData.SetAspect( aData.GetAspect() | ASPECT_ICON ); uno::Any aValue; GetObj()->GetData( aValue, aMimeType, !IsSynchron() && bWaitForData ); @@ -443,8 +443,8 @@ BOOL SwBaseLink::SwapIn( BOOL bWaitForData, BOOL bNativFormat ) else if( 0 != ( bRes = aValue.hasValue() ) ) { //JP 14.04.99: Bug 64820 - das Flag muss beim SwapIn natuerlich - // zurueckgesetzt werden. Die Daten sollen ja neu - // uebernommen werden + // zurueckgesetzt werden. Die Daten sollen ja neu + // uebernommen werden bIgnoreDataChanged = FALSE; DataChanged( aMimeType, aValue ); } diff --git a/sw/source/core/docnode/swthreadjoiner.cxx b/sw/source/core/docnode/swthreadjoiner.cxx index 70997287e0ae..15df3505477d 100644 --- a/sw/source/core/docnode/swthreadjoiner.cxx +++ b/sw/source/core/docnode/swthreadjoiner.cxx @@ -2,7 +2,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/docnode/swthreadmanager.cxx b/sw/source/core/docnode/swthreadmanager.cxx index 5ec9aa6806ff..89e86c5aafee 100644 --- a/sw/source/core/docnode/swthreadmanager.cxx +++ b/sw/source/core/docnode/swthreadmanager.cxx @@ -2,7 +2,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/docnode/threadlistener.cxx b/sw/source/core/docnode/threadlistener.cxx index 3b5ce65244e2..749c0ce53809 100644 --- a/sw/source/core/docnode/threadlistener.cxx +++ b/sw/source/core/docnode/threadlistener.cxx @@ -2,7 +2,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/docnode/threadmanager.cxx b/sw/source/core/docnode/threadmanager.cxx index a1f829963a40..c42f476b4b3e 100644 --- a/sw/source/core/docnode/threadmanager.cxx +++ b/sw/source/core/docnode/threadmanager.cxx @@ -2,7 +2,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 |