public EscherRecord(EscherRecord record)
 {
     Prop = record.Prop;
     Type = record.Type;
     Size = record.Size;
     Data = record.Data;
 }
 public static EscherRecord ReadBase(Stream stream)
 {
     BinaryReader reader = new BinaryReader(stream);
     EscherRecord record = new EscherRecord();
     record.Prop = reader.ReadUInt16();
     record.Type = reader.ReadUInt16();
     record.Size = reader.ReadUInt32();
     record.Data = reader.ReadBytes((int)record.Size);
     return record;
 }
 public MsofbtClientAnchor(EscherRecord record)
     : base(record)
 {
 }
        public static EscherRecord Read(Stream stream)
        {
            EscherRecord record = EscherRecord.ReadBase(stream);

            switch (record.Type)
            {
            case EscherRecordType.MsofbtDgg:
                return(new MsofbtDgg(record));

            case EscherRecordType.MsofbtBSE:
                return(new MsofbtBSE(record));

            case EscherRecordType.MsofbtDg:
                return(new MsofbtDg(record));

            case EscherRecordType.MsofbtSpgr:
                return(new MsofbtSpgr(record));

            case EscherRecordType.MsofbtSp:
                return(new MsofbtSp(record));

            case EscherRecordType.MsofbtOPT:
                return(new MsofbtOPT(record));

            case EscherRecordType.MsofbtTextbox:
                return(new MsofbtTextbox(record));

            case EscherRecordType.MsofbtClientTextbox:
                return(new MsofbtClientTextbox(record));

            case EscherRecordType.MsofbtAnchor:
                return(new MsofbtAnchor(record));

            case EscherRecordType.MsofbtChildAnchor:
                return(new MsofbtChildAnchor(record));

            case EscherRecordType.MsofbtClientAnchor:
                return(new MsofbtClientAnchor(record));

            case EscherRecordType.MsofbtClientData:
                return(new MsofbtClientData(record));

            case EscherRecordType.MsofbtConnectorRule:
                return(new MsofbtConnectorRule(record));

            case EscherRecordType.MsofbtAlignRule:
                return(new MsofbtAlignRule(record));

            case EscherRecordType.MsofbtArcRule:
                return(new MsofbtArcRule(record));

            case EscherRecordType.MsofbtClientRule:
                return(new MsofbtClientRule(record));

            case EscherRecordType.MsofbtCLSID:
                return(new MsofbtCLSID(record));

            case EscherRecordType.MsofbtCalloutRule:
                return(new MsofbtCalloutRule(record));

            case EscherRecordType.MsofbtRegroupItems:
                return(new MsofbtRegroupItems(record));

            case EscherRecordType.MsofbtSelection:
                return(new MsofbtSelection(record));

            case EscherRecordType.MsofbtColorMRU:
                return(new MsofbtColorMRU(record));

            case EscherRecordType.MsofbtDeletedPspl:
                return(new MsofbtDeletedPspl(record));

            case EscherRecordType.MsofbtSplitMenuColors:
                return(new MsofbtSplitMenuColors(record));

            case EscherRecordType.MsofbtOleObject:
                return(new MsofbtOleObject(record));

            case EscherRecordType.MsofbtColorScheme:
                return(new MsofbtColorScheme(record));

            case EscherRecordType.MsofbtDggContainer:
                return(new MsofbtDggContainer(record));

            case EscherRecordType.MsofbtDgContainer:
                return(new MsofbtDgContainer(record));

            case EscherRecordType.MsofbtBstoreContainer:
                return(new MsofbtBstoreContainer(record));

            case EscherRecordType.MsofbtSpgrContainer:
                return(new MsofbtSpgrContainer(record));

            case EscherRecordType.MsofbtSpContainer:
                return(new MsofbtSpContainer(record));

            case EscherRecordType.MsofbtSolverContainer:
                return(new MsofbtSolverContainer(record));

            case EscherRecordType.MsofbtBlipStart:
                return(new MsofbtBlipStart(record));

            case EscherRecordType.MsofbtBlipMetafileEMF:
                return(new MsofbtBlipMetafileEMF(record));

            case EscherRecordType.MsofbtBlipMetafileWMF:
                return(new MsofbtBlipMetafileWMF(record));

            case EscherRecordType.MsofbtBlipMetafilePICT:
                return(new MsofbtBlipMetafilePICT(record));

            case EscherRecordType.MsofbtBlipBitmapJPEG:
                return(new MsofbtBlipBitmapJPEG(record));

            case EscherRecordType.MsofbtBlipBitmapPNG:
                return(new MsofbtBlipBitmapPNG(record));

            case EscherRecordType.MsofbtBlipBitmapDIB:
                return(new MsofbtBlipBitmapDIB(record));

            case EscherRecordType.MsofbtBlipEnd:
                return(new MsofbtBlipEnd(record));

            default:
                return(record);
            }
        }
