示例#1
0
    protected void method_51(int A_0, int A_1)
    {
        int num;
        int num2;

        if (this.wordAttrCollection_0 is RowFormat)
        {
            num  = this.binaryReader_0.ReadByte();
            num2 = (num & 0x30) >> 4;
            if (num2 != 3)
            {
                (this.wordAttrCollection_0 as RowFormat).Positioning.SetAttr(A_1, (VerticalRelation)((byte)Class292.smethod_2(num2)));
            }
            int num5 = (num & 0xc0) >> 6;
            if (num5 != 3)
            {
                (this.wordAttrCollection_0 as RowFormat).Positioning.SetAttr(A_0, (HorizontalRelation)num5);
            }
        }
        else if (this.wordAttrCollection_0 is ParagraphFormat)
        {
            num  = this.binaryReader_0.ReadByte();
            num2 = (num & 0x30) >> 4;
            if (num2 != 3)
            {
                byte num4 = (byte)Class292.smethod_2(num2);
                (this.wordAttrCollection_0 as ParagraphFormat).Frame.SetAttr(A_1, (FrameVertAnchor)num4);
            }
            int num3 = (num & 0xc0) >> 6;
            if (num3 != 3)
            {
                (this.wordAttrCollection_0 as ParagraphFormat).Frame.SetAttr(A_0, (FrameHorzAnchor)num3);
            }
        }
    }
 // Token: 0x060020A6 RID: 8358 RVA: 0x0006DCD8 File Offset: 0x0006BED8
 public static void smethod_2(Class321 pd, BinaryWriter write_stream, uint offset_orig, uint offset_new, Stream stream_orig, Stream stream_new)
 {
     using (Stream3 stream = new Stream3(stream_orig))
     {
         using (Stream3 stream2 = new Stream3(stream_new))
         {
             uint num;
             uint num2;
             Class132.smethod_3(stream, out num, out num2);
             uint num3;
             uint num4;
             Class132.smethod_3(stream2, out num3, out num4);
             using (Stream3 stream3 = new Stream3(stream, 0L, (long)((ulong)num)))
             {
                 using (Stream3 stream4 = new Stream3(stream2, 0L, (long)((ulong)num3)))
                 {
                     Class292.smethod_12(pd, Enum81.const_0, write_stream, offset_orig, offset_new, stream3, stream4);
                 }
             }
             using (Stream3 stream5 = new Stream3(stream, (long)((ulong)num), (long)((ulong)(num + num2))))
             {
                 using (Stream3 stream6 = new Stream3(stream2, (long)((ulong)num3), (long)((ulong)(num3 + num4))))
                 {
                     Class136.smethod_0(pd, write_stream, offset_orig + num, offset_new + num3, stream5, stream6);
                 }
             }
         }
     }
 }
示例#3
0
 protected void method_50(SprmCode A_0, int A_1, int A_2)
 {
     if ((this.wordAttrCollection_0 is ParagraphFormat) && ((this.wordAttrCollection_0 as ParagraphFormat).Frame.HasKey(A_1) || (this.wordAttrCollection_0 as ParagraphFormat).Frame.HasKey(A_2)))
     {
         int num2;
         if ((this.wordAttrCollection_0 as ParagraphFormat).Frame.HasKey(A_1))
         {
             num2 = (short)(this.wordAttrCollection_0 as ParagraphFormat).Frame.method_32(A_1);
         }
         else
         {
             num2 = Class292.smethod_7((ShapeVerticalAlignment)((short)(this.wordAttrCollection_0 as ParagraphFormat).Frame.method_32(A_2)));
         }
         this.class345_0.method_1(A_0, num2);
     }
     else if ((this.wordAttrCollection_0 is RowFormat) && ((this.wordAttrCollection_0 as RowFormat).Positioning.HasKey(A_1) || (this.wordAttrCollection_0 as RowFormat).Positioning.HasKey(A_2)))
     {
         int num;
         ShapeVerticalAlignment alignment = (ShapeVerticalAlignment)((short)(this.wordAttrCollection_0 as RowFormat).Positioning.method_32(A_2));
         if (alignment == ShapeVerticalAlignment.None)
         {
             num = (int)Math.Round((double)((float)(this.wordAttrCollection_0 as RowFormat).Positioning.method_32(A_1)));
         }
         else
         {
             num = Class292.smethod_7(alignment);
         }
         this.class345_0.method_1(A_0, num);
     }
 }
示例#4
0
 protected void method_48(int A_0, int A_1)
 {
     if (this.wordAttrCollection_0 is ParagraphFormat)
     {
         short  num  = this.binaryReader_0.ReadInt16();
         object obj2 = Class292.smethod_6(num);
         if (obj2 != null)
         {
             (this.wordAttrCollection_0 as ParagraphFormat).Frame.SetAttr(A_1, (short)((ShapeVerticalAlignment)obj2));
         }
         else
         {
             (this.wordAttrCollection_0 as ParagraphFormat).Frame.SetAttr(A_0, num);
         }
     }
     else if (this.wordAttrCollection_0 is RowFormat)
     {
         int num2 = this.binaryReader_0.ReadInt16();
         if (Class292.smethod_6(num2) != null)
         {
             (this.wordAttrCollection_0 as RowFormat).Positioning.SetAttr(A_1, (short)num2);
         }
         else
         {
             (this.wordAttrCollection_0 as RowFormat).Positioning.SetAttr(A_0, (float)num2);
         }
     }
 }
