Commit 9941a8c9 authored by Anna.Pavlova's avatar Anna.Pavlova Committed by Alexander.Trofimov

Удалена неиспользуемая функция

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68588 954022d7-b5bf-4e40-9824-e11837661b57
parent 1b715b17
......@@ -931,183 +931,6 @@ CMathMatrix.prototype.Apply_MenuProps = function(Props)
}
}
};
CMathMatrix.prototype.old_Apply_MenuProps = function(Type, Gap)
{
var NextPos, McJc;
var ColumnCount = this.getColsCount(),
RowPos = this.Get_RowPos(this.CurPos),
ColumnPos = this.Get_ColumnPos(this.CurPos);
switch(Type)
{
case c_oAscMathMenuTypes.MatrixAddRowUnder:
{
NextPos = (RowPos + 1)*ColumnCount; // позиция для вставки массива контентов
this.Add_Row(NextPos);
break;
}
case c_oAscMathMenuTypes.MatrixAddRowOver:
{
NextPos = RowPos*ColumnCount;
this.Add_Row(NextPos);
break;
}
case c_oAscMathMenuTypes.MatrixRemoveRow:
{
if(this.getRowsCount() > 1)
this.Remove_Row(RowPos);
break;
}
case c_oAscMathMenuTypes.MatrixAddColumnToLeft:
{
this.Add_Column(ColumnPos);
break;
}
case c_oAscMathMenuTypes.MatrixAddColumnToRight:
{
this.Add_Column(ColumnPos + 1);
break;
}
case c_oAscMathMenuTypes.MatrixRemoveColumn:
{
if(ColumnCount > 1)
this.Remove_Column(ColumnPos);
break;
}
case c_oAscMathMenuTypes.MatrixBaseJcCenter:
{
this.SetBaseJc(BASEJC_CENTER);
break;
}
case c_oAscMathMenuTypes.MatrixBaseJcTop:
{
this.SetBaseJc(BASEJC_TOP);
break;
}
case c_oAscMathMenuTypes.MatrixBaseJcBottom:
{
this.SetBaseJc(BASEJC_BOTTOM);
break;
}
case c_oAscMathMenuTypes.MatrixColumnJcCenter:
{
McJc = this.Pr.Get_ColumnMcJc(ColumnPos);
if(MCJC_CENTER !== McJc)
{
History.Add(this, new CChangesMathMatrixColumnJc(MCJC_CENTER, McJc, ColumnPos));
this.raw_SetColumnJc(MCJC_CENTER, ColumnPos);
}
break;
}
case c_oAscMathMenuTypes.MatrixColumnJcLeft:
{
McJc = this.Pr.Get_ColumnMcJc(ColumnPos);
if(MCJC_LEFT !== McJc)
{
History.Add(this, new CChangesMathMatrixColumnJc(MCJC_LEFT, McJc, ColumnPos));
this.raw_SetColumnJc(MCJC_LEFT, ColumnPos);
}
break;
}
case c_oAscMathMenuTypes.MatrixColumnJcRight:
{
McJc = this.Pr.Get_ColumnMcJc(ColumnPos);
if(MCJC_RIGHT !== McJc)
{
History.Add(this, new CChangesMathMatrixColumnJc(MCJC_RIGHT, McJc, ColumnPos));
this.raw_SetColumnJc(MCJC_RIGHT, ColumnPos);
}
break;
}
case c_oAscMathMenuTypes.MatrixRowSingleGap:
{
this.Modify_Interval(this.SpaceRow, 0, 0);
break;
}
case c_oAscMathMenuTypes.MatrixRowOneAndHalfGap:
{
this.Modify_Interval(this.SpaceRow, 1, 0);
break;
}
case c_oAscMathMenuTypes.MatrixRowDoubleGap:
{
this.Modify_Interval(this.SpaceRow, 2, 0);
break;
}
case c_oAscMathMenuTypes.MatrixRowExactlyGap:
{
if(Gap >= 0 && Gap <= 31680)
{
this.Modify_Interval(this.SpaceRow, 3, Gap);
}
break;
}
case c_oAscMathMenuTypes.MatrixRowMultipleGap:
{
if(Gap >= 0 && Gap <= 111)
{
this.Modify_Interval(this.SpaceRow, 4, Gap);
}
break;
}
case c_oAscMathMenuTypes.MatrixColumnSingleGap:
{
this.Modify_Interval(this.SpaceColumn, 0, 0);
break;
}
case c_oAscMathMenuTypes.MatrixColumnOneAndHalfGap:
{
this.Modify_Interval(this.SpaceColumn, 1, 0);
break;
}
case c_oAscMathMenuTypes.MatrixColumnDoubleGap:
{
this.Modify_Interval(this.SpaceColumn, 2, 0);
break;
}
case c_oAscMathMenuTypes.MatrixColumnExactlyGap:
{
if(Gap >= 0 && Gap <= 31680)
{
this.Modify_Interval(this.SpaceColumn, 3, Gap);
}
break;
}
case c_oAscMathMenuTypes.MatrixColumnMultipleGap:
{
if(Gap >= 0 && Gap <= 263)
{
this.Modify_Interval(this.SpaceColumn, 4, Gap);
}
break;
}
case c_oAscMathMenuTypes.MatrixHidePlaceholders:
{
History.Add(this, new CChangesMathMatrixPlh(!this.Pr.plcHide, this.Pr.plcHide));
this.raw_HidePlh(!this.Pr.plcHide);
break;
}
case c_oAscMathMenuTypes.MatrixMinColumnWidth:
{
if(this.Pr.cSp !== Gap)
{
History.Add(this, new CChangesMathMatrixMinColumnWidth(Gap, this.Pr.cSp));
this.raw_Set_MinColumnWidth(Gap);
}
break;
}
}
};
CMathMatrix.prototype.Get_InterfaceProps = function()
{
return new CMathMenuMatrix(this);
......
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