Example #5
0
 public MsofbtRegroupItems(EscherRecord record) : base(record)
 {
 }
 public MsofbtDgContainer(EscherRecord record) : base(record)
 {
 }
 public MsofbtChildAnchor(EscherRecord record)
     : base(record)
 {
 }
 public MsofbtContainer(EscherRecord record)
     : base(record)
 {
 }
 public MsofbtColorScheme(EscherRecord record)
     : base(record)
 {
 }
 public MsofbtAlignRule(EscherRecord record)
     : base(record)
 {
 }
 public MsofbtCalloutRule(EscherRecord record)
     : base(record)
 {
 }
 public MsofbtOleObject(EscherRecord record)
     : base(record)
 {
 }
 public MsofbtSelection(EscherRecord record) : base(record)
 {
 }
 public MsofbtDeletedPspl(EscherRecord record)
     : base(record)
 {
 }
 public MsofbtClientData(EscherRecord record)
     : base(record)
 {
 }
 public MsofbtSplitMenuColors(EscherRecord record)
     : base(record)
 {
 }
 public MsofbtSpgr(EscherRecord record)
     : base(record)
 {
 }
 public MsofbtBlipMetafilePICT(EscherRecord record)
     : base(record)
 {
 }
Example #19
0
 public MsofbtOPT(EscherRecord record)
     : base(record)
 {
 }
 public MsofbtBlip(EscherRecord record)
     : base(record)
 {
 }
 public MsofbtConnectorRule(EscherRecord record) : base(record)
 {
 }
Example #22
0
 public MsofbtBlipBitmapJPEG(EscherRecord record) : base(record)
 {
 }
 public MsofbtColorMRU(EscherRecord record)
     : base(record)
 {
 }
Example #24
0
 public MsofbtAnchor(EscherRecord record) : base(record)
 {
 }
 public MsofbtBlipMetafileEMF(EscherRecord record) : base(record)
 {
 }
 public MsofbtClientRule(EscherRecord record)
     : base(record)
 {
 }
 public MsofbtBstoreContainer(EscherRecord record) : base(record)
 {
 }
Example #28
0
 public MsofbtSp(EscherRecord record) : base(record)
 {
 }
 public MsofbtSolverContainer(EscherRecord record) : base(record)
 {
 }
 public MsofbtCLSID(EscherRecord record)
     : base(record)
 {
 }
Example #31
0
 public MsofbtBlipEnd(EscherRecord record) : base(record)
 {
 }
 public MsofbtSelection(EscherRecord record)
     : base(record)
 {
 }
Example #33
0
 public MsofbtAlignRule(EscherRecord record) : base(record)
 {
 }
 public MsofbtTextbox(EscherRecord record)
     : base(record)
 {
 }
Example #35
0
 public MsofbtBSE(EscherRecord record) : base(record)
 {
 }
Example #36
0
 public MsofbtDgg(EscherRecord record)
     : base(record)
 {
 }
Example #37
0
 public MsofbtDgg(EscherRecord record) : base(record)
 {
 }
 public MsofbtBlipBitmapDIB(EscherRecord record)
     : base(record)
 {
 }
 public MsofbtDeletedPspl(EscherRecord record) : base(record)
 {
 }