Commit 401f5707 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47505 954022d7-b5bf-4e40-9824-e11837661b57
parent 4802ca51
...@@ -658,6 +658,7 @@ function CDrawingDocument() ...@@ -658,6 +658,7 @@ function CDrawingDocument()
this.LastDrawingUrlSlide = ""; this.LastDrawingUrlSlide = "";
this.AutoShapesTrack = null; this.AutoShapesTrack = null;
this.TransitionSlide = new CTransitionAnimation(null);
this.GetTargetStyle = function() this.GetTargetStyle = function()
{ {
...@@ -4195,12 +4196,11 @@ function InitPanelAnimation() ...@@ -4195,12 +4196,11 @@ function InitPanelAnimation()
<option value=\"5\">UnCover</option>\ <option value=\"5\">UnCover</option>\
<option value=\"6\">Cover</option>\ <option value=\"6\">Cover</option>\
<option value=\"7\">Clock</option>\ <option value=\"7\">Clock</option>\
<option value=\"8\">Pan</option>\
<option value=\"9\">Zoom</option>\ <option value=\"9\">Zoom</option>\
</select>\ </select>\
<select id=\"animationParam\" style=\"width:170px;\" onchange=\"AnimationParam_Changed()\">\ <select id=\"animationParam\" style=\"width:170px;\" onchange=\"AnimationParam_Changed()\">\
</select>\ </select>\
Time <input id=\"animationSpeed\" style=\"width:70px;\" value=\"1.5\"/>\ Time <input id=\"animationSpeed\" style=\"width:70px;\" value=\"5.0\"/>\
<input id=\"animationPlay\" style=\"width:60px;\" type=\"button\" value=\"Play\"/>\ <input id=\"animationPlay\" style=\"width:60px;\" type=\"button\" value=\"Play\"/>\
<div>"; <div>";
...@@ -4216,6 +4216,12 @@ function InitPanelAnimation() ...@@ -4216,6 +4216,12 @@ function InitPanelAnimation()
_body_elem.appendChild(_div_animation_prop); _body_elem.appendChild(_div_animation_prop);
document.getElementById("animationPlay").onclick = AnimationPlay; document.getElementById("animationPlay").onclick = AnimationPlay;
$("#animationSpeed")
.focus(function(){editor.asc_enableKeyEvents(false);})
.blur(function(){editor.asc_enableKeyEvents(true);})
$("#id_viewer").mousedown(function(){ this.focus(); editor.asc_enableKeyEvents(true);});
} }
function AnimationType_Changed() function AnimationType_Changed()
...@@ -4334,12 +4340,11 @@ function AnimationPlay() ...@@ -4334,12 +4340,11 @@ function AnimationPlay()
[], [],
[c_oAscSlideTransitionParams.Fade_Smoothly, c_oAscSlideTransitionParams.Fade_Through_Black], [c_oAscSlideTransitionParams.Fade_Smoothly, c_oAscSlideTransitionParams.Fade_Through_Black],
[c_oAscSlideTransitionParams.Param_Bottom, c_oAscSlideTransitionParams.Param_Left, c_oAscSlideTransitionParams.Param_Right, c_oAscSlideTransitionParams.Param_Top], [c_oAscSlideTransitionParams.Param_Bottom, c_oAscSlideTransitionParams.Param_Left, c_oAscSlideTransitionParams.Param_Right, c_oAscSlideTransitionParams.Param_Top],
[c_oAscSlideTransitionParams.Param_Right, c_oAscSlideTransitionParams.Param_Top, c_oAscSlideTransitionParams.Param_Left, c_oAscSlideTransitionParams.Param_Bottom, c_oAscSlideTransitionParams.Param_TopRight, c_oAscSlideTransitionParams.Param_BottomRight, c_oAscSlideTransitionParams.Param_TopLeft, c_oAscSlideTransitionParams.Param_TopRight], [c_oAscSlideTransitionParams.Param_Right, c_oAscSlideTransitionParams.Param_Top, c_oAscSlideTransitionParams.Param_Left, c_oAscSlideTransitionParams.Param_Bottom, c_oAscSlideTransitionParams.Param_TopRight, c_oAscSlideTransitionParams.Param_BottomRight, c_oAscSlideTransitionParams.Param_TopLeft, c_oAscSlideTransitionParams.Param_BottomLeft],
[c_oAscSlideTransitionParams.Split_VerticalOut, c_oAscSlideTransitionParams.Split_HorizontalIn, c_oAscSlideTransitionParams.Split_HorizontalOut, c_oAscSlideTransitionParams.Split_VerticalIn], [c_oAscSlideTransitionParams.Split_VerticalOut, c_oAscSlideTransitionParams.Split_HorizontalIn, c_oAscSlideTransitionParams.Split_HorizontalOut, c_oAscSlideTransitionParams.Split_VerticalIn],
[c_oAscSlideTransitionParams.Param_Right, c_oAscSlideTransitionParams.Param_Top, c_oAscSlideTransitionParams.Param_Left, c_oAscSlideTransitionParams.Param_Bottom, c_oAscSlideTransitionParams.Param_TopRight, c_oAscSlideTransitionParams.Param_BottomRight, c_oAscSlideTransitionParams.Param_TopLeft, c_oAscSlideTransitionParams.Param_TopRight], [c_oAscSlideTransitionParams.Param_Right, c_oAscSlideTransitionParams.Param_Top, c_oAscSlideTransitionParams.Param_Left, c_oAscSlideTransitionParams.Param_Bottom, c_oAscSlideTransitionParams.Param_TopRight, c_oAscSlideTransitionParams.Param_BottomRight, c_oAscSlideTransitionParams.Param_TopLeft, c_oAscSlideTransitionParams.Param_BottomLeft],
[c_oAscSlideTransitionParams.Param_Right, c_oAscSlideTransitionParams.Param_Top, c_oAscSlideTransitionParams.Param_Left, c_oAscSlideTransitionParams.Param_Bottom, c_oAscSlideTransitionParams.Param_TopRight, c_oAscSlideTransitionParams.Param_BottomRight, c_oAscSlideTransitionParams.Param_TopLeft, c_oAscSlideTransitionParams.Param_TopRight], [c_oAscSlideTransitionParams.Param_Right, c_oAscSlideTransitionParams.Param_Top, c_oAscSlideTransitionParams.Param_Left, c_oAscSlideTransitionParams.Param_Bottom, c_oAscSlideTransitionParams.Param_TopRight, c_oAscSlideTransitionParams.Param_BottomRight, c_oAscSlideTransitionParams.Param_TopLeft, c_oAscSlideTransitionParams.Param_BottomLeft],
[c_oAscSlideTransitionParams.Clock_Clockwise, c_oAscSlideTransitionParams.Clock_Counterclockwise, c_oAscSlideTransitionParams.Clock_Wedge], [c_oAscSlideTransitionParams.Clock_Clockwise, c_oAscSlideTransitionParams.Clock_Counterclockwise, c_oAscSlideTransitionParams.Clock_Wedge],
[c_oAscSlideTransitionParams.Param_Bottom, c_oAscSlideTransitionParams.Param_Left, c_oAscSlideTransitionParams.Param_Right, c_oAscSlideTransitionParams.Param_Top],
[c_oAscSlideTransitionParams.Zoom_In, c_oAscSlideTransitionParams.Zoom_Out, c_oAscSlideTransitionParams.Zoom_AndRotate] [c_oAscSlideTransitionParams.Zoom_In, c_oAscSlideTransitionParams.Zoom_Out, c_oAscSlideTransitionParams.Zoom_AndRotate]
]; ];
...@@ -4350,7 +4355,13 @@ function AnimationPlay() ...@@ -4350,7 +4355,13 @@ function AnimationPlay()
function PlayAnimation(type, param, duration) function PlayAnimation(type, param, duration)
{ {
alert("type: " + type + ", param: " + param + ", duration: " + duration); //alert("type: " + type + ", param: " + param + ", duration: " + duration);
var _tr = editor.WordControl.m_oDrawingDocument.TransitionSlide;
_tr.Type = type;
_tr.Param = param;
_tr.Duration = 1000 * duration;
_tr.Start();
} }
function UnInitPanelAnimation() function UnInitPanelAnimation()
......
...@@ -140,6 +140,7 @@ function CEditorPage(api) ...@@ -140,6 +140,7 @@ function CEditorPage(api)
this.m_oLogicDocument = null; this.m_oLogicDocument = null;
this.m_oDrawingDocument.m_oWordControl = this; this.m_oDrawingDocument.m_oWordControl = this;
this.m_oDrawingDocument.TransitionSlide.HtmlPage = this;
this.m_oDrawingDocument.m_oLogicDocument = this.m_oLogicDocument; this.m_oDrawingDocument.m_oLogicDocument = this.m_oLogicDocument;
this.m_bIsUpdateHorRuler = false; this.m_bIsUpdateHorRuler = false;
...@@ -266,6 +267,10 @@ function CEditorPage(api) ...@@ -266,6 +267,10 @@ function CEditorPage(api)
this.Init = function() this.Init = function()
{ {
//-
InitPanelAnimation();
//-
this.m_oBody = CreateControlContainer(this.Name); this.m_oBody = CreateControlContainer(this.Name);
this.m_oBody.HtmlElement.style.backgroundColor = "#D3D3D3"; this.m_oBody.HtmlElement.style.backgroundColor = "#D3D3D3";
......
...@@ -255,8 +255,7 @@ var c_oAscSlideTransitionTypes = ...@@ -255,8 +255,7 @@ var c_oAscSlideTransitionTypes =
UnCover : 5, UnCover : 5,
Cover : 6, Cover : 6,
Clock : 7, Clock : 7,
Pan : 8, Zoom : 8,
Zoom : 9
}; };
var c_oAscSlideTransitionParams = var c_oAscSlideTransitionParams =
......
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