diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-11-03 17:37:56 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-11-03 17:59:22 +0100 |
commit | 093d54326f94467bc1601c14a38454efcc888017 (patch) | |
tree | d4ec8827733b43b05a7107db07c1348a82a25095 /sw/source/core/doc/DocumentTimerManager.cxx | |
parent | 9aa43559eafd93d0ec99399c3e5d22ac8d806feb (diff) |
sw: s/m_rSwdoc/m_rDoc/g
... because i can type m_rDoc but "m_rSwdoc" always comes out m_rSwDoc.
Change-Id: Id50888012da6cf3cf7aebc52e8c70fc359c6e073
Diffstat (limited to 'sw/source/core/doc/DocumentTimerManager.cxx')
-rw-r--r-- | sw/source/core/doc/DocumentTimerManager.cxx | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/sw/source/core/doc/DocumentTimerManager.cxx b/sw/source/core/doc/DocumentTimerManager.cxx index 180b50b46d61..444f36e7a2db 100644 --- a/sw/source/core/doc/DocumentTimerManager.cxx +++ b/sw/source/core/doc/DocumentTimerManager.cxx @@ -38,7 +38,7 @@ namespace sw { -DocumentTimerManager::DocumentTimerManager( SwDoc& i_rSwdoc ) : m_rSwdoc( i_rSwdoc ), +DocumentTimerManager::DocumentTimerManager( SwDoc& i_rSwdoc ) : m_rDoc( i_rSwdoc ), mbStartIdleTimer( false ), mIdleBlockCount( 0 ) { @@ -85,12 +85,12 @@ IMPL_LINK( DocumentTimerManager, DoIdleJobs, Timer *, pTimer ) pModLogFile = new ::rtl::Logfile( "First DoIdleJobs" ); #endif - SwRootFrm* pTmpRoot = m_rSwdoc.getIDocumentLayoutAccess().GetCurrentLayout(); + SwRootFrm* pTmpRoot = m_rDoc.getIDocumentLayoutAccess().GetCurrentLayout(); if( pTmpRoot && - !SfxProgress::GetActiveProgress( m_rSwdoc.GetDocShell() ) ) + !SfxProgress::GetActiveProgress( m_rDoc.GetDocShell() ) ) { SwViewShell *pSh, *pStartSh; - pSh = pStartSh = m_rSwdoc.getIDocumentLayoutAccess().GetCurrentViewShell(); + pSh = pStartSh = m_rDoc.getIDocumentLayoutAccess().GetCurrentViewShell(); do { if( pSh->ActionPend() ) { @@ -108,9 +108,9 @@ IMPL_LINK( DocumentTimerManager, DoIdleJobs, Timer *, pTimer ) UPN_IS_GRAMMAR_AUTO ) ) >>= bIsAutoGrammar; if (bIsOnlineSpell && bIsAutoGrammar) - StartGrammarChecking( m_rSwdoc ); + StartGrammarChecking( m_rDoc ); } - std::set<SwRootFrm*> aAllLayouts = m_rSwdoc.GetAllLayouts(); + std::set<SwRootFrm*> aAllLayouts = m_rDoc.GetAllLayouts(); std::set<SwRootFrm*>::iterator pLayIter = aAllLayouts.begin(); for ( ;pLayIter != aAllLayouts.end();++pLayIter ) { @@ -124,23 +124,23 @@ IMPL_LINK( DocumentTimerManager, DoIdleJobs, Timer *, pTimer ) } } - SwFldUpdateFlags nFldUpdFlag = m_rSwdoc.GetDocumentSettingManager().getFieldUpdateFlags(true); + SwFldUpdateFlags nFldUpdFlag = m_rDoc.GetDocumentSettingManager().getFieldUpdateFlags(true); if( ( AUTOUPD_FIELD_ONLY == nFldUpdFlag || AUTOUPD_FIELD_AND_CHARTS == nFldUpdFlag ) && - m_rSwdoc.getIDocumentFieldsAccess().GetUpdtFlds().IsFieldsDirty() + m_rDoc.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.getIDocumentFieldsAccess().GetUpdtFlds().IsInUpdateFlds() || - m_rSwdoc.getIDocumentFieldsAccess().IsExpFldsLocked() ) + if ( m_rDoc.getIDocumentFieldsAccess().GetUpdtFlds().IsInUpdateFlds() || + m_rDoc.getIDocumentFieldsAccess().IsExpFldsLocked() ) { pTimer->Start(); return 0; } // Action brackets! - m_rSwdoc.getIDocumentFieldsAccess().GetUpdtFlds().SetInUpdateFlds( true ); + m_rDoc.getIDocumentFieldsAccess().GetUpdtFlds().SetInUpdateFlds( true ); pTmpRoot->StartAllAction(); @@ -148,17 +148,17 @@ IMPL_LINK( DocumentTimerManager, DoIdleJobs, Timer *, pTimer ) const bool bOldLockView = pStartSh->IsViewLocked(); pStartSh->LockView( true ); - 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 + m_rDoc.getIDocumentFieldsAccess().GetSysFldType( RES_CHAPTERFLD )->ModifyNotification( 0, 0 ); // ChapterField + m_rDoc.getIDocumentFieldsAccess().UpdateExpFlds( 0, false ); // Updates ExpressionFields + m_rDoc.getIDocumentFieldsAccess().UpdateTblFlds(NULL); // Tables + m_rDoc.getIDocumentFieldsAccess().UpdateRefFlds(NULL); // References pTmpRoot->EndAllAction(); pStartSh->LockView( bOldLockView ); - m_rSwdoc.getIDocumentFieldsAccess().GetUpdtFlds().SetInUpdateFlds( false ); - m_rSwdoc.getIDocumentFieldsAccess().GetUpdtFlds().SetFieldsDirty( false ); + m_rDoc.getIDocumentFieldsAccess().GetUpdtFlds().SetInUpdateFlds( false ); + m_rDoc.getIDocumentFieldsAccess().GetUpdtFlds().SetFieldsDirty( false ); } } #ifdef TIMELOG |