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
675336be
Commit
675336be
authored
Feb 21, 2017
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added function for receiving review report.
parent
d93e452b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
word/Editor/Document.js
word/Editor/Document.js
+5
-0
word/Private/TrackRevisions.js
word/Private/TrackRevisions.js
+37
-0
No files found.
word/Editor/Document.js
View file @
675336be
...
...
@@ -16873,6 +16873,11 @@ CTrackRevisionsManager.prototype.private_HaveParasToCheck = function()
return
false
;
};
CTrackRevisionsManager
.
prototype
.
Get_AllChanges
=
function
()
{
this
.
Continue_TrackRevisions
();
return
this
.
Changes
;
};
function
CRevisionsChangeParagraphSearchEngine
(
Direction
,
CurrentPara
,
TrackManager
)
{
...
...
word/Private/TrackRevisions.js
View file @
675336be
...
...
@@ -105,6 +105,40 @@ Asc['asc_docs_api'].prototype.asc_RejectAllChanges = function()
{
this
.
WordControl
.
m_oLogicDocument
.
Reject_AllRevisionChanges
();
};
Asc
[
'
asc_docs_api
'
].
prototype
.
asc_GetTrackRevisionsReportByAuthors
=
function
()
{
var
oResult
=
{};
var
oAllChanges
=
this
.
WordControl
.
m_oLogicDocument
.
TrackRevisionsManager
.
Get_AllChanges
();
for
(
var
ParaId
in
oAllChanges
)
{
var
arrChanges
=
oAllChanges
[
ParaId
];
for
(
var
nIndex
=
0
,
nCount
=
arrChanges
.
length
;
nIndex
<
nCount
;
++
nIndex
)
{
var
oChange
=
arrChanges
[
nIndex
];
var
sUserName
=
oChange
.
get_UserName
();
var
nDateTime
=
oChange
.
get_DateTime
();
if
(
!
oResult
[
sUserName
])
oResult
[
sUserName
]
=
[];
var
arrUserChanges
=
oResult
[
sUserName
];
var
nPos
=
0
;
var
nLen
=
arrUserChanges
.
length
;
while
(
nPos
<
nLen
)
{
if
(
nDateTime
<
arrUserChanges
[
nPos
].
get_DateTime
())
break
;
nPos
++
;
}
arrUserChanges
.
splice
(
nPos
,
0
,
oChange
);
}
}
return
oResult
;
};
Asc
[
'
asc_docs_api
'
].
prototype
[
'
asc_SetTrackRevisions
'
]
=
Asc
[
'
asc_docs_api
'
].
prototype
.
asc_SetTrackRevisions
;
Asc
[
'
asc_docs_api
'
].
prototype
[
'
asc_IsTrackRevisions
'
]
=
Asc
[
'
asc_docs_api
'
].
prototype
.
asc_IsTrackRevisions
;
...
...
@@ -185,6 +219,9 @@ CDocument.prototype.private_GetRevisionsChangeParagraph = function(Direction, Cu
}
var
oFootnote
=
CurrentPara
.
Parent
?
CurrentPara
.
Parent
.
Get_TopDocumentContent
()
:
null
;
if
(
!
(
oFootnote
instanceof
CFootEndnote
))
oFootnote
=
null
;
var
HdrFtr
=
CurrentPara
.
Get_HdrFtr
();
if
(
null
!==
HdrFtr
)
{
...
...
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