void Interface1.imethod_1(Class196 A_0, Class375 A_1) { if ((A_1.method_73() is Class65) && (A_1.method_74().Count > 0)) { Class375 class5 = A_1.method_74().method_4(0); if ((class5.method_73() is Class65) && (class5.method_74().Count > 0)) { Class375 class3 = class5.method_74().method_4(class5.method_74().Count - 1); int count = class3.method_74().Count; if (((count > 0) && (class3.method_74().method_4(0).method_60() != HorizontalAlignment.Distributed)) && ((class3.method_74().method_4(count - 1).method_73() is Class542) || (class3.method_74().method_4(count - 1).method_73() is TextRange))) { for (int i = 0; i < class3.method_74().Count; i++) { class3.method_74().method_4(i).method_55(true); } class3.method_74().method_4(0).method_70(new RectangleF(class3.method_74().method_4(0).method_69().X, class3.method_74().method_4(0).method_69().Y, class3.method_74().method_4(0).method_69().Width - Convert.ToSingle((float)(class3.method_74().method_4(0).method_50() * class3.method_74().method_4(0).method_62())), class3.method_74().method_4(0).method_69().Height)); for (int j = 1; j < class3.method_74().Count; j++) { Class375 class4 = class3.method_74().method_4(j - 1); Class375 class2 = class3.method_74().method_4(j); if (((!(class4.method_73() is Table) || ((class4.method_73() as Table).TextBoxFormat.TextWrappingStyle == TextWrappingStyle.Inline)) && (!(class2.method_73() is Table) || ((class2.method_73() as Table).TextBoxFormat.TextWrappingStyle == TextWrappingStyle.Inline))) && ((!(class4.method_73() is DocPicture) || ((class4.method_73() as DocPicture).TextWrappingStyle == TextWrappingStyle.Inline)) && (!(class2.method_73() is DocPicture) || ((class2.method_73() as DocPicture).TextWrappingStyle == TextWrappingStyle.Inline)))) { float width = class2.method_69().Width - ((class2.method_58() != 0f) ? Convert.ToSingle((float)(class2.method_50() * class2.method_62())) : 0f); class2.method_70(new RectangleF(class4.method_69().X + class4.method_69().Width, class2.method_69().Y, width, class2.method_69().Height)); } } } } } this.method_2().imethod_1(A_0, A_1); }
private static void smethod_0(Class196 A_0, Class375 A_1) { if ((A_1.method_73() is Class65) && (A_1.method_74().Count > 0)) { Class375 class5 = A_1.method_74().method_4(0); if ((class5.method_73() is Class65) && (class5.method_74().Count > 0)) { Class375 class2 = class5.method_74().method_4(class5.method_74().Count - 1); int count = class2.method_74().Count; if (((count > 0) && (class2.method_74().method_4(0).method_60() != HorizontalAlignment.Distributed)) && ((class2.method_74().method_4(count - 1).method_73() is Class542) || (class2.method_74().method_4(count - 1).method_73() is TextRange))) { for (int i = 0; i < class2.method_74().Count; i++) { class2.method_74().method_4(i).method_55(true); } class2.method_74().method_4(0).method_70(new RectangleF(class2.method_74().method_4(0).method_69().X, class2.method_74().method_4(0).method_69().Y, class2.method_74().method_4(0).method_69().Width - Convert.ToSingle((float)(class2.method_74().method_4(0).method_50() * class2.method_74().method_4(0).method_62())), class2.method_74().method_4(0).method_69().Height)); for (int j = 1; j < class2.method_74().Count; j++) { Class375 class3 = class2.method_74().method_4(j - 1); Class375 class4 = class2.method_74().method_4(j); float width = class4.method_69().Width - ((class4.method_58() != 0f) ? Convert.ToSingle((float)(class4.method_50() * class4.method_62())) : 0f); class4.method_70(new RectangleF(class3.method_69().X + class3.method_69().Width, class4.method_69().Y, width, class4.method_69().Height)); } } } } }
private void method_31(Class196 A_0, Class375 A_1, BookmarkLevel A_2) { for (int i = 0; i < A_0.method_145().Count; i++) { string text = string.Empty; if (base.Owner is Paragraph) { text = (base.Owner as Paragraph).Text; } if (A_2 != null) { A_2.Text = text; } foreach (KeyValuePair <string, Class310> pair in A_0.method_145()[i]) { if (pair.Key == this.Name) { pair.Value.method_3(A_1.method_69()); pair.Value.method_5(A_0.method_16()); A_0.method_400(base.OwnerParagraph, pair.Value); pair.Value.method_11(text); if (A_2 != null) { A_2.SourcePageNumber = pair.Value.method_6(); A_2.SourceBounds = pair.Value.method_0(); } } } } }
protected override void vmethod_7() { RectangleF ef = base.class375_1.method_69(); if (!base.method_4().method_28().method_13()) { if (base.class774_0.method_11().X != base.class774_0.method_13().X) { base.class774_0.method_17(); } ef.Height -= (float)base.class375_1.method_73().imethod_0().imethod_1().method_4(); base.class774_0.method_18((double)ef.Bottom); } else { base.class774_0.method_15((double)base.method_4().method_28().method_15()); base.method_4().method_28().method_14(false); base.method_4().method_28().method_16(0f); List <RectangleF> list = new List <RectangleF>(); int num2 = 0; int count = base.class375_1.method_74().Count; while (num2 < count) { Class375 class2 = base.class375_1.method_74().method_4(num2); if ((class2.method_73() is DocPicture) && ((class2.method_73() as DocPicture).TextWrappingStyle == TextWrappingStyle.Inline)) { list.Add(class2.method_69()); } num2++; } if (list.Count > 0) { RectangleF ef4 = new RectangleF(); foreach (RectangleF ef5 in list) { ef4 = (ef4.Bottom > ef5.Bottom) ? ef4 : ef5; } list = null; if (!ef4.IsEmpty) { ef4.Height -= (float)base.class375_1.method_73().imethod_0().imethod_1().method_4(); Paragraph paragraph = (base.class375_1.method_73() is Paragraph) ? (base.class375_1.method_73() as Paragraph) : ((!(base.class375_1.method_73() is Class65) || !((base.class375_1.method_73() as Class65).method_2() is Paragraph)) ? null : ((base.class375_1.method_73() as Class65).method_2() as Paragraph)); if (paragraph != null) { float num = 0f; if (base.method_4().method_1()) { num = (float)base.method_4().method_346(base.method_4().method_376(paragraph.BreakCharacterFormat)).method_0(); } else { num = (float)base.method_4().method_339(base.method_4().method_365(paragraph.BreakCharacterFormat)).method_0(); } ef4.Height -= num; } base.class774_0.method_18((double)ef4.Bottom); } } } }
void Interface1.Draw(Class196 dc, Class375 ltWidget) { string dropDownValue = string.Empty; if (this.dropDownCollection_0.Count > 0) { dropDownValue = this.DropDownValue; } Class198 class2 = new Class198 { drawingTextDirection_0 = DrawingTextDirection.Horizontal }; dc.method_233(dropDownValue, this.CharacterFormat, null, ltWidget.method_69(), ltWidget.method_69().Width, class2); }
void Interface1.Draw(Class196 dc, Class375 ltWidget) { int num = 8; if (!this.Name.StartsWith(b("焭", 8))) { BookmarkLevel item = new BookmarkLevel { Name = this.Name, IsPair = false, TargetBounds = ltWidget.method_69(), TargetPageNumber = dc.method_16() }; if (dc.method_149() != null) { if (!dc.method_149().IsDrawComplete&& !dc.method_149().ChildObjects.Contains(item)) { dc.method_149().method_0(item); dc.method_150(item); BookmarkLevelEventArgs args2 = new BookmarkLevelEventArgs { BookmarkLevel = item, BookmarkStart = this }; base.Document.method_21(args2); } } else if (!dc.method_147().Contains(item)) { dc.method_147().Add(item); dc.method_150(item); BookmarkLevelEventArgs args = new BookmarkLevelEventArgs { BookmarkLevel = item, BookmarkStart = this }; base.Document.method_21(args); } this.method_31(dc, ltWidget, item); } else if (this.Name.ToLower().StartsWith(b("焭䐯崱圳", num))) { this.method_31(dc, ltWidget, null); } }
private void method_93(Class375 A_0) { RectangleF ef20; int num = 4; bool flag = false; bool flag2 = false; int count = A_0.method_74().Count; A_0.method_105(base.method_4()); Class210 class2 = A_0.method_73().imethod_0() as Class210; if (((A_0.method_73() is Paragraph) && (class2 as Class213).method_105()) && ((A_0.method_73().imethod_0() as Class213).method_59() != float.MinValue)) { A_0.method_27((class2 as Class213).method_59() + (A_0.method_73() as Paragraph).Format.FrameWidthEx); } else { A_0.method_27(base.class774_0.method_13().Right); } HorizontalAlignment alignment = (class2 != null) ? class2.method_15() : HorizontalAlignment.Left; double num4 = base.method_4().method_169(A_0); PointF location = A_0.method_69().Location; if ((count > 0) && (A_0.method_69().Location != A_0.method_74().method_4(0).method_69().Location)) { using (List <Class375> .Enumerator enumerator = A_0.method_74().GetEnumerator()) { Class375 current; while (enumerator.MoveNext()) { current = enumerator.Current; if (((!(current.method_73() is Class7) || ((current.method_73() as Class7).TextBoxFormat.TextWrappingStyle == TextWrappingStyle.Inline)) && (!(current.method_73() is DocOleObject) || ((current.method_73() as DocOleObject).Interface49.get_OlePicture().TextWrappingStyle == TextWrappingStyle.Inline))) && (!(current.method_73() is DocPicture) || ((current.method_73() as DocPicture).TextWrappingStyle == TextWrappingStyle.Inline))) { goto Label_01AA; } } goto Label_01CC; Label_01AA: location = current.method_69().Location; } } Label_01CC: ef20 = new RectangleF(location, new SizeF(A_0.method_69().Width + ((float)num4), A_0.method_69().Height)); Class312 class4 = base.method_4().method_28().method_51(ef20, base.class375_0.method_73()); if (((!class4.method_0().IsEmpty&& (class4.method_2().method_0() != TextWrappingStyle.Inline)) && ((class4.method_2().method_0() != TextWrappingStyle.Behind) && (class4.method_2().method_0() != TextWrappingStyle.InFrontOfText))) && (class4.method_0().X > A_0.method_69().X)) { double num3 = num4; float right = A_0.method_74().method_4(base.method_4().method_170(A_0.method_74(), A_0.method_74().method_0(), false)).method_69().Right; num4 = class4.method_0().X - A_0.method_69().Right; if (class4.method_0().X > right) { if (class2.method_85().Right >= class4.method_0().X) { num4 = class4.method_0().X - right; } else { num4 = num3; } } } Paragraph paragraph = this.method_96(); if (((paragraph != null) && base.method_73(paragraph)) && (paragraph.Format.FrameWidth == 0)) { num4 = 0.0; } if (num4 < 0.0) { num4 = 0.0; } CharacterSpacing compressPunctuation = CharacterSpacing.compressPunctuation; bool flag3 = false; if (paragraph != null) { Section section = this.method_95(paragraph); if (section != null) { compressPunctuation = section.PageSetup.CharacterSpacingControl; } if ((((alignment == HorizontalAlignment.Justify) && (paragraph != null)) && ((A_0.method_64() != BookmarkStart.b("礩尫䈭夯䘱䀳匵尷", num)) && (A_0.method_64() != BookmarkStart.b("礩尫䈭夯䘱䀳匵尷甹娻爽⤿ⱁ⅃х㩇⽉ⵋ╍", num)))) && ((A_0.method_74().Count > 0) && !A_0.method_74().method_4(0).method_66())) { flag = true; } flag3 = !paragraph.Document.Settings.method_5().method_29(); if (((alignment == HorizontalAlignment.Justify) && (A_0.method_64() == BookmarkStart.b("礩尫䈭夯䘱䀳匵尷甹娻爽⤿ⱁ⅃х㩇⽉ⵋ╍", num))) && !flag3) { flag2 = true; } } if (compressPunctuation != CharacterSpacing.doNotCompress) { this.method_94(A_0); } if (!this.method_97(paragraph) && ((!flag2 && !flag) || ((flag && paragraph.IsEndOfSection) && (!paragraph.IsEndOfDocument && flag3)))) { switch (alignment) { case HorizontalAlignment.Center: A_0.method_106(base.method_4(), num4); break; case HorizontalAlignment.Right: A_0.method_107(base.method_4(), num4); break; case HorizontalAlignment.Justify: case HorizontalAlignment.Distributed: { int num6 = 0; A_0.method_109(base.method_4(), num4, ref num6); for (int i = num6; i < A_0.method_74().Count; i++) { A_0.method_74().method_4(i).method_61(alignment); A_0.method_74().method_4(i).method_70(new RectangleF(A_0.method_74().method_4(i).method_69().X, A_0.method_74().method_4(i).method_69().Y, A_0.method_74().method_4(i).method_69().Width, A_0.method_74().method_4(i).method_69().Height)); if (i < (A_0.method_74().Count - 1)) { A_0.method_74().method_4(i + 1).method_70(new RectangleF(A_0.method_74().method_4(i + 1).method_69().Location.X, A_0.method_74().method_4(i + 1).method_69().Location.Y, A_0.method_74().method_4(i + 1).method_69().Width, A_0.method_74().method_4(i + 1).method_69().Height)); } } break; } } } if (((base.method_4().method_28().method_3().Count == 2) && base.method_4().method_28().method_1()) && (A_0.method_12() != float.MinValue)) { base.method_4().method_28().method_2(false); float num7 = Math.Max(base.method_4().method_28().method_3().method_4(0).method_69().Bottom, base.method_4().method_28().method_28().Margins.Top); float num9 = A_0.method_12() - num7; double num10 = ((double)num9) % A_0.method_7().method_7(); double num11 = 0.0; if (((int)num10) > 0) { if (((int)(((double)num9) / A_0.method_7().method_7())) == 0) { num11 = A_0.method_7().method_7() - num9; A_0.method_94(0.0, num11, true); } else if ((num10 >= A_0.method_7().method_0()) && (num10 <= A_0.method_7().method_7())) { num11 = A_0.method_7().method_4(); A_0.method_94(0.0, num11, true); } else { num11 = Math.Abs((double)(A_0.method_7().method_4() - num10)); A_0.method_94(0.0, num11, true); } base.class774_0.method_18((double)A_0.method_69().Bottom); } } }