// Token: 0x06002D86 RID: 11654 // RVA: 0x00127F70 File Offset: 0x00126170 internal Class752(string string_0, object object_1, Vector2 vector2_0, float float_0, bool bool_2, bool bool_3, Class746 class746_0, bool bool_4) { EventHandler eventHandler = null; base..ctor(string_0, object_1, vector2_0, float_0, bool_2, bool_3, class746_0, 1f); this.bool_1 = bool_4; if (bool_4) { this.class531_1 = new Class531(Class885.Load("selection-tab-close", Enum112.flag_1), Enum115.const_5, Origins.TopLeft, Enum114.const_0, vector2_0, float_0 + 0.0002f, true, new Color(255, 255, 255, 1), null); this.class531_1.vector2_5 = new Vector2(-49f, 8f); this.class531_1.object_0 = this; this.list_0.Add(this.class531_1); this.class531_2 = new Class531(Class885.Load("selection-tab-close", Enum112.flag_1), Enum115.const_5, Origins.TopLeft, Enum114.const_0, vector2_0, float_0 + 0.0002f, true, new Color(255, 255, 255, 1), null); this.class531_2.vector2_5 = new Vector2(-49f, 8f); this.class531_2.bool_1 = true; this.class531_2.method_2(new EventHandler(this.method_5)); this.class531_2.object_0 = this; this.class531_2.float_4 = -10f; this.class531_2.method_35(delegate(object sender, EventArgs e) { this.class531_2.float_3 = this.class531_0.float_3 * 1f; this.class531_2.color_0 = Color.get_White(); }); Class531 arg_15E_0 = this.class531_2; if (eventHandler == null) { eventHandler = new EventHandler(this.method_6); } arg_15E_0.method_37(eventHandler); this.list_0.Add(this.class531_2); this.class531_0.method_35(new EventHandler(this.method_3)); this.class531_0.method_37(new EventHandler(this.method_2)); } }
// Token: 0x06002D74 RID: 11636 // RVA: 0x001279DC File Offset: 0x00125BDC internal Class750(string string_0, object object_1, Vector2 vector2_0, float float_0, bool bool_1, bool bool_2, Class746 class746_0, float float_1) { this.class531_0 = new Class531(bool_2 ? Class885.Load("selection-tab", Enum112.flag_6) : Class885.Load("selection-tab", Enum112.flag_1), Enum115.const_5, Origins.TopLeft, Enum114.const_0, vector2_0, float_0, true, class746_0.color_0, null); if (bool_1) { this.class531_0.method_43(true); } this.class531_0.class746_1 = class746_0; this.class531_0.method_35(delegate(object sender, EventArgs e) { Class331.smethod_36(null, "click-short", 1f, false); }); this.class531_0.vector2_5 = new Vector2(70f, 12f); this.class531_0.object_0 = this; this.object_0 = (object_1 ?? this); int num = (int)(13f / float_1); if (!string.IsNullOrEmpty(string_0)) { string_0 = ((string_0.Length > num) ? (string_0.Remove(num) + "..") : string_0); this.class531_0.bool_1 = true; this.class531_0.method_2(new EventHandler(this.method_1)); } else { this.class531_0.color_0 = new Color(160, 8, 42); } this.class533_0 = new Class533(string_0, 12f * float_1, vector2_0, new Vector2(82f, 12f) * float_1, float_0 + 0.0001f, true, Color.get_White(), false); this.class533_0.bool_16 = true; this.class533_0.method_58(true); this.class533_0.origins_0 = Origins.Centre; this.class533_0.enum72_0 = Enum72.const_2; this.list_0.Add(this.class531_0); this.list_0.Add(this.class533_0); }
private static bool smethod_11(Class857 A_0, DocumentObject A_1) { int num = 4; Class396 class2 = A_0.method_11(); if (class2.method_0() != BookmarkStart.b("丩師伭䜯", 4)) { return(false); } string str3 = ""; string str = ""; while (class2.method_19()) { string str2 = class2.method_1(); if (str2 != null) { if (!(str2 == BookmarkStart.b("䈩師䬭嘯", num))) { if (str2 == BookmarkStart.b("帩䴫尭圯圱䀳ᬵ帷䠹崻匽┿潁⩃❅╇⽉", num)) { str = class2.method_3(); } } else { str3 = Class576.smethod_91(class2.method_3()); } } } A_0.method_49(str3); A_0.method_51(str); while (class2.method_9(BookmarkStart.b("䬩", num))) { if (class2.method_1() == BookmarkStart.b("䰩師伭崯圱", num)) { Class746.smethod_0(A_0, A_1, null); } else { class2.vmethod_1(); } } A_0.method_49(null); A_0.method_51(null); return(true); }
internal static void smethod_0(Class857 A_0, DocumentObject A_1, CharacterFormat A_2) { ShapeObject obj2 = new ShapeObject(A_0.method_9()); if (A_2 != null) { A_2.method_37(obj2.CharacterFormat); } Class43 class2 = new Class43(); Class43 class3 = new Class43(); class3.SetAttr(0x103b, ShapeType.StraightConnector1); Class244.smethod_2(A_0, class3); Class746.smethod_1(A_0, class2); smethod_1(A_0, class3); obj2.ShapePr = class2; class3.method_37(obj2.ShapePr); obj2.SetShapeAttribute(0x147, 0x2a30); A_1.method_13(obj2); }
internal static void smethod_0(Class857 A_0, DocumentObject A_1, CharacterFormat A_2) { string str = A_0.method_11().method_1(); ShapeObject obj2 = new ShapeObject(A_0.method_9()); if (A_2 != null) { A_2.method_37(obj2.CharacterFormat); } Class43 class2 = new Class43(); Class43 class3 = new Class43(); class3.SetAttr(0x103b, ShapeType.Ellipse); smethod_2(A_0, class3); Class746.smethod_1(A_0, class2); smethod_1(A_0, str, obj2, class3); obj2.ShapePr = class2; class3.method_37(obj2.ShapePr); A_1.method_13(obj2); }
internal void method_0(Class857 A_0, DocumentObject A_1, CharacterFormat A_2) { int num = 0x13; Class576.smethod_94(1.0); string str = A_0.method_11().method_1(); ShapeObject obj2 = new ShapeObject(A_0.method_9()); if (A_2 != null) { A_2.method_37(obj2.CharacterFormat); } this.class43_0 = new Class43(); this.class43_0.SetAttr(0x103b, ShapeType.NonPrimitive); this.method_2(A_0); Class746.smethod_1(A_0, obj2.ShapePr); this.method_1(A_0, str, obj2); this.class43_0.method_37(obj2.ShapePr); Class746.smethod_2(obj2, (Class98)A_0.method_13().method_2(A_0.method_16(), BookmarkStart.b("常䤺尼伾⥀⩂♄", num), A_0.method_20(), true)); A_1.method_13(obj2); }
// Token: 0x060033C1 RID: 13249 // RVA: 0x001625F8 File Offset: 0x001607F8 internal Class311(Class297 class297_1, Vector2 vector2_1, int int_7, int int_8, bool bool_6, float float_0, Class321 class321_0) : base(class297_1, vector2_1, int_7, false, false, false, false, 0) { this.list_1.Remove(this.class531_0); this.list_1.Remove(this.class531_2); this.class746_1 = new Class746(TransformationType.Fade, 0f, 0f, int_8 - this.class297_0.int_10, Math.Min(int_8, int_8 - this.class297_0.int_10 + Class297.int_2), Enum70.const_0); if (bool_6) { this.class531_2 = new Class531(Class885.Load("reversearrow", Enum112.flag_6), Enum115.const_0, Origins.Centre, Enum114.const_1, this.Position, Class911.smethod_4((float)(int_7 - 3)), false, Color.get_White(), null); this.class531_2.class26_0.Add(new Class746(TransformationType.Fade, 0f, 1f, int_8, int_8 + 150, Enum70.const_0)); this.list_1.Add(this.class531_2); this.list_0.Add(this.class531_2); } this.class531_1.class26_0.Clear(); this.class531_1.class26_0.Add(this.class746_1); this.class538_0.class26_0.Clear(); this.class538_0.class26_0.Add(this.class746_1); this.vmethod_7(); if (bool_6) { if (Class885.smethod_25()) { this.class531_2.float_1 = float_0; for (int i = int_8; i < int_7; i += 300) { int num = Math.Min(300, int_7 - i); this.class531_2.class26_0.Add(new Class746(TransformationType.Scale, 1.3f, 1f, i, i + num, Enum70.const_1)); } return; } for (int j = int_8; j < int_7; j += 300) { int num2 = Math.Min(300, int_7 - j); this.class531_2.class26_0.Add(new Class746(TransformationType.Scale, 1.3f, 1f, j, j + num2, Enum70.const_0)); this.class531_2.class26_0.Add(new Class746(TransformationType.Rotation, float_0 + 0.09817469f, float_0 - 0.09817469f, j, j + num2, Enum70.const_0)); } } }
// Token: 0x0600257F RID: 9599 // RVA: 0x000E2208 File Offset: 0x000E0408 internal Class592(Class911 class911_1, int int_3, Vector2 vector2_1, float float_2, bool bool_3, Color color_2, int int_4, bool bool_4) { this.int_1 = int_4; this.class911_0 = class911_1; this.float_0 = float_2; this.bool_1 = bool_3; this.int_0 = int_3; this.vector2_0 = vector2_1; this.bool_2 = bool_4; this.color_0 = color_2; this.color_1 = new Color((byte)Math.Min(255f, (float)this.color_0.get_R() * 1.8f), (byte)Math.Min(255f, (float)this.color_0.get_G() * 1.8f), (byte)Math.Min(255f, (float)this.color_0.get_B() * 1.8f)); this.class746_0 = new Class746(this.color_0, new Color((byte)Math.Min(255, (int)(this.color_0.get_R() + 20)), (byte)Math.Min(255, (int)(this.color_0.get_G() + 50)), (byte)Math.Min(255, (int)(this.color_0.get_B() + 50))), 0, 80); this.class746_1 = new Class746(this.color_1, new Color((byte)Math.Min(255, (int)(this.color_1.get_R() + 20)), (byte)Math.Min(255, (int)(this.color_1.get_G() + 50)), (byte)Math.Min(255, (int)(this.color_1.get_B() + 50))), 0, 80); }
// Token: 0x060027B0 RID: 10160 // RVA: 0x0001E95D File Offset: 0x0001CB5D public bool method_0(Class746 class746_0) { return class746_0.transformationType_0 == this.transformationType_0; }
// Token: 0x060027AC RID: 10156 // RVA: 0x0001E948 File Offset: 0x0001CB48 public bool method_1(Class746 class746_1) { return class746_1.int_1 == this.class746_0.int_0; }
// Token: 0x060027AB RID: 10155 // RVA: 0x0001E933 File Offset: 0x0001CB33 public bool method_0(Class746 class746_1) { return class746_1.int_0 == this.class746_0.int_1; }
// Token: 0x06002895 RID: 10389 // RVA: 0x000FEBC0 File Offset: 0x000FCDC0 protected override void vmethod_9(bool bool_0) { this.class536_0.class26_0.Clear(); this.class536_1.class26_0.Clear(); this.class536_0.float_3 = 1f; Class746 item = new Class746(TransformationType.Scale, 2f, 1f, Class115.int_1, Class115.int_1 + 300, Enum70.const_0) { enum70_0 = Enum70.const_1, byte_0 = 1 }; this.class536_0.class26_0.Add(item); item = new Class746(TransformationType.Fade, 1f, 0f, Class115.int_1 + 1000, Class115.int_1 + 1300, Enum70.const_0) { byte_0 = 1 }; this.class536_0.class26_0.Add(item); item = new Class746(TransformationType.Scale, 2f, 2.4f, Class115.int_1, Class115.int_1 + 400, Enum70.const_0) { enum70_0 = Enum70.const_1, byte_0 = 1 }; Class746 item2 = new Class746(TransformationType.Fade, 0.7f, 0f, Class115.int_1, Class115.int_1 + 400, Enum70.const_0) { byte_0 = 1 }; this.class536_1.class26_0.Add(item); this.class536_1.class26_0.Add(item2); }
// Token: 0x0600229D RID: 8861 // RVA: 0x0001BB4E File Offset: 0x00019D4E public bool method_0(Class746 class746_0) { return class746_0.int_0 <= this.int_0 && class746_0.int_1 >= this.int_0; }
internal static bool smethod_10(Class857 A_0, DocumentObject A_1, CharacterFormat A_2, Style A_3) { int num = 3; if (!(A_1 is ShapeObject) || (A_1 is ShapeGroup)) { Class396 class3 = A_0.method_11(); DocumentObject lastParagraph = A_1; string str3 = class3.method_0(); string str = class3.method_1(); if ((A_1 is Body) && (((str3 == BookmarkStart.b("䴨太䰬堮", num)) && (str == BookmarkStart.b("䠨", num))) || (((((str == BookmarkStart.b("丨", num)) || (str == BookmarkStart.b("䔨䈪䌬䨮", num))) || ((str == BookmarkStart.b("䨨䐪䌬䄮吰倲䄴堶䬸", num)) || (str == BookmarkStart.b("嬨个丬嬮", num)))) || (((str == BookmarkStart.b("䨨䈪弬䰮崰嘲", num)) || (str == BookmarkStart.b("䰨䜪䄬䘮䄰䀲倴", num))) || ((str == BookmarkStart.b("夨䐪䄬嘮崰娲嬴制", num)) || (str == BookmarkStart.b("夨䐪䄬嘮嘰尲嬴", num))))) || ((((str == BookmarkStart.b("嬨个䨬娮崰刲䜴ᨶ䤸吺儼䘾♀ⱂ⭄", num)) || (str == BookmarkStart.b("夨䨪夬䜮", num))) || ((str == BookmarkStart.b("夨䨪䨬䨮ᰰ䜲崴䈶吸夺匼帾⡀⽂", num)) || (str == BookmarkStart.b("䐨个䰬尮䐰䄲倴", num)))) || (((str == BookmarkStart.b("䨨䨪崬嬮堰尲嬴", num)) || (str == BookmarkStart.b("娨䠪䠬䄮吰", num))) || (str == BookmarkStart.b("䨨帪帬嬮帰帲ᠴ䐶儸娺䴼娾", num))))))) { if (A_0.method_36().Count == 0) { Body body = (Body)A_1; if (body.LastParagraph == null) { body.method_13(new Paragraph(A_0.method_9())); A_0.method_36().Add(body.LastParagraph); } lastParagraph = (DocumentObject)body.LastParagraph; } else { lastParagraph = (Paragraph)A_0.method_36()[A_0.method_36().Count - 1]; } } string key = class3.method_1(); if (key != null) { int num2; if (Class1160.dictionary_174 == null) { Dictionary <string, int> dictionary1 = new Dictionary <string, int>(0x12); dictionary1.Add(BookmarkStart.b("丨", num), 0); dictionary1.Add(BookmarkStart.b("䠨", num), 1); dictionary1.Add(BookmarkStart.b("伨太䰬䈮吰", num), 2); dictionary1.Add(BookmarkStart.b("䨨䐪䌬嬮䌰尲头", num), 3); dictionary1.Add(BookmarkStart.b("䔨䈪䌬䨮", num), 4); dictionary1.Add(BookmarkStart.b("䨨䐪䌬䄮吰倲䄴堶䬸", num), 5); dictionary1.Add(BookmarkStart.b("嬨个丬嬮", num), 6); dictionary1.Add(BookmarkStart.b("䨨䈪弬䰮崰嘲", num), 7); dictionary1.Add(BookmarkStart.b("䰨䜪䄬䘮䄰䀲倴", num), 8); dictionary1.Add(BookmarkStart.b("䨨帪帬嬮帰帲ᠴ䐶儸娺䴼娾", num), 9); dictionary1.Add(BookmarkStart.b("夨䐪䄬嘮崰娲嬴制", num), 10); dictionary1.Add(BookmarkStart.b("夨䐪䄬嘮嘰尲嬴", num), 11); dictionary1.Add(BookmarkStart.b("夨䨪夬䜮", num), 12); dictionary1.Add(BookmarkStart.b("嬨个䨬娮崰刲䜴ᨶ䤸吺儼䘾♀ⱂ⭄", num), 13); dictionary1.Add(BookmarkStart.b("夨䨪䨬䨮ᰰ䜲崴䈶吸夺匼帾⡀⽂", num), 14); dictionary1.Add(BookmarkStart.b("䐨个䰬尮䐰䄲倴", num), 15); dictionary1.Add(BookmarkStart.b("䨨䨪崬嬮堰尲嬴", num), 0x10); dictionary1.Add(BookmarkStart.b("娨䠪䠬䄮吰", num), 0x11); Class1160.dictionary_174 = dictionary1; } if (Class1160.dictionary_174.TryGetValue(key, out num2)) { switch (num2) { case 0: Class745.smethod_0(A_0, lastParagraph, A_2); return(true); case 1: return(smethod_11(A_0, lastParagraph)); case 2: Class746.smethod_0(A_0, lastParagraph, A_2); return(true); case 3: Class1144.smethod_0(A_0, lastParagraph, A_2, A_3); return(true); case 4: Class244.smethod_0(A_0, lastParagraph, A_2); return(true); case 5: Class245.smethod_0(A_0, lastParagraph, A_2); return(true); case 6: A_0.method_56(true); Class1051.smethod_0(A_0, lastParagraph, A_2); A_0.method_56(false); return(true); case 7: case 8: A_0.method_56(true); Class473.smethod_0(A_0, lastParagraph, A_2); A_0.method_56(false); return(true); case 9: case 10: case 11: { A_0.method_56(true); Class1097 class2 = new Class1097(); class2.method_23(class3.method_1() == BookmarkStart.b("夨䐪䄬嘮崰娲嬴制", num)); class2.method_0(A_0, lastParagraph, A_2); A_0.method_56(false); return(true); } case 12: A_0.method_56(true); new Class1143().method_0(A_0, lastParagraph, A_2); A_0.method_56(false); return(true); case 14: case 15: case 0x10: case 0x11: return(true); } } } } return(false); }
private static bool smethod_0(Class746 class746_0) { return class746_0.transformationType_0 == TransformationType.Scale; }
private static bool smethod_1(Class746 class746_0) { return class746_0.byte_0 == 1; }
private unsafe void method_22( Class504 section, byte[] buffer, ulong position, ulong uncompressedLength) { Class443 class443 = new Class443(); class443.PageSize = section.MaxDecompressedPageSize; class443.DataOffset = position; class443.DecompressedSize = uncompressedLength; class443.CheckSum = (ulong)Class996.smethod_3((ulong)this.uint_0, buffer, (uint)position, (uint)uncompressedLength); Class746 class7461 = Class746.class746_1; MemoryStream memoryStream = new MemoryStream(); if (section.Compressed) { new Class955().method_1(buffer, (int)position, (int)uncompressedLength, (Stream)memoryStream); if (memoryStream.Length >= (long)uncompressedLength) { memoryStream = new MemoryStream(); memoryStream.Write(buffer, (int)position, (int)uncompressedLength); } } else { memoryStream.Write(buffer, (int)position, (int)uncompressedLength); } class443.CompressedSize = (ulong)memoryStream.Length; class443.Crc = Class656.class656_1.method_0(memoryStream.GetBuffer(), 0U, (uint)memoryStream.Length, Class656.smethod_0((ulong)this.uint_0, (uint)memoryStream.Length)); ulong num1 = (ulong)(memoryStream.Length + 8L - 1L & -8L); int num2 = (int)((ulong)((long)num1 + (long)class7461.K - 1L) / (ulong)class7461.K); byte[] data; if (section.Encoding == 4UL) { data = new byte[(long)num2 * (long)class7461.N]; int num3 = (int)((long)num1 - memoryStream.Length); for (int index = 0; index < num3; ++index) { memoryStream.WriteByte((byte)0); fixed(byte *destination = data) fixed(byte *source = memoryStream.GetBuffer()) this.method_28(destination, source, (int)memoryStream.Length, class7461); } else { if (section.Encoding != 1UL) { throw new Exception(); } uint num3 = (uint)(num1 - (ulong)memoryStream.Length); for (uint index = 0; index < num3; ++index) { memoryStream.WriteByte((byte)0); } data = new byte[num1 + (ulong)num2 * (ulong)(class7461.N - class7461.K)]; fixed(byte *dataBufferPtr = data) fixed(byte *sourcePtr = memoryStream.GetBuffer()) this.method_26(dataBufferPtr, dataBufferPtr + num1, sourcePtr, (int)memoryStream.Length, class7461); } this.method_23((Class441)class443, data, 0, data.Length); if (class443.Id > 0L) { ++section.PageCount; } section.Pages.Add(class443); }