internal void method_0(BinaryWriter A_0) { Class813.smethod_2(this.method_3(), this.method_3().Length, A_0, true, false); Class813.smethod_2(this.method_4(), this.method_4().Length, A_0, true, false); Class343.smethod_5(A_0, this.method_5(), true); Class343.smethod_5(A_0, this.method_6(), true); }
internal static int smethod_1(Document A_0, BinaryWriter A_1) { int num = 9; int position = (int)A_1.BaseStream.Position; string[] strArray = smethod_2(A_0); if (strArray.Length == 0) { return(0); } A_1.Write((ushort)0xffff); A_1.Write((short)strArray.Length); A_1.Write((short)4); foreach (string str3 in strArray) { Class813.smethod_2(str3, 0x7fffffff, A_1, true, false); A_1.Write(0); } foreach (string str in strArray) { if (str != BookmarkStart.b("簮堰吲嬴", num)) { string str2 = A_0.Variables[str]; Class813.smethod_2(str2, 0x7fffffff, A_1, true, false); } else { A_1.Write((ushort)(A_0.VbaSignature.Length / 2)); A_1.Write(A_0.VbaSignature); } } return(((int)A_1.BaseStream.Position) - position); }
internal void method_1(Class703 A_0, BinaryWriter A_1) { A_0.class597_0.class1111_36.int_0 = (int)A_1.BaseStream.Position; using (StringEnumerator enumerator = this.stringCollection_0.GetEnumerator()) { while (enumerator.MoveNext()) { Class813.smethod_2(enumerator.Current, 0x37, A_1, true, false); } } A_0.class597_0.class1111_36.int_1 = ((int)A_1.BaseStream.Position) - A_0.class597_0.class1111_36.int_0; A_0.class597_0.class1111_4.int_0 = (int)A_1.BaseStream.Position; A_0.class597_0.class1111_4.int_1 = this.class153_0.vmethod_1(A_1); A_0.class929_0.class1111_4.int_0 = (int)A_1.BaseStream.Position; A_0.class929_0.class1111_4.int_1 = this.class153_0.method_27(A_1); A_0.class597_0.class1111_5.int_0 = (int)A_1.BaseStream.Position; A_0.class597_0.class1111_5.int_1 = this.class155_0.vmethod_1(A_1); this.method_2(); A_0.class597_0.class1111_42.int_0 = (int)A_1.BaseStream.Position; A_0.class597_0.class1111_42.int_1 = this.class162_0.vmethod_1(A_1); A_0.class597_0.class1111_43.int_0 = (int)A_1.BaseStream.Position; A_0.class597_0.class1111_43.int_1 = this.class147_0.vmethod_1(A_1); A_0.class597_0.class1111_37.int_0 = (int)A_1.BaseStream.Position; A_0.class597_0.class1111_37.int_1 = this.class344_0.method_3(A_1); }
private void method_16(ShapeBase A_0) { Stream baseStream = this.class423_0.method_59().BaseStream; BinaryWriter writer = this.class423_0.method_59(); int position = (int)baseStream.Position; Class1107 class2 = new Class1107 { bool_0 = true, int_1 = position }; this.class423_0.method_38(Class816.string_13, A_0.CharacterFormat, class2); Class262 class3 = new Class262(A_0); class3.method_1(writer); if (A_0.CanHaveImage) { ShapeObject obj2 = (ShapeObject)A_0; if (obj2.ImageData.IsLink && !obj2.HasImageBytes) { Class813.smethod_2(obj2.ImageData.SourceFullName, 0x7fffffff, writer, false, false); } } Class931.smethod_1(A_0, writer); int num2 = (int)baseStream.Position; class3.int_2 = num2 - position; baseStream.Position = position; class3.method_1(writer); baseStream.Position = num2; }
private void method_13(ListLevel A_0, int A_1) { string bulletCharacter; this.binaryWriter_0.Write(A_0.StartAt); this.binaryWriter_0.Write((byte)A_0.PatternType); int num = 0; num = 0 | ((byte)A_0.NumberAlignment); num |= A_0.IsLegalStyleNumbering ? 4 : 0; num |= A_0.NoRestartByHigher ? 8 : 0; num |= A_0.bool_8 ? 0x10 : 0; num |= A_0.bool_9 ? 0x20 : 0; num |= A_0.Word6Legacy ? 0x40 : 0; num |= A_0.bool_7 ? 0x80 : 0; this.binaryWriter_0.Write((byte)num); if (A_0.PatternType == ListPatternType.Bullet) { bulletCharacter = A_0.BulletCharacter; } else { string str2 = string.Empty; if ((A_0.NumberPrefix != null) && (A_0.NumberPrefix.Length > 0)) { str2 = this.method_14(A_0.NumberPrefix); } bulletCharacter = str2; if (!A_0.NoLevelText && (A_0.NumberSufix != null)) { bulletCharacter = bulletCharacter + Convert.ToChar(A_1).ToString() + A_0.NumberSufix; } else if (A_0.PatternType == ListPatternType.None) { bulletCharacter = A_0.LevelText; } } bulletCharacter = this.method_12(bulletCharacter); byte[] buffer = smethod_2(bulletCharacter); this.binaryWriter_0.Write(buffer); this.binaryWriter_0.Write((byte)A_0.FollowCharacter); this.binaryWriter_0.Write(A_0.LegacySpace); this.binaryWriter_0.Write(A_0.LegacyIndent); smethod_1(A_0); Class431 class2 = this.class140_0.method_64(A_0.CharacterFormat, null, false); this.binaryWriter_0.Write((byte)class2.method_2().Length); Class430 class3 = this.class141_0.method_62(A_0.ParagraphFormat, null); this.binaryWriter_0.Write((byte)class3.method_2().Length); this.binaryWriter_0.Write((short)0); this.binaryWriter_0.Write(class3.method_2()); this.binaryWriter_0.Write(class2.method_2()); Class813.smethod_2(bulletCharacter, 0x7fffffff, this.binaryWriter_0, true, false); }
private static void smethod_7(BinaryWriter A_0, Dofrt A_1, string A_2) { if (Class567.smethod_16(A_2)) { long position = A_0.BaseStream.Position; smethod_4(A_0, 0); smethod_4(A_0, (int)A_1); Class813.smethod_2(A_2, 0x7fffffff, A_0, true, true); smethod_5(A_0, position); } }
private void method_5() { int count = this.arrayList_0.Count; if (count != 0) { this.binaryWriter_0.Write((byte)0x11); this.binaryWriter_0.Write((ushort)count); int num2 = 0; foreach (string str in this.arrayList_0) { this.binaryWriter_0.Write((ushort)num2++); Class813.smethod_2(str, 0xff, this.binaryWriter_0, true, true); } } }
private void method_17(Style A_0) { int num = 11; if (A_0.Name.ToLower() == BookmarkStart.b("弰尲䜴娶堸场", 11)) { if (this.styleCollection_0.Document.DefCharFormat != null) { A_0.CharacterFormat.method_25(this.styleCollection_0.Document.DefCharFormat); } if (this.styleCollection_0.Document.DefParaFormat != null) { A_0.ParaPr.method_25(this.styleCollection_0.Document.DefParaFormat); } } int position = (int)this.binaryWriter_0.BaseStream.Position; this.binaryWriter_0.Write((ushort)0); int num3 = (int)this.binaryWriter_0.BaseStream.Position; int num4 = this.method_18(A_0); smethod_1(this.binaryWriter_0.BaseStream, num3); Class813.smethod_2(this.styleCollection_0.method_14(A_0, true), 0x7fffffff, this.binaryWriter_0, true, true); this.method_19(A_0, num3); smethod_1(this.binaryWriter_0.BaseStream, num3); int num5 = (int)this.binaryWriter_0.BaseStream.Position; int num6 = num5 - num3; if (Class567.smethod_3((long)num6)) { throw new InvalidOperationException(BookmarkStart.b("細嘲嬴倶䴸区ᴼ倾❀捂㙄㍆え❊⡌慎", num)); } this.binaryWriter_0.BaseStream.Seek((long)position, SeekOrigin.Begin); this.binaryWriter_0.Write((ushort)num6); this.binaryWriter_0.BaseStream.Seek((long)num4, SeekOrigin.Begin); this.binaryWriter_0.Write((ushort)num6); this.binaryWriter_0.BaseStream.Seek((long)num5, SeekOrigin.Begin); }
internal void method_0(BinaryWriter A_0) { A_0.Write(this.int_0); A_0.Write(this.int_1); Class813.smethod_2(this.string_0, this.string_0.Length, A_0, true, false); }
protected static void smethod_0(string A_0, BinaryWriter A_1) { Class813.smethod_2(A_0, 0x7fffffff, A_1, true, false); }