示例#1
0
 public override DocOleObject Class581.imethod_2(string A_0, DocOleObject A_1)
 {
     if (!this.dictionary_2.ContainsKey(A_0))
     {
         return(null);
     }
     byte[] buffer = this.dictionary_2[A_0];
     using (MemoryStream stream = new MemoryStream(buffer))
     {
         A_1.stream_1 = new MemoryStream(buffer);
         OleObjectType oleObjectType = A_1.OleObjectType;
         if (((((oleObjectType != OleObjectType.Excel_97_2003_Worksheet) && (oleObjectType != OleObjectType.ExcelBinaryWorksheet)) && ((oleObjectType != OleObjectType.ExcelChart) && (oleObjectType != OleObjectType.ExcelMacroWorksheet))) && (((oleObjectType != OleObjectType.ExcelWorksheet) && (oleObjectType != OleObjectType.PowerPoint_97_2003_Presentation)) && ((oleObjectType != OleObjectType.PowerPoint_97_2003_Slide) && (oleObjectType != OleObjectType.PowerPointMacroPresentation)))) && ((((oleObjectType != OleObjectType.PowerPointMacroSlide) && (oleObjectType != OleObjectType.PowerPointPresentation)) && ((oleObjectType != OleObjectType.PowerPointSlide) && (oleObjectType != OleObjectType.VisioDrawing))) && (((oleObjectType != OleObjectType.Word_97_2003_Document) && (oleObjectType != OleObjectType.WordDocument)) && ((oleObjectType != OleObjectType.WordMacroDocument) && (oleObjectType != OleObjectType.VisioDrawing_2013)))))
         {
             Class1004 class3 = null;
             stream.Position = 0L;
             class3          = new Class1004(stream);
             Class1116 class2 = new Class1116();
             class2.method_4(class3.Interface51.imethod_0());
             buffer = class2.method_0();
             if (A_1.OleObjectType == OleObjectType.Package)
             {
                 A_1.method_105(class2.method_2(), class2.method_3());
             }
         }
     }
     A_1.SetNativeData(buffer);
     A_1.method_102(buffer, string.Empty);
     return(A_1);
 }
示例#2
0
    DocOleObject Interface50.imethod_2(string A_0, DocOleObject A_1)
    {
        Class229 class2 = this.method_0().method_183(A_0);

        if (class2 == null)
        {
            return(null);
        }
        byte[] buffer = null;
        class2.method_4().Position = 0L;
        A_1.stream_1 = class2.method_4();
        if (this.method_0().method_185(A_1.OleObjectType))
        {
            buffer = new byte[class2.method_4().Length];
            class2.method_4().Read(buffer, 0, buffer.Length);
        }
        else
        {
            Class1004 class3 = null;
            class3 = new Class1004(class2.method_4());
            Class1116 class4 = new Class1116();
            class4.method_4(class3.Interface51.imethod_0());
            buffer = class4.method_0();
            if (A_1.OleObjectType == OleObjectType.Package)
            {
                A_1.method_105(class4.method_2(), class4.method_3());
            }
        }
        class2.method_4().Position = 0L;
        A_1.SetNativeData(buffer);
        A_1.method_102(buffer, string.Empty);
        return(A_1);
    }