Commit fd4f5198 authored by Oleg Korshul's avatar Oleg Korshul

hide rulers & unprinted symbols in onlyComment & onlyForms mode

parent 696d89b8
...@@ -1009,6 +1009,12 @@ background-repeat: no-repeat;\ ...@@ -1009,6 +1009,12 @@ background-repeat: no-repeat;\
if (this.WordControl.MobileTouchManager) if (this.WordControl.MobileTouchManager)
this.WordControl.MobileTouchManager.delegate.LogicDocument = this.WordControl.m_oLogicDocument; this.WordControl.MobileTouchManager.delegate.LogicDocument = this.WordControl.m_oLogicDocument;
if (this.restrictions == Asc.c_oAscRestrictionType.OnlyForms || this.restrictions == Asc.c_oAscRestrictionType.OnlyComments)
{
this.ShowParaMarks = false;
this.WordControl.HideRulers();
}
}; };
asc_docs_api.prototype.InitViewer = function() asc_docs_api.prototype.InitViewer = function()
...@@ -3351,6 +3357,9 @@ background-repeat: no-repeat;\ ...@@ -3351,6 +3357,9 @@ background-repeat: no-repeat;\
} }
*/ */
if (this.restrictions == Asc.c_oAscRestrictionType.OnlyForms || this.restrictions == Asc.c_oAscRestrictionType.OnlyComments)
isShow = false;
this.ShowParaMarks = isShow; this.ShowParaMarks = isShow;
this.WordControl.OnRePaintAttack(); this.WordControl.OnRePaintAttack();
...@@ -5201,6 +5210,7 @@ background-repeat: no-repeat;\ ...@@ -5201,6 +5210,7 @@ background-repeat: no-repeat;\
editor.WordControl.m_oDrawingDocument.FirePaint(); editor.WordControl.m_oDrawingDocument.FirePaint();
} }
}; };
//----------------------------------------------------------------- //-----------------------------------------------------------------
// Функции для работы с комментариями // Функции для работы с комментариями
//----------------------------------------------------------------- //-----------------------------------------------------------------
......
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