Commit a5ae8f75 authored by Oleg Korshul's avatar Oleg Korshul

reporter mode developing...

parent ac1f3981
......@@ -5335,6 +5335,9 @@ function CSlideDrawer()
this.CheckSlide = function(slideNum)
{
if (this.m_oWordControl.m_oApi.isReporterMode)
return;
if (this.m_oWordControl.m_oApi.isSaveFonts_Images)
{
this.IsRecalculateSlide = true;
......@@ -5460,6 +5463,9 @@ function CSlideDrawer()
this.DrawSlide = function(outputCtx, scrollX, scrollX_max, scrollY, scrollY_max, slideNum)
{
if (this.m_oWordControl.m_oApi.isReporterMode)
return;
var _rect = this.m_oWordControl.m_oDrawingDocument.SlideCurrectRect;
var _bounds = this.BoundsChecker.Bounds;
......
This diff is collapsed.
......@@ -651,6 +651,31 @@
this.reporterStartObject = null;
this.isReporterMode = ("reporter" == config['using']) ? true : false;
if (this.isReporterMode)
{
var _windowOnResize = function() {
if (undefined != window._resizeTimeout && -1 != window._resizeTimeout)
clearTimeout(window._resizeTimeout);
window._resizeTimeout = setTimeout(function() {
window.editor.Resize();
window._resizeTimeout = -1;
}, 50);
};
if (window.addEventListener)
{
window.addEventListener("resize", _windowOnResize, false);
}
else if (window.attachEvent)
{
window.attachEvent("onresize", _windowOnResize);
}
else
{
window["onresize"] = _windowOnResize;
}
}
if (this.isReporterMode)
this.watermarkDraw = null;
......@@ -5558,7 +5583,7 @@ background-repeat: no-repeat;\
return;
}
this.WordControl.setNodesEnable((this.isViewMode || this.isMobileVersion) ? false : true);
this.WordControl.setNodesEnable(((this.isViewMode || this.isMobileVersion) && !this.isReporterMode) ? false : true);
if (isViewMode)
{
this.ShowParaMarks = false;
......@@ -5819,7 +5844,7 @@ background-repeat: no-repeat;\
asc_docs_api.prototype.StartDemonstration = function(div_id, slidestart_num, reporterStartObject)
{
if (reporterStartObject)
if (reporterStartObject && !this.isReporterMode)
this.DemonstrationReporterStart(reporterStartObject);
this.WordControl.DemonstrationManager.Start(div_id, slidestart_num, true);
......
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