Beispiel #1
0
 public void AddXPGTTemplate(AdobeTemplate template)
 {
     var maincss = new ManifestItemV2 { HRef = template.PathInEPUB.GetRelativePath(DefaultInternalPaths.ContentFilePath, _flatStructure), ID = template.ID, MediaType = template.GetMediaType() };
     _manifest.Add(maincss);
 }
Beispiel #2
0
 public void AddTOC()
 {
     var tocItem = new ManifestItemV2 { HRef = DefaultInternalPaths.TOCFilePath.GetRelativePath(DefaultInternalPaths.ContentFilePath, _flatStructure), ID = "ncx", MediaType = EPubCoreMediaType.ApplicationNCX };
     _manifest.Add(tocItem);                     
 }
Beispiel #3
0
 public void AddCSS(CSSFile cssFile)
 {
     var maincss = new ManifestItemV2 { HRef = cssFile.PathInEPUB.GetRelativePath(DefaultInternalPaths.ContentFilePath, _flatStructure), ID = cssFile.ID, MediaType = CSSFile.MediaType };
     _manifest.Add(maincss);
 }
Beispiel #4
0
        public void AddXHTMLTextItem(IBaseXHTMLFile baseXhtmlFile)
        {
            var bookItem = new ManifestItemV2 { HRef = baseXhtmlFile.HRef, ID = baseXhtmlFile.Id, MediaType = EPubCoreMediaType.ApplicationXhtmlXml };
            _manifest.Add(bookItem);

            if (baseXhtmlFile.GuideRole != GuideTypeEnum.Ignore) // we do not add objects that to be ignored 
            {
                var bookSpine = new SpineItemV2 {Name = baseXhtmlFile.Id};
                _spine.Add(bookSpine);
            }

            _guide.AddDocumentToNavigation(baseXhtmlFile);                
        }