Commit f580d59e 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@47689 954022d7-b5bf-4e40-9824-e11837661b57
parent 5e0f2ddf
...@@ -219,6 +219,7 @@ function CEditorPage(api) ...@@ -219,6 +219,7 @@ function CEditorPage(api)
this.DemonstrationDivEndPresentation = null; this.DemonstrationDivEndPresentation = null;
this.PresentationPlayTimerId = -1; this.PresentationPlayTimerId = -1;
this.DemonstrationEndShowMessage = ""; this.DemonstrationEndShowMessage = "";
this.DemonstrationTransition = null;
this.DefaultSlideDuration = 30000; this.DefaultSlideDuration = 30000;
// ввод текста через дивку (привет китайцам) // ввод текста через дивку (привет китайцам)
......
...@@ -92,9 +92,50 @@ function CTransitionAnimation(htmlpage) ...@@ -92,9 +92,50 @@ function CTransitionAnimation(htmlpage)
this.Rect.h = _slideH; this.Rect.h = _slideH;
} }
this.Start = function() this.CalculateRectDemonstration = function()
{ {
this.CalculateRect(); var _width = this.HtmlPage.DemonstrationCanvas.width;
var _height = this.HtmlPage.DemonstrationCanvas.height;
var _w_mm = this.HtmlPage.m_oLogicDocument.Width;
var _h_mm = this.HtmlPage.m_oLogicDocument.Height;
// проверим аспект
var aspectDisplay = _width / _height;
var aspectPres = _w_mm / _h_mm;
var _l = 0;
var _t = 0;
var _w = 0;
var _h = 0;
if (aspectPres > aspectDisplay)
{
_w = _width;
_h = _w / aspectPres;
_l = 0;
_t = (_height - _h) >> 1;
}
else
{
_h = _height;
_w = _h * aspectPres;
_t = 0;
_l = (_width - _w) >> 1;
}
this.Rect.x = _l;
this.Rect.y = _t;
this.Rect.w = _w
this.Rect.h = _h;
}
this.Start = function(is_demonstration)
{
if (true === is_demonstration)
this.CalculateRectDemonstration();
else
this.CalculateRect();
var _currentSlide = this.HtmlPage.m_oDrawingDocument.SlideCurrent; var _currentSlide = this.HtmlPage.m_oDrawingDocument.SlideCurrent;
if (_currentSlide >= this.HtmlPage.m_oDrawingDocument.SlidesCount) if (_currentSlide >= this.HtmlPage.m_oDrawingDocument.SlidesCount)
......
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