Commit ef24b593 authored by Sergey Luzyanin's avatar Sergey Luzyanin

добавлен параметр, отвечающий за зацикливание презентации

parent 2593ea5a
......@@ -5223,7 +5223,14 @@ background-repeat: no-repeat;\
}
}
obj.Timing = slide.timing;
if(slide.timing){
obj.Timing = slide.timing.createDuplicate();
}
else{
obj.Timing = Asc.CAscSlideTiming();
}
obj.Timing.ShowLoop = this.WordControl.m_oLogicDocument.isLoopShowMode();
obj.lockDelete = !(slide.deleteLock.Lock.Type === locktype_Mine || slide.deleteLock.Lock.Type === locktype_None);
obj.lockLayout = !(slide.layoutLock.Lock.Type === locktype_Mine || slide.layoutLock.Lock.Type === locktype_None);
obj.lockTiming = !(slide.timingLock.Lock.Type === locktype_Mine || slide.timingLock.Lock.Type === locktype_None);
......@@ -5646,6 +5653,11 @@ background-repeat: no-repeat;\
return;
var _curSlide = this.WordControl.m_oLogicDocument.Slides[_cur];
_curSlide.applyTiming(oTiming);
if(oTiming){
if(AscFormat.isRealBool(oTiming.get_ShowLoop()) && oTiming.get_ShowLoop() !== this.WordControl.m_oLogicDocument.isLoopShowMode()){
this.WordControl.m_oLogicDocument.setShowLoop(oTiming.get_ShowLoop());
}
}
}
this.WordControl.m_oLogicDocument.Document_UpdateInterfaceState();
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment