diff options
author | Valentin Kettner <vakevk+libreoffice@gmail.com> | 2014-07-24 16:46:12 +0200 |
---|---|---|
committer | Valentin Kettner <vakevk+libreoffice@gmail.com> | 2014-08-12 23:26:36 +0200 |
commit | 69e5f335abcd838ad6dac04f8e2d14f39856dc43 (patch) | |
tree | 19b7e1a929576ec4da8ca981d8aee7a519b119bd /sw/source/core/doc/DocumentTimerManager.cxx | |
parent | 274f1811b92b870b8d450423d9b280b0889ca130 (diff) |
Refactored IDocumentFieldsAccess out of SwDoc.
Into the new class DocumentFieldsManager.
Removed SwDoc::_MakeFldList because it is not defined anywhere.
Also moved a few non interface methods that belong to the manager.
Change-Id: Icefd7ca7adcbb05a18d6fae0529fc54150b862fd
Diffstat (limited to 'sw/source/core/doc/DocumentTimerManager.cxx')
-rw-r--r-- | sw/source/core/doc/DocumentTimerManager.cxx | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/sw/source/core/doc/DocumentTimerManager.cxx b/sw/source/core/doc/DocumentTimerManager.cxx index d99f3da39115..3acbaf973a80 100644 --- a/sw/source/core/doc/DocumentTimerManager.cxx +++ b/sw/source/core/doc/DocumentTimerManager.cxx @@ -20,6 +20,7 @@ #include <doc.hxx> #include <DocumentSettingManager.hxx> +#include <IDocumentFieldsAccess.hxx> #include <rootfrm.hxx> #include <viewsh.hxx> #include <unotools/lingucfg.hxx> @@ -125,20 +126,20 @@ IMPL_LINK( DocumentTimerManager, DoIdleJobs, Timer *, pTimer ) SwFldUpdateFlags nFldUpdFlag = m_rSwdoc.GetDocumentSettingManager().getFieldUpdateFlags(true); if( ( AUTOUPD_FIELD_ONLY == nFldUpdFlag || AUTOUPD_FIELD_AND_CHARTS == nFldUpdFlag ) && - m_rSwdoc.GetUpdtFlds().IsFieldsDirty() + m_rSwdoc.getIDocumentFieldsAccess().GetUpdtFlds().IsFieldsDirty() // If we switch the field name the Fields are not updated. // So the "backgorund update" should always be carried out /* && !pStartSh->GetViewOptions()->IsFldName()*/ ) { - if ( m_rSwdoc.GetUpdtFlds().IsInUpdateFlds() || - m_rSwdoc.IsExpFldsLocked() ) + if ( m_rSwdoc.getIDocumentFieldsAccess().GetUpdtFlds().IsInUpdateFlds() || + m_rSwdoc.getIDocumentFieldsAccess().IsExpFldsLocked() ) { pTimer->Start(); return 0; } // Action brackets! - m_rSwdoc.GetUpdtFlds().SetInUpdateFlds( true ); + m_rSwdoc.getIDocumentFieldsAccess().GetUpdtFlds().SetInUpdateFlds( true ); pTmpRoot->StartAllAction(); @@ -146,17 +147,17 @@ IMPL_LINK( DocumentTimerManager, DoIdleJobs, Timer *, pTimer ) const bool bOldLockView = pStartSh->IsViewLocked(); pStartSh->LockView( true ); - m_rSwdoc.GetSysFldType( RES_CHAPTERFLD )->ModifyNotification( 0, 0 ); // ChapterField - m_rSwdoc.UpdateExpFlds( 0, false ); // Updates ExpressionFields - m_rSwdoc.UpdateTblFlds(NULL); // Tables - m_rSwdoc.UpdateRefFlds(NULL); // References + m_rSwdoc.getIDocumentFieldsAccess().GetSysFldType( RES_CHAPTERFLD )->ModifyNotification( 0, 0 ); // ChapterField + m_rSwdoc.getIDocumentFieldsAccess().UpdateExpFlds( 0, false ); // Updates ExpressionFields + m_rSwdoc.getIDocumentFieldsAccess().UpdateTblFlds(NULL); // Tables + m_rSwdoc.getIDocumentFieldsAccess().UpdateRefFlds(NULL); // References pTmpRoot->EndAllAction(); pStartSh->LockView( bOldLockView ); - m_rSwdoc.GetUpdtFlds().SetInUpdateFlds( false ); - m_rSwdoc.GetUpdtFlds().SetFieldsDirty( false ); + m_rSwdoc.getIDocumentFieldsAccess().GetUpdtFlds().SetInUpdateFlds( false ); + m_rSwdoc.getIDocumentFieldsAccess().GetUpdtFlds().SetFieldsDirty( false ); } } #ifdef TIMELOG |