示例#5
0
 protected void method_52(SprmCode A_0, int A_1, int A_2)
 {
     if ((this.wordAttrCollection_0 is ParagraphFormat) && ((this.wordAttrCollection_0 as ParagraphFormat).Frame.HasKey(A_1) || (this.wordAttrCollection_0 as ParagraphFormat).Frame.HasKey(A_2)))
     {
         int num4 = Class292.smethod_3((RelativeVerticalPosition)((FrameVertAnchor)(this.wordAttrCollection_0 as ParagraphFormat).Frame.method_32(A_2)));
         int num5 = (int)((FrameHorzAnchor)(this.wordAttrCollection_0 as ParagraphFormat).Frame.method_32(A_1));
         int num6 = (num4 << 4) | (num5 << 6);
         this.class345_0.method_0(A_0, num6);
     }
     else if ((this.wordAttrCollection_0 is RowFormat) && ((this.wordAttrCollection_0 as RowFormat).Positioning.HasKey(A_1) || (this.wordAttrCollection_0 as RowFormat).Positioning.HasKey(A_2)))
     {
         int num  = Class292.smethod_3((RelativeVerticalPosition)((VerticalRelation)(this.wordAttrCollection_0 as RowFormat).Positioning.method_32(A_2)));
         int num2 = (int)((HorizontalRelation)(this.wordAttrCollection_0 as RowFormat).Positioning.method_32(A_1));
         int num3 = (num << 4) | (num2 << 6);
         this.class345_0.method_0(A_0, num3);
     }
 }
示例#6
0
        // Token: 0x0600243F RID: 9279 RVA: 0x0007AE64 File Offset: 0x00079064
        private static void smethod_1(Class321 pd, BinaryWriter write_stream, uint offset_orig, uint offset_new, string filename, Stream stream_orig, uint orig_start, uint orig_end, Stream stream_new, uint new_start, uint new_end)
        {
            uint num  = new_end - new_start;
            uint num2 = orig_end - orig_start;

            using (Stream3 stream = new Stream3(stream_orig, (long)((ulong)orig_start), (long)((ulong)orig_end)))
            {
                using (Stream3 stream2 = new Stream3(stream_new, (long)((ulong)new_start), (long)((ulong)new_end)))
                {
                    if (num == num2 && Struct43.smethod_5(stream.smethod_2(), stream2.smethod_2()))
                    {
                        Class292.smethod_4(pd, write_stream, 0U, null, 0U, num2, offset_orig + orig_start);
                    }
                    else
                    {
                        Class292.smethod_12(pd, Class292.smethod_15(filename), write_stream, offset_orig + orig_start, offset_new + new_start, stream, stream2);
                    }
                }
            }
        }
示例#7
0
 // Token: 0x0600243E RID: 9278 RVA: 0x0007AC18 File Offset: 0x00078E18
 public static void smethod_0(Class321 pd, BinaryWriter write_stream, uint offset_orig, uint offset_new, Stream stream_orig, Stream stream_new)
 {
     using (Stream3 stream = new Stream3(stream_orig))
     {
         using (Stream3 stream2 = new Stream3(stream_new))
         {
             using (Class136 @class = new Class136(stream))
             {
                 using (Class136 class2 = new Class136(stream2))
                 {
                     List <KeyValuePair <string, Class136.Class339> > list  = new List <KeyValuePair <string, Class136.Class339> >();
                     List <KeyValuePair <string, Class136.Class339> > list2 = null;
                     long endPosition;
                     class2.method_9(ref list, out endPosition);
                     long endPosition2;
                     @class.method_9(ref list2, out endPosition2);
                     using (Stream3 stream3 = new Stream3(stream, 0L, endPosition2))
                     {
                         using (Stream3 stream4 = new Stream3(stream2, 0L, endPosition))
                         {
                             Class292.smethod_12(pd, Enum81.const_0, write_stream, offset_orig, offset_new, stream3, stream4);
                         }
                     }
                     foreach (KeyValuePair <string, Class136.Class339> keyValuePair in list)
                     {
                         if (@class.method_6(keyValuePair.Key))
                         {
                             Class136.Class339 class3 = @class[keyValuePair.Key] as Class136.Class339;
                             Class136.smethod_1(pd, write_stream, offset_orig, offset_new, keyValuePair.Key, stream, class3.uint_4, class3.uint_4 + class3.DataLength, stream2, keyValuePair.Value.uint_4, keyValuePair.Value.uint_4 + keyValuePair.Value.DataLength);
                         }
                         else
                         {
                             class2.method_15(keyValuePair.Value);
                             Class292.smethod_4(pd, write_stream, keyValuePair.Value.DataLength, keyValuePair.Value.Data, 0U, 0U, 0U);
                         }
                     }
                 }
             }
         }
     }
 }
 public abstract void Visit(Class292 c);
 public override void Visit(Class292 c) { }