Commit 043a16f0 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@55776 954022d7-b5bf-4e40-9824-e11837661b57
parent f45b748e
......@@ -113,6 +113,7 @@ function CEditorPage(api)
this.m_bIsHorScrollVisible = false;
this.m_bIsRuler = (api.isMobileVersion === true) ? false : true;
this.m_bDocumentPlaceChangedEnabled = false;
this.m_nZoomValue = 100;
this.m_oBoundsController = new CBoundsController();
......@@ -868,8 +869,8 @@ function CEditorPage(api)
this.HideRulers = function()
{
if (false === oThis.m_oApi.bInit_word_control)
return;
//if (false === oThis.m_oApi.bInit_word_control)
// return;
if (oThis.m_bIsRuler === false)
return;
......@@ -3106,6 +3107,9 @@ function CEditorPage(api)
this.m_oApi.asc_fireCallback("asc_onCurrentPage", lPage);
}
}
if (this.m_bDocumentPlaceChangedEnabled)
this.m_oApi.asc_fireCallback("asc_onDocumentPlaceChanged");
}
this.OnPaint = function()
......
......@@ -6542,10 +6542,16 @@ asc_docs_api.prototype.asc_setAutoSaveGap = function (autoSaveGap) {
}
};
asc_docs_api.prototype.asc_SetDocumentPlaceChangedEnabled = function(bEnabled)
{
if (this.WordControl)
this.WordControl.m_bDocumentPlaceChangedEnabled = bEnabled;
}
asc_docs_api.prototype.asc_SetViewRulers = function(bRulers)
{
if (false === this.bInit_word_control || true === this.isViewMode)
return;
//if (false === this.bInit_word_control || true === this.isViewMode)
// return;
if (this.WordControl.m_bIsRuler != bRulers)
{
......@@ -6556,8 +6562,8 @@ asc_docs_api.prototype.asc_SetViewRulers = function(bRulers)
}
asc_docs_api.prototype.asc_SetViewRulersChange = function()
{
if (false === this.bInit_word_control || true === this.isViewMode)
return;
//if (false === this.bInit_word_control || true === this.isViewMode)
// return;
this.WordControl.m_bIsRuler = !this.WordControl.m_bIsRuler;
this.WordControl.checkNeedRules();
......
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