summaryrefslogtreecommitdiff
path: root/sw/source/core/docnode/ndsect.cxx
diff options
context:
space:
mode:
authorValentin Kettner <vakevk+libreoffice@gmail.com>2014-08-01 17:09:54 +0200
committerValentin Kettner <vakevk+libreoffice@gmail.com>2014-08-12 23:26:38 +0200
commit64e13a1456c44ef3461c2941bb3be15c3eaf478e (patch)
treeb08e8a7b41e6c7b51a7145b9f7502765090f74b1 /sw/source/core/docnode/ndsect.cxx
parent9cc617afcde381dfe0164570771ee8c255bdbfbe (diff)
Refactored IDocumentState out of SwDoc.
Into the new class DocumentStateManager. Change-Id: I91c9097b091ff6118d58fd15fff2a4cefe0171fd
Diffstat (limited to 'sw/source/core/docnode/ndsect.cxx')
-rw-r--r--sw/source/core/docnode/ndsect.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/sw/source/core/docnode/ndsect.cxx b/sw/source/core/docnode/ndsect.cxx
index 1084d95420d6..c5f460cbf9b5 100644
--- a/sw/source/core/docnode/ndsect.cxx
+++ b/sw/source/core/docnode/ndsect.cxx
@@ -30,6 +30,7 @@
#include <IDocumentUndoRedo.hxx>
#include <IDocumentLinksAdministration.hxx>
#include <IDocumentFieldsAccess.hxx>
+#include <IDocumentState.hxx>
#include <rootfrm.hxx>
#include <pam.hxx>
#include <ndtxt.hxx>
@@ -378,7 +379,7 @@ SwDoc::InsertSwSection(SwPaM const& rRange, SwSectionData & rNewData,
GetFtnIdxs().UpdateFtn( SwNodeIndex( *pNewSectNode ));
}
- SetModified();
+ getIDocumentState().SetModified();
return &pNewSectNode->GetSection();
}
@@ -539,7 +540,7 @@ void SwDoc::DelSectionFmt( SwSectionFmt *pFmt, bool bDelNodes )
GetIDocumentUndoRedo().AppendUndo( new SwUndoDelete( aPaM ));
if( pFtnEndAtTxtEnd )
GetFtnIdxs().UpdateFtn( aUpdIdx );
- SetModified();
+ getIDocumentState().SetModified();
//#126178# start/end undo have to be pairs!
GetIDocumentUndoRedo().EndUndo(UNDO_DELSECTION, NULL);
return ;
@@ -553,7 +554,7 @@ void SwDoc::DelSectionFmt( SwSectionFmt *pFmt, bool bDelNodes )
getIDocumentContentOperations().DeleteSection( (SwNode*)pSectNd );
if( pFtnEndAtTxtEnd )
GetFtnIdxs().UpdateFtn( aUpdIdx );
- SetModified();
+ getIDocumentState().SetModified();
//#126178# start/end undo have to be pairs!
GetIDocumentUndoRedo().EndUndo(UNDO_DELSECTION, NULL);
return ;
@@ -600,7 +601,7 @@ void SwDoc::DelSectionFmt( SwSectionFmt *pFmt, bool bDelNodes )
GetIDocumentUndoRedo().EndUndo(UNDO_DELSECTION, NULL);
- SetModified();
+ getIDocumentState().SetModified();
}
void SwDoc::UpdateSection(sal_uInt16 const nPos, SwSectionData & rNewData,
@@ -646,7 +647,7 @@ void SwDoc::UpdateSection(sal_uInt16 const nPos, SwSectionData & rNewData,
// We don't want them.
::sw::UndoGuard const undoGuard(GetIDocumentUndoRedo());
pFmt->SetFmtAttr( *pAttr );
- SetModified();
+ getIDocumentState().SetModified();
}
return;
}
@@ -742,7 +743,7 @@ void SwDoc::UpdateSection(sal_uInt16 const nPos, SwSectionData & rNewData,
getIDocumentLinksAdministration().GetLinkManager().Remove( &pSection->GetBaseLink() );
}
- SetModified();
+ getIDocumentState().SetModified();
}
void sw_DeleteFtn( SwSectionNode *pNd, sal_uLong nStt, sal_uLong nEnd )