Ejemplo n.º 1
0
        private void tableOfContentToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MyNode     node = treeView1.SelectedNode.Tag as MyNode;
            NavDetails nav  = node.Tag as NavDetails;

            OpfDocument doc = new OpfDocument();

            doc.AddTOCContentRef(nav.File);
        }
Ejemplo n.º 2
0
        internal override void UpdateFile()
        {
            string text = CreateHtmlTOC();

            if (!string.IsNullOrEmpty(fileOutName) || !string.IsNullOrEmpty(text))
            {
                fileOutStream = text.ToStream();
                UpdateZip();

                if (CreateTOCNeeded)
                {
                    //We need to add the new file inside the spine and manifest and guide
                    OpfDocument doc  = new OpfDocument();
                    string      file = Variables.OPFpath.Length == 0 ? fileOutName : fileOutName.Replace(Variables.OPFpath, "");
                    doc.AddTOCContentRef(file);
                    doc.AddHtmlFile(file);//Will also add the spine option
                }

                Utils.NewFilename();
            }
        }
        internal override void UpdateFile()
        {
            string text = CreateHtmlTOC();

            if (!string.IsNullOrEmpty(fileOutName) || !string.IsNullOrEmpty(text))
            {
                fileOutStream = text.ToStream();
                UpdateZip();

                if (CreateTOCNeeded)
                {
                    //We need to add the new file inside the spine and manifest and guide
                    OpfDocument doc = new OpfDocument();
                    string file = Variables.OPFpath.Length == 0 ? fileOutName : fileOutName.Replace(Variables.OPFpath, "");
                    doc.AddTOCContentRef(file);
                    doc.AddHtmlFile(file);//Will also add the spine option
                }

                Utils.NewFilename();
            }
        }
Ejemplo n.º 4
0
        private void tableOfContentToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MyNode node = treeView1.SelectedNode.Tag as MyNode;
            NavDetails nav = node.Tag as NavDetails;

            OpfDocument doc = new OpfDocument();
            doc.AddTOCContentRef(nav.File);
        }