diff options
author | Valentin Kettner <vakevk+libreoffice@gmail.com> | 2014-08-01 17:09:54 +0200 |
---|---|---|
committer | Valentin Kettner <vakevk+libreoffice@gmail.com> | 2014-08-12 23:26:38 +0200 |
commit | 64e13a1456c44ef3461c2941bb3be15c3eaf478e (patch) | |
tree | b08e8a7b41e6c7b51a7145b9f7502765090f74b1 /sw/source/core/layout/colfrm.cxx | |
parent | 9cc617afcde381dfe0164570771ee8c255bdbfbe (diff) |
Refactored IDocumentState out of SwDoc.
Into the new class DocumentStateManager.
Change-Id: I91c9097b091ff6118d58fd15fff2a4cefe0171fd
Diffstat (limited to 'sw/source/core/layout/colfrm.cxx')
-rw-r--r-- | sw/source/core/layout/colfrm.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/layout/colfrm.cxx b/sw/source/core/layout/colfrm.cxx index c35553baccfc..c6c44e6c3595 100644 --- a/sw/source/core/layout/colfrm.cxx +++ b/sw/source/core/layout/colfrm.cxx @@ -29,6 +29,7 @@ #include "sectfrm.hxx" #include "switerator.hxx" #include "ftnfrm.hxx" +#include <IDocumentState.hxx> SwColumnFrm::SwColumnFrm( SwFrmFmt *pFmt, SwFrm* pSib ): SwFtnBossFrm( pFmt, pSib ) @@ -94,7 +95,7 @@ static SwLayoutFrm * lcl_FindColumns( SwLayoutFrm *pLay, sal_uInt16 nCount ) static bool lcl_AddColumns( SwLayoutFrm *pCont, sal_uInt16 nCount ) { SwDoc *pDoc = pCont->GetFmt()->GetDoc(); - const bool bMod = pDoc->IsModified(); + const bool bMod = pDoc->getIDocumentState().IsModified(); //Formats should be shared whenever possible. If a neighbour already has //the same column settings we can add them to the same format. @@ -154,7 +155,7 @@ static bool lcl_AddColumns( SwLayoutFrm *pCont, sal_uInt16 nCount ) } if ( !bMod ) - pDoc->ResetModified(); + pDoc->getIDocumentState().ResetModified(); return bRet; } |