C# Class Bloom.Publish.SHRP_PupilBookExtension

This class currently just does one thing; it adds a right-click menu item in the Publish tab that saved PNG thumbnails of all the "day" pages of a SHRP Pupil's book. These are used in the corresponding "Teacher's Guide". It is built as an MEF "part", exporting what Bloom needs (the menu item) and importing what it needs (e.g. the contents of the book, an html thumbnailer) Currently (In Dec 2013), it isn't actually an extension because it doesn't have its own DLL. But it does demonstrate that we could trivially have extension dlls coming with templates, in separate DLLS. The key is keeping the dependences to a minimum so that extension don't break with each version of Bloom.
ファイルを表示 Open project: BloomBooks/BloomDesktop Class Usage Examples

Public Methods

Method Description
ExtensionIsApplicable ( Book book ) : bool

Private Methods

Method Description
GetPublishingMenuCommands ( ) : IEnumerable
HandleThumbnailerError ( HtmlDom pageDom, Exception error ) : void
MakeThumbnailsForTeachersGuide ( object sender, EventArgs e ) : void
PlaceThumbnailOrders ( object sender, DoWorkEventArgs doWorkEventArgs ) : void
ThumbnailReady ( string exportFolder, HtmlDom dom, Image image ) : void

Method Details

ExtensionIsApplicable() public static method

public static ExtensionIsApplicable ( Book book ) : bool
book Bloom.Book.Book
return bool