Ejemplo n.º 1
0
        public Relationship AddFontTable(FontTable fontTable, string path)
        {
            Relationship rel = new Relationship(
                fontTable,
                "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",
                path);

            _relationships[rel.Id] = rel;
            return(rel);
        }
Ejemplo n.º 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");
        }