summaryrefslogtreecommitdiff
path: root/sw/source/core/edit/ednumber.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-08-14 15:09:35 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-08-14 15:09:35 +0000
commit0fb3a5fb2187802cf4b512f9a0e921c7637b9695 (patch)
tree4eb3f2a909f25408d5b13fdb72b9cebf1ddd3415 /sw/source/core/edit/ednumber.cxx
parentc1a1da263ce173485d2a457c2039cd1e1f1a25d6 (diff)
INTEGRATION: CWS writercorehandoff (1.13.140); FILE MERGED
2006/03/17 08:05:03 tra 1.13.140.10: RESYNC: (1.18-1.19); FILE MERGED 2006/01/19 08:50:06 fme 1.13.140.9: #i50348# General cleanup - removed unused header files, functions, members, declarations 2005/12/20 15:10:39 tra 1.13.140.8: RESYNC: (1.16-1.18); FILE MERGED 2005/11/04 12:57:59 tra 1.13.140.7: #i50348# 2005/09/28 14:00:48 tra 1.13.140.6: #i50348# 2005/09/13 13:34:46 tra 1.13.140.5: RESYNC: (1.14-1.15); FILE MERGED 2005/07/19 13:25:43 tra 1.13.140.4: RESYNC: (1.13-1.14); FILE MERGED 2005/07/13 13:24:21 fme 1.13.140.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:44 fme 1.13.140.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:25 tra 1.13.140.1: Unnecessary includes removed #i50348#
Diffstat (limited to 'sw/source/core/edit/ednumber.cxx')
-rw-r--r--sw/source/core/edit/ednumber.cxx53
1 files changed, 20 insertions, 33 deletions
diff --git a/sw/source/core/edit/ednumber.cxx b/sw/source/core/edit/ednumber.cxx
index 3a216b9d16c9..e3ffdf8307dc 100644
--- a/sw/source/core/edit/ednumber.cxx
+++ b/sw/source/core/edit/ednumber.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: ednumber.cxx,v $
*
- * $Revision: 1.19 $
+ * $Revision: 1.20 $
*
- * last change: $Author: kz $ $Date: 2006-01-06 12:59:16 $
+ * last change: $Author: hr $ $Date: 2006-08-14 16:09:35 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -33,7 +33,6 @@
*
************************************************************************/
-
#pragma hdrstop
#ifndef _HINTIDS_HXX
@@ -48,21 +47,9 @@
#ifndef _DOC_HXX
#include <doc.hxx>
#endif
-#ifndef _PAM_HXX
-#include <pam.hxx>
-#endif
#ifndef _NDTXT_HXX
#include <ndtxt.hxx>
#endif
-#ifndef _VISCRS_HXX
-#include <viscrs.hxx>
-#endif
-#ifndef _NUMRULE_HXX
-#include <numrule.hxx>
-#endif
-#ifndef _HINTS_HXX
-#include <hints.hxx>
-#endif
#ifndef _PARATR_HXX
#include <paratr.hxx>
#endif
@@ -185,12 +172,12 @@ BOOL SwEditShell::NoNum()
SwPaM* pCrsr = GetCrsr();
if( pCrsr->GetNext() != pCrsr ) // Mehrfachselektion ?
{
- GetDoc()->StartUndo( UNDO_START );
+ GetDoc()->StartUndo( UNDO_START, NULL );
SwPamRanges aRangeArr( *pCrsr );
SwPaM aPam( *pCrsr->GetPoint() );
for( USHORT n = 0; n < aRangeArr.Count(); ++n )
bRet = bRet && GetDoc()->NoNum( aRangeArr.SetPam( n, aPam ));
- GetDoc()->EndUndo( UNDO_END );
+ GetDoc()->EndUndo( UNDO_END, NULL );
}
else
bRet = GetDoc()->NoNum( *pCrsr );
@@ -250,12 +237,12 @@ BOOL SwEditShell::DelNumRules()
SwPaM* pCrsr = GetCrsr();
if( pCrsr->GetNext() != pCrsr ) // Mehrfachselektion ?
{
- GetDoc()->StartUndo( UNDO_START );
+ GetDoc()->StartUndo( UNDO_START, NULL );
SwPamRanges aRangeArr( *pCrsr );
SwPaM aPam( *pCrsr->GetPoint() );
for( USHORT n = 0; n < aRangeArr.Count(); ++n )
bRet = bRet && GetDoc()->DelNumRules( aRangeArr.SetPam( n, aPam ) );
- GetDoc()->EndUndo( UNDO_END );
+ GetDoc()->EndUndo( UNDO_END, NULL );
}
else
bRet = GetDoc()->DelNumRules( *pCrsr );
@@ -287,12 +274,12 @@ BOOL SwEditShell::NumUpDown( BOOL bDown )
bRet = GetDoc()->NumUpDown( *pCrsr, bDown );
else
{
- GetDoc()->StartUndo( UNDO_START );
+ GetDoc()->StartUndo( UNDO_START, NULL );
SwPamRanges aRangeArr( *pCrsr );
SwPaM aPam( *pCrsr->GetPoint() );
for( USHORT n = 0; n < aRangeArr.Count(); ++n )
bRet = bRet && GetDoc()->NumUpDown( aRangeArr.SetPam( n, aPam ), bDown );
- GetDoc()->EndUndo( UNDO_END );
+ GetDoc()->EndUndo( UNDO_END, NULL );
}
GetDoc()->SetModified();
@@ -446,7 +433,7 @@ BOOL SwEditShell::MoveNumParas( BOOL bUpperLower, BOOL bUpperLeft )
ULONG nStt = aPos.nNode.GetIndex(), nIdx = nStt - 1;
while( nIdx && (
( pNd = GetDoc()->GetNodes()[ nIdx ])->IsSectionNode() ||
- ( pNd->IsEndNode() && pNd->FindStartNode()->IsSectionNode())))
+ ( pNd->IsEndNode() && pNd->StartOfSectionNode()->IsSectionNode())))
--nIdx;
if( GetDoc()->GetNodes()[ nIdx ]->IsTxtNode() )
nOffset = nIdx - nStt;
@@ -465,7 +452,7 @@ BOOL SwEditShell::MoveNumParas( BOOL bUpperLower, BOOL bUpperLeft )
pNd = GetDoc()->GetNodes()[ nIdx ];
if (pNd->IsSectionNode() ||
- ( pNd->IsEndNode() && pNd->FindStartNode()->IsSectionNode()) ||
+ ( pNd->IsEndNode() && pNd->StartOfSectionNode()->IsSectionNode()) ||
( pNd->IsTxtNode() && pOrig == ((SwTxtNode*)pNd)->GetNumRule() &&
((SwTxtNode*)pNd)->GetLevel() > nUpperLevel ))
{
@@ -540,13 +527,13 @@ BOOL SwEditShell::OutlineUpDown( short nOffset )
bRet = GetDoc()->OutlineUpDown( *pCrsr, nOffset );
else
{
- GetDoc()->StartUndo( UNDO_START );
+ GetDoc()->StartUndo( UNDO_START, NULL );
SwPamRanges aRangeArr( *pCrsr );
SwPaM aPam( *pCrsr->GetPoint() );
for( USHORT n = 0; n < aRangeArr.Count(); ++n )
bRet = bRet && GetDoc()->OutlineUpDown(
aRangeArr.SetPam( n, aPam ), nOffset );
- GetDoc()->EndUndo( UNDO_END );
+ GetDoc()->EndUndo( UNDO_END, NULL );
}
GetDoc()->SetModified();
EndAllAction();
@@ -754,16 +741,16 @@ void SwEditShell::SetCurNumRule( const SwNumRule& rRule )
SwPaM* pCrsr = GetCrsr();
if( pCrsr->GetNext() != pCrsr ) // Mehrfachselektion ?
{
- GetDoc()->StartUndo( UNDO_START );
+ GetDoc()->StartUndo( UNDO_START, NULL );
SwPamRanges aRangeArr( *pCrsr );
SwPaM aPam( *pCrsr->GetPoint() );
for( USHORT n = 0; n < aRangeArr.Count(); ++n )
- {
+ {
aRangeArr.SetPam( n, aPam );
GetDoc()->SetNumRule( aPam, rRule );
GetDoc()->SetCounted( aPam, true );
- }
- GetDoc()->EndUndo( UNDO_END );
+ }
+ GetDoc()->EndUndo( UNDO_END, NULL );
}
else
{
@@ -806,12 +793,12 @@ void SwEditShell::SetNumRuleStart( BOOL bFlag )
SwPaM* pCrsr = GetCrsr();
if( pCrsr->GetNext() != pCrsr ) // Mehrfachselektion ?
{
- GetDoc()->StartUndo( UNDO_START );
+ GetDoc()->StartUndo( UNDO_START, NULL );
SwPamRanges aRangeArr( *pCrsr );
SwPaM aPam( *pCrsr->GetPoint() );
for( USHORT n = 0; n < aRangeArr.Count(); ++n )
GetDoc()->SetNumRuleStart( *aRangeArr.SetPam( n, aPam ).GetPoint(), bFlag );
- GetDoc()->EndUndo( UNDO_END );
+ GetDoc()->EndUndo( UNDO_END, NULL );
}
else
GetDoc()->SetNumRuleStart( *pCrsr->GetPoint(), bFlag );
@@ -835,12 +822,12 @@ void SwEditShell::SetNodeNumStart( USHORT nStt )
SwPaM* pCrsr = GetCrsr();
if( pCrsr->GetNext() != pCrsr ) // Mehrfachselektion ?
{
- GetDoc()->StartUndo( UNDO_START );
+ GetDoc()->StartUndo( UNDO_START, NULL );
SwPamRanges aRangeArr( *pCrsr );
SwPaM aPam( *pCrsr->GetPoint() );
for( USHORT n = 0; n < aRangeArr.Count(); ++n )
GetDoc()->SetNodeNumStart( *aRangeArr.SetPam( n, aPam ).GetPoint(), nStt );
- GetDoc()->EndUndo( UNDO_END );
+ GetDoc()->EndUndo( UNDO_END, NULL );
}
else
GetDoc()->SetNodeNumStart( *pCrsr->GetPoint(), nStt );