Skip to content

Commit

Permalink
Small fix for the speaker notes plugin
Browse files Browse the repository at this point in the history
It may support now Office 2013
  • Loading branch information
Ziv-Barber committed Feb 24, 2017
1 parent c00a4d2 commit 1c5f549
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG
@@ -1,5 +1,6 @@
- Git Master:
- Version 0.4.3:
- PowerPoint:
- Improved speaker notes support.
- Improved title layout API.
- Excel:
- New API to change the width of every cell instead of changing it directly. Warning! the internal format of sheet.width been changed!!!
Expand Down
14 changes: 13 additions & 1 deletion lib/pptxplg-speakernotes.js
Expand Up @@ -159,7 +159,7 @@ MakeSpknotesPlugin.prototype.beforeGen = function ( docObj ) {
this.ogPluginsApi.intAddAnyResourceToParse ( this.mainPath + '\\notesMasters\\_rels\\notesMaster1.xml.rels', 'buffer', [
{
type: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme',
target: '../theme/theme1.xml'
target: '../theme/theme2.xml'
}
], this.pluginsman.genPrivate.plugs.type.msoffice.cbMakeRels, false );

Expand All @@ -168,13 +168,25 @@ MakeSpknotesPlugin.prototype.beforeGen = function ( docObj ) {
target: 'notesMasters/notesMaster1.xml',
type: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster',
clear: 'generate' // Placing 'generate' here means that officegen will destroy this entry in the files list after finishing to generate the document.
},
{
type: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme',
target: 'theme/theme2.xml',
clear: 'generate'
});

funcThis.ogPluginsApi.intAddAnyResourceToParse ( funcThis.mainPath + '\\theme\\theme2.xml', 'buffer', null, function ( data ) { return funcThis.cbMakeTheme2 ( data ); }, false );

// Add the notes master to the list of files in the document:
this.filesList.push ({
name: '/' + this.mainPath + '/notesMasters/notesMaster1.xml',
type: 'application/vnd.openxmlformats-officedocument.presentationml.notesMaster+xml',
clear: 'generate' // Placing 'generate' here means that officegen will destroy this entry in the files list after finishing to generate the document.
},
{
name: '/' + this.mainPath + '/theme/theme2.xml',
type: 'application/vnd.openxmlformats-officedocument.theme+xml',
clear: 'generate' // Placing 'generate' here means that officegen will destroy this entry in the files list after finishing to generate the document.
});
} // Endif.
};
Expand Down

0 comments on commit 1c5f549

Please sign in to comment.