Commit 062d9d37 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@53213 954022d7-b5bf-4e40-9824-e11837661b57
parent cedceeac
...@@ -386,9 +386,18 @@ CFraction.prototype.findDisposition = function( mCoord ) ...@@ -386,9 +386,18 @@ CFraction.prototype.findDisposition = function( mCoord )
} }
CFraction.prototype.getPropsForWrite = function() CFraction.prototype.getPropsForWrite = function()
{ {
var props = var type = null;
{ if (this.type == BAR_FRACTION)
type: this.type type = 0;
else if (this.type == LINEAR_FRACTION)
type = 1;
else if (this.type == NO_BAR_FRACTION)
type = 2;
else if (this.type == SKEWED_FRACTION)
type = 3;
var props = {
type: type
}; };
return props; return props;
} }
......
...@@ -214,16 +214,20 @@ CNary.prototype.getLowerIterator = function() ...@@ -214,16 +214,20 @@ CNary.prototype.getLowerIterator = function()
if (!this.subHide) if (!this.subHide)
return this.elements[0][0].getLowerIterator(); return this.elements[0][0].getLowerIterator();
} }
CNary.prototype.getPropsForWhite = function() CNary.prototype.getPropsForWrite = function()
{ {
var props = {}; var limloc = null;
if (this.limLoc == NARY_SubSup)
props.limLoc = (this.limLoc == NARY_UndOvr) ? NARY_UndOvr : NARY_SubSup; limLoc = 0;
props.chr = String.fromCharCode(this.code); else if (this.limLoc == NARY_UndOvr)
props.supHide = this.supHide; limLoc = 1;
props.subHide = this.subHide; var props = {
props.grow = this.grow; chr: String.fromCharCode(this.code),
grow: this.grow,
limLoc: limLoc,
subHide: this.subHide,
supHide: this.supHide
};
return props; return props;
} }
......
...@@ -3885,11 +3885,23 @@ CGroupCharacter.prototype.old_getGlyph = function(code, type) ...@@ -3885,11 +3885,23 @@ CGroupCharacter.prototype.old_getGlyph = function(code, type)
} }
CGroupCharacter.prototype.getPropsForWrite = function() CGroupCharacter.prototype.getPropsForWrite = function()
{ {
var props = {}; var vertJc = null;
if (this.vertJc == VJUST_BOT)
props.vertJ = this.vertJust; vertJc = 0;
props.pos = this.loc; else if ( this.vertJc == VJUST_TOP)
props.chr = this.operator.getChr(); vertJc = 1;
var pos = null;
if (this.loc == LOCATION_BOT)
pos = 0;
else if ( this.loc == LOCATION_TOP)
pos = 1;
var props = {
chr: this.operator.getChr(),
pos: pos,
vertJc: vertJc
};
return props; return props;
} }
\ No newline at end of file
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