Exemple #1
0
        public static MsoContainerRecord CreateContainer(BinaryReader reader, MsoType type)
        {
            switch (type)
            {
            case MsoType.DggContainer:
                return(new MsoContainerRecord(XLSDescriptors.GetByName("MSOFBTDGGCONTAINER"), reader, type));

            case MsoType.BstoreContainer:
                return(new MsoContainerRecord(XLSDescriptors.GetByName("MSOFBTBSTORECONTAINER"), reader, type));

            case MsoType.DgContainer:
                return(new MsoContainerRecord(XLSDescriptors.GetByName("MSOFBTDGCONTAINER"), reader, type));

            case MsoType.SpgrContainer:
                return(new MsoContainerRecord(XLSDescriptors.GetByName("MSOFBTSPGRCONTAINER"), reader, type));

            case MsoType.SpContainer:
                return(new MsoContainerRecord(XLSDescriptors.GetByName("MSOFBTSPCONTAINER"), reader, type));
            }
            throw new ArgumentException("Unallowed mso type for recreation mso container.");
        }
Exemple #2
0
 private void InitializeDescriptorCode(string name)
 {
     this.InitializeDescriptorCode(XLSDescriptors.GetByName(name));
 }
Exemple #3
0
        public void WriteRecords(AbsXLSRecords destination, string recordName)
        {
            int code = XLSDescriptors.GetByName(recordName).Code;

            this.WriteRecords(destination, code);
        }
Exemple #4
0
        public void CopyRecords(PreservedRecords source, string recordName)
        {
            int code = XLSDescriptors.GetByName(recordName).Code;

            this.CopyRecords(source, code);
        }