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/anchoreddrawobject.cxx | |
parent | 9cc617afcde381dfe0164570771ee8c255bdbfbe (diff) |
Refactored IDocumentState out of SwDoc.
Into the new class DocumentStateManager.
Change-Id: I91c9097b091ff6118d58fd15fff2a4cefe0171fd
Diffstat (limited to 'sw/source/core/layout/anchoreddrawobject.cxx')
-rw-r--r-- | sw/source/core/layout/anchoreddrawobject.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/layout/anchoreddrawobject.cxx b/sw/source/core/layout/anchoreddrawobject.cxx index 09451a5a1448..43aeb13c2498 100644 --- a/sw/source/core/layout/anchoreddrawobject.cxx +++ b/sw/source/core/layout/anchoreddrawobject.cxx @@ -28,6 +28,7 @@ #include <vector> #include <svx/svdogrp.hxx> #include <DocumentSettingManager.hxx> +#include <IDocumentState.hxx> #include <txtfly.hxx> using namespace ::com::sun::star; @@ -657,12 +658,12 @@ const SwRect SwAnchoredDrawObject::GetObjBoundRect() const if ( nTargetWidth != aCurrObjRect.GetWidth( ) || nTargetHeight != aCurrObjRect.GetHeight( ) ) { SwDoc* pDoc = const_cast<SwDoc*>(GetPageFrm()->GetFmt()->GetDoc()); - bool bModified = pDoc->IsModified(); + bool bModified = pDoc->getIDocumentState().IsModified(); const_cast< SdrObject* >( GetDrawObj() )->Resize( aCurrObjRect.TopLeft(), Fraction( nTargetWidth, aCurrObjRect.GetWidth() ), Fraction( nTargetHeight, aCurrObjRect.GetHeight() ), false ); if (!bModified) - pDoc->ResetModified(); + pDoc->getIDocumentState().ResetModified(); } } return GetDrawObj()->GetCurrentBoundRect(); |