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
073adb85
Commit
073adb85
authored
Feb 06, 2017
by
Sergey Luzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Bug 33924
parent
81a3ba9f
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
5 deletions
+36
-5
common/Drawings/Format/GraphicObjectBase.js
common/Drawings/Format/GraphicObjectBase.js
+4
-0
slide/Editor/Format/Comments.js
slide/Editor/Format/Comments.js
+1
-1
slide/Editor/Format/Presentation.js
slide/Editor/Format/Presentation.js
+1
-0
slide/Editor/Format/Slide.js
slide/Editor/Format/Slide.js
+0
-4
word/Editor/CollaborativeEditing.js
word/Editor/CollaborativeEditing.js
+19
-0
word/Editor/Paragraph/ParaDrawing.js
word/Editor/Paragraph/ParaDrawing.js
+11
-0
No files found.
common/Drawings/Format/GraphicObjectBase.js
View file @
073adb85
...
...
@@ -550,6 +550,10 @@
CGraphicObjectBase
.
prototype
.
getAllRasterImages
=
function
(
mapUrl
){
};
CGraphicObjectBase
.
prototype
.
checkCorrect
=
function
(){
return
true
;
};
CGraphicObjectBase
.
prototype
.
setDrawingBaseType
=
function
(
nType
){
if
(
this
.
drawingBase
){
History
.
Add
(
new
AscDFH
.
CChangesDrawingsLong
(
this
,
AscDFH
.
historyitem_AutoShapes_SetDrawingBaseType
,
this
.
drawingBase
.
Type
,
nType
));
...
...
slide/Editor/Format/Comments.js
View file @
073adb85
...
...
@@ -51,7 +51,7 @@ AscDFH.drawingsConstructorsMap[AscDFH.historyitem_Comment_Position] = AscFormat.
AscDFH
.
drawingsConstructorsMap
[
AscDFH
.
historyitem_Comment_Change
]
=
CCommentData
;
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Comment_Position
]
=
function
(
oClass
,
value
){
oClass
.
x
=
value
.
a
,
oClass
.
y
=
value
.
b
;};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Comment_Position
]
=
function
(
oClass
,
value
){
oClass
.
x
=
value
.
a
;
oClass
.
y
=
value
.
b
;};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Comment_Change
]
=
function
(
oClass
,
value
){
oClass
.
Data
=
value
;};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Comment_TypeInfo
]
=
function
(
oClass
,
value
){
oClass
.
m_oTypeInfo
=
value
;};
...
...
slide/Editor/Format/Presentation.js
View file @
073adb85
...
...
@@ -393,6 +393,7 @@ AscDFH.drawingContentChanges[AscDFH.historyitem_Presentation_RemoveSlide] = func
AscDFH
.
drawingContentChanges
[
AscDFH
.
historyitem_Presentation_AddSlideMaster
]
=
function
(
oClass
){
return
oClass
.
slideMasters
;};
AscDFH
.
drawingsConstructorsMap
[
AscDFH
.
historyitem_Presentation_SetShowPr
]
=
CShowPr
;
AscDFH
.
drawingsConstructorsMap
[
AscDFH
.
historyitem_Presentation_SlideSize
]
=
AscFormat
.
CDrawingBaseCoordsWritable
function
CPresentation
(
DrawingDocument
)
{
...
...
slide/Editor/Format/Slide.js
View file @
073adb85
...
...
@@ -92,10 +92,6 @@ AscDFH.drawingContentChanges[AscDFH.historyitem_SlideRemoveFromSpTree ] = fu
AscDFH
.
drawingContentChanges
[
AscDFH
.
historyitem_SlideCommentsAddComment
]
=
AscDFH
.
drawingContentChanges
[
AscDFH
.
historyitem_SlideCommentsRemoveComment
]
=
function
(
oClass
){
return
oClass
.
comments
;};
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_SlideSetTiming
]
=
AscDFH
.
CChangesDrawingsObjectNoId
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_SlideSetSize
]
=
AscDFH
.
CChangesDrawingsObjectNoId
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_SlideSetBg
]
=
AscDFH
.
CChangesDrawingsObjectNoId
;
AscDFH
.
drawingsConstructorsMap
[
AscDFH
.
historyitem_SlideSetSize
]
=
AscFormat
.
CDrawingBaseCoordsWritable
;
AscDFH
.
drawingsConstructorsMap
[
AscDFH
.
historyitem_SlideSetBg
]
=
AscFormat
.
CBg
;
...
...
word/Editor/CollaborativeEditing.js
View file @
073adb85
...
...
@@ -740,6 +740,7 @@ CWordCollaborativeEditing.prototype.Undo = function()
var
mapDocumentContents
=
{};
var
mapParagraphs
=
{};
var
mapDrawings
=
{};
for
(
var
nIndex
=
0
,
nCount
=
arrReverseChanges
.
length
;
nIndex
<
nCount
;
++
nIndex
)
{
var
oChange
=
arrReverseChanges
[
nIndex
];
...
...
@@ -750,12 +751,29 @@ CWordCollaborativeEditing.prototype.Undo = function()
mapParagraphs
[
oClass
.
Get_Id
()]
=
oClass
;
else
if
(
oClass
.
IsParagraphContentElement
&&
true
===
oClass
.
IsParagraphContentElement
()
&&
true
===
oChange
.
IsContentChange
()
&&
oClass
.
Get_Paragraph
())
mapParagraphs
[
oClass
.
Get_Paragraph
().
Get_Id
()]
=
oClass
.
Get_Paragraph
();
else
if
(
oClass
instanceof
AscCommonWord
.
ParaDrawing
){
mapDrawings
[
oClass
.
Get_Id
()]
=
oClass
;
}
}
// Создаем точку в истории. Делаем действия через обычные функции (с отключенным пересчетом), которые пишут в
// историю. Сохраняем список изменений в новой точке, удаляем данную точку.
var
oHistory
=
AscCommon
.
History
;
oHistory
.
CreateNewPointForCollectChanges
();
var
oDrawing
;
for
(
var
sId
in
mapDrawings
){
if
(
mapDrawings
.
hasOwnProperty
(
sId
)){
oDrawing
=
mapDrawings
[
sId
];
if
(
!
oDrawing
.
CheckCorrect
()){
var
oParentParagraph
=
oDrawing
.
Get_ParentParagraph
();
oDrawing
.
Remove_FromDocument
(
false
);
if
(
oParentParagraph
){
mapParagraphs
[
oParentParagraph
.
Get_Id
()]
=
oParentParagraph
;
}
}
}
}
for
(
var
sId
in
mapDocumentContents
)
{
var
oDocumentContent
=
mapDocumentContents
[
sId
];
...
...
@@ -766,6 +784,7 @@ CWordCollaborativeEditing.prototype.Undo = function()
oDocumentContent
.
Add_ToContent
(
nContentLen
,
oNewParagraph
);
}
}
for
(
var
sId
in
mapParagraphs
)
{
var
oParagraph
=
mapParagraphs
[
sId
];
...
...
word/Editor/Paragraph/ParaDrawing.js
View file @
073adb85
...
...
@@ -215,6 +215,17 @@ ParaDrawing.prototype.Search_GetId = function(bNext, bCurrent)
return
this
.
GraphicObj
.
Search_GetId
(
bNext
,
bCurrent
);
return
null
;
};
ParaDrawing
.
prototype
.
CheckCorrect
=
function
(){
if
(
!
this
.
GraphicObj
){
return
false
;
}
if
(
this
.
GraphicObj
&&
this
.
GraphicObj
.
checkCorrect
){
return
this
.
GraphicObj
.
checkCorrect
();
}
return
true
;
};
ParaDrawing
.
prototype
.
Get_AllDrawingObjects
=
function
(
DrawingObjects
)
{
if
(
null
==
DrawingObjects
)
...
...
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