diff options
author | Oliver Specht <os@openoffice.org> | 2000-10-25 13:33:00 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2000-10-25 13:33:00 +0000 |
commit | 4e3e0dbbe113818fc483215c21dca49da6009745 (patch) | |
tree | e0374b68fa89c907fed9364e8de74b224e9d2a25 | |
parent | ec3a9d4c467a1f5b854a72c3ee61665b66881307 (diff) |
ChgSection: additional parameter to prevent update of file links
-rw-r--r-- | sw/inc/doc.hxx | 6 | ||||
-rw-r--r-- | sw/source/core/docnode/ndsect.cxx | 9 |
2 files changed, 8 insertions, 7 deletions
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx index ae4b211020f7..fbe8ea1ac398 100644 --- a/sw/inc/doc.hxx +++ b/sw/inc/doc.hxx @@ -2,9 +2,9 @@ * * $RCSfile: doc.hxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: jp $ $Date: 2000-10-05 12:04:44 $ + * last change: $Author: os $ $Date: 2000-10-25 14:32:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1486,7 +1486,7 @@ public: const SwSectionFmts& GetSections() const { return *pSectionFmtTbl; } SwSectionFmt *MakeSectionFmt( SwSectionFmt *pDerivedFrom ); void DelSectionFmt( SwSectionFmt *pFmt, sal_Bool bDelNodes = sal_False ); - void ChgSection( sal_uInt16 nSect, const SwSection&, const SfxItemSet* = 0 ); + void ChgSection( sal_uInt16 nSect, const SwSection&, const SfxItemSet* = 0, sal_Bool bPreventLinkUpdate = FALSE); String GetUniqueSectionName( const String* pChkStr = 0 ) const; // Passwort fuer geschuetzte Bereiche erfragen/setzen diff --git a/sw/source/core/docnode/ndsect.cxx b/sw/source/core/docnode/ndsect.cxx index d3ce4dec727e..9515df2a2204 100644 --- a/sw/source/core/docnode/ndsect.cxx +++ b/sw/source/core/docnode/ndsect.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ndsect.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-19 00:08:17 $ + * last change: $Author: os $ $Date: 2000-10-25 14:33:00 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -611,7 +611,8 @@ void SwDoc::DelSectionFmt( SwSectionFmt *pFmt, BOOL bDelNodes ) } void SwDoc::ChgSection( USHORT nPos, const SwSection& rSect, - const SfxItemSet* pAttr ) + const SfxItemSet* pAttr, + sal_Bool bPreventLinkUpdate ) { SwSectionFmt* pFmt = (*pSectionFmtTbl)[ nPos ]; SwSection* pSection = pFmt->GetSection(); @@ -706,7 +707,7 @@ void SwDoc::ChgSection( USHORT nPos, const SwSection& rSect, } if( bUpdate ) - pSection->CreateLink( CREATE_UPDATE ); + pSection->CreateLink( bPreventLinkUpdate ? CREATE_CONNECT : CREATE_UPDATE ); else if( !pSection->IsLinkType() && pSection->IsConnected() ) { pSection->Disconnect(); |