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
50630583
Commit
50630583
authored
Jul 04, 2017
by
SergeyLuzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
notes
parent
81c99893
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
slide/Editor/Format/Presentation.js
slide/Editor/Format/Presentation.js
+8
-2
slide/Editor/Format/ShapePrototype.js
slide/Editor/Format/ShapePrototype.js
+2
-1
slide/Editor/Format/Slide.js
slide/Editor/Format/Slide.js
+4
-0
No files found.
slide/Editor/Format/Presentation.js
View file @
50630583
...
@@ -3291,7 +3291,13 @@ CPresentation.prototype =
...
@@ -3291,7 +3291,13 @@ CPresentation.prototype =
Notes_OnMouseUp
:
function
(
e
,
X
,
Y
)
Notes_OnMouseUp
:
function
(
e
,
X
,
Y
)
{
{
this
.
Notes_OnMouseMove
(
e
,
X
,
Y
);
var
oCurSlide
=
this
.
Slides
[
this
.
CurPage
];
if
(
oCurSlide
){
if
(
oCurSlide
.
notesShape
){
oCurSlide
.
notesShape
.
selectionSetEnd
(
e
,
X
,
Y
,
this
.
CurPage
);
this
.
Notes_UpdateSelectionState
();
}
}
},
},
Notes_OnMouseMove
:
function
(
e
,
X
,
Y
)
Notes_OnMouseMove
:
function
(
e
,
X
,
Y
)
...
@@ -3299,7 +3305,7 @@ CPresentation.prototype =
...
@@ -3299,7 +3305,7 @@ CPresentation.prototype =
var
oCurSlide
=
this
.
Slides
[
this
.
CurPage
];
var
oCurSlide
=
this
.
Slides
[
this
.
CurPage
];
if
(
oCurSlide
){
if
(
oCurSlide
){
if
(
oCurSlide
.
notesShape
){
if
(
oCurSlide
.
notesShape
){
if
(
e
.
Is
Lock
ed
){
if
(
e
.
Is
Press
ed
){
oCurSlide
.
notesShape
.
selectionSetEnd
(
e
,
X
,
Y
,
this
.
CurPage
);
oCurSlide
.
notesShape
.
selectionSetEnd
(
e
,
X
,
Y
,
this
.
CurPage
);
this
.
Notes_UpdateSelectionState
();
this
.
Notes_UpdateSelectionState
();
}
}
...
...
slide/Editor/Format/ShapePrototype.js
View file @
50630583
...
@@ -438,7 +438,8 @@ CShape.prototype.getParentObjects = function ()
...
@@ -438,7 +438,8 @@ CShape.prototype.getParentObjects = function ()
slide
:
null
,
slide
:
null
,
layout
:
null
,
layout
:
null
,
master
:
this
.
parent
.
Master
,
master
:
this
.
parent
.
Master
,
theme
:
this
.
themeOverride
?
this
.
themeOverride
:
(
this
.
parent
.
Master
?
this
.
parent
.
Master
.
Theme
:
null
)
theme
:
this
.
themeOverride
?
this
.
themeOverride
:
(
this
.
parent
.
Master
?
this
.
parent
.
Master
.
Theme
:
null
),
notes
:
this
.
parent
}
}
}
}
}
}
...
...
slide/Editor/Format/Slide.js
View file @
50630583
...
@@ -1044,6 +1044,7 @@ Slide.prototype =
...
@@ -1044,6 +1044,7 @@ Slide.prototype =
this
.
notesShape
=
this
.
notes
.
getBodyShape
();
this
.
notesShape
=
this
.
notes
.
getBodyShape
();
}
}
if
(
this
.
notesShape
){
if
(
this
.
notesShape
){
this
.
notes
.
slide
=
this
;
this
.
notes
.
graphicObjects
.
selectObject
(
this
.
notesShape
,
0
);
this
.
notes
.
graphicObjects
.
selectObject
(
this
.
notesShape
,
0
);
this
.
notes
.
graphicObjects
.
selection
.
textSelection
=
this
.
notesShape
;
this
.
notes
.
graphicObjects
.
selection
.
textSelection
=
this
.
notesShape
;
var
oDocContent
=
this
.
notesShape
.
getDocContent
();
var
oDocContent
=
this
.
notesShape
.
getDocContent
();
...
@@ -1476,6 +1477,9 @@ AscFormat.CTextBody.prototype.Get_StartPage_Absolute = function()
...
@@ -1476,6 +1477,9 @@ AscFormat.CTextBody.prototype.Get_StartPage_Absolute = function()
{
{
return
parent_objects
.
slide
.
num
;
return
parent_objects
.
slide
.
num
;
}
}
if
(
parent_objects
.
notes
&&
parent_objects
.
notes
.
slide
){
return
parent_objects
.
notes
.
slide
.
num
;
}
}
}
}
}
return
0
;
return
0
;
...
...
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