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
a1653bc6
Commit
a1653bc6
authored
Jun 24, 2017
by
Sergey Konovalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moveFrom/moveTo open/save to del/ins
parent
25a0c76f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
2 deletions
+44
-2
word/Editor/Serialize2.js
word/Editor/Serialize2.js
+44
-2
No files found.
word/Editor/Serialize2.js
View file @
a1653bc6
...
...
@@ -274,7 +274,9 @@ var c_oSerProp_rPrType = {
TextFill
:
32
,
Del
:
33
,
Ins
:
34
,
rPrChange
:
35
rPrChange
:
35
,
MoveFrom
:
36
,
MoveTo
:
37
};
var
c_oSerProp_rowPrType
=
{
CantSplit
:
0
,
...
...
@@ -360,7 +362,9 @@ var c_oSerParType = {
Del
:
12
,
Ins
:
13
,
Background
:
14
,
Sdt
:
15
Sdt
:
15
,
MoveFrom
:
16
,
MoveTo
:
17
};
var
c_oSerDocTableType
=
{
tblPr
:
0
,
...
...
@@ -8087,6 +8091,18 @@ function Binary_rPrReader(doc, oReadResult, stream)
return
ReadTrackRevision
(
t
,
l
,
oThis
.
stream
,
oThis
.
trackRevision
.
ins
,
null
);
});
break
;
case
c_oSerProp_rPrType
.
MoveFrom
:
this
.
trackRevision
=
{
del
:
new
CReviewInfo
()};
res
=
this
.
bcr
.
Read1
(
length
,
function
(
t
,
l
){
return
ReadTrackRevision
(
t
,
l
,
oThis
.
stream
,
oThis
.
trackRevision
.
del
,
null
);
});
break
;
case
c_oSerProp_rPrType
.
MoveTo
:
this
.
trackRevision
=
{
ins
:
new
CReviewInfo
()};
res
=
this
.
bcr
.
Read1
(
length
,
function
(
t
,
l
){
return
ReadTrackRevision
(
t
,
l
,
oThis
.
stream
,
oThis
.
trackRevision
.
ins
,
null
);
});
break
;
case
c_oSerProp_rPrType
.
rPrChange
:
var
rPrChange
=
new
CTextPr
();
var
reviewInfo
=
new
CReviewInfo
();
...
...
@@ -9323,6 +9339,32 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, curFoo
elem
.
Set_ReviewTypeWithInfo
(
reviewtype_Add
,
reviewInfo
);
}
}
}
else
if
(
c_oSerParType
.
MoveFrom
==
type
)
{
var
reviewInfo
=
new
CReviewInfo
();
var
startPos
=
oParStruct
.
getCurPos
();
res
=
this
.
bcr
.
Read1
(
length
,
function
(
t
,
l
){
return
ReadTrackRevision
(
t
,
l
,
oThis
.
stream
,
reviewInfo
,
{
parStruct
:
oParStruct
,
bdtr
:
oThis
});
});
var
endPos
=
oParStruct
.
getCurPos
();
for
(
var
i
=
startPos
;
i
<
endPos
;
++
i
)
{
var
elem
=
oParStruct
.
GetFromContent
(
i
);
if
(
elem
&&
elem
.
Set_ReviewTypeWithInfo
)
{
elem
.
Set_ReviewTypeWithInfo
(
reviewtype_Remove
,
reviewInfo
);
}
}
}
else
if
(
c_oSerParType
.
MoveTo
==
type
)
{
var
reviewInfo
=
new
CReviewInfo
();
var
startPos
=
oParStruct
.
getCurPos
();
res
=
this
.
bcr
.
Read1
(
length
,
function
(
t
,
l
){
return
ReadTrackRevision
(
t
,
l
,
oThis
.
stream
,
reviewInfo
,
{
parStruct
:
oParStruct
,
bdtr
:
oThis
});
});
var
endPos
=
oParStruct
.
getCurPos
();
for
(
var
i
=
startPos
;
i
<
endPos
;
++
i
)
{
var
elem
=
oParStruct
.
GetFromContent
(
i
);
if
(
elem
&&
elem
.
Set_ReviewTypeWithInfo
)
{
elem
.
Set_ReviewTypeWithInfo
(
reviewtype_Add
,
reviewInfo
);
}
}
}
else
if
(
c_oSerParType
.
Sdt
===
type
)
{
var
oSdt
=
new
AscCommonWord
.
CInlineLevelSdt
();
oSdt
.
SetParagraph
(
oParStruct
.
paragraph
);
...
...
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