Commit 324c842f authored by Alexander.Trofimov's avatar Alexander.Trofimov

ViewRulers

parent ecf363b9
...@@ -240,6 +240,7 @@ function asc_docs_api(name) ...@@ -240,6 +240,7 @@ function asc_docs_api(name)
this.isCoMarksDraw = false; this.isCoMarksDraw = false;
this.tmpCoMarksDraw = false; this.tmpCoMarksDraw = false;
this.tmpViewRulers = null;
// Spell Checking // Spell Checking
this.SpellCheckApi = (window["AscDesktopEditor"] === undefined) ? new AscCommon.CSpellCheckApi() : new CSpellCheckApi_desktop(); this.SpellCheckApi = (window["AscDesktopEditor"] === undefined) ? new AscCommon.CSpellCheckApi() : new CSpellCheckApi_desktop();
...@@ -6067,10 +6068,14 @@ asc_docs_api.prototype.asc_SetDocumentPlaceChangedEnabled = function(bEnabled) ...@@ -6067,10 +6068,14 @@ asc_docs_api.prototype.asc_SetDocumentPlaceChangedEnabled = function(bEnabled)
asc_docs_api.prototype.asc_SetViewRulers = function(bRulers) asc_docs_api.prototype.asc_SetViewRulers = function(bRulers)
{ {
return;
//if (false === this.bInit_word_control || true === this.isViewMode) //if (false === this.bInit_word_control || true === this.isViewMode)
// return; // return;
if (!this.isLoadFullApi) {
this.tmpViewRulers = bRulers;
return;
}
if (this.WordControl.m_bIsRuler != bRulers) if (this.WordControl.m_bIsRuler != bRulers)
{ {
this.WordControl.m_bIsRuler = bRulers; this.WordControl.m_bIsRuler = bRulers;
...@@ -6771,6 +6776,9 @@ asc_docs_api.prototype._onEndLoadSdk = function() { ...@@ -6771,6 +6776,9 @@ asc_docs_api.prototype._onEndLoadSdk = function() {
if (this.tmpFontRenderingMode) { if (this.tmpFontRenderingMode) {
this.SetFontRenderingMode(this.tmpFontRenderingMode); this.SetFontRenderingMode(this.tmpFontRenderingMode);
} }
if (null !== this.tmpViewRulers) {
this.asc_SetViewRulers(this.tmpViewRulers);
}
this.asc_setViewMode(this.isViewMode); this.asc_setViewMode(this.isViewMode);
this.asc_setDrawCollaborationMarks(this.tmpCoMarksDraw); this.asc_setDrawCollaborationMarks(this.tmpCoMarksDraw);
......
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