diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-08-23 07:43:40 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-08-23 07:43:40 +0000 |
commit | 2b1b1f88ebb32c56d798fc1361f75c294a1f5eb5 (patch) | |
tree | 8f874e409686bd0b90279bf33d6292d4a5d61c01 /sw/source | |
parent | f13f0c2219ea0e369a56c9cca6bf5644f5eb79aa (diff) |
INTEGRATION: CWS tune03 (1.13.28); FILE MERGED
2004/07/19 19:10:50 mhu 1.13.28.1: #i29979# Added SW_DLLPUBLIC/PRIVATE (see swdllapi.h) to exported symbols/classes.
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/crsr/pam.cxx | 60 |
1 files changed, 32 insertions, 28 deletions
diff --git a/sw/source/core/crsr/pam.cxx b/sw/source/core/crsr/pam.cxx index 99251a884d7c..b7a5ef898209 100644 --- a/sw/source/core/crsr/pam.cxx +++ b/sw/source/core/crsr/pam.cxx @@ -2,9 +2,9 @@ * * $RCSfile: pam.cxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: rt $ $Date: 2004-06-16 15:29:08 $ + * last change: $Author: rt $ $Date: 2004-08-23 08:43:40 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -128,12 +128,6 @@ inline xub_StrLen GetSttOrEnd( BOOL bCondition, const SwCntntNode& rNd ) *************************************************************************/ -SwPosition::SwPosition(const SwPosition &rPos) - : nNode(rPos.nNode),nContent(rPos.nContent) -{ -} - - SwPosition::SwPosition( const SwNodeIndex &rNode, const SwIndex &rCntnt ) : nNode( rNode ),nContent( rCntnt ) { @@ -150,6 +144,11 @@ SwPosition::SwPosition( const SwNode& rNode ) } +SwPosition::SwPosition(const SwPosition &rPos) + : nNode(rPos.nNode),nContent(rPos.nContent) +{ +} + SwPosition &SwPosition::operator=(const SwPosition &rPos) { nNode = rPos.nNode; @@ -497,13 +496,6 @@ SwPaM::SwPaM( const SwNode& rMk, xub_StrLen nMkCntnt, pPoint = &aBound2; } -SwPaM::SwPaM( SwPaM &rPam ) - : Ring( &rPam ), aBound1( *(rPam.pPoint) ), aBound2( *(rPam.pMark) ), bIsInFrontOfLabel(FALSE) -{ - pPoint = &aBound1; - pMark = rPam.HasMark() ? &aBound2 : pPoint; -} - SwPaM::SwPaM( const SwNode& rNd, xub_StrLen nCntnt, SwPaM* pRing ) : Ring( pRing ), aBound1( rNd ), aBound2( rNd ), bIsInFrontOfLabel(FALSE) { @@ -522,6 +514,31 @@ SwPaM::SwPaM( const SwNodeIndex& rNd, xub_StrLen nCntnt, SwPaM* pRing ) SwPaM::~SwPaM() {} +// @@@ semantic: no copy ctor. +SwPaM::SwPaM( SwPaM &rPam ) + : Ring( &rPam ), + aBound1( *(rPam.pPoint) ), + aBound2( *(rPam.pMark) ), + bIsInFrontOfLabel(FALSE) +{ + pPoint = &aBound1; + pMark = rPam.HasMark() ? &aBound2 : pPoint; +} + +// @@@ semantic: no copy assignment for super class Ring. +SwPaM &SwPaM::operator=( const SwPaM &rPam ) +{ + *pPoint = *( rPam.pPoint ); + if( rPam.HasMark() ) + { + SetMark(); + *pMark = *( rPam.pMark ); + } + else + DeleteMark(); + return *this; +} + void SwPaM::SetMark() { if(pPoint == &aBound1) @@ -554,19 +571,6 @@ void SwPaM::SetInFrontOfLabel(FASTBOOL _bIsInFrontOfLabel) bIsInFrontOfLabel = _bIsInFrontOfLabel; } -SwPaM &SwPaM::operator=( SwPaM &rPam ) -{ - *pPoint = *( rPam.pPoint ); - if( rPam.HasMark() ) - { - SetMark(); - *pMark = *( rPam.pMark ); - } - else - DeleteMark(); - return *this; -} - // Bewegen des Cursors |