Commit fb0feea2 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@55679 954022d7-b5bf-4e40-9824-e11837661b57
parent e0cba5de
...@@ -134,9 +134,23 @@ var ACCENT_TEXT = 20; ...@@ -134,9 +134,23 @@ var ACCENT_TEXT = 20;
///////////////////////////////////////// /////////////////////////////////////////
var MCJC_CENTER = 0;
var MCJC_LEFT = 1;
var MCJC_RIGHT = 2;
var MCJC_INSIDE = 0;
var MCJC_OUTSIDE = 0;
var BASEJC_CENTER = 0; var BASEJC_CENTER = 0;
var BASEJC_TOP = 1; var BASEJC_TOP = 1;
var BASEJC_BOTTOM = 2; var BASEJC_BOTTOM = 2;
var BASEJC_INLINE = 0;
var BASEJC_INSIDE = 0;
var BASEJC_OUTSIDE = 0;
var JC_CENTER = 0;
var JC_CENTERGROUP = 1;
var JC_LEFT = 2;
var JC_RIGHT = 3;
var MATH_TEXT = 0; var MATH_TEXT = 0;
var MATH_RUN_PRP = 1; var MATH_RUN_PRP = 1;
...@@ -155,6 +169,10 @@ var BREAK_MIN_MIN = 0; ...@@ -155,6 +169,10 @@ var BREAK_MIN_MIN = 0;
var BREAK_PLUS_MIN = 1; var BREAK_PLUS_MIN = 1;
var BREAK_MIN_PLUS = 2; var BREAK_MIN_PLUS = 2;
var STY_BOLD = 0;
var STY_BI = 1;
var STY_ITALIC = 2;
var STY_PLAIN = 3;
var extend = function(Child, Parent) var extend = function(Child, Parent)
......
...@@ -35,6 +35,7 @@ function CMathMatrix() ...@@ -35,6 +35,7 @@ function CMathMatrix()
this.column = 0; this.column = 0;
//// ////
CMathBase.call(this); CMathBase.call(this);
} }
extend(CMathMatrix, CMathBase); extend(CMathMatrix, CMathBase);
...@@ -69,6 +70,9 @@ CMathMatrix.prototype.init = function(props) ...@@ -69,6 +70,9 @@ CMathMatrix.prototype.init = function(props)
if(props.baseJc === BASEJC_CENTER || props.baseJc === BASEJC_TOP || props.baseJc === BASEJC_BOTTOM) if(props.baseJc === BASEJC_CENTER || props.baseJc === BASEJC_TOP || props.baseJc === BASEJC_BOTTOM)
this.baseJc = props.baseJc; this.baseJc = props.baseJc;
if(props.mcJc == MCJC_CENTER || props.mcJc == MCJC_LEFT || props.mcJc == MCJC_RIGHT)
this.mcJc = props.mcJc;
this.setRuleGap(this.spaceColumn, props.cGpRule, props.cGp, props.cSp); this.setRuleGap(this.spaceColumn, props.cGpRule, props.cGp, props.cSp);
this.setRuleGap(this.spaceRow, props.rSpRule, props.rSp); this.setRuleGap(this.spaceRow, props.rSpRule, props.rSp);
......
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