/** * Read document */ internal override void OnDocumentRead() { FootnotesDocument notesDoc; Stream is1 = null; try { is1 = GetPackagePart().GetInputStream(); XmlDocument xmldoc = ConvertStreamToXml(is1); notesDoc = FootnotesDocument.Parse(xmldoc, NamespaceManager); ctFootnotes = notesDoc.Footnotes; } catch (XmlException) { throw new POIXMLException(); } finally { if (is1 != null) { is1.Close(); } } //get any Footnote if (ctFootnotes.footnote != null) { foreach (CT_FtnEdn note in ctFootnotes.footnote) { listFootnote.Add(new XWPFFootnote(note, this)); } } }
internal override void OnDocumentRead() { try { this.ctFootnotes = FootnotesDocument.Parse(this.GetPackagePart().GetInputStream()).Footnotes; } catch (XmlException ex) { throw new POIXMLException(); } foreach (CT_FtnEdn footnote in this.ctFootnotes.FootnoteList) { this.listFootnote.Add(new XWPFFootnote(footnote, this)); } }
/** * Read document */ internal override void OnDocumentRead() { FootnotesDocument notesDoc; try { Stream is1 = GetPackagePart().GetInputStream(); notesDoc = FootnotesDocument.Parse(is1); ctFootnotes = notesDoc.Footnotes; } catch (XmlException) { throw new POIXMLException(); } //get any Footnote foreach(CT_FtnEdn note in ctFootnotes.FootnoteList) { listFootnote.Add(new XWPFFootnote(note, this)); } }
/** * Read document */ internal override void OnDocumentRead() { FootnotesDocument notesDoc; try { Stream is1 = GetPackagePart().GetInputStream(); notesDoc = FootnotesDocument.Parse(is1); ctFootnotes = notesDoc.Footnotes; } catch (XmlException) { throw new POIXMLException(); } //get any Footnote foreach (CT_FtnEdn note in ctFootnotes.FootnoteList) { listFootnote.Add(new XWPFFootnote(note, this)); } }
/** * Read document */ internal override void OnDocumentRead() { FootnotesDocument notesDoc; try { XmlDocument xmldoc = ConvertStreamToXml(GetPackagePart().GetInputStream()); notesDoc = FootnotesDocument.Parse(xmldoc, NamespaceManager); ctFootnotes = notesDoc.Footnotes; } catch (XmlException) { throw new POIXMLException(); } //get any Footnote if (ctFootnotes.footnote != null) { foreach (CT_FtnEdn note in ctFootnotes.footnote) { listFootnote.Add(new XWPFFootnote(note, this)); } } }
public void SetFootnotes(CT_Footnotes footnotes) { this.ctFootnotes = footnotes; }
public FootnotesDocument(CT_Footnotes footnotes) { this.footnotes = footnotes; }
public FootnotesDocument() { footnotes = new CT_Footnotes(); }
/** * Sets the ctFootnotes * @param footnotes */ public void SetFootnotes(CT_Footnotes footnotes) { ctFootnotes = footnotes; }
public static FootnotesDocument Parse(XDocument doc, XmlNamespaceManager namespaceMgr) { CT_Footnotes obj = CT_Footnotes.Parse(doc.Document.Root, namespaceMgr); return(new FootnotesDocument(obj)); }