Beispiel #1
0
        public void AddXHTMLTextItem(IBaseXHTMLFile baseXhtmlFile)
        {
            var bookItem = new ManifestItemV3
            {
                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 SpineItemV3 {
                    Name = baseXhtmlFile.Id
                };
                if (V3StandardChecker.IsRenditionFlowAllowedByStandard(_standard))
                {
                    bookSpine.Flow = SpineItemV3.FlowOptions.Auto;
                    //TODO: make this optional, based on settings to define look and find best properties for defaults
                }
                _spine.Add(bookSpine);
            }
            _guide.AddDocumentToNavigation(baseXhtmlFile);
        }