Commit 35ddffa9 authored by Sergey Konovalov's avatar Sergey Konovalov

open presentation notes

parent 8da0d316
...@@ -671,6 +671,38 @@ function BinaryPPTYLoader() ...@@ -671,6 +671,38 @@ function BinaryPPTYLoader()
_slideNum++; _slideNum++;
} }
} }
if (undefined != _main_tables["45"])
{
s.Seek2(_main_tables["45"]);
s.Skip2(6); // type + len + start attr
var _noteNum = 0;
while (true)
{
var _at = s.GetUChar();
if (_at == g_nodeAttributeEnd)
break;
var indexL = s.GetLong();
var note = this.presentation.notes[indexL];
}
}
if (undefined != _main_tables["46"])
{
s.Seek2(_main_tables["46"]);
s.Skip2(6); // type + len + start attr
var _noteNum = 0;
while (true)
{
var _at = s.GetUChar();
if (_at == g_nodeAttributeEnd)
break;
var indexL = s.GetLong();
_noteNum++;
}
}
} }
if (this.Api != null && !this.IsThemeLoader) if (this.Api != null && !this.IsThemeLoader)
...@@ -3421,7 +3453,7 @@ function BinaryPPTYLoader() ...@@ -3421,7 +3453,7 @@ function BinaryPPTYLoader()
this.ReadNoteMaster = function() this.ReadNoteMaster = function()
{ {
var oNotesMaster = new AscFormat.CNotesMaster(); var oNotesMaster = new AscCommonSlide.CNotesMaster();
this.stream.Skip2(1); // type this.stream.Skip2(1); // type
var end = this.stream.cur + this.stream.GetLong() + 4; var end = this.stream.cur + this.stream.GetLong() + 4;
while(this.stream.cur < end){ while(this.stream.cur < end){
...@@ -3455,7 +3487,7 @@ function BinaryPPTYLoader() ...@@ -3455,7 +3487,7 @@ function BinaryPPTYLoader()
case 3: case 3:
{ {
oNotesMaster.setNotesStyle(this.ReadTxStyles()); oNotesMaster.setNotesStyle(this.ReadTextListStyle());
break; break;
} }
default: default:
...@@ -3475,7 +3507,7 @@ function BinaryPPTYLoader() ...@@ -3475,7 +3507,7 @@ function BinaryPPTYLoader()
var oNotes = new AscCommonSlide.CNotes(); var oNotes = new AscCommonSlide.CNotes();
var _s = this.stream; var _s = this.stream;
_s.Skip2(1); // type _s.Skip2(1); // type
var _end = _s.GetPos() + _s.GetLong() + 4; var _end = _s.cur + _s.GetLong() + 4;
_s.Skip2(1); // attribute start _s.Skip2(1); // attribute start
while (true) while (true)
......
...@@ -67,7 +67,8 @@ var c_oMainTables = { ...@@ -67,7 +67,8 @@ var c_oMainTables = {
ImageMap : 42, ImageMap : 42,
FontMap : 43, FontMap : 43,
FontsEmbedded : 44 SlideNotesRels : 45,
NotesRels : 46
}; };
function CSeekTableEntry() function CSeekTableEntry()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment