summaryrefslogtreecommitdiff
path: root/sw/source/core/docnode/ndnum.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/docnode/ndnum.cxx')
-rw-r--r--sw/source/core/docnode/ndnum.cxx80
1 files changed, 40 insertions, 40 deletions
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 )