예제 #1
0
 public EscherRecord(EscherRecord record)
 {
     Prop = record.Prop;
     Type = record.Type;
     Size = record.Size;
     Data = record.Data;
 }
예제 #2
0
 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;
 }
예제 #3
0
		public MsofbtChildAnchor(EscherRecord record) : base(record) { }
예제 #4
0
 public MsofbtChildAnchor(EscherRecord record) : base(record)
 {
 }
예제 #5
0
 public MsofbtConnectorRule(EscherRecord record) : base(record)
 {
 }
 public MsofbtSplitMenuColors(EscherRecord record)
     : base(record)
 {
 }
예제 #7
0
		public MsofbtColorScheme(EscherRecord record) : base(record) { }
예제 #8
0
		public MsofbtOleObject(EscherRecord record) : base(record) { }
예제 #9
0
		public MsofbtClientData(EscherRecord record) : base(record) { }
예제 #10
0
 public MsofbtOleObject(EscherRecord record) : base(record)
 {
 }
		public MsofbtConnectorRule(EscherRecord record) : base(record) { }
예제 #12
0
		public MsofbtSelection(EscherRecord record) : base(record) { }
예제 #13
0
 public MsofbtBlipMetafilePICT(EscherRecord record) : base(record)
 {
 }
예제 #14
0
 public MsofbtBSE(EscherRecord record) : base(record)
 {
 }
예제 #15
0
 public MsofbtClientData(EscherRecord record) : base(record)
 {
 }
예제 #16
0
		public MsofbtArcRule(EscherRecord record) : base(record) { }
예제 #17
0
		public MsofbtSpgr(EscherRecord record) : base(record) { }
예제 #18
0
 public MsofbtClientAnchor(EscherRecord record) : base(record)
 {
 }
예제 #19
0
		public MsofbtCalloutRule(EscherRecord record) : base(record) { }
예제 #20
0
		public MsofbtDeletedPspl(EscherRecord record) : base(record) { }
예제 #21
0
		public MsofbtRegroupItems(EscherRecord record) : base(record) { }
예제 #22
0
 public MsofbtDgg(EscherRecord record) : base(record)
 {
 }
		public MsofbtBlipMetafileEMF(EscherRecord record) : base(record) { }
예제 #24
0
 public MsofbtBlipEnd(EscherRecord record) : base(record)
 {
 }
예제 #25
0
 public MsofbtDeletedPspl(EscherRecord record) : base(record)
 {
 }
예제 #26
0
        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);
            }
        }
예제 #27
0
		public MsofbtClientRule(EscherRecord record) : base(record) { }
예제 #28
0
 public MsofbtTextbox(EscherRecord record) : base(record)
 {
 }
예제 #29
0
 public MsofbtColorScheme(EscherRecord record) : base(record)
 {
 }
예제 #30
0
 public MsofbtClientRule(EscherRecord record) : base(record)
 {
 }
예제 #31
0
		public MsofbtClientAnchor(EscherRecord record) : base(record) { }
예제 #32
0
 public MsofbtBlipStart(EscherRecord record) : base(record)
 {
 }
예제 #33
0
		public MsofbtCLSID(EscherRecord record) : base(record) { }
예제 #34
0
 public MsofbtContainer(EscherRecord record) : base(record)
 {
 }
예제 #35
0
		public MsofbtOPT(EscherRecord record) : base(record) { }
예제 #36
0
 public MsofbtBlipBitmapDIB(EscherRecord record) : base(record)
 {
 }
예제 #37
0
		public MsofbtColorMRU(EscherRecord record) : base(record) { }
예제 #38
0
 public MsofbtColorMRU(EscherRecord record) : base(record)
 {
 }
예제 #39
0
		public MsofbtContainer(EscherRecord record) : base(record) { }
예제 #40
0
 public MsofbtCalloutRule(EscherRecord record) : base(record)
 {
 }
예제 #41
0
		public MsofbtBlip(EscherRecord record) : base(record) { }
		public MsofbtClientTextbox(EscherRecord record) : base(record) { }
예제 #43
0
 void TranverseEscherRecords(EscherRecord record, Action<EscherRecord> action)
 {
     if (record is MsofbtContainer)
     {
         foreach (EscherRecord childrecord in (record as MsofbtContainer).EscherRecords)
         {
             TranverseEscherRecords(childrecord, action);
         }
     }
     action(record);
 }
