public IList<Shape> Execute(StyleOption option, EffectsDesigner designer, ImageItem source, Shape imageShape, Settings settings) { if (settings != null && settings.IsInsertCitation) { designer.ApplyImageReferenceInsertion(source.Source, "Calibri", settings.CitationFontColor, settings.CitationFontSize, settings.IsUseCitationTextBox ? settings.CitationTextBoxColor : "", settings.GetCitationTextBoxAlignment()); } if (settings != null && settings.IsInsertCitationToNote) { designer.ApplyImageReferenceToSlideNote(source.Source); } else { designer.RemoveImageReference(); } return new List<Shape>(); }
public IList <Shape> Execute(StyleOption option, EffectsDesigner designer, ImageItem source, Shape imageShape, Settings settings) { if (settings != null && settings.IsInsertCitation) { designer.ApplyImageReferenceInsertion(source.Source, "Calibri", settings.CitationFontColor, settings.CitationFontSize, settings.IsUseCitationTextBox ? settings.CitationTextBoxColor : "", settings.GetCitationTextBoxAlignment()); } if (settings != null && settings.IsInsertCitationToNote) { designer.ApplyImageReferenceToSlideNote(source.Source); } else { designer.RemoveImageReference(); } return(new List <Shape>()); }