Ejemplo n.º 1
0
        /// <summary>
        /// Create a new DocumentEntry
        /// </summary>
        /// <param name="document">the new document</param>
        /// <returns>the new DocumentEntry</returns>
        internal DocumentEntry CreateDocument(POIFSDocument document)
        {
            DocumentProperty property = document.DocumentProperty;
            DocumentNode     rval     = new DocumentNode(property, this);

            (( DirectoryProperty )Property).AddChild(property);
            _filesystem.AddDocument(document);
            _entries[property.Name] = rval;
            return(rval);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Create a new DocumentEntry; the data will be provided later
        /// </summary>
        /// <param name="document">the name of the new documentEntry</param>
        /// <returns>the new DocumentEntry</returns>
        public DocumentEntry CreateDocument(POIFSDocument document)
        {
            DocumentProperty property = document.DocumentProperty;
            DocumentNode     rval     = new DocumentNode(property, this);

            ((DirectoryProperty)Property).AddChild(property);
            _oFilesSystem.AddDocument(document);

            _entries.Add(rval);
            _byname.Add(property.Name, rval);

            return(rval);
        }