#i110010# disable undo while importing ppt

This commit is contained in:
Christian Lippka 2010-03-12 12:04:51 +01:00
parent 5c37cad1cd
commit 730aeac396

View file

@ -255,6 +255,8 @@ sal_Bool ImplSdPPTImport::Import()
return FALSE; return FALSE;
pSdrModel->setLock( sal_True ); pSdrModel->setLock( sal_True );
pSdrModel->EnableUndo(false);
SdrOutliner& rOutl = mpDoc->GetDrawOutliner(); SdrOutliner& rOutl = mpDoc->GetDrawOutliner();
sal_uInt32 nControlWord = rOutl.GetEditEngine().GetControlWord(); sal_uInt32 nControlWord = rOutl.GetEditEngine().GetControlWord();
nControlWord |= EE_CNTRL_ULSPACESUMMATION; nControlWord |= EE_CNTRL_ULSPACESUMMATION;
@ -1413,6 +1415,7 @@ sal_Bool ImplSdPPTImport::Import()
xDocProps->setTemplateName(::rtl::OUString()); xDocProps->setTemplateName(::rtl::OUString());
pSdrModel->setLock( sal_False ); pSdrModel->setLock( sal_False );
pSdrModel->EnableUndo(true);
return bOk; return bOk;
} }