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
6988f6fd
Commit
6988f6fd
authored
Feb 15, 2017
by
Sergey Luzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Bug 34070
parent
fe391962
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
6 deletions
+55
-6
common/Drawings/Format/GraphicFrame.js
common/Drawings/Format/GraphicFrame.js
+1
-2
slide/Editor/Format/Slide.js
slide/Editor/Format/Slide.js
+54
-4
No files found.
common/Drawings/Format/GraphicFrame.js
View file @
6988f6fd
...
@@ -41,19 +41,18 @@ var HitInLine = AscFormat.HitInLine;
...
@@ -41,19 +41,18 @@ var HitInLine = AscFormat.HitInLine;
var
isRealObject
=
AscCommon
.
isRealObject
;
var
isRealObject
=
AscCommon
.
isRealObject
;
var
History
=
AscCommon
.
History
;
var
History
=
AscCommon
.
History
;
window
[
'
AscDFH
'
].
drawingsChangesMap
[
AscDFH
.
historyitem_GraphicFrameSetSpPr
]
=
function
(
oClass
,
value
){
oClass
.
spPr
=
value
;};
window
[
'
AscDFH
'
].
drawingsChangesMap
[
AscDFH
.
historyitem_GraphicFrameSetSpPr
]
=
function
(
oClass
,
value
){
oClass
.
spPr
=
value
;};
window
[
'
AscDFH
'
].
drawingsChangesMap
[
AscDFH
.
historyitem_GraphicFrameSetGraphicObject
]
=
function
(
oClass
,
value
){
oClass
.
graphicObject
=
value
;
if
(
value
){
value
.
Parent
=
oClass
;}};
window
[
'
AscDFH
'
].
drawingsChangesMap
[
AscDFH
.
historyitem_GraphicFrameSetGraphicObject
]
=
function
(
oClass
,
value
){
oClass
.
graphicObject
=
value
;
if
(
value
){
value
.
Parent
=
oClass
;}};
window
[
'
AscDFH
'
].
drawingsChangesMap
[
AscDFH
.
historyitem_GraphicFrameSetSetNvSpPr
]
=
function
(
oClass
,
value
){
oClass
.
nvGraphicFramePr
=
value
;};
window
[
'
AscDFH
'
].
drawingsChangesMap
[
AscDFH
.
historyitem_GraphicFrameSetSetNvSpPr
]
=
function
(
oClass
,
value
){
oClass
.
nvGraphicFramePr
=
value
;};
window
[
'
AscDFH
'
].
drawingsChangesMap
[
AscDFH
.
historyitem_GraphicFrameSetSetParent
]
=
function
(
oClass
,
value
){
oClass
.
parent
=
value
;};
window
[
'
AscDFH
'
].
drawingsChangesMap
[
AscDFH
.
historyitem_GraphicFrameSetSetParent
]
=
function
(
oClass
,
value
){
oClass
.
parent
=
value
;};
window
[
'
AscDFH
'
].
drawingsChangesMap
[
AscDFH
.
historyitem_GraphicFrameSetSetGroup
]
=
function
(
oClass
,
value
){
oClass
.
group
=
value
;};
window
[
'
AscDFH
'
].
drawingsChangesMap
[
AscDFH
.
historyitem_GraphicFrameSetSetGroup
]
=
function
(
oClass
,
value
){
oClass
.
group
=
value
;};
window
[
'
AscDFH
'
].
drawingsChangesMap
[
AscDFH
.
historyitem_GraphicFrameSetSetParent
]
=
function
(
oClass
,
value
){
oClass
.
parent
=
value
;};
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_GraphicFrameSetSpPr
]
=
AscDFH
.
CChangesDrawingsObject
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_GraphicFrameSetSpPr
]
=
AscDFH
.
CChangesDrawingsObject
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_GraphicFrameSetGraphicObject
]
=
AscDFH
.
CChangesDrawingsObject
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_GraphicFrameSetGraphicObject
]
=
AscDFH
.
CChangesDrawingsObject
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_GraphicFrameSetSetNvSpPr
]
=
AscDFH
.
CChangesDrawingsObject
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_GraphicFrameSetSetNvSpPr
]
=
AscDFH
.
CChangesDrawingsObject
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_GraphicFrameSetSetParent
]
=
AscDFH
.
CChangesDrawingsObject
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_GraphicFrameSetSetParent
]
=
AscDFH
.
CChangesDrawingsObject
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_GraphicFrameSetSetGroup
]
=
AscDFH
.
CChangesDrawingsObject
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_GraphicFrameSetSetGroup
]
=
AscDFH
.
CChangesDrawingsObject
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_GraphicFrameSetSetParent
]
=
AscDFH
.
CChangesDrawingsObject
;
function
CGraphicFrame
()
function
CGraphicFrame
()
{
{
...
...
slide/Editor/Format/Slide.js
View file @
6988f6fd
...
@@ -37,6 +37,55 @@ var g_oTableId = AscCommon.g_oTableId;
...
@@ -37,6 +37,55 @@ var g_oTableId = AscCommon.g_oTableId;
var
History
=
AscCommon
.
History
;
var
History
=
AscCommon
.
History
;
function
CChangesDrawingsContentComments
(
Class
,
Type
,
Pos
,
Items
,
isAdd
){
CChangesDrawingsContentComments
.
superclass
.
constructor
.
call
(
this
,
Class
,
Type
,
Pos
,
Items
,
isAdd
);
}
AscCommon
.
extendClass
(
CChangesDrawingsContentComments
,
AscDFH
.
CChangesDrawingsContent
);
CChangesDrawingsContentComments
.
prototype
.
addToInterface
=
function
(){
for
(
var
i
=
0
;
i
<
this
.
Items
.
length
;
++
i
){
var
oComment
=
this
.
Items
[
i
];
editor
.
sync_AddComment
(
oComment
.
Get_Id
(),
oComment
.
Data
);
}
};
CChangesDrawingsContentComments
.
prototype
.
removeFromInterface
=
function
(){
for
(
var
i
=
0
;
i
<
this
.
Items
.
length
;
++
i
){
editor
.
sync_RemoveComment
(
this
.
Items
[
i
].
Get_Id
());
}
};
CChangesDrawingsContentComments
.
prototype
.
Undo
=
function
(){
CChangesDrawingsContentComments
.
superclass
.
Undo
.
call
(
this
);
if
(
this
.
IsAdd
()){
this
.
removeFromInterface
();
}
else
{
this
.
addToInterface
();
}
};
CChangesDrawingsContentComments
.
prototype
.
Redo
=
function
(){
CChangesDrawingsContentComments
.
superclass
.
Redo
.
call
(
this
);
if
(
this
.
IsAdd
()){
this
.
addToInterface
();
}
else
{
this
.
removeFromInterface
();
}
};
CChangesDrawingsContentComments
.
prototype
.
Load
=
function
(){
CChangesDrawingsContentComments
.
superclass
.
Load
.
call
(
this
);
if
(
this
.
IsAdd
()){
this
.
addToInterface
();
}
else
{
this
.
removeFromInterface
();
}
};
AscDFH
.
CChangesDrawingsContentComments
=
CChangesDrawingsContentComments
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_SlideSetLocks
]
=
AscDFH
.
CChangesDrawingTimingLocks
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_SlideSetLocks
]
=
AscDFH
.
CChangesDrawingTimingLocks
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_SlideSetComments
]
=
AscDFH
.
CChangesDrawingsObject
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_SlideSetComments
]
=
AscDFH
.
CChangesDrawingsObject
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_SlideSetShow
]
=
AscDFH
.
CChangesDrawingsBool
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_SlideSetShow
]
=
AscDFH
.
CChangesDrawingsBool
;
...
@@ -52,8 +101,8 @@ AscDFH.changesFactory[AscDFH.historyitem_SlideRemoveFromSpTree ] = AscDFH.CC
...
@@ -52,8 +101,8 @@ AscDFH.changesFactory[AscDFH.historyitem_SlideRemoveFromSpTree ] = AscDFH.CC
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_SlideSetCSldName
]
=
AscDFH
.
CChangesDrawingsString
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_SlideSetCSldName
]
=
AscDFH
.
CChangesDrawingsString
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_SlideSetClrMapOverride
]
=
AscDFH
.
CChangesDrawingsObject
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_SlideSetClrMapOverride
]
=
AscDFH
.
CChangesDrawingsObject
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_PropLockerSetId
]
=
AscDFH
.
CChangesDrawingsString
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_PropLockerSetId
]
=
AscDFH
.
CChangesDrawingsString
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_SlideCommentsAddComment
]
=
AscDFH
.
CChangesDrawingsContent
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_SlideCommentsAddComment
]
=
AscDFH
.
CChangesDrawingsContent
Comments
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_SlideCommentsRemoveComment
]
=
AscDFH
.
CChangesDrawingsContent
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_SlideCommentsRemoveComment
]
=
AscDFH
.
CChangesDrawingsContent
Comments
;
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_SlideSetComments
]
=
function
(
oClass
,
value
){
oClass
.
slideComments
=
value
;};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_SlideSetComments
]
=
function
(
oClass
,
value
){
oClass
.
slideComments
=
value
;};
...
@@ -1280,6 +1329,7 @@ AscFormat.CTextBody.prototype.checkCurrentPlaceholder = function()
...
@@ -1280,6 +1329,7 @@ AscFormat.CTextBody.prototype.checkCurrentPlaceholder = function()
};
};
function
SlideComments
(
slide
)
function
SlideComments
(
slide
)
{
{
this
.
comments
=
[];
this
.
comments
=
[];
...
@@ -1318,7 +1368,7 @@ SlideComments.prototype =
...
@@ -1318,7 +1368,7 @@ SlideComments.prototype =
addComment
:
function
(
comment
)
addComment
:
function
(
comment
)
{
{
History
.
Add
(
new
AscDFH
.
CChangesDrawingsContent
(
this
,
AscDFH
.
historyitem_SlideCommentsAddComment
,
this
.
comments
.
length
,
[
comment
],
true
));
History
.
Add
(
new
AscDFH
.
CChangesDrawingsContent
Comments
(
this
,
AscDFH
.
historyitem_SlideCommentsAddComment
,
this
.
comments
.
length
,
[
comment
],
true
));
this
.
comments
.
splice
(
this
.
comments
.
length
,
0
,
comment
);
this
.
comments
.
splice
(
this
.
comments
.
length
,
0
,
comment
);
comment
.
slideComments
=
this
;
comment
.
slideComments
=
this
;
},
},
...
@@ -1353,7 +1403,7 @@ SlideComments.prototype =
...
@@ -1353,7 +1403,7 @@ SlideComments.prototype =
{
{
if
(
this
.
comments
[
i
].
Get_Id
()
===
id
)
if
(
this
.
comments
[
i
].
Get_Id
()
===
id
)
{
{
History
.
Add
(
new
AscDFH
.
CChangesDrawingsContent
(
this
,
AscDFH
.
historyitem_SlideCommentsRemoveComment
,
i
,
[
id
],
false
));
History
.
Add
(
new
AscDFH
.
CChangesDrawingsContent
Comments
(
this
,
AscDFH
.
historyitem_SlideCommentsRemoveComment
,
i
,
[
id
],
false
));
this
.
comments
.
splice
(
i
,
1
);
this
.
comments
.
splice
(
i
,
1
);
editor
.
sync_RemoveComment
(
id
);
editor
.
sync_RemoveComment
(
id
);
return
;
return
;
...
...
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