C# 클래스 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.
파일 보기 프로젝트 열기: BloomBooks/BloomDesktop 1 사용 예제들

공개 메소드들

메소드 설명
ExtensionIsApplicable ( Book book ) : bool

비공개 메소드들

메소드 설명
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

메소드 상세

ExtensionIsApplicable() 공개 정적인 메소드

public static ExtensionIsApplicable ( Book book ) : bool
book Bloom.Book.Book
리턴 bool