C# Class OneNoteConversionTool.FormatConversion.SmsgrFormatConverter

Converter that accepts SMSGR Format
Inheritance: GenericFormatConverter
Show file Open project: OneNoteDev/OneNoteConversionTool Class Usage Examples

Public Methods

Method Description
GetSupportedInputFormat ( ) : string

Returns the name of the input format that this IFormatConverter supports

Protected Methods

Method Description
ConvertPowerPointToOneNote ( PowerPointOpenXml pptOpenXml, string imgsPath, OneNoteGenerator note, string sectionName ) : void

Converts PowerPoint presentan to OneNote while converting the sections in power point to main pages, and slides to sub pages It creates two notebooks, one for the Trainer and one for the student

IncludeStudentNotebook ( ) : bool

Gets whether the trainer notebook should be created or not

IncludeTrainerNotebook ( ) : bool

Gets whether the trainer notebook should be created or not

Private Methods

Method Description
ConvertPowerPointWithSectionsToOneNote ( PowerPointOpenXml pptOpenXml, string imgsPath, OneNoteGenerator note, string sectionId, List sectionNames, List slidesInSections, bool isTrainer ) : void

Helper method to include the common code between the trainer and the student create notebook when converting Power Point files that have sections

ConvertPowerPointWithoutSectionsToOneNote ( PowerPointOpenXml pptOpenXml, string imgsPath, OneNoteGenerator note, string sectionId, bool isTrainer ) : void

Helper method to include the common code between the trainer and the student create notebook when converting Power Point files that doesn't have sections

Method Details

ConvertPowerPointToOneNote() protected method

Converts PowerPoint presentan to OneNote while converting the sections in power point to main pages, and slides to sub pages It creates two notebooks, one for the Trainer and one for the student
protected ConvertPowerPointToOneNote ( PowerPointOpenXml pptOpenXml, string imgsPath, OneNoteGenerator note, string sectionName ) : void
pptOpenXml OneNoteConversionTool.FormatReaders.PowerPointOpenXml
imgsPath string
note OneNoteConversionTool.OutputGenerator.OneNoteGenerator
sectionName string
return void

GetSupportedInputFormat() public method

Returns the name of the input format that this IFormatConverter supports
public GetSupportedInputFormat ( ) : string
return string

IncludeStudentNotebook() protected method

Gets whether the trainer notebook should be created or not
protected IncludeStudentNotebook ( ) : bool
return bool

IncludeTrainerNotebook() protected method

Gets whether the trainer notebook should be created or not
protected IncludeTrainerNotebook ( ) : bool
return bool