Commit c66494a3 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin

Bug 30930 - Apply to all slides применяет эффект только к текущему слайду

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66573 954022d7-b5bf-4e40-9824-e11837661b57
parent d2f43fb2
...@@ -1585,6 +1585,7 @@ var historydescription_Document_RejectRevisionChange = 0x012a; ...@@ -1585,6 +1585,7 @@ var historydescription_Document_RejectRevisionChange = 0x012a;
var historydescription_Document_AcceptRevisionChangesBySelection = 0x012b; var historydescription_Document_AcceptRevisionChangesBySelection = 0x012b;
var historydescription_Document_RejectRevisionChangesBySelection = 0x012c; var historydescription_Document_RejectRevisionChangesBySelection = 0x012c;
var historydescription_Document_AddLetterUnion = 0x012d; var historydescription_Document_AddLetterUnion = 0x012d;
var historydescription_Presentation_ApplyTimingToAll = 0x012e;
......
...@@ -650,19 +650,31 @@ if(typeof CPresentation !== "undefined") ...@@ -650,19 +650,31 @@ if(typeof CPresentation !== "undefined")
if(CheckType === changestype_SlideTiming) if(CheckType === changestype_SlideTiming)
{ {
var selected_slides = editor.WordControl.Thumbnails.GetSelectedArray(); if(!AdditionalData || !AdditionalData.All)
for(var i = 0; i < selected_slides.length; ++i) {
var check_obj =
{
"type": c_oAscLockTypeElemPresentation.Slide,
"val": this.Slides[this.CurPage].timingLock.Get_Id(),
"guid": this.Slides[this.CurPage].timingLock.Get_Id()
};
this.Slides[this.CurPage].timingLock.Lock.Check(check_obj);
}
else{
for(var i = 0; i < this.Slides.length; ++i)
{ {
var check_obj = var check_obj =
{ {
"type": c_oAscLockTypeElemPresentation.Slide, "type": c_oAscLockTypeElemPresentation.Slide,
"val": this.Slides[selected_slides[i]].timingLock.Get_Id(), "val": this.Slides[i].timingLock.Get_Id(),
"guid": this.Slides[selected_slides[i]].timingLock.Get_Id() "guid": this.Slides[i].timingLock.Get_Id()
}; };
this.Slides[selected_slides[i]].timingLock.Lock.Check(check_obj); this.Slides[i].timingLock.Lock.Check(check_obj);
} }
} }
}
if(CheckType === changestype_Text_Props) if(CheckType === changestype_Text_Props)
{ {
if(cur_slide.deleteLock.Lock.Type !== locktype_Mine && cur_slide.deleteLock.Lock.Type !== locktype_None) if(cur_slide.deleteLock.Lock.Type !== locktype_Mine && cur_slide.deleteLock.Lock.Type !== locktype_None)
......
...@@ -4576,6 +4576,10 @@ asc_docs_api.prototype.ApplySlideTiming = function(oTiming) ...@@ -4576,6 +4576,10 @@ asc_docs_api.prototype.ApplySlideTiming = function(oTiming)
}; };
asc_docs_api.prototype.SlideTimingApplyToAll = function() asc_docs_api.prototype.SlideTimingApplyToAll = function()
{ {
if(this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_SlideTiming, {All: true}) === false)
{
History.Create_NewPoint(historydescription_Presentation_ApplyTimingToAll);
var _count = this.WordControl.m_oDrawingDocument.SlidesCount; var _count = this.WordControl.m_oDrawingDocument.SlidesCount;
var _cur = this.WordControl.m_oDrawingDocument.SlideCurrent; var _cur = this.WordControl.m_oDrawingDocument.SlideCurrent;
var _slides = this.WordControl.m_oLogicDocument.Slides; var _slides = this.WordControl.m_oLogicDocument.Slides;
...@@ -4593,6 +4597,7 @@ asc_docs_api.prototype.SlideTimingApplyToAll = function() ...@@ -4593,6 +4597,7 @@ asc_docs_api.prototype.SlideTimingApplyToAll = function()
_slides[i].applyTiming(_default); _slides[i].applyTiming(_default);
} }
}
}; };
asc_docs_api.prototype.SlideTransitionPlay = function() asc_docs_api.prototype.SlideTransitionPlay = function()
{ {
......
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