Пример #1
0
 private Image CreateCoverImage(InlineImageItem item, HRefManagerV2 refManagerV2)
 {
     var coverImage = new Image(Compatibility);
     coverImage.GlobalAttributes.Class.Value = ElementStylesV2.CoverImage;
     coverImage.Source.Value = refManagerV2.AddImageRefferenced(item, coverImage);
     coverImage.Alt.Value = "Cover";
     return coverImage;
 }
Пример #2
0
 public CoverPageFileV2(InlineImageItem item, HRefManagerV2 refManagerV2)
 {
     _coverImage = CreateCoverImage(item, refManagerV2);
     InternalPageTitle = "Cover";
     GuideRole = GuideTypeEnum.Cover;
     Id = "cover";
     FileEPubInternalPath = EPubInternalPath.GetDefaultLocation(DefaultLocations.DefaultTextFolder);
     FileName = "cover.xhtml";
 }
Пример #3
0
 public CoverPageFileV3(InlineImageItem item,HRefManagerV3 refManagerV3)
 {
     _coverImage = CreateCoverImage(item,refManagerV3);
     InternalPageTitle = "Cover";
     GuideRole = GuideTypeEnum.Cover;
     Id = "cover";
     FileEPubInternalPath = EPubInternalPath.GetDefaultLocation(DefaultLocations.DefaultTextFolder);
     FileName = "cover.xhtml";
     SetDocumentEpubType(EpubV3Vocabulary.Cover);
 }