Commit ef24b593 authored by Sergey Luzyanin's avatar Sergey Luzyanin

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

parent 2593ea5a
...@@ -5223,8 +5223,15 @@ background-repeat: no-repeat;\ ...@@ -5223,8 +5223,15 @@ background-repeat: no-repeat;\
} }
} }
obj.Timing = slide.timing; if(slide.timing){
obj.lockDelete = !(slide.deleteLock.Lock.Type === locktype_Mine || slide.deleteLock.Lock.Type === locktype_None); 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.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); obj.lockTiming = !(slide.timingLock.Lock.Type === locktype_Mine || slide.timingLock.Lock.Type === locktype_None);
obj.lockTranzition = !(slide.transitionLock.Lock.Type === locktype_Mine || slide.transitionLock.Lock.Type === locktype_None); obj.lockTranzition = !(slide.transitionLock.Lock.Type === locktype_Mine || slide.transitionLock.Lock.Type === locktype_None);
...@@ -5646,6 +5653,11 @@ background-repeat: no-repeat;\ ...@@ -5646,6 +5653,11 @@ background-repeat: no-repeat;\
return; return;
var _curSlide = this.WordControl.m_oLogicDocument.Slides[_cur]; var _curSlide = this.WordControl.m_oLogicDocument.Slides[_cur];
_curSlide.applyTiming(oTiming); _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(); 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