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
bad5d825
Commit
bad5d825
authored
Jul 25, 2017
by
SergeyLuzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Bug 35407
parent
447cb2e5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
4 deletions
+38
-4
slide/Editor/CollaborativeEditing.js
slide/Editor/CollaborativeEditing.js
+15
-0
slide/Editor/DrawingObjectsController.js
slide/Editor/DrawingObjectsController.js
+1
-0
slide/Editor/Format/Comments.js
slide/Editor/Format/Comments.js
+19
-1
slide/Editor/Format/Presentation.js
slide/Editor/Format/Presentation.js
+2
-2
slide/Editor/Format/Slide.js
slide/Editor/Format/Slide.js
+1
-1
No files found.
slide/Editor/CollaborativeEditing.js
View file @
bad5d825
...
...
@@ -154,6 +154,18 @@ CCollaborativeEditing.prototype.Send_Changes = function(IsUserSave, AdditionalIn
"
guid
"
:
Class
.
Get_Id
()
};
}
else
if
(
Class
instanceof
AscCommon
.
CComment
){
if
(
Class
.
Parent
&&
Class
.
Parent
.
slide
){
check_obj
=
{
"
type
"
:
c_oAscLockTypeElemPresentation
.
Object
,
"
slideId
"
:
Class
.
Parent
.
slide
.
deleteLock
.
Get_Id
(),
"
objId
"
:
Class
.
Get_Id
(),
"
guid
"
:
Class
.
Get_Id
()
};
map
[
Class
.
Parent
.
slide
.
num
]
=
true
;
}
}
if
(
check_obj
)
editor
.
CoAuthoringApi
.
releaseLocks
(
check_obj
);
}
...
...
@@ -275,6 +287,9 @@ CCollaborativeEditing.prototype.Release_Locks = function()
if
(
Class
instanceof
AscCommon
.
CComment
)
{
editor
.
sync_UnLockComment
(
Class
.
Get_Id
());
if
(
Class
.
Parent
&&
Class
.
Parent
.
slide
){
map_redraw
[
Class
.
Parent
.
slide
.
num
]
=
true
;
}
}
}
else
if
(
AscCommon
.
locktype_Other3
===
CurLockType
)
...
...
slide/Editor/DrawingObjectsController.js
View file @
bad5d825
...
...
@@ -442,6 +442,7 @@ MoveCommentState.prototype =
tracks
[
i
].
trackEnd
();
}
this
.
drawingObjects
.
startRecalculate
();
this
.
drawingObjects
.
drawingObjects
.
showDrawingObjects
();
}
this
.
drawingObjects
.
clearTrackObjects
();
this
.
drawingObjects
.
updateOverlay
();
...
...
slide/Editor/Format/Comments.js
View file @
bad5d825
...
...
@@ -918,7 +918,23 @@ CComment.prototype =
Flags
|=
2
;
}
var
dd
=
editor
.
WordControl
.
m_oDrawingDocument
;
graphics
.
DrawPresentationComment
(
Flags
,
this
.
x
,
this
.
y
,
dd
.
GetCommentWidth
(),
dd
.
GetCommentHeight
())
var
w
=
dd
.
GetCommentWidth
();
var
h
=
dd
.
GetCommentHeight
();
graphics
.
DrawPresentationComment
(
Flags
,
this
.
x
,
this
.
y
,
w
,
h
);
var
oLock
=
this
.
Lock
;
if
(
oLock
&&
AscCommon
.
locktype_None
!==
oLock
.
Get_Type
())
{
var
bCoMarksDraw
=
true
;
var
oApi
=
editor
||
Asc
[
'
editor
'
];
if
(
oApi
){
bCoMarksDraw
=
(
!
AscCommon
.
CollaborativeEditing
.
Is_Fast
()
||
AscCommon
.
locktype_Mine
!==
oLock
.
Get_Type
());
}
if
(
bCoMarksDraw
){
graphics
.
DrawLockObjectRect
(
oLock
.
Get_Type
(),
this
.
x
,
this
.
y
,
w
,
h
);
return
true
;
}
}
},
Set_StartInfo
:
function
(
PageNum
,
X
,
Y
,
H
,
ParaId
)
...
...
@@ -1055,6 +1071,7 @@ CComment.prototype =
// String : Id колонтитула
Writer
.
WriteString2
(
this
.
Id
);
AscFormat
.
writeObject
(
Writer
,
this
.
Parent
);
this
.
Data
.
Write_ToBinary2
(
Writer
);
Writer
.
WriteLong
(
this
.
m_oTypeInfo
.
Type
);
...
...
@@ -1072,6 +1089,7 @@ CComment.prototype =
// String : Id колонтитула
this
.
Id
=
Reader
.
GetString2
();
this
.
Parent
=
AscFormat
.
readObject
(
Reader
);
this
.
Data
=
new
CCommentData
();
this
.
Data
.
Read_FromBinary2
(
Reader
);
this
.
m_oTypeInfo
.
Type
=
Reader
.
GetLong
();
...
...
slide/Editor/Format/Presentation.js
View file @
bad5d825
...
...
@@ -5430,9 +5430,9 @@ CPresentation.prototype =
if
(
this
.
Slides
[
this
.
CurPage
])
{
History
.
Create_NewPoint
(
AscDFH
.
historydescription_Presentation_AddComment
);
var
Comment
=
new
CComment
(
this
.
Comments
,
CommentData
);
Comment
.
selected
=
true
;
var
slide
=
this
.
Slides
[
this
.
CurPage
];
var
Comment
=
new
CComment
(
slide
.
slideComments
,
CommentData
);
Comment
.
selected
=
true
;
var
selected_objects
=
slide
.
graphicObjects
.
selection
.
groupSelection
?
slide
.
graphicObjects
.
selection
.
groupSelection
.
selectedObjects
:
slide
.
graphicObjects
.
selectedObjects
;
if
(
selected_objects
.
length
>
0
)
{
...
...
slide/Editor/Format/Slide.js
View file @
bad5d825
...
...
@@ -1386,7 +1386,7 @@ Slide.prototype =
_wc
.
ParceAdditionalData
(
commentData
);
var
comment
=
new
CComment
(
undefined
,
new
CCommentData
());
var
comment
=
new
CComment
(
this
.
slideComments
,
new
CCommentData
());
comment
.
setPosition
(
_wc
.
x
/
25.4
,
_wc
.
y
/
25.4
);
_comments
.
push
(
comment
);
}
...
...
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