@@ -123,6 +123,8 @@ export class Master implements IMaster {
123123 sourceIdentifier : SourceIdentifier ;
124124 } ) {
125125 this . sourceTemplate = params . template ;
126+
127+ // ToDo analogue for slideMasters
126128 // this.sourceNumber = this.getSlideNumber(
127129 // params.template,
128130 // params.sourceIdentifier,
@@ -141,6 +143,8 @@ export class Master implements IMaster {
141143 }
142144
143145 /**
146+ * ToDo: Implement creationIds as well for slideMasters
147+ *
144148 * Try to convert a given slide's creationId to corresponding slide number.
145149 * Used if automizer is run with useCreationIds: true
146150 * @internal
@@ -195,7 +199,7 @@ export class Master implements IMaster {
195199 await this . copySlideFiles ( ) ;
196200 await this . copyRelatedLayouts ( ) ;
197201 await this . copyRelatedContent ( ) ;
198- await this . addSlideToPresentation ( ) ;
202+ await this . addSlideMasterToPresentation ( ) ;
199203 await this . copyThemeFiles ( ) ;
200204
201205 if ( this . importElements . length ) {
@@ -306,17 +310,22 @@ export class Master implements IMaster {
306310 * @internal
307311 * @returns slide to presentation
308312 */
309- async addSlideToPresentation ( ) : Promise < void > {
313+ async addSlideMasterToPresentation ( ) : Promise < void > {
310314 const relId = await XmlHelper . getNextRelId (
311315 this . targetArchive ,
312316 'ppt/_rels/presentation.xml.rels' ,
313317 ) ;
314318 await this . appendToSlideRel ( this . targetArchive , relId , this . targetNumber ) ;
315319 await this . appendToSlideList ( this . targetArchive , relId ) ;
316- await this . appendSlideToContentType ( this . targetArchive , this . targetNumber ) ;
320+ await this . appendSlideMasterToContentType (
321+ this . targetArchive ,
322+ this . targetNumber ,
323+ ) ;
317324 }
318325
319326 /**
327+ * ToDo: This equals the corresponding method in slide.ts
328+ *
320329 * Select and modify a single element on an added slide.
321330 * @param {string } selector - Element's name on the slide.
322331 * Should be a unique string defined on the "Selection"-pane within ppt.
@@ -340,6 +349,8 @@ export class Master implements IMaster {
340349 }
341350
342351 /**
352+ * ToDo: This equals the corresponding method in slide.ts
353+ *
343354 * Select, insert and (optionally) modify a single element to a slide.
344355 * @param {string } presName - Filename or alias name of the template presentation.
345356 * Must have been importet with Automizer.load().
@@ -363,6 +374,8 @@ export class Master implements IMaster {
363374 }
364375
365376 /**
377+ * ToDo: This equals the corresponding method in slide.ts
378+ *
366379 * Remove a single element from slide.
367380 * @param {string } selector - Element's name on the slide.
368381 */
@@ -380,6 +393,8 @@ export class Master implements IMaster {
380393 }
381394
382395 /**
396+ * ToDo: This equals the corresponding method in slide.ts
397+ *
383398 * Adds element to modifications list
384399 * @internal
385400 * @param presName
@@ -408,6 +423,8 @@ export class Master implements IMaster {
408423 }
409424
410425 /**
426+ * ToDo: This equals the corresponding method in slide.ts
427+ *
411428 * Imported selected elements
412429 * @internal
413430 * @returns selected elements
@@ -445,6 +462,8 @@ export class Master implements IMaster {
445462 }
446463
447464 /**
465+ * ToDo: This *ALMOST* equals the corresponding method in slide.ts
466+ *
448467 * Gets element info
449468 * @internal
450469 * @param importElement
@@ -506,6 +525,14 @@ export class Master implements IMaster {
506525 } ;
507526 }
508527
528+ /**
529+ * ToDo: This equals the corresponding method in slide.ts
530+ *
531+ * @param selector
532+ * @param sourceArchive
533+ * @param sourcePath
534+ * @param useCreationIds
535+ */
509536 async findElementOnSlide (
510537 selector : FindElementSelector ,
511538 sourceArchive : IArchive ,
@@ -556,6 +583,8 @@ export class Master implements IMaster {
556583 }
557584
558585 /**
586+ * ToDo: This equals the corresponding method in slide.ts
587+ *
559588 * Analyzes element
560589 * @internal
561590 * @param sourceElement
@@ -617,6 +646,8 @@ export class Master implements IMaster {
617646 }
618647
619648 /**
649+ * ToDo: This equals the corresponding method in slide.ts
650+ *
620651 * Applys modifications
621652 * @internal
622653 * @returns modifications
@@ -633,6 +664,8 @@ export class Master implements IMaster {
633664 }
634665
635666 /**
667+ * ToDo: This equals the corresponding method in slide.ts
668+ *
636669 * Removes all unsupported tags from slide xml.
637670 * E.g. added relations & tags by Thinkcell cannot
638671 * be processed by pptx-automizer at the moment.
@@ -733,7 +766,7 @@ export class Master implements IMaster {
733766 * @param slideCount
734767 * @returns slide to content type
735768 */
736- appendSlideToContentType (
769+ appendSlideMasterToContentType (
737770 rootArchive : IArchive ,
738771 slideCount : number ,
739772 ) : Promise < HelperElement > {
@@ -770,6 +803,8 @@ export class Master implements IMaster {
770803 }
771804
772805 /**
806+ * ToDo: This equals the corresponding method in slide.ts
807+ *
773808 * Appends notes to content type
774809 * @internal
775810 * @param rootArchive
@@ -789,6 +824,8 @@ export class Master implements IMaster {
789824 }
790825
791826 /**
827+ * ToDo: This equals the corresponding method in slide.ts
828+ *
792829 * Copys related content
793830 * @internal
794831 * @returns related content
0 commit comments