diff options
Diffstat (limited to 'starmath/source/document.cxx')
-rw-r--r-- | starmath/source/document.cxx | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index 8668fa061e2f..5e8504a52db6 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -898,7 +898,7 @@ void SmDocShell::Execute(SfxRequest& rReq) SmFormat aNewFormat( aOldFormat ); aNewFormat.SetTextmode(!aOldFormat.IsTextmode()); - ::svl::IUndoManager *pTmpUndoMgr = GetUndoManager(); + SfxUndoManager *pTmpUndoMgr = GetUndoManager(); if (pTmpUndoMgr) pTmpUndoMgr->AddUndoAction( new SmFormatAction(this, aOldFormat, aNewFormat)); @@ -941,7 +941,7 @@ void SmDocShell::Execute(SfxRequest& rReq) SmFormat aNewFormat( aOldFormat ); aFontTypeDialog.WriteTo(aNewFormat); - ::svl::IUndoManager *pTmpUndoMgr = GetUndoManager(); + SfxUndoManager *pTmpUndoMgr = GetUndoManager(); if (pTmpUndoMgr) pTmpUndoMgr->AddUndoAction( new SmFormatAction(this, aOldFormat, aNewFormat)); @@ -964,7 +964,7 @@ void SmDocShell::Execute(SfxRequest& rReq) aFontSizeDialog.WriteTo(aNewFormat); - ::svl::IUndoManager *pTmpUndoMgr = GetUndoManager(); + SfxUndoManager *pTmpUndoMgr = GetUndoManager(); if (pTmpUndoMgr) pTmpUndoMgr->AddUndoAction( new SmFormatAction(this, aOldFormat, aNewFormat)); @@ -987,7 +987,7 @@ void SmDocShell::Execute(SfxRequest& rReq) aDistanceDialog.WriteTo(aNewFormat); - ::svl::IUndoManager *pTmpUndoMgr = GetUndoManager(); + SfxUndoManager *pTmpUndoMgr = GetUndoManager(); if (pTmpUndoMgr) pTmpUndoMgr->AddUndoAction( new SmFormatAction(this, aOldFormat, aNewFormat)); @@ -1015,7 +1015,7 @@ void SmDocShell::Execute(SfxRequest& rReq) aAlignDialog.WriteTo( aFmt ); pp->GetConfig()->SetStandardFormat( aFmt ); - ::svl::IUndoManager *pTmpUndoMgr = GetUndoManager(); + SfxUndoManager *pTmpUndoMgr = GetUndoManager(); if (pTmpUndoMgr) pTmpUndoMgr->AddUndoAction( new SmFormatAction(this, aOldFormat, aNewFormat)); @@ -1037,7 +1037,7 @@ void SmDocShell::Execute(SfxRequest& rReq) case SID_UNDO: case SID_REDO: { - ::svl::IUndoManager* pTmpUndoMgr = GetUndoManager(); + SfxUndoManager* pTmpUndoMgr = GetUndoManager(); if( pTmpUndoMgr ) { sal_uInt16 nId = rReq.GetSlot(), nCnt = 1; @@ -1046,18 +1046,18 @@ void SmDocShell::Execute(SfxRequest& rReq) if( pArgs && SfxItemState::SET == pArgs->GetItemState( nId, false, &pItem )) nCnt = static_cast<const SfxUInt16Item*>(pItem)->GetValue(); - bool (::svl::IUndoManager:: *fnDo)(); + bool (SfxUndoManager:: *fnDo)(); size_t nCount; if( SID_UNDO == rReq.GetSlot() ) { nCount = pTmpUndoMgr->GetUndoActionCount(); - fnDo = &::svl::IUndoManager::Undo; + fnDo = &SfxUndoManager::Undo; } else { nCount = pTmpUndoMgr->GetRedoActionCount(); - fnDo = &::svl::IUndoManager::Redo; + fnDo = &SfxUndoManager::Redo; } try @@ -1150,28 +1150,28 @@ void SmDocShell::GetState(SfxItemSet &rSet) case SID_GETUNDOSTRINGS: case SID_GETREDOSTRINGS: { - ::svl::IUndoManager* pTmpUndoMgr = GetUndoManager(); + SfxUndoManager* pTmpUndoMgr = GetUndoManager(); if( pTmpUndoMgr ) { - OUString(::svl::IUndoManager:: *fnGetComment)( size_t, bool const ) const; + OUString(SfxUndoManager:: *fnGetComment)( size_t, bool const ) const; size_t nCount; if( SID_GETUNDOSTRINGS == nWh ) { nCount = pTmpUndoMgr->GetUndoActionCount(); - fnGetComment = &::svl::IUndoManager::GetUndoActionComment; + fnGetComment = &SfxUndoManager::GetUndoActionComment; } else { nCount = pTmpUndoMgr->GetRedoActionCount(); - fnGetComment = &::svl::IUndoManager::GetRedoActionComment; + fnGetComment = &SfxUndoManager::GetRedoActionComment; } if (nCount) { OUStringBuffer aBuf; for (size_t n = 0; n < nCount; ++n) { - aBuf.append((pTmpUndoMgr->*fnGetComment)( n, ::svl::IUndoManager::TopLevel )); + aBuf.append((pTmpUndoMgr->*fnGetComment)( n, SfxUndoManager::TopLevel )); aBuf.append('\n'); } @@ -1189,7 +1189,7 @@ void SmDocShell::GetState(SfxItemSet &rSet) } -::svl::IUndoManager *SmDocShell::GetUndoManager() +SfxUndoManager *SmDocShell::GetUndoManager() { if (!mpEditEngine) GetEditEngine(); |