Example #1
0
 internal Fb2EPubTextConverterV2(IEPubCommonSettings commonSettings, ImageManager images, HRefManagerV2 referencesManager, ulong maxSize)
 {
     _commonSettings = commonSettings;
     _images = images;
     _referencesManager = referencesManager;
     _maxSize = maxSize;
 }
 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;
 }
Example #3
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";
 }
 internal Fb2EPubTextConverterV2(IEPubCommonSettings commonSettings, ImageManager images, HRefManagerV2 referencesManager, ulong maxSize)
 {
     _commonSettings    = commonSettings;
     _images            = images;
     _referencesManager = referencesManager;
     _maxSize           = maxSize;
 }