public Relationship AddNumberings(Numberings numberings, string path)
        {
            Relationship rel = new Relationship(
                numberings,
                "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",
                path);

            _relationships[rel.Id] = rel;
            return(rel);
        }
Example #2
0
        public Document(string name)
            : base(name)
        {
            _settings   = new Settings("word/settings.xml");
            _styles     = new Styles("word/styles.xml");
            _numberings = new Numberings("word/numbering.xml");
            _fontTable  = new FontTable("word/fontTable.xml");

            //	The physical storage of the part files is /word/whatever.xml
            //	but the relationships to them are relative to the document and
            //	so are just whatever.xml
            _relationships.AddSettings(_settings, "settings.xml");
            _relationships.AddStyles(_styles, "styles.xml");
            _relationships.AddNumberings(_numberings, "numbering.xml");
            _relationships.AddFontTable(_fontTable, "fontTabl.xml");
        }