예제 #44
0
 public MsofbtSpgr(EscherRecord record) : base(record)
 {
 }
예제 #45
0
파일: MsofbtDg.cs 프로젝트: gahadzikwa/GAPP
		public MsofbtDg(EscherRecord record) : base(record) { }
예제 #46
0
        public static EscherRecord Read(Stream stream)
        {
            EscherRecord escherRecord = EscherRecord.ReadBase(stream);
            ushort       type         = escherRecord.Type;
            EscherRecord result;

            switch (type)
            {
            case 61440:
                result = new MsofbtDggContainer(escherRecord);
                return(result);

            case 61441:
                result = new MsofbtBstoreContainer(escherRecord);
                return(result);

            case 61442:
                result = new MsofbtDgContainer(escherRecord);
                return(result);

            case 61443:
                result = new MsofbtSpgrContainer(escherRecord);
                return(result);

            case 61444:
                result = new MsofbtSpContainer(escherRecord);
                return(result);

            case 61445:
                result = new MsofbtSolverContainer(escherRecord);
                return(result);

            case 61446:
                result = new MsofbtDgg(escherRecord);
                return(result);

            case 61447:
                result = new MsofbtBSE(escherRecord);
                return(result);

            case 61448:
                result = new MsofbtDg(escherRecord);
                return(result);

            case 61449:
                result = new MsofbtSpgr(escherRecord);
                return(result);

            case 61450:
                result = new MsofbtSp(escherRecord);
                return(result);

            case 61451:
                result = new MsofbtOPT(escherRecord);
                return(result);

            case 61452:
                result = new MsofbtTextbox(escherRecord);
                return(result);

            case 61453:
                result = new MsofbtClientTextbox(escherRecord);
                return(result);

            case 61454:
                result = new MsofbtAnchor(escherRecord);
                return(result);

            case 61455:
                result = new MsofbtChildAnchor(escherRecord);
                return(result);

            case 61456:
                result = new MsofbtClientAnchor(escherRecord);
                return(result);

            case 61457:
                result = new MsofbtClientData(escherRecord);
                return(result);

            case 61458:
                result = new MsofbtConnectorRule(escherRecord);
                return(result);

            case 61459:
                result = new MsofbtAlignRule(escherRecord);
                return(result);

            case 61460:
                result = new MsofbtArcRule(escherRecord);
                return(result);

            case 61461:
                result = new MsofbtClientRule(escherRecord);
                return(result);

            case 61462:
                result = new MsofbtCLSID(escherRecord);
                return(result);

            case 61463:
                result = new MsofbtCalloutRule(escherRecord);
                return(result);

            case 61464:
                result = new MsofbtBlipStart(escherRecord);
                return(result);

            case 61465:
                break;

            case 61466:
                result = new MsofbtBlipMetafileEMF(escherRecord);
                return(result);

            case 61467:
                result = new MsofbtBlipMetafileWMF(escherRecord);
                return(result);

            case 61468:
                result = new MsofbtBlipMetafilePICT(escherRecord);
                return(result);

            case 61469:
                result = new MsofbtBlipBitmapJPEG(escherRecord);
                return(result);

            case 61470:
                result = new MsofbtBlipBitmapPNG(escherRecord);
                return(result);

            case 61471:
                result = new MsofbtBlipBitmapDIB(escherRecord);
                return(result);

            default:
                switch (type)
                {
                case 61719:
                    result = new MsofbtBlipEnd(escherRecord);
                    return(result);

                case 61720:
                    result = new MsofbtRegroupItems(escherRecord);
                    return(result);

                case 61721:
                    result = new MsofbtSelection(escherRecord);
                    return(result);

                case 61722:
                    result = new MsofbtColorMRU(escherRecord);
                    return(result);

                case 61725:
                    result = new MsofbtDeletedPspl(escherRecord);
                    return(result);

                case 61726:
                    result = new MsofbtSplitMenuColors(escherRecord);
                    return(result);

                case 61727:
                    result = new MsofbtOleObject(escherRecord);
                    return(result);

                case 61728:
                    result = new MsofbtColorScheme(escherRecord);
                    return(result);
                }
                break;
            }
            result = escherRecord;
            return(result);
        }
예제 #47
0
		public MsofbtBlipBitmapDIB(EscherRecord record) : base(record) { }
예제 #48
0
 public MsofbtSplitMenuColors(EscherRecord record) : base(record)
 {
 }