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
1207aec9
Commit
1207aec9
authored
Dec 07, 2016
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified function which applying changes on the server side.
parent
f38c35c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
18 deletions
+28
-18
word/api.js
word/api.js
+28
-18
No files found.
word/api.js
View file @
1207aec9
...
...
@@ -8209,11 +8209,10 @@ background-repeat: no-repeat;\
var
stream
=
new
AscCommon
.
FT_Stream2
(
data
,
data
.
length
);
stream
.
obj
=
null
;
var
Loader
=
{
Reader
:
stream
,
Reader2
:
null
};
var
_color
=
new
AscCommonWord
.
CDocumentColor
(
191
,
255
,
199
);
// Применяем изменения, пока они есть
var
_count
=
Loader
.
Reader
.
GetLong
();
var
_count
=
stream
.
GetLong
();
var
_pos
=
4
;
for
(
var
i
=
0
;
i
<
_count
;
i
++
)
...
...
@@ -8224,30 +8223,41 @@ background-repeat: no-repeat;\
break
;
}
var
_len
=
Loader
.
Reader
.
GetLong
();
var
nChangeLen
=
stream
.
GetLong
();
_pos
+=
4
;
stream
.
size
=
_pos
+
_l
en
;
stream
.
size
=
_pos
+
nChangeL
en
;
var
_id
=
Loader
.
Reader
.
GetString2
();
var
_read_pos
=
Loader
.
Reader
.
GetCurPos
(
);
var
ClassId
=
stream
.
GetString2
();
var
Class
=
AscCommon
.
g_oTableId
.
Get_ById
(
ClassId
);
var
Type
=
Loader
.
Reader
.
GetLong
();
var
Class
=
null
;
var
nReaderPos
=
stream
.
GetCurPos
();
var
nChangeType
=
stream
.
GetLong
()
;
if
(
AscDFH
.
historyitem_type_HdrFtr
===
Type
)
if
(
Class
)
{
Class
=
editor
.
WordControl
.
m_oLogicDocument
.
HdrFtr
;
}
else
Class
=
g_oTableId
.
Get_ById
(
_id
);
var
fChangesClass
=
AscDFH
.
changesFactory
[
nChangeType
];
if
(
fChangesClass
)
{
var
oChange
=
new
fChangesClass
(
Class
);
oChange
.
ReadFromBinary
(
stream
);
stream
.
Seek
(
_read_pos
);
stream
.
Seek2
(
_read_pos
);
if
(
true
===
AscCommon
.
CollaborativeEditing
.
private_AddOverallChange
(
oChange
))
oChange
.
Load
(
_color
);
if
(
null
!=
Class
)
Class
.
Load_Changes
(
Loader
.
Reader
,
Loader
.
Reader2
,
_color
);
return
true
;
}
else
{
AscCommon
.
CollaborativeEditing
.
private_AddOverallChange
(
data
);
stream
.
Seek
(
nReaderPos
);
stream
.
Seek2
(
nReaderPos
);
Class
.
Load_Changes
(
stream
,
null
,
_color
);
}
}
_pos
+=
_l
en
;
_pos
+=
nChangeL
en
;
stream
.
Seek2
(
_pos
);
stream
.
size
=
data
.
length
;
}
...
...
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