Commit fd900ba1 authored by Oleg Korshul's avatar Oleg Korshul

mobile: asc_GetDefaultTableStyles method

parent 1564d215
......@@ -740,9 +740,6 @@ function CDrawingDocument()
this.AutoShapesTrack = null;
this.TransitionSlide = new CTransitionAnimation(null);
this.TableStylesСheckLook = null;
this.TableStylesСheckLookFlag = false;
this.MoveTargetInInputContext = function()
{
if (AscCommon.g_inputContext)
......@@ -2700,29 +2697,8 @@ function CDrawingDocument()
_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()
{
if (this.TableStylesСheckLookFlag)
{
this.TableStylesСheckLook = tableLook;
return;
}
// сначала проверим, подписан ли кто на этот евент
// а то во вьюере не стоит ничего посылать
......
......@@ -2209,15 +2209,15 @@ background-repeat: no-repeat;\
// mobile version methods:
asc_docs_api.prototype.asc_GetDefaultTableStyles = function()
{
if (!this.WordControl.m_oLogicDocument)
var logicDoc = this.WordControl.m_oLogicDocument;
if (!logicDoc)
return;
if (logicDoc.CurPage >= logicDoc.Slides.length)
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();
var tableLook = new CTableLook(true, true, false, false, true, false);
logicDoc.CheckTableStyles(logicDoc.Slides[logicDoc.CurPage], tableLook);
};
asc_docs_api.prototype.CollectHeaders = function()
......
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