Commit bb88b1a4 authored by Oleg Korshul's avatar Oleg Korshul

refactoring

parent a7b26691
...@@ -740,6 +740,9 @@ function CDrawingDocument() ...@@ -740,6 +740,9 @@ function CDrawingDocument()
this.AutoShapesTrack = null; this.AutoShapesTrack = null;
this.TransitionSlide = new CTransitionAnimation(null); this.TransitionSlide = new CTransitionAnimation(null);
this.TableStylesСheckLook = null;
this.TableStylesСheckLookFlag = false;
this.MoveTargetInInputContext = function() this.MoveTargetInInputContext = function()
{ {
if (AscCommon.g_inputContext) if (AscCommon.g_inputContext)
...@@ -2697,8 +2700,29 @@ function CDrawingDocument() ...@@ -2697,8 +2700,29 @@ function CDrawingDocument()
_div_elem.appendChild(this.GuiCanvasFillTextureTextArt); _div_elem.appendChild(this.GuiCanvasFillTextureTextArt);
} }
this.StartTableStylesCheck = function ()
{
this.TableStylesСheckLookFlag = true;
}
this.EndTableStylesCheck = function ()
{
this.TableStylesСheckLookFlag = false;
if (this.TableStylesСheckLook != null)
{
this.CheckTableStyles(this.TableStylesСheckLook);
this.TableStylesСheckLook = null;
}
}
this.CheckTableStyles = function() this.CheckTableStyles = function()
{ {
if (this.TableStylesСheckLookFlag)
{
this.TableStylesСheckLook = tableLook;
return;
}
// сначала проверим, подписан ли кто на этот евент // сначала проверим, подписан ли кто на этот евент
// а то во вьюере не стоит ничего посылать // а то во вьюере не стоит ничего посылать
......
...@@ -2206,6 +2206,19 @@ background-repeat: no-repeat;\ ...@@ -2206,6 +2206,19 @@ background-repeat: no-repeat;\
this.sendEvent("asc_onClearPropObj", prop); this.sendEvent("asc_onClearPropObj", prop);
}; };
// mobile version methods:
asc_docs_api.prototype.asc_GetDefaultTableStyles = function()
{
if (!this.WordControl.m_oLogicDocument)
return;
this.WordControl.m_oDrawingDocument.StartTableStylesCheck();
this.WordControl.m_oDrawingDocument.TableStylesСheckLook = new Asc.CTablePropLook();
this.WordControl.m_oDrawingDocument.TableStylesСheckLook.FirstCol = true;
this.WordControl.m_oDrawingDocument.TableStylesСheckLook.FirstRow = true;
this.WordControl.m_oDrawingDocument.TableStylesСheckLook.BandHor = true;
this.WordControl.m_oDrawingDocument.EndTableStylesCheck();
};
asc_docs_api.prototype.CollectHeaders = function() asc_docs_api.prototype.CollectHeaders = function()
{ {
...@@ -6891,6 +6904,8 @@ background-repeat: no-repeat;\ ...@@ -6891,6 +6904,8 @@ background-repeat: no-repeat;\
asc_docs_api.prototype["asc_AddMath"] = asc_docs_api.prototype.asc_AddMath; asc_docs_api.prototype["asc_AddMath"] = asc_docs_api.prototype.asc_AddMath;
asc_docs_api.prototype["asc_SetMathProps"] = asc_docs_api.prototype.asc_SetMathProps; asc_docs_api.prototype["asc_SetMathProps"] = asc_docs_api.prototype.asc_SetMathProps;
// mobile
asc_docs_api.prototype["asc_GetDefaultTableStyles"] = asc_docs_api.prototype.asc_GetDefaultTableStyles;
asc_docs_api.prototype["asc_Remove"] = asc_docs_api.prototype.asc_Remove; asc_docs_api.prototype["asc_Remove"] = asc_docs_api.prototype.asc_Remove;
window['Asc']['asc_CCommentData'] = window['Asc'].asc_CCommentData = asc_CCommentData; window['Asc']['asc_CCommentData'] = window['Asc'].asc_CCommentData = asc_CCommentData;
......
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