summaryrefslogtreecommitdiff
path: root/sw/source/core/docnode/ndnum.cxx
diff options
context:
space:
mode:
authorKayo Hamid <revol.code@yahoo.com>2010-11-19 12:33:24 +0100
committerDavid Tardon <dtardon@redhat.com>2010-11-19 12:33:24 +0100
commit22a4f583949d7105c6675d8c4399cc0e85f665c0 (patch)
tree2d506cd4ffb119927afbf78a69fe8c02dec83b77 /sw/source/core/docnode/ndnum.cxx
parent29f764a2cda4811eeb1d7752cd204a778e0e30e3 (diff)
More clean code at writer
Diffstat (limited to 'sw/source/core/docnode/ndnum.cxx')
-rw-r--r--sw/source/core/docnode/ndnum.cxx77
1 files changed, 0 insertions, 77 deletions
diff --git a/sw/source/core/docnode/ndnum.cxx b/sw/source/core/docnode/ndnum.cxx
index ade8161b8a..c88a5fdfa3 100644
--- a/sw/source/core/docnode/ndnum.cxx
+++ b/sw/source/core/docnode/ndnum.cxx
@@ -125,83 +125,6 @@ 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 );
-//
-// //if( NO_NUMBERING == nOldLevel ) //#outline level,zhaojianwei
-// if( 0 == nOldLevel ) //<-end, zhaojianwei
-// {
-// // nicht vorhanden, also einfuegen
-// //ASSERT( !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() &&
-// nNd > GetEndOfRedlines().StartOfSectionNode()->GetIndex() )
-// return ;
-//
-// // jetzt noch alle nachfolgende Outline-Nodes updaten
-// if (! bSeekIdx)
-// {
-// // --> OD 2005-11-03 #125329#
-// // assure that node <pSrch> is in the correct nodes array
-// if ( &(pSrch->GetNodes()) == this )
-// {
-// pOutlineNds->Insert( pSrch );
-// }
-// else
-// {
-// ASSERT( false,
-// "<SwNodes::UpdateOutlineNode(..)> - node <pSrch> isn't in correct nodes array. This is a serious defect -> inform OD" );
-// }
-// // <--
-// }
-//
-// }
-// //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 ;
-//
-// {
-// SwTxtNode & rTxtNd = (SwTxtNode &) rNd;
-// SwPaM aPam(rTxtNd); // #115901#
-//
-// //if (nNewLevel != NO_NUMBERING) //#outline level,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
-//
-// //GetDoc()->SetNumRule(aPam, *GetDoc()->GetOutlineNumRule());
-// }
-// else
-// {
-// GetDoc()->DelNumRules(aPam);
-// }
-// }
-//
-// // 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 ?