#i110010# disable undo while importing ppt
This commit is contained in:
parent
5c37cad1cd
commit
730aeac396
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue