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
567154a7
Commit
567154a7
authored
Jul 06, 2017
by
SergeyLuzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
copy notes
parent
6ee15613
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
67 additions
and
0 deletions
+67
-0
slide/Editor/Format/Notes.js
slide/Editor/Format/Notes.js
+61
-0
slide/Editor/Format/Presentation.js
slide/Editor/Format/Presentation.js
+3
-0
slide/Editor/Format/Slide.js
slide/Editor/Format/Slide.js
+3
-0
No files found.
slide/Editor/Format/Notes.js
View file @
567154a7
...
...
@@ -68,6 +68,23 @@
return
AscDFH
.
historyitem_type_Notes
;
};
CNotes
.
prototype
.
Get_Id
=
function
()
{
return
this
.
Id
;
};
CNotes
.
prototype
.
Clear_ContentChanges
=
function
()
{
};
CNotes
.
prototype
.
Add_ContentChanges
=
function
(
Changes
)
{
};
CNotes
.
prototype
.
Refresh_ContentChanges
=
function
()
{
};
CNotes
.
prototype
.
Write_ToBinary2
=
function
(
w
){
w
.
WriteLong
(
this
.
getObjectType
());
w
.
WriteString2
(
this
.
Id
);
...
...
@@ -187,6 +204,50 @@
return
this
.
Master
.
Theme
;
};
CNotes
.
prototype
.
Refresh_RecalcData
=
function
(){
};
CNotes
.
prototype
.
Refresh_RecalcData2
=
function
(){
};
CNotes
.
prototype
.
createDuplicate
=
function
(){
var
copy
=
new
CNotes
();
if
(
this
.
clrMap
){
copy
.
setClrMap
(
this
.
clrMap
.
createDuplicate
());
}
if
(
typeof
this
.
cSld
.
name
===
"
string
"
&&
this
.
cSld
.
name
.
length
>
0
)
{
copy
.
setCSldName
(
this
.
cSld
.
name
);
}
if
(
this
.
cSld
.
Bg
)
{
copy
.
changeBackground
(
this
.
cSld
.
Bg
.
createFullCopy
());
}
for
(
var
i
=
0
;
i
<
this
.
cSld
.
spTree
.
length
;
++
i
)
{
var
_copy
;
_copy
=
this
.
cSld
.
spTree
[
i
].
copy
();
copy
.
addToSpTreeToPos
(
copy
.
cSld
.
spTree
.
length
,
_copy
);
copy
.
cSld
.
spTree
[
copy
.
cSld
.
spTree
.
length
-
1
].
setParent2
(
copy
);
}
if
(
AscFormat
.
isRealBool
(
this
.
showMasterPhAnim
))
{
copy
.
setShowPhAnim
(
this
.
showMasterPhAnim
);
}
if
(
AscFormat
.
isRealBool
(
this
.
showMasterSp
))
{
copy
.
setShowMasterSp
(
this
.
showMasterSp
);
}
copy
.
setNotesMaster
(
this
.
Master
);
return
copy
;
};
function
CreateNotes
(){
var
oN
=
new
CNotes
();
var
oSp
=
new
AscFormat
.
CShape
();
...
...
slide/Editor/Format/Presentation.js
View file @
567154a7
...
...
@@ -1776,6 +1776,7 @@ CPresentation.prototype =
if
(
this
.
Slides
[
this
.
CurPage
])
{
editor
.
WordControl
.
Thumbnails
.
SetFocusElement
(
FOCUS_OBJECT_MAIN
);
this
.
FocusOnNotes
=
false
;
var
oController
=
this
.
Slides
[
this
.
CurPage
].
graphicObjects
;
History
.
Create_NewPoint
(
AscDFH
.
historydescription_Presentation_AddFlowImage
);
var
Image
=
oController
.
createImage
(
Img
,
(
this
.
Slides
[
this
.
CurPage
].
Width
-
W
)
/
2
,
(
this
.
Slides
[
this
.
CurPage
].
Height
-
H
)
/
2
,
W
,
H
);
...
...
@@ -1828,6 +1829,7 @@ CPresentation.prototype =
_this
.
Slides
[
_this
.
CurPage
]
&&
_this
.
Slides
[
_this
.
CurPage
].
graphicObjects
.
checkSelectedObjectsAndCallback
(
function
()
{
editor
.
WordControl
.
Thumbnails
.
SetFocusElement
(
FOCUS_OBJECT_MAIN
);
this
.
FocusOnNotes
=
false
;
var
Image
=
_this
.
Slides
[
_this
.
CurPage
].
graphicObjects
.
getChartSpace2
(
binary
,
null
);
Image
.
setParent
(
_this
.
Slides
[
_this
.
CurPage
]);
Image
.
addToDrawingObjects
();
...
...
@@ -1901,6 +1903,7 @@ CPresentation.prototype =
if
(
this
.
Document_Is_SelectionLocked
(
AscCommon
.
changestype_AddShape
,
graphic_frame
)
===
false
)
{
editor
.
WordControl
.
Thumbnails
.
SetFocusElement
(
FOCUS_OBJECT_MAIN
);
this
.
FocusOnNotes
=
false
;
//this.Slides[this.CurPage].graphicObjects.resetSelection();
//this.Slides[this.CurPage].graphicObjects.selectObject(graphic_frame, 0);
this
.
Check_GraphicFrameRowHeight
(
graphic_frame
);
...
...
slide/Editor/Format/Slide.js
View file @
567154a7
...
...
@@ -293,6 +293,9 @@ Slide.prototype =
copy
.
applyTiming
(
this
.
timing
.
createDuplicate
());
copy
.
setSlideSize
(
this
.
Width
,
this
.
Height
);
if
(
this
.
notes
){
copy
.
setNotes
(
this
.
notes
.
createDuplicate
());
}
if
(
!
this
.
recalcInfo
.
recalculateBackground
&&
!
this
.
recalcInfo
.
recalculateSpTree
)
{
...
...
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