Commit a7b26691 authored by Oleg Korshul's avatar Oleg Korshul

refactoring

parent 4120ea4d
......@@ -142,8 +142,8 @@ function CTableOutlineDr()
// TABLE_STYLES
this.TableStylesLastLook = null;
this.TableStylesSheckLook = null;
this.TableStylesSheckLookFlag = false;
this.TableStylesСheckLook = null;
this.TableStylesСheckLookFlag = false;
this.TableStylesSendOne = false;
......@@ -2040,16 +2040,16 @@ CDrawingDocument.prototype =
///////////////////////////////////////////
StartTableStylesCheck : function()
{
this.TableStylesSheckLookFlag = true;
this.TableStylesСheckLookFlag = true;
},
EndTableStylesCheck : function()
{
this.TableStylesSheckLookFlag = false;
if (this.TableStylesSheckLook != null)
this.TableStylesСheckLookFlag = false;
if (this.TableStylesСheckLook != null)
{
this.CheckTableStyles(this.TableStylesSheckLook);
this.TableStylesSheckLook = null;
this.CheckTableStyles(this.TableStylesСheckLook);
this.TableStylesСheckLook = null;
}
},
......@@ -2071,9 +2071,9 @@ CDrawingDocument.prototype =
if (true === this.TableStylesSendOne)
return;
if (this.TableStylesSheckLookFlag)
if (this.TableStylesСheckLookFlag)
{
this.TableStylesSheckLook = tableLook;
this.TableStylesСheckLook = tableLook;
return;
}
......
......@@ -2093,8 +2093,8 @@ function CDrawingDocument()
this.TableStylesLastLook = null;
this.LastParagraphMargins = null;
this.TableStylesSheckLook = null;
this.TableStylesSheckLookFlag = false;
this.TableStylesСheckLook = null;
this.TableStylesСheckLookFlag = false;
this.InlineTextTrackEnabled = false;
this.InlineTextTrack = null;
......@@ -5765,24 +5765,24 @@ function CDrawingDocument()
this.StartTableStylesCheck = function ()
{
this.TableStylesSheckLookFlag = true;
this.TableStylesСheckLookFlag = true;
}
this.EndTableStylesCheck = function ()
{
this.TableStylesSheckLookFlag = false;
if (this.TableStylesSheckLook != null)
this.TableStylesСheckLookFlag = false;
if (this.TableStylesСheckLook != null)
{
this.CheckTableStyles(this.TableStylesSheckLook);
this.TableStylesSheckLook = null;
this.CheckTableStyles(this.TableStylesСheckLook);
this.TableStylesСheckLook = null;
}
}
this.CheckTableStyles = function (tableLook)
{
if (this.TableStylesSheckLookFlag)
if (this.TableStylesСheckLookFlag)
{
this.TableStylesSheckLook = tableLook;
this.TableStylesСheckLook = tableLook;
return;
}
......
......@@ -2510,10 +2510,10 @@ background-repeat: no-repeat;\
return;
this.WordControl.m_oDrawingDocument.StartTableStylesCheck();
this.WordControl.m_oDrawingDocument.TableStylesSheckLook = new Asc.CTablePropLook();
this.WordControl.m_oDrawingDocument.TableStylesSheckLook.FirstCol = true;
this.WordControl.m_oDrawingDocument.TableStylesSheckLook.FirstRow = true;
this.WordControl.m_oDrawingDocument.TableStylesSheckLook.BandHor = true;
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();
};
......
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