internal OleObjectType method_1() { if (this.class369_0 != null) { this.oleObjectType_0 = Class1117.smethod_0(this.class369_0.method_0()); if (((this.byte_0 != null) && (this.byte_0.Length > 2)) && ((this.byte_0[0] == 0xd0) && (this.byte_0[1] == 0xcf))) { switch (this.oleObjectType_0) { case OleObjectType.ExcelMacroWorksheet: case OleObjectType.ExcelWorksheet: this.oleObjectType_0 = OleObjectType.Excel_97_2003_Worksheet; break; case OleObjectType.PowerPointMacroPresentation: case OleObjectType.PowerPointPresentation: this.oleObjectType_0 = OleObjectType.PowerPoint_97_2003_Presentation; break; case OleObjectType.WordDocument: case OleObjectType.WordMacroDocument: this.oleObjectType_0 = OleObjectType.Word_97_2003_Document; break; } } } else { this.oleObjectType_0 = OleObjectType.Undefined; } return(this.oleObjectType_0); }
private byte[] method_91() { byte[] buffer = null; Class1004 class2 = new Class1004(BookmarkStart.b("簮䔰尲䜴嘶常帺", 9), true); class2.Interface51.imethod_1().method_0()[0].method_13(Class1117.smethod_2(this.OleObjectType)); MemoryStream stream = new MemoryStream(); class2.Interface51.imethod_2(); class2.Interface51.imethod_3(stream); class2.System.IDisposable.Dispose(); stream.Flush(); buffer = stream.ToArray(); stream.Close(); stream.Dispose(); return(buffer); }
private void method_96(Class1004 A_0, string A_1) { Class1004 class2 = new Class1004(this.stream_1); this.stream_1.Position = 0L; Guid guid = Class1117.smethod_2(this.OleObjectType); using (List <Class297> .Enumerator enumerator = class2.Interface51.imethod_1().method_0().GetEnumerator()) { Class297 current; while (enumerator.MoveNext()) { current = enumerator.Current; if (class2.Interface51.imethod_0().imethod_11() == current.method_0()) { goto Label_006D; } } goto Label_0085; Label_006D: guid = current.method_12(); } Label_0085: class2.System.IDisposable.Dispose(); using (List <Class297> .Enumerator enumerator2 = A_0.Interface51.imethod_1().method_0().GetEnumerator()) { Class297 class3; while (enumerator2.MoveNext()) { class3 = enumerator2.Current; if (A_1 == class3.method_0()) { goto Label_00C2; } } return; Label_00C2: class3.method_13(guid); this.dictionary_0.Add(A_1, guid); } }
internal Class369(OleObjectType A_0) { int num = 2; this.string_0 = string.Empty; this.string_1 = string.Empty; this.string_2 = string.Empty; this.uint_1 = 0x71b239f4; this.string_3 = string.Empty; this.string_4 = string.Empty; this.string_5 = string.Empty; this.class370_0 = new Class370(); switch (A_0) { case OleObjectType.AdobeAcrobatDocument: this.string_0 = BookmarkStart.b("椧䤩師䄭刯匱䀳ᘵ簷唹弻䬽ⴿ❁⩃㉅䡇", num); this.string_2 = BookmarkStart.b("椧䤩師䄭甯䨱圳帵ᘷ縹医崽㔿⽁⅃⡅㱇摉筋乍", num); return; case OleObjectType.BitmapImage: case OleObjectType.MediaClip: case OleObjectType.Equation: case OleObjectType.GraphChart: case OleObjectType.Excel_97_2003_Worksheet: case OleObjectType.ExcelBinaryWorksheet: case OleObjectType.ExcelChart: case OleObjectType.ExcelMacroWorksheet: case OleObjectType.ExcelWorksheet: case OleObjectType.PowerPoint_97_2003_Presentation: case OleObjectType.PowerPoint_97_2003_Slide: case OleObjectType.PowerPointMacroPresentation: case OleObjectType.PowerPointMacroSlide: case OleObjectType.PowerPointPresentation: case OleObjectType.PowerPointSlide: case OleObjectType.Word_97_2003_Document: case OleObjectType.WordDocument: case OleObjectType.WordMacroDocument: case OleObjectType.MIDISequence: case OleObjectType.Package: case OleObjectType.VideoClip: case OleObjectType.VisioDrawing_2013: this.string_0 = Class1117.smethod_1(A_0, true) + BookmarkStart.b("⠧", num); break; case OleObjectType.VisioDrawing: case OleObjectType.OpenDocumentPresentation: case OleObjectType.OpenDocumentSpreadsheet: case OleObjectType.OpenDocumentText: case OleObjectType.OpenOfficeSpreadsheet1_1: case OleObjectType.OpenOfficeText_1_1: case OleObjectType.WordPadDocument: case OleObjectType.OpenOfficeSpreadsheet: case OleObjectType.OpenOfficeText: break; case OleObjectType.WaveSound: this.string_0 = BookmarkStart.b("缧䬩娫䬭ု愱嬳䌵嘷帹㰻", num); this.string_2 = BookmarkStart.b("笧䔩夫䀭启怱儳唵㠷", num); return; default: return; } }
private byte[] method_90(string A_0, byte[] A_1) { int num = 0x11; if ((this.stream_1 != null) && (this.OleObjectType == Spire.Doc.Documents.OleObjectType.Undefined)) { A_1 = this.method_92(A_0, A_1); return(A_1); } MemoryStream stream = null; Class1004 class2 = null; Stream12 stream2 = null; Stream12 stream3 = null; if ((A_1 != null) && (A_1.Length != 0)) { stream = new MemoryStream(A_1); stream2 = new Stream12(stream, STGM.STGM_SHARE_EXCLUSIVE | STGM.STGM_READWRITE); stream3 = stream2.method_12(BookmarkStart.b("砶嬸儺堼尾㕀ፂ⩄⡆╈", num), STGM.STGM_SHARE_EXCLUSIVE | STGM.STGM_READWRITE); } else { stream2 = Stream12.smethod_2(); stream3 = stream2.method_13(BookmarkStart.b("砶嬸儺堼尾㕀ፂ⩄⡆╈", num)); } class2 = new Class1004(BookmarkStart.b("搶䴸吺似帾♀♂", num), true); class2.Interface51.imethod_0().imethod_4(A_0); class2.Interface51.imethod_1().method_0()[1].method_13(Class1117.smethod_2(this.OleObjectType)); MemoryStream stream4 = new MemoryStream(); class2.Interface51.imethod_2(); class2.Interface51.imethod_3(stream4); class2.System.IDisposable.Dispose(); stream4.Flush(); byte[] buffer = stream4.ToArray(); stream4.Close(); stream4 = new MemoryStream(buffer); MemoryStream stream5 = new MemoryStream(); Stream12 stream6 = new Stream12(stream4); Stream12 stream7 = stream6.method_11(A_0); Stream12.smethod_0(stream7, stream3); stream2.Flush(); stream2.method_17(stream5); stream5.Position = 0L; A_1 = stream5.ToArray(); stream6.Close(); stream6.Dispose(); stream7.Close(); stream7.Dispose(); stream2.Close(); stream2.Dispose(); stream3.Close(); stream3.Dispose(); stream5.Close(); stream5.Dispose(); stream4.Close(); stream4.Dispose(); if (stream != null) { stream.Close(); stream.Dispose(); } return(A_1); }