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
68e6ec7b
Commit
68e6ec7b
authored
Jul 05, 2017
by
SergeyLuzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
notes save to pptt
parent
5a30935b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
100 additions
and
1 deletion
+100
-1
common/Shapes/SerializeWriter.js
common/Shapes/SerializeWriter.js
+100
-1
No files found.
common/Shapes/SerializeWriter.js
View file @
68e6ec7b
...
...
@@ -507,6 +507,10 @@ function CBinaryFileWriter()
for
(
var
i
=
0
;
i
<
_slide_count
;
i
++
)
{
_dst_slides
[
i
]
=
_slides
[
i
];
if
(
_slides
[
i
].
notes
)
{
_dst_notes
.
push
(
_slides
[
i
].
notes
);
}
var
_m
=
_slides
[
i
].
Layout
.
Master
;
var
is_found
=
false
;
...
...
@@ -548,6 +552,22 @@ function CBinaryFileWriter()
}
}
for
(
var
i
=
0
;
i
<
_dst_notes
.
length
;
++
i
)
{
for
(
var
j
=
0
;
j
<
_dst_notesMasters
.
length
;
++
j
)
{
if
(
_dst_notesMasters
[
j
]
===
_dst_notes
[
i
].
Master
)
{
break
;
}
}
if
(
j
===
_dst_notesMasters
.
length
)
{
_dst_notesMasters
.
push
(
_dst_notes
[
i
].
Master
);
}
}
var
_dst_masters_len
=
_dst_masters
.
length
;
if
(
0
==
_dst_masters_len
&&
presentation
.
slideMasters
.
length
>
0
)
{
...
...
@@ -592,6 +612,18 @@ function CBinaryFileWriter()
}
}
var
i
,
j
;
for
(
i
=
0
;
i
<
_dst_notesMasters
.
length
;
++
i
){
for
(
j
=
0
;
j
<
_dst_themes
.
length
;
++
j
){
if
(
_dst_themes
[
j
]
===
_dst_notesMasters
[
i
].
Theme
){
break
;
}
}
if
(
j
===
_dst_themes
.
length
){
_dst_themes
.
push
(
_dst_notesMasters
[
i
].
Theme
);
}
}
//var _count_table_styles = presentation.globalTableStyles.length;
//if (0 < _count_table_styles)
//{
...
...
@@ -658,6 +690,72 @@ function CBinaryFileWriter()
this
.
WriteUChar
(
g_nodeAttributeEnd
);
this
.
EndRecord
();
this
.
StartMainRecord
(
c_oMainTables
.
SlideNotesRels
);
this
.
StartRecord
(
c_oMainTables
.
SlideNotesRels
);
this
.
WriteUChar
(
g_nodeAttributeStart
);
var
_rels
,
slideNotes
,
i
,
j
;
var
_notes
=
_dst_notes
;
var
_notes_count
=
_notes
.
length
;
for
(
var
i
=
0
;
i
<
_slide_count
;
++
i
){
slideNotes
=
presentation
.
Slides
[
i
].
notes
;
_rels
=
-
1
;
if
(
slideNotes
){
for
(
j
=
0
;
j
<
_notes_count
;
++
j
){
if
(
_notes
[
j
]
===
slideNotes
){
_rels
=
j
;
break
;
}
}
}
this
.
_WriteInt1
(
0
,
_rels
);
}
this
.
WriteUChar
(
g_nodeAttributeEnd
);
this
.
EndRecord
();
this
.
StartMainRecord
(
c_oMainTables
.
NotesMastersRels
);
this
.
StartRecord
(
c_oMainTables
.
NotesMastersRels
);
this
.
WriteUChar
(
g_nodeAttributeStart
);
var
_notes_masters
=
_dst_notesMasters
;
var
_notes_masters_count
=
_notes_masters
.
length
;
var
_themes
=
_dst_themes
;
var
_thems_count
=
_themes
.
length
;
var
_theme
;
for
(
i
=
0
;
i
<
_notes_masters_count
;
++
i
){
_theme
=
_notes_masters
[
i
].
Theme
;
_rels
=
-
1
;
for
(
j
=
0
;
j
<
_thems_count
;
++
j
){
if
(
_theme
===
_themes
[
j
]){
_rels
=
j
;
break
;
}
}
this
.
_WriteInt1
(
0
,
_rels
);
}
this
.
WriteUChar
(
g_nodeAttributeEnd
);
this
.
EndRecord
();
this
.
StartMainRecord
(
c_oMainTables
.
NotesRels
);
this
.
StartRecord
(
c_oMainTables
.
NotesRels
);
this
.
WriteUChar
(
g_nodeAttributeStart
);
var
_notes_count
=
_notes
.
length
;
for
(
i
=
0
;
i
<
_notes_count
;
++
i
){
slideNotes
=
_notes
[
i
];
_rels
=
-
1
;
for
(
j
=
0
;
j
<
_notes_masters_count
;
++
j
){
if
(
slideNotes
.
Master
===
_notes_masters
[
j
]){
_rels
=
j
;
break
;
}
}
this
.
_WriteInt1
(
0
,
_rels
);
}
this
.
WriteUChar
(
g_nodeAttributeEnd
);
this
.
EndRecord
();
this
.
StartMainRecord
(
c_oMainTables
.
ThemeRels
);
this
.
StartRecord
(
c_oMainTables
.
ThemeRels
);
var
_master_count
=
_dst_masters
.
length
;
...
...
@@ -692,6 +790,7 @@ function CBinaryFileWriter()
}
this
.
EndRecord
();
var
_count_arr
=
0
;
_count_arr
=
_dst_themes
.
length
;
...
...
@@ -1458,7 +1557,7 @@ function CBinaryFileWriter()
this
.
WriteRecord1
(
0
,
_master
.
cSld
,
this
.
WriteCSld
);
this
.
WriteRecord1
(
1
,
_master
.
clrMap
,
this
.
WriteClrMap
);
this
.
WriteRecord2
(
2
,
_master
.
hf
,
this
.
WriteHF
);
this
.
WriteRecord2
(
3
,
_master
.
notesStyle
,
this
.
WriteTextListStyle
);
this
.
WriteRecord2
(
3
,
_master
.
txStyles
,
this
.
WriteTextListStyle
);
this
.
EndRecord
();
}
...
...
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