private void method_6() { int num = this.binaryReader_0.ReadUInt16(); string str = Class813.smethod_1(this.binaryReader_0, true, true); this.hashtable_0[num] = str; }
internal static void smethod_0(Class703 A_0, BinaryReader A_1, Document A_2) { int num = 14; if (A_0.class597_0.class1111_60.int_1 != 0) { A_1.BaseStream.Position = A_0.class597_0.class1111_60.int_0; if (A_1.ReadUInt16() != 0xffff) { throw new InvalidOperationException(BookmarkStart.b("挳䐵圷吹嬻ḽ㌿⭁⍃⡅⥇㹉㥋㱍㕏籑", num)); } int num4 = A_1.ReadInt16(); A_1.ReadInt16(); string[] strArray = new string[num4]; for (int i = 0; i < num4; i++) { strArray[i] = Class813.smethod_1(A_1, true, false); A_1.ReadInt32(); } for (int j = 0; j < num4; j++) { if (strArray[j] != BookmarkStart.b("朳張強吹", num)) { string str = Class813.smethod_1(A_1, true, false); A_2.Variables.Add(strArray[j], str); } else { int count = A_1.ReadUInt16() * 2; A_2.VbaSignature = A_1.ReadBytes(count); } } } }
internal Class1065(Class703 A_0, BinaryReader A_1) { this.class153_0 = new Class153(); this.class155_0 = new Class155(); this.stringCollection_0 = new StringCollection(); this.class162_0 = new Class162(); this.class147_0 = new Class147(0); this.class344_0 = new Class344(); this.hashtable_0 = new Hashtable(); A_1.BaseStream.Position = A_0.class597_0.class1111_36.int_0; int num = A_0.class597_0.class1111_36.int_0 + A_0.class597_0.class1111_36.int_1; while (A_1.BaseStream.Position < num) { this.stringCollection_0.Add(Class813.smethod_1(A_1, true, false)); } this.class153_0.method_23(A_1, A_0.class597_0.class1111_4); this.class153_0.method_26(A_1, A_0.class929_0.class1111_4.int_0, A_0.class929_0.class1111_4.int_1); this.class155_0.method_23(A_1, A_0.class597_0.class1111_5); this.class162_0.method_23(A_1, A_0.class597_0.class1111_42); this.class147_0.method_23(A_1, A_0.class597_0.class1111_43); this.class344_0.method_0(A_1, A_0.class597_0.class1111_37.int_0, A_0.class597_0.class1111_37.int_1); smethod_0(this.class162_0); smethod_0(this.class147_0); this.method_0(); }
internal Class538(BinaryReader A_0) { this.stringCollection_0 = new StringCollection(); this.stringCollection_1 = new StringCollection(); this.string_0 = Class813.smethod_1(A_0, true, false); this.string_1 = Class813.smethod_1(A_0, true, false); Class343.smethod_3(A_0, this.method_5()); Class343.smethod_3(A_0, this.method_6()); }
private bool method_12(int A_0, int A_1, bool A_2) { int num = 5; int num2 = this.binaryReader_0.ReadUInt16(); if (num2 != 0) { int position = (int)this.binaryReader_0.BaseStream.Position; Style style = this.method_14(A_0); if (style == null) { return(false); } if (A_1 > 10) { this.method_15(style); } this.binaryReader_0.BaseStream.Position = position + A_1; smethod_1(this.binaryReader_0.BaseStream, position); string[] sourceArray = Class813.smethod_1(this.binaryReader_0, A_2, true).Split(new char[] { ',' }); style.method_8(sourceArray[0]); if ((this.binaryReader_0.BaseStream.Position - position) < num2) { this.method_16(style, position); smethod_1(this.binaryReader_0.BaseStream, position); int num4 = position + num2; int num5 = num4 - ((int)this.binaryReader_0.BaseStream.Position); if (num5 > 0) { Stream baseStream = this.binaryReader_0.BaseStream; baseStream.Position += num5; } smethod_1(this.binaryReader_0.BaseStream, position); } string[] destinationArray = new string[sourceArray.Length - 1]; Array.Copy(sourceArray, 1, destinationArray, 0, destinationArray.Length); if ((style.StyleIdentifier == StyleIdentifier.Normal) && (style.BasedOnIstd != 0xfff)) { style.BasedOnIstd = 0xfff; } if ((style.Name == BookmarkStart.b("䡁ꩉ", num)) || (style.StyleIdentifier == StyleIdentifier.Normal)) { style.Name = BookmarkStart.b("攪䈬崮尰刲头", num); style.method_5(BookmarkStart.b("攪䈬崮尰刲头", num)); } this.method_13(style); this.dictionary_0.Add(style.Name, style.StyleDocId); if (this.styleCollection_0.method_9(style.StyleId) == null) { this.styleCollection_0.Document.StyleNameIds.Add(style.StyleId, style.Name); this.styleCollection_0.method_7(style, destinationArray); } } return(true); }
private void method_6() { Class813.smethod_1(this.binaryReader_0, true, false); int num = this.binaryReader_0.ReadInt32(); this.binaryReader_0.ReadBytes(num - 4); int num2 = this.binaryReader_0.ReadInt32(); for (int i = 0; i < num2; i++) { this.method_7(); } }
private void method_20(CharacterFormat A_0, int A_1) { this.class764_0.method_4().BaseStream.Position = A_1; Class262 class2 = new Class262(this.class764_0.method_4()); if (class2.int_3 == 0x44) { switch (class2.picfType_0) { case PicfType.InlineEscher: { int num2 = class2.int_2 - class2.int_3; this.method_21(class2, A_0, num2); return; } case ((PicfType)0x65): return; case PicfType.IncludePicture: { string str = Class813.smethod_1(this.class764_0.method_4(), false, false); int num3 = ((class2.int_2 - class2.int_3) - str.Length) - 1; this.method_21(class2, A_0, num3); return; } case PicfType.Metafile1: { int count = class2.int_2 - class2.int_3; byte[] buffer = this.class764_0.method_4().ReadBytes(count); ShapeObject obj2 = new ShapeObject(this.class764_0.method_42(), ShapeType.Image) { TextWrappingStyle = TextWrappingStyle.Inline }; if (buffer.Length > 0) { obj2.ImageData.method_87(buffer); obj2.SetShapeAttribute(0x1006, obj2.ImageData.ImageBytes); } obj2.CharacterFormat.method_25(A_0); class2.method_2(obj2); this.class764_0.method_43().imethod_18(obj2); return; } } } }
internal Class167(BinaryReader A_0) { this.int_0 = A_0.ReadInt32(); this.int_1 = A_0.ReadInt32(); this.string_0 = Class813.smethod_1(A_0, true, false); }
private bool method_11(ListLevel A_0) { bool flag2; int num = 7; A_0.method_10(this.binaryReader_0.ReadInt32()); A_0.PatternType = (ListPatternType)this.binaryReader_0.ReadByte(); int num2 = this.binaryReader_0.ReadByte(); A_0.NumberAlignment = ((ListNumberAlignment)num2) & (ListNumberAlignment.Right | ListNumberAlignment.Center); A_0.IsLegalStyleNumbering = (num2 & 4) != 0; bool flag = (num2 & 8) != 0; A_0.bool_8 = (num2 & 0x10) != 0; A_0.bool_9 = (num2 & 0x20) != 0; A_0.Word6Legacy = (num2 & 0x40) != 0; A_0.bool_7 = (num2 & 0x80) != 0; this.binaryReader_0.ReadBytes(9); A_0.FollowCharacter = (FollowCharacterType)this.binaryReader_0.ReadByte(); A_0.LegacySpace = this.binaryReader_0.ReadInt32(); A_0.LegacyIndent = this.binaryReader_0.ReadInt32(); int num3 = this.binaryReader_0.ReadByte(); int num4 = this.binaryReader_0.ReadByte(); int num5 = this.binaryReader_0.ReadByte() - 1; this.binaryReader_0.ReadByte(); if (flag && (num5 == 0)) { A_0.NoRestartByHigher = true; } this.class141_0.method_65(new Class428(this.binaryReader_0, num4).method_2(), A_0.ParagraphFormat, null); if ((this.class703_0.nfibEnum_0 == NFibEnum.Word97BiDi) && !A_0.ParagraphFormat.method_6(0x618)) { A_0.ParagraphFormat.IsBidi = true; Class646.smethod_1(A_0.ParagraphFormat); A_0.ParagraphFormat.Remove(0x618); } else { Class646.smethod_1(A_0.ParagraphFormat); } this.class140_0.method_62(new Class428(this.binaryReader_0, num3).method_2(), A_0.CharacterFormat, null, this.dictionary_2); uint num7 = this.binaryReader_0.ReadUInt16(); Stream baseStream = this.binaryReader_0.BaseStream; baseStream.Position -= 2L; if (flag2 = Class567.smethod_46(this.binaryReader_0, (int)num7)) { string str = Class813.smethod_1(this.binaryReader_0, true, false); if ((ListLevel.smethod_1(str) && (str != null)) && ((str.Length <= 30) && (str.IndexOf(0xffff) < 0))) { for (int i = 0; i < 9; i++) { str = str.Replace(((char)i).ToString(), string.Format(BookmarkStart.b("ࠬ吮İ串", num), i + 1)); } if (A_0.PatternType == ListPatternType.Bullet) { A_0.BulletCharacter = str; } else { A_0.LevelText = str; string str3 = BookmarkStart.b("ࠬ", num) + ((A_0.LevelNumber + 1)).ToString(); int index = str.IndexOf(str3); if (index != -1) { A_0.NumberPrefix = str.Substring(0, index); A_0.NumberPrefix = this.method_12(A_0.NumberPrefix); int startIndex = index + 2; A_0.NumberSufix = str.Substring(startIndex, str.Length - startIndex); } else { A_0.NoPlaceholder = true; if (!string.IsNullOrEmpty(str)) { A_0.NumberPrefix = str; } else { A_0.NumberPrefix = (string)(A_0.NumberSufix = null); } A_0.NoLevelText = true; } } } } smethod_0(A_0); return(flag2); }
internal static Class14 smethod_0(Class703 A_0, BinaryReader A_1, ListStyleCollection A_2) { Class1111 class2 = A_0.class1057_0.class1111_6; if (class2.int_1 == 0) { return(null); } A_1.BaseStream.Position = class2.int_0; Stack stack = new Stack(); Class14 class3 = null; Class14 class4 = null; while ((A_1.BaseStream.Position - class2.int_0) < class2.int_1) { bool flag; int num; int num2; int num3; A_1.ReadInt32(); switch (A_1.ReadInt32()) { case 0: { class3 = new Class14(); class4 = class3; continue; } case 1: { if (stack.Count > 0) { class4 = new Class14(); ((Class14)stack.Peek()).method_121().method_2(class4); } class4.method_56((FrameDividerPositionType)A_1.ReadInt32()); class4.method_58(A_1.ReadInt32()); class4.method_60((FrameLayoutType)A_1.ReadInt32()); A_1.ReadInt32(); class4.method_62(A_1.ReadInt32()); class4.method_67(A_1.ReadInt32()); class4.method_115((FrameScrollType)A_1.ReadInt32()); int num6 = A_1.ReadInt32(); class4.method_117((num6 & 1) != 0); class4.method_119((num6 & 2) != 0); A_1.ReadInt32(); continue; } case 2: { if ((A_1.ReadInt32() & 1) == 0) { break; } stack.Push(class4); continue; } case 3: { class4.method_52(Class813.smethod_1(A_1, true, true)); continue; } case 4: { class4.method_54(Class813.smethod_1(A_1, true, true)); continue; } case 5: { class3.method_127(A_1.ReadInt32()); class3.method_125(Class624.smethod_7(A_1.ReadInt32())); int num7 = A_1.ReadInt32(); bool flag2 = (num7 & 1) != 0; flag = (num7 & 2) != 0; if (!flag2) { goto Label_01D3; } class3.method_123(FramesetBorderType.None); continue; } case 6: num = A_1.ReadInt32(); num2 = 0; goto Label_0228; default: { continue; } } class4 = (Class14)stack.Pop(); continue; Label_01D3: if (flag) { class3.method_123(FramesetBorderType.Raised); } else { class3.method_123(FramesetBorderType.Simple); } continue; Label_01F5: num3 = A_1.ReadInt16(); int num5 = A_1.ReadUInt16() & 0xfff; ListStyle style = A_2[num3]; style.ListStyleIstd = num5; num2++; Label_0228: if (num2 < num) { goto Label_01F5; } } return(class3); }
private static void smethod_1(BinaryReader A_0, Class42 A_1) { bool flag; int num = 0x13; if (!(flag = A_0.ReadUInt32() == uint.MaxValue)) { A_0.BaseStream.Seek(-4L, SeekOrigin.Current); } int num6 = A_0.ReadUInt16(); FormFieldType type = ((FormFieldType)num6) & (FormFieldType.DropDown | FormFieldType.CheckBox); A_1.method_88(type); int num5 = (num6 & 0x7c) >> 2; switch (type) { case FormFieldType.DropDown: if (num5 != 0x19) { A_1.method_84(num5); } break; } A_1.method_57((num6 & 0x80) != 0); A_1.method_61((num6 & 0x100) != 0); A_1.method_49((num6 & 0x200) == 0); A_1.method_73((num6 & 0x400) == 0); A_1.method_67((TextFormFieldType)((num6 & 0x3800) >> 11)); A_1.method_51((num6 & 0x4000) != 0); bool flag2 = (num6 & 0x8000) != 0; A_1.method_65(A_0.ReadUInt16()); A_1.method_75(A_0.ReadUInt16()); if (!flag) { A_0.ReadUInt16(); } A_1.method_47(Class813.smethod_1(A_0, flag, true)); switch (type) { case FormFieldType.TextInput: { string str = Class813.smethod_1(A_0, flag, true); if (num5 != 0x19) { A_1.method_69(str); } break; } case FormFieldType.CheckBox: A_1.method_77(A_0.ReadUInt16() != 0); if (num5 == 0x19) { A_1.method_79(A_1.method_76()); break; } A_1.method_79(num5 != 0); break; case FormFieldType.DropDown: A_1.method_82(A_0.ReadUInt16()); break; default: throw new InvalidOperationException(BookmarkStart.b("永唺嘼儾⹀㑂⭄杆⽈⑊㽌≎煐㕒㱔㉖㕘㽚絜⭞ᡠ።d䥦", num)); } A_1.method_71(Class813.smethod_1(A_0, flag, true)); A_1.method_59(Class813.smethod_1(A_0, flag, true)); A_1.method_63(Class813.smethod_1(A_0, flag, true)); A_1.method_53(Class813.smethod_1(A_0, flag, true)); A_1.method_55(Class813.smethod_1(A_0, flag, true)); if ((type == FormFieldType.DropDown) && flag2) { int num3; A_0.ReadInt16(); if (!flag) { num3 = A_0.ReadInt16(); A_0.ReadInt16(); A_0.ReadInt16(); A_0.ReadInt16(); A_0.ReadBytes(num3 * 2); } else { num3 = A_0.ReadInt32(); } if (num3 <= 0x19) { for (int i = 0; i < num3; i++) { A_1.method_86().Add(Class813.smethod_1(A_0, flag, false)); } } } }