Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
9b873f8a
Commit
9b873f8a
authored
Dec 01, 2016
by
Ilya Kirillov
Committed by
GitHub
Dec 01, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #84 from ONLYOFFICE/release/v4.2.0
Release/v4.2.0
parents
5220aebd
a4df5ad8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
101 additions
and
79 deletions
+101
-79
common/browser.js
common/browser.js
+26
-5
word/Editor/Serialize2.js
word/Editor/Serialize2.js
+73
-72
word/Editor/Table.js
word/Editor/Table.js
+2
-2
No files found.
common/browser.js
View file @
9b873f8a
...
...
@@ -116,18 +116,39 @@ AscBrowser.checkZoom = function()
if
(
AscBrowser
.
isAndroid
)
return
;
AscBrowser
.
zoom
=
1.0
;
AscBrowser
.
isRetina
=
false
;
if
(
AscBrowser
.
isChrome
&&
!
AscBrowser
.
isOpera
&&
document
&&
document
.
firstElementChild
&&
document
.
body
)
{
document
.
firstElementChild
.
style
.
zoom
=
"
reset
"
;
AscBrowser
.
zoom
=
document
.
body
.
clientWidth
/
window
.
innerWidth
;
if
(
window
.
innerWidth
>
300
)
AscBrowser
.
zoom
=
window
.
outerWidth
/
window
.
innerWidth
;
if
(
Math
.
abs
(
AscBrowser
.
zoom
-
1
)
<
0.1
)
AscBrowser
.
zoom
=
1
;
AscBrowser
.
zoom
=
window
.
outerWidth
/
window
.
innerWidth
;
var
_devicePixelRatio
=
window
.
devicePixelRatio
/
AscBrowser
.
zoom
;
// device pixel ratio: кратно 0.5
_devicePixelRatio
=
(
5
*
(((
2.5
+
10
*
_devicePixelRatio
)
/
5
)
>>
0
))
/
10
;
AscBrowser
.
zoom
=
window
.
devicePixelRatio
/
_devicePixelRatio
;
if
(
2
==
_devicePixelRatio
)
AscBrowser
.
isRetina
=
true
;
// chrome 54.x: zoom = "reset" - clear retina zoom (windows)
//document.firstElementChild.style.zoom = "reset";
document
.
firstElementChild
.
style
.
zoom
=
1.0
/
AscBrowser
.
zoom
;
}
else
{
AscBrowser
.
isRetina
=
(
Math
.
abs
(
2
-
(
window
.
devicePixelRatio
/
AscBrowser
.
zoom
))
<
0.01
);
}
};
AscBrowser
.
checkZoom
();
// detect retina (http://habrahabr.ru/post/159419/)
AscBrowser
.
isRetina
=
(
Math
.
abs
(
2
-
(
window
.
devicePixelRatio
/
AscBrowser
.
zoom
))
<
0.01
);
//--------------------------------------------------------export----------------------------------------------------
window
[
'
AscCommon
'
]
=
window
[
'
AscCommon
'
]
||
{};
...
...
word/Editor/Serialize2.js
View file @
9b873f8a
...
...
@@ -9115,7 +9115,7 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, curFoo
oDrawing.ParaMath = oMathPara;
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
boMathr
.
ReadMathArg
(
t
,
l
,
oMathPara
.
Root
);
return oThis.boMathr.ReadMathArg(t,l,oMathPara.Root
, oParStruct
);
});
oMathPara.Root.Correct_Content(true);
}
...
...
@@ -9951,7 +9951,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
return res;
};
this
.
ReadMathAcc
=
function
(
type
,
length
,
props
,
oParent
,
oContent
)
this.ReadMathAcc = function(type, length, props, oParent, oContent
, oParStruct
)
{
var res = c_oSerConstants.ReadOk;
var oThis = this;
...
...
@@ -9969,7 +9969,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
else if (c_oSer_OMathContentType.Element === type)
{
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oContent
.
content
);
return oThis.ReadMathArg(t,l,oContent.content
, oParStruct
);
});
}
else
...
...
@@ -10032,7 +10032,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
{
var oContent = {};
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathAcc
(
t
,
l
,
props
,
oElem
,
oContent
);
return oThis.ReadMathAcc(t,l,props,oElem,oContent
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.ArgPr === type)
...
...
@@ -10046,21 +10046,21 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
{
var oContent = {};
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathBar
(
t
,
l
,
props
,
oElem
,
oContent
);
return oThis.ReadMathBar(t,l,props,oElem, oContent
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.BorderBox === type)
{
var oContent = {};
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathBorderBox
(
t
,
l
,
props
,
oElem
,
oContent
);
return oThis.ReadMathBorderBox(t,l,props,oElem, oContent
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.Box === type)
{
var oContent = {};
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathBox
(
t
,
l
,
props
,
oElem
,
oContent
);
return oThis.ReadMathBox(t,l,props,oElem,oContent
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.CtrlPr === type)
...
...
@@ -10074,14 +10074,14 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
{
var arrContent = [];
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathDelimiter
(
t
,
l
,
props
,
oElem
,
arrContent
);
return oThis.ReadMathDelimiter(t,l,props,oElem,arrContent
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.EqArr === type)
{
var arrContent = [];
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathEqArr
(
t
,
l
,
props
,
oElem
,
arrContent
);
return oThis.ReadMathEqArr(t,l,props,oElem,arrContent
, oParStruct
);
});
if (props.mcJc)
{
...
...
@@ -10100,7 +10100,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
var oElemDen = {};
var oElemNum = {};
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathFraction
(
t
,
l
,
props
,
oElem
,
oElemDen
,
oElemNum
);
return oThis.ReadMathFraction(t,l,props,oElem,oElemDen,oElemNum
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.Func === type)
...
...
@@ -10108,14 +10108,14 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
var oContent = {};
var oName = {};
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathFunc
(
t
,
l
,
props
,
oElem
,
oContent
,
oName
);
return oThis.ReadMathFunc(t,l,props,oElem,oContent,oName
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.GroupChr === type)
{
var oContent = {};
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathGroupChr
(
t
,
l
,
props
,
oElem
,
oContent
);
return oThis.ReadMathGroupChr(t,l,props,oElem,oContent
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.LimLow === type)
...
...
@@ -10123,7 +10123,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
var oContent = {};
var oLim = {};
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathLimLow
(
t
,
l
,
props
,
oElem
,
oContent
,
oLim
);
return oThis.ReadMathLimLow(t,l,props,oElem,oContent,oLim
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.LimUpp === type)
...
...
@@ -10131,7 +10131,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
var oContent = {};
var oLim = {};
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathLimUpp
(
t
,
l
,
props
,
oElem
,
oContent
,
oLim
);
return oThis.ReadMathLimUpp(t,l,props,oElem,oContent,oLim
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.Matrix === type)
...
...
@@ -10139,7 +10139,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
var arrContent = [];
props.mcs = [];
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathMatrix
(
t
,
l
,
props
,
arrContent
);
return oThis.ReadMathMatrix(t, l, props, arrContent
, oParStruct
);
});
if (oElem) {
//create props by content, important before creation matrix
...
...
@@ -10171,7 +10171,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
var cell = row[j];
this.stream.Seek2(cell.pos);
res = this.bcr.Read1(cell.length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oMatrix
.
getElement
(
i
,
j
));
return oThis.ReadMathArg(t, l, oMatrix.getElement(i, j)
, oParStruct
);
});
}
}
...
...
@@ -10184,25 +10184,26 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
var oSub = {};
var oSup = {};
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathNary
(
t
,
l
,
props
,
oElem
,
oContent
,
oSub
,
oSup
);
return oThis.ReadMathNary(t,l,props,oElem,oContent,oSub,oSup
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.OMath === type)
{
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oElem
);
return oThis.ReadMathArg(t,l,oElem
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.Phant === type)
{
var oContent = {};
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathPhant
(
t
,
l
,
props
,
oElem
,
oContent
);
return oThis.ReadMathPhant(t,l,props,oElem,oContent
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.MRun === type)
{
var
oMRun
=
new
ParaRun
(
null
,
true
);
var oParagraph = oParStruct ? oParStruct.paragraph : null;
var oMRun = new ParaRun(oParagraph, true);
res = this.bcr.Read1(length, function(t, l){
return oThis.ReadMathMRun(t,l,oMRun,props,oElem,oParStruct);
});
...
...
@@ -10215,7 +10216,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
var oDeg = {};
var oRad = {};
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathRad
(
t
,
l
,
props
,
oElem
,
oRad
,
oContent
,
oDeg
);
return oThis.ReadMathRad(t,l,props,oElem,oRad,oContent,oDeg
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.SPre === type)
...
...
@@ -10224,7 +10225,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
var oSub = {};
var oSup = {};
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathSPre
(
t
,
l
,
props
,
oElem
,
oContent
,
oSub
,
oSup
);
return oThis.ReadMathSPre(t,l,props,oElem,oContent,oSub,oSup
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.SSub === type)
...
...
@@ -10232,7 +10233,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
var oContent = {};
var oSub = {};
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathSSub
(
t
,
l
,
props
,
oElem
,
oContent
,
oSub
);
return oThis.ReadMathSSub(t,l,props,oElem,oContent,oSub
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.SSubSup === type)
...
...
@@ -10241,7 +10242,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
var oSub = {};
var oSup = {};
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathSSubSup
(
t
,
l
,
props
,
oElem
,
oContent
,
oSub
,
oSup
);
return oThis.ReadMathSSubSup(t,l,props,oElem,oContent,oSub,oSup
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.SSup === type)
...
...
@@ -10249,7 +10250,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
var oContent = {};
var oSup = {};
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathSSup
(
t
,
l
,
props
,
oElem
,
oContent
,
oSup
);
return oThis.ReadMathSSup(t,l,props,oElem,oContent,oSup
, oParStruct
);
});
}
else
...
...
@@ -10288,7 +10289,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
res = c_oSerConstants.ReadUnknown;
return res;
};
this
.
ReadMathBar
=
function
(
type
,
length
,
props
,
oParent
,
oContent
)
this.ReadMathBar = function(type, length,props, oParent, oContent
, oParStruct
)
{
var res = c_oSerConstants.ReadOk;
var oThis = this;
...
...
@@ -10306,7 +10307,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
else if (c_oSer_OMathContentType.Element === type)
{
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oContent
.
content
);
return oThis.ReadMathArg(t,l,oContent.content
, oParStruct
);
});
}
else
...
...
@@ -10352,7 +10353,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
res = c_oSerConstants.ReadUnknown;
return res;
};
this
.
ReadMathBorderBox
=
function
(
type
,
length
,
props
,
oParent
,
oContent
)
this.ReadMathBorderBox = function(type, length, props, oParent, oContent
, oParStruct
)
{
var res = c_oSerConstants.ReadOk;
var oThis = this;
...
...
@@ -10370,7 +10371,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
else if (c_oSer_OMathContentType.Element === type)
{
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oContent
.
content
);
return oThis.ReadMathArg(t,l,oContent.content
, oParStruct
);
});
}
else
...
...
@@ -10439,7 +10440,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
res = c_oSerConstants.ReadUnknown;
return res;
};
this
.
ReadMathBox
=
function
(
type
,
length
,
props
,
oParent
,
oContent
)
this.ReadMathBox = function(type, length, props, oParent, oContent
, oParStruct
)
{
var res = c_oSerConstants.ReadOk;
var oThis = this;
...
...
@@ -10457,7 +10458,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
else if (c_oSer_OMathContentType.Element === type)
{
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oContent
.
content
);
return oThis.ReadMathArg(t,l,oContent.content
, oParStruct
);
});
}
else
...
...
@@ -10628,7 +10629,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
res = c_oSerConstants.ReadUnknown;
return res;
};
this
.
ReadMathDelimiter
=
function
(
type
,
length
,
props
,
oElem
,
arrContent
)
this.ReadMathDelimiter = function(type, length, props, oElem, arrContent
, oParStruct
)
{
var res = c_oSerConstants.ReadOk;
var oThis = this;
...
...
@@ -10649,7 +10650,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
{
var lColumn = props.counter;
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
arrContent
[
lColumn
]);
return oThis.ReadMathArg(t,l,arrContent[lColumn]
, oParStruct
);
});
props.counter++;
}
...
...
@@ -10731,7 +10732,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
res = c_oSerConstants.ReadUnknown;
return res;
};
this
.
ReadMathEqArr
=
function
(
type
,
length
,
props
,
oElem
,
arrContent
)
this.ReadMathEqArr = function(type, length, props, oElem, arrContent
, oParStruct
)
{
var res = c_oSerConstants.ReadOk;
var oThis = this;
...
...
@@ -10755,7 +10756,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
{
var lRow = props.counter;
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
arrContent
[
lRow
]);
return oThis.ReadMathArg(t,l,arrContent[lRow]
, oParStruct
);
});
props.counter++;
}
...
...
@@ -10819,7 +10820,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
res = c_oSerConstants.ReadUnknown;
return res;
};
this
.
ReadMathFraction
=
function
(
type
,
length
,
props
,
oParent
,
oElemDen
,
oElemNum
)
this.ReadMathFraction = function(type, length, props, oParent, oElemDen, oElemNum
, oParStruct
)
{
var res = c_oSerConstants.ReadOk;
var oThis = this;
...
...
@@ -10847,7 +10848,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
oElemNum.content = oFraction.getNumerator();
}
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oElemDen
.
content
);
return oThis.ReadMathArg(t,l,oElemDen.content
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.Num === type)
...
...
@@ -10862,7 +10863,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
oElemNum.content = oFraction.getNumerator();
}
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oElemNum
.
content
);
return oThis.ReadMathArg(t,l,oElemNum.content
, oParStruct
);
});
}
else
...
...
@@ -10889,7 +10890,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
res = c_oSerConstants.ReadUnknown;
return res;
};
this
.
ReadMathFunc
=
function
(
type
,
length
,
props
,
oParent
,
oContent
,
oName
)
this.ReadMathFunc = function(type, length, props, oParent, oContent, oName
, oParStruct
)
{
var res = c_oSerConstants.ReadOk;
var oThis = this;
...
...
@@ -10908,13 +10909,13 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
else if (c_oSer_OMathContentType.Element === type)
{
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oContent
.
content
);
return oThis.ReadMathArg(t,l,oContent.content
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.FName === type)
{
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oName
.
content
);
return oThis.ReadMathArg(t,l,oName.content
, oParStruct
);
});
}
else
...
...
@@ -10947,7 +10948,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
res = c_oSerConstants.ReadUnknown;
return res;
};
this
.
ReadMathGroupChr
=
function
(
type
,
length
,
props
,
oParent
,
oContent
)
this.ReadMathGroupChr = function(type, length, props, oParent, oContent
, oParStruct
)
{
var res = c_oSerConstants.ReadOk;
var oThis = this;
...
...
@@ -10965,7 +10966,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
else if (c_oSer_OMathContentType.Element === type)
{
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oContent
.
content
);
return oThis.ReadMathArg(t,l,oContent.content
, oParStruct
);
});
}
else
...
...
@@ -11070,7 +11071,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
res = c_oSerConstants.ReadUnknown;
return res;
};
this
.
ReadMathLimLow
=
function
(
type
,
length
,
props
,
oParent
,
oContent
,
oLim
)
this.ReadMathLimLow = function(type, length, props, oParent, oContent, oLim
, oParStruct
)
{
var res = c_oSerConstants.ReadOk;
var oThis = this;
...
...
@@ -11090,13 +11091,13 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
else if (c_oSer_OMathContentType.Element === type)
{
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oContent
.
content
);
return oThis.ReadMathArg(t,l,oContent.content
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.Lim === type)
{
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oLim
.
content
);
return oThis.ReadMathArg(t,l,oLim.content
, oParStruct
);
});
}
else
...
...
@@ -11117,7 +11118,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
res = c_oSerConstants.ReadUnknown;
return res;
};
this
.
ReadMathLimUpp
=
function
(
type
,
length
,
props
,
oParent
,
oContent
,
oLim
)
this.ReadMathLimUpp = function(type, length, props, oParent, oContent, oLim
, oParStruct
)
{
var res = c_oSerConstants.ReadOk;
var oThis = this;
...
...
@@ -11137,13 +11138,13 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
else if (c_oSer_OMathContentType.Element === type)
{
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oContent
.
content
);
return oThis.ReadMathArg(t,l,oContent.content
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.Lim === type)
{
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oLim
.
content
);
return oThis.ReadMathArg(t,l,oLim.content
, oParStruct
);
});
}
else
...
...
@@ -11527,7 +11528,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
res = c_oSerConstants.ReadUnknown;
return res;
};
this
.
ReadMathNary
=
function
(
type
,
length
,
props
,
oParent
,
oContent
,
oSub
,
oSup
)
this.ReadMathNary = function(type, length, props, oParent, oContent, oSub, oSup
, oParStruct
)
{
var res = c_oSerConstants.ReadOk;
var oThis = this;
...
...
@@ -11549,19 +11550,19 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
else if (c_oSer_OMathContentType.Sub === type)
{
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oSub
.
content
);
return oThis.ReadMathArg(t,l,oSub.content
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.Sup === type)
{
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oSup
.
content
);
return oThis.ReadMathArg(t,l,oSup.content
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.Element === type)
{
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oContent
.
content
);
return oThis.ReadMathArg(t,l,oContent.content
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.CtrlPr)
...
...
@@ -11717,7 +11718,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
res = c_oSerConstants.ReadUnknown;
return res;
};
this
.
ReadMathPhant
=
function
(
type
,
length
,
props
,
oParent
,
oContent
)
this.ReadMathPhant = function(type, length, props, oParent, oContent
, oParStruct
)
{
var res = c_oSerConstants.ReadOk;
var oThis = this;
...
...
@@ -11735,7 +11736,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
else if (c_oSer_OMathContentType.Element === type)
{
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oContent
.
content
);
return oThis.ReadMathArg(t,l,oContent.content
, oParStruct
);
});
}
else
...
...
@@ -11816,7 +11817,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
res = c_oSerConstants.ReadUnknown;
return res;
};
this
.
ReadMathRad
=
function
(
type
,
length
,
props
,
oParent
,
oRad
,
oContent
,
oDeg
)
this.ReadMathRad = function(type, length, props, oParent, oRad, oContent, oDeg
, oParStruct
)
{
var res = c_oSerConstants.ReadOk;
var oThis = this;
...
...
@@ -11835,13 +11836,13 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
else if (c_oSer_OMathContentType.Deg === type)
{
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oDeg
.
content
);
return oThis.ReadMathArg(t,l,oDeg.content
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.Element === type)
{
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oContent
.
content
);
return oThis.ReadMathArg(t,l,oContent.content
, oParStruct
);
});
}
else
...
...
@@ -11948,7 +11949,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
res = c_oSerConstants.ReadUnknown;
return res;
};
this
.
ReadMathSPre
=
function
(
type
,
length
,
props
,
oParent
,
oContent
,
oSub
,
oSup
)
this.ReadMathSPre = function(type, length, props, oParent, oContent, oSub, oSup
, oParStruct
)
{
var res = c_oSerConstants.ReadOk;
var oThis = this;
...
...
@@ -11969,19 +11970,19 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
else if (c_oSer_OMathContentType.Sub === type)
{
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oSub
.
content
);
return oThis.ReadMathArg(t,l,oSub.content
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.Sup === type)
{
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oSup
.
content
);
return oThis.ReadMathArg(t,l,oSup.content
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.Element === type)
{
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oContent
.
content
);
return oThis.ReadMathArg(t,l,oContent.content
, oParStruct
);
});
}
else
...
...
@@ -12002,7 +12003,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
res = c_oSerConstants.ReadUnknown;
return res;
};
this
.
ReadMathSSub
=
function
(
type
,
length
,
props
,
oParent
,
oContent
,
oSub
)
this.ReadMathSSub = function(type, length, props, oParent, oContent, oSub
, oParStruct
)
{
var res = c_oSerConstants.ReadOk;
var oThis = this;
...
...
@@ -12022,13 +12023,13 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
else if (c_oSer_OMathContentType.Sub === type)
{
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oSub
.
content
);
return oThis.ReadMathArg(t,l,oSub.content
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.Element === type)
{
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oContent
.
content
);
return oThis.ReadMathArg(t,l,oContent.content
, oParStruct
);
});
}
else
...
...
@@ -12049,7 +12050,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
res = c_oSerConstants.ReadUnknown;
return res;
};
this
.
ReadMathSSubSup
=
function
(
type
,
length
,
props
,
oParent
,
oContent
,
oSub
,
oSup
)
this.ReadMathSSubSup = function(type, length, props, oParent, oContent, oSub, oSup
, oParStruct
)
{
var res = c_oSerConstants.ReadOk;
var oThis = this;
...
...
@@ -12081,7 +12082,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
}
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oSub
.
content
);
return oThis.ReadMathArg(t,l,oSub.content
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.Sup === type)
...
...
@@ -12098,7 +12099,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
}
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oSup
.
content
);
return oThis.ReadMathArg(t,l,oSup.content
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.Element === type)
...
...
@@ -12115,7 +12116,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
}
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oContent
.
content
);
return oThis.ReadMathArg(t,l,oContent.content
, oParStruct
);
});
}
else
...
...
@@ -12142,7 +12143,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
res = c_oSerConstants.ReadUnknown;
return res;
};
this
.
ReadMathSSup
=
function
(
type
,
length
,
props
,
oParent
,
oContent
,
oSup
)
this.ReadMathSSup = function(type, length, props, oParent, oContent, oSup
, oParStruct
)
{
var res = c_oSerConstants.ReadOk;
var oThis = this;
...
...
@@ -12173,7 +12174,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
}
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oSup
.
content
);
return oThis.ReadMathArg(t,l,oSup.content
, oParStruct
);
});
}
else if (c_oSer_OMathContentType.Element === type)
...
...
@@ -12190,7 +12191,7 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
}
res = this.bcr.Read1(length, function(t, l){
return
oThis
.
ReadMathArg
(
t
,
l
,
oContent
.
content
);
return oThis.ReadMathArg(t,l,oContent.content
, oParStruct
);
});
}
else
...
...
word/Editor/Table.js
View file @
9b873f8a
...
...
@@ -9094,14 +9094,14 @@ CTable.prototype =
}
}
this
.
Selection_Remove
();
// Удаляем строки.
for
(
var
Index
=
Rows_to_delete
.
length
-
1
;
Index
>=
0
;
Index
--
)
{
this
.
Internal_Remove_Row
(
Rows_to_delete
[
Index
]
);
}
this
.
Selection_Remove
();
// Возвращаем курсор
this
.
DrawingDocument
.
TargetStart
();
this
.
DrawingDocument
.
TargetShow
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment