예제 #1
0
        SizeF Interface2.Measure(Class196 dc)
        {
            SizeF  ef  = new SizeF();
            string str = char.ConvertFromUtf32(this.CharacterCode);

            Spire.Doc.Formatting.CharacterFormat characterFormat = this.CharacterFormat;
            if ((!this.CharacterFormat.HasValue(0) && (this.FontName != string.Empty)) && (this.FontName != this.CharacterFormat.FontName))
            {
                characterFormat = new Spire.Doc.Formatting.CharacterFormat(base.Document);
                characterFormat.ImportContainer(this.CharacterFormat);
                characterFormat.method_21(this.CharacterFormat);
                characterFormat.ApplyBase(base.method_28().BreakCharacterFormat.BaseFormat);
                characterFormat.FontSize = this.CharacterFormat.FontSize;
                characterFormat.FontName = this.FontName;
            }
            if (this.CharacterFormat.IsSmallCaps)
            {
                ef = dc.method_1() ? dc.method_310(str, dc.method_376(characterFormat), null, true) : dc.method_317(str, dc.method_365(characterFormat), null, true);
            }
            else
            {
                ef = dc.method_1() ? dc.method_309(str, dc.method_376(characterFormat), null) : dc.method_316(str, dc.method_365(characterFormat), null);
            }
            ef.Height       = this.CharacterFormat.FontSize;
            characterFormat = null;
            return(ef);
        }
예제 #2
0
 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));
                 }
             }
         }
     }
 }
예제 #3
0
 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);
 }
예제 #4
0
        SizeF Interface2.Measure(Class196 dc)
        {
            int num = 0;

            if ((this.Text == Class818.string_0) && (base.OwnerParagraph.OwnerTextBody.Owner is Footnote))
            {
                this.Text = ((base.OwnerParagraph.OwnerTextBody.Owner as Footnote).interface23_0 as Class209).method_15();
            }
            string text = this.Text;

            if (!string.IsNullOrEmpty(text) && (text != BookmarkStart.b("⼥", num)))
            {
                if (((this.OwnerEmptyParagraph != null) && (base.OwnerParagraph == null)) || this.IsAddForEmptyPara)
                {
                    SizeF ef3 = dc.method_323(this, BookmarkStart.b("ࠥ", num));
                    ef3.Width = 0.000145f;
                    return(ef3);
                }
                if (((base.OwnerParagraph != null) && string.IsNullOrEmpty(text.Trim())) && ((this == base.OwnerParagraph.Items.LastItem) && (base.OwnerParagraph.Format.HorizontalAlignment != HorizontalAlignment.Left)))
                {
                    text = text.TrimEnd(new char[0]);
                }
                if ((base.Owner == null) && (this.CharacterFormat.Font == null))
                {
                    return(new SizeF());
                }
                return(dc.method_323(this, text));
            }
            SizeF ef2 = dc.method_323(this, BookmarkStart.b("ࠥ", num));

            ef2.Width = 0f;
            return(ef2);
        }
예제 #5
0
 void Interface1.Draw(Class196 dc, Class375 ltWidget)
 {
     if (this.method_248() == 0)
     {
         dc.method_199(this.TextRange, ltWidget, this.TextRange.Text);
     }
 }
예제 #6
0
 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();
                 }
             }
         }
     }
 }
예제 #7
0
        int Interface21.OffsetToIndex(Class196 dc, double offset, string text, string textSplit, float clientWidth, float clientActiveAreaWidth, bool bIsFirstSplit)
        {
            int      num    = 3;
            float    num2   = this.method_41(dc, clientWidth);
            Class210 class2 = base.interface23_0 as Class210;
            bool     flag2  = (class2 != null) ? class2.Interface23.imethod_26() : true;
            bool     flag   = (base.OwnerParagraph != null) && base.OwnerParagraph.method_46();

            flag = (num2 <= 0f) || flag;
            int   num4  = dc.method_401(text, this, textSplit, offset, !flag2, flag, num2, clientActiveAreaWidth);
            float width = dc.method_323(this, BookmarkStart.b("न", num)).Width;

            if ((num4 > 0) && (!flag || (num2 >= width)))
            {
                int num6 = Class203.smethod_4(textSplit, num4);
                if (num6 < 0)
                {
                    if ((num4 + num6) <= 0)
                    {
                        string str = text.Substring(0, num4 + Math.Abs(num6));
                        if (dc.method_323(this, str).Width < num2)
                        {
                            num4 += num6;
                        }
                    }
                }
                else
                {
                    num4 += num6;
                }
            }
            if ((num2 > width) && (num4 < textSplit.Length))
            {
                int num7 = num4;
                if (((offset != num2) && (num4 < 1)) || flag)
                {
                    num7++;
                }
                if (num7 > -1)
                {
                    for (int i = num7; i < textSplit.Length; i++)
                    {
                        if ((textSplit[i] != ' ') && (textSplit[i] != '\x00a0'))
                        {
                            break;
                        }
                        num4++;
                    }
                }
            }
            if (((num4 <= 0) && (Class59.smethod_5((double)num2, offset, 0.005) == 0)) && !flag)
            {
                num4 = -2147483648;
            }
            if (((num4 <= 0) && (Class59.smethod_5((double)num2, 0.0, 0.005) <= 0)) && flag)
            {
                num4 = -2147483648;
            }
            return(num4);
        }
예제 #8
0
 protected override void vmethod_11(Class196 A_0, Class615 A_1)
 {
     if ((base.class375_0.method_73().imethod_0() as Class205).method_3() && this.method_92(A_1))
     {
         base.class774_0.method_1(new RectangleF(base.class774_0.method_0().Location, new SizeF(base.class774_0.method_0().Width, base.class774_0.method_0().Height - (base.class375_0.method_73().imethod_0() as Class205).method_7())));
     }
 }
예제 #9
0
 public void imethod_1(Class196 A_0, Class375 A_1)
 {
     if (((this.interface21_0 is Field) && (this.method_0() != null)) && (this.method_0() != string.Empty))
     {
         string text = (this.interface21_0 as Field).Text;
         (this.interface21_0 as Field).Text = this.method_0();
         this.interface21_0.imethod_1(A_0, A_1);
         (this.interface21_0 as Field).Text = text;
     }
     else if (((A_1.method_73() as Class542).method_2() as TextRange).PreviousSibling is FieldMark)
     {
         string        str             = ((A_1.method_73() as Class542).method_2() as TextRange).Text;
         ParagraphBase previousSibling = ((A_1.method_73() as Class542).method_2() as TextRange).PreviousSibling as ParagraphBase;
         if (((previousSibling.PreviousSibling != null) && (previousSibling.PreviousSibling is Field)) && ((previousSibling.PreviousSibling as Field).Type == FieldType.FieldNumPages))
         {
             this.interface21_0.imethod_7(A_0, A_1, str);
         }
         else
         {
             this.interface21_0.imethod_7(A_0, A_1, this.method_0());
         }
     }
     else
     {
         this.interface21_0.imethod_7(A_0, A_1, this.method_0());
     }
 }
예제 #10
0
 void Interface1.Draw(Class196 dc, Class375 ltWidget)
 {
     if (base.ImageData != null)
     {
         dc.method_213(base.ImageData, ltWidget, true);
     }
 }
예제 #11
0
        SizeF Interface2.Measure(Class196 dc)
        {
            int       num            = 5;
            SizeF     ef             = new SizeF(0.0045f, 0f);
            Paragraph ownerParagraph = base.OwnerParagraph;

            if ((ownerParagraph == null) && (base.Owner is SDTInlineContent))
            {
                ownerParagraph = (base.Owner as SDTInlineContent).OwnerParagraph;
            }
            if (ownerParagraph != null)
            {
                ef.Height = dc.method_1() ? dc.method_309(b("∪", num), dc.method_376(ownerParagraph.BreakCharacterFormat), null).Height : dc.method_316(b("∪", num), dc.method_365(ownerParagraph.BreakCharacterFormat), null).Height;
                if (ownerParagraph.ParaStyle != null)
                {
                    ef.Height = Math.Min(ef.Height, dc.method_1() ? dc.method_309(b("∪", num), dc.method_376(ownerParagraph.ParaStyle.CharacterFormat), null).Height : dc.method_316(b("∪", num), dc.method_365(ownerParagraph.ParaStyle.CharacterFormat), null).Height);
                }
            }
            int num2 = base.Document.DocLayoter.method_28().method_31() + 1;

            if (base.Document.DocLayoter.dictionary_1.ContainsKey(this.Name))
            {
                base.Document.DocLayoter.dictionary_1[this.Name] = num2;
                return(ef);
            }
            base.Document.DocLayoter.dictionary_1.Add(this.Name, num2);
            return(ef);
        }
예제 #12
0
 private void imethod_1(Class196 A_0, Class375 A_1)
 {
     if (this.method_32() != null)
     {
         this.method_32().DrawImpl(A_0, A_1);
     }
 }
예제 #13
0
 void Interface1.Draw(Class196 dc, Class375 ltWidget)
 {
     if (!ltWidget.method_73().imethod_0().imethod_10())
     {
         string str = (ltWidget.method_64() != null) ? ltWidget.method_64() : this.Text;
         ((Interface21)this).imethod_7(dc, ltWidget, str);
     }
 }
예제 #14
0
 void Interface1.Draw(Class196 dc, Class375 ltWidget)
 {
     if ((!this.Name.StartsWith(BookmarkStart.b("礥", 0)) && (dc.method_149() != null)) && dc.method_149().Name.Equals(this.Name))
     {
         dc.method_149().IsDrawComplete = true;
         dc.method_150(dc.method_149().Owner);
     }
 }
예제 #15
0
 SizeF Interface2.imethod_3(Class196 A_0)
 {
     if (this.method_32() != null)
     {
         return(this.method_32().Size);
     }
     return(SizeF.Empty);
 }
예제 #16
0
 SizeF Interface2.Measure(Class196 dc)
 {
     if (this.method_248() == 0)
     {
         return(dc.method_323(this.TextRange, this.TextRange.Text));
     }
     this.method_249();
     return(new SizeF());
 }
예제 #17
0
파일: Class795.cs 프로젝트: 15831944/WW
 public int imethod_3(Class196 subEntity)
 {
     for (int index = 0; index < this.NumberOfSubEntities; ++index)
     {
         if (this.method_2(index) == subEntity)
         {
             return(index);
         }
     }
     return(-1);
 }
        SizeF Interface2.Measure(Class196 dc)
        {
            if (this.checkBoxSizeType_0 != CheckBoxSizeType.Auto)
            {
                return(new SizeF((float)this.int_13, (float)this.int_13));
            }
            TextRange range    = this;
            float     fontSize = range.CharacterFormat.FontSize;

            return(new SizeF(fontSize, fontSize));
        }
예제 #19
0
 private static void smethod_39(IList <PropertyInfo> ilist_0, Type type_1, BindingFlags bindingFlags_0)
 {
     while ((type_1 = type_1.smethod_6()) != null)
     {
         foreach (PropertyInfo info in type_1.GetProperties(bindingFlags_0))
         {
             Func <PropertyInfo, bool> func  = null;
             Func <PropertyInfo, bool> func2 = null;
             Func <PropertyInfo, bool> func3 = null;
             Class196 class2 = new Class196 {
                 propertyInfo_0 = info
             };
             if (!smethod_2(class2.propertyInfo_0))
             {
                 if (func == null)
                 {
                     func = new Func <PropertyInfo, bool>(class2.method_0);
                 }
                 int num = ilist_0.smethod_8 <PropertyInfo>(func);
                 if (num == -1)
                 {
                     ilist_0.Add(class2.propertyInfo_0);
                 }
                 else
                 {
                     ilist_0[num] = class2.propertyInfo_0;
                 }
             }
             else if (!class2.propertyInfo_0.smethod_0())
             {
                 if (func2 == null)
                 {
                     func2 = new Func <PropertyInfo, bool>(class2.method_1);
                 }
                 if (ilist_0.smethod_8 <PropertyInfo>(func2) == -1)
                 {
                     ilist_0.Add(class2.propertyInfo_0);
                 }
             }
             else
             {
                 if (func3 == null)
                 {
                     func3 = new Func <PropertyInfo, bool>(class2.method_2);
                 }
                 if (ilist_0.smethod_8 <PropertyInfo>(func3) == -1)
                 {
                     ilist_0.Add(class2.propertyInfo_0);
                 }
             }
         }
     }
 }
예제 #20
0
    public static Interface19[] smethod_1(Class196 A_0, double A_1, Interface21 A_2, Class546 A_3, float A_4, float A_5, bool A_6)
    {
        string textToSplit = string.Empty;

        textToSplit = (A_2 as TextRange).TextToSplit;
        if (A_3 == null)
        {
            A_3 = new Class546(0, textToSplit.Length - 1);
        }
        int num = A_2.imethod_8(A_0, A_1, A_3.method_7(textToSplit), textToSplit, A_4, A_5, A_6);

        if (num == -2147483648)
        {
            Interface19[] interfaceArray = new Interface19[2];
            interfaceArray[0] = new Class542(A_2, textToSplit.Substring(0, 1));
            string str2 = textToSplit.Substring(1);
            interfaceArray[1] = string.IsNullOrEmpty(str2) ? null : new Class542(A_2, str2);
            return(interfaceArray);
        }
        if ((num > -1) && (num < A_3.method_2()))
        {
            Interface19[] interfaceArray2 = new Interface19[2];
            if (textToSplit.Length == (A_2 as TextRange).Text.Length)
            {
                interfaceArray2[0] = new Class542(A_2, A_3.method_5(num), true);
                interfaceArray2[1] = new Class542(A_2, A_3.method_6(num), false);
            }
            else
            {
                interfaceArray2[0] = new Class542(A_2, textToSplit.Substring(0, num));
                interfaceArray2[1] = new Class542(A_2, textToSplit.Substring(num));
            }
            (A_2 as TextRange).TextToSplit = (A_2 as TextRange).TextToSplit.Remove(0, num);
            return(interfaceArray2);
        }
        Interface19[] interfaceArray3 = new Interface19[2];
        num = (num < 0) ? 0 : ((num == textToSplit.Length) ? (num - 1) : num);
        if (((num == 0) && (A_2 is TextRange)) && ((A_2 as TextRange).Document != null))
        {
            TextRange range = new TextRange((A_2 as TextRange).Document);
            range.method_0((A_2 as TextRange).Owner);
            range.CharacterFormat.Font     = (A_2 as TextRange).CharacterFormat.Font;
            range.CharacterFormat.FontSize = (A_2 as TextRange).CharacterFormat.FontSize;
            interfaceArray3[0]             = new Class542(range, string.Empty);
        }
        if (interfaceArray3[0] == null)
        {
            interfaceArray3[0] = new Class542(A_2, A_3.method_5(num), true);
        }
        interfaceArray3[1] = new Class542(A_2, A_3.method_6(num), false);
        return(interfaceArray3);
    }
예제 #21
0
    private float method_119(Paragraph A_0)
    {
        float num = 0f;

        if (A_0.Format.LineSpacingRule == LineSpacingRule.Multiple)
        {
            Class196 class2 = new Class196();
            num = ((float)class2.method_339(A_0.BreakCharacterFormat.Font).method_11()) * (A_0.Format.LineSpacing / 12f);
            class2.System.IDisposable.Dispose();
            class2 = null;
            return(num);
        }
        return(A_0.Format.LineSpacing);
    }
        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);
        }
        SizeF Interface2.Measure(Class196 dc)
        {
            string dropDownValue = string.Empty;

            if (this.dropDownCollection_0.Count > 0)
            {
                dropDownValue = this.DropDownValue;
            }
            if (!dc.method_1())
            {
                return(dc.method_316(dropDownValue, this.CharacterFormat.Font, null));
            }
            return(dc.method_309(dropDownValue, dc.method_376(this.CharacterFormat), null));
        }
예제 #24
0
 internal void method_33(Class196 A_0, bool A_1)
 {
     if (A_1)
     {
         foreach (Class216 class3 in (base.interface23_0 as Class205).method_11())
         {
             class3.method_3(A_0.method_322(class3.method_4().ToString(), this.CharacterFormat).Width);
         }
     }
     else
     {
         foreach (Class216 class2 in this.CompressedPunctuations)
         {
             class2.method_3(A_0.method_322(class2.method_4().ToString(), this.CharacterFormat).Width);
         }
     }
 }
예제 #25
0
 public Stream19(Stream stream_1, Class196 class196_1, int int_0)
 {
     if (stream_1 == null)
     {
         throw new ArgumentNullException("baseInputStream");
     }
     if (class196_1 == null)
     {
         throw new ArgumentNullException("inflater");
     }
     if (int_0 <= 0)
     {
         throw new ArgumentOutOfRangeException("bufferSize");
     }
     this.stream_0   = stream_1;
     this.class196_0 = class196_1;
     this.class201_0 = new Class201(stream_1, int_0);
 }
예제 #26
0
    private void method_111(ListLevel A_0)
    {
        int num = 6;

        using (Class196 class2 = new Class196())
        {
            bool  flag = (this.method_108() as Document).bool_23;
            SizeF ef   = new SizeF();
            if (A_0.IsEmptyPicture && (A_0.PicBullet == null))
            {
                ef = flag ? class2.method_309(base.method_65(), class2.method_376(base.method_71()), null) : class2.method_316(base.method_65(), base.method_71().Font, null);
            }
            else
            {
                SizeF ef4  = flag ? class2.method_309(base.method_65(), class2.method_376(base.method_71()), null) : class2.method_316(base.method_65(), base.method_71().Font, null);
                SizeF ef5  = class2.method_306(A_0.PicBullet);
                float num3 = Math.Min((float)(ef4.Width / ef5.Width), (float)(ef4.Height / ef5.Height));
                if (num3 != 1f)
                {
                    ef = new SizeF(ef5.Width * num3, ef5.Height * num3);
                }
            }
            base.method_70(ef.Width);
            float width = 0f;
            if (A_0.NumberAlignment == ListNumberAlignment.Left)
            {
                width = ef.Width;
            }
            else if (A_0.NumberAlignment == ListNumberAlignment.Center)
            {
                width = ef.Width / 2f;
            }
            if (A_0.FollowCharacter == FollowCharacterType.Space)
            {
                base.method_52(width + (flag ? class2.method_309(BookmarkStart.b("ఫ", num), class2.method_376(base.method_71()), null).Width : class2.method_316(BookmarkStart.b("ఫ", num), base.method_71().Font, null).Width));
            }
            else
            {
                base.method_52(width);
            }
        }
    }
예제 #27
0
        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);
            }
        }
예제 #28
0
        SizeF Interface2.Measure(Class196 dc)
        {
            int       num            = 0x11;
            SizeF     ef             = new SizeF();
            Paragraph ownerParagraph = base.OwnerParagraph;

            if ((ownerParagraph == null) && (base.Owner is SDTInlineContent))
            {
                ownerParagraph = (base.Owner as SDTInlineContent).OwnerParagraph;
            }
            if (ownerParagraph != null)
            {
                ef.Height = dc.method_1() ? dc.method_309(BookmarkStart.b("㸶", num), dc.method_376(ownerParagraph.BreakCharacterFormat), null).Height : dc.method_316(BookmarkStart.b("㸶", num), dc.method_365(ownerParagraph.BreakCharacterFormat), null).Height;
                if (ownerParagraph.ParaStyle != null)
                {
                    ef.Height = Math.Min(ef.Height, dc.method_1() ? dc.method_309(BookmarkStart.b("㸶", num), dc.method_376(ownerParagraph.ParaStyle.CharacterFormat), null).Height : dc.method_316(BookmarkStart.b("㸶", num), dc.method_365(ownerParagraph.ParaStyle.CharacterFormat), null).Height);
                }
            }
            return(ef);
        }
예제 #29
0
        private void method_77(IParagraph A_0, Paragraph A_1, string A_2)
        {
            int        num   = 0x13;
            ITextRange range = A_1.AppendText(A_2);

            if (A_0.BreakCharacterFormat.HasKey(60))
            {
                range.CharacterFormat.Bold = A_0.BreakCharacterFormat.Bold;
            }
            if (A_0.BreakCharacterFormat.HasKey(70))
            {
                range.CharacterFormat.Italic = A_0.BreakCharacterFormat.Italic;
            }
            range.CharacterFormat.CharStyleName = BookmarkStart.b("焸䈺䴼娾㍀⽂ⱄ⥆≈", num);
            int leftIndent = 0;

            if (A_1.Format.HasValue(0x488))
            {
                leftIndent = (int)A_1.Format.LeftIndent;
            }
            else if ((A_1.Format.BaseFormat != null) && A_1.Format.BaseFormat.HasValue(0x488))
            {
                leftIndent = (int)(A_1.Format.BaseFormat as ParagraphFormat).LeftIndent;
            }
            else if (A_1.Format.HasValue(0x492))
            {
                leftIndent = (int)A_1.Format.FirstLineIndent;
            }
            else if ((A_1.Format.BaseFormat != null) && A_1.Format.BaseFormat.HasValue(0x492))
            {
                leftIndent = (int)(A_1.Format.BaseFormat as ParagraphFormat).FirstLineIndent;
            }
            using (Class196 class2 = new Class196())
            {
                leftIndent += (int)class2.method_323(range as TextRange, range.Text).Width;
                leftIndent += 14;
                leftIndent  = ((int)Math.Ceiling((decimal)(leftIndent / 11M))) * 11;
                A_1.Format.Tabs.AddTab((float)leftIndent, TabJustification.Left, TabLeader.NoLeader);
                range = A_1.AppendText(BookmarkStart.b("〸", num));
            }
        }
예제 #30
0
        SizeF Interface2.Measure(Class196 dc)
        {
            int       num       = 11;
            SizeF     ef        = new SizeF();
            Paragraph paragraph = base.method_28();

            if ((paragraph != null) && (this.TextRange != null))
            {
                this.TextRange.CharacterFormat.ApplyBase(paragraph.BreakCharacterFormat);
                if (!this.IsCrBreak && (this.BreakType == Spire.Doc.Documents.BreakType.LineBreak))
                {
                    ef       = dc.method_323(this.TextRange, BookmarkStart.b("㨰", num));
                    ef.Width = 0f;
                }
                if (this.IsCrBreak && !base.interface23_0.imethod_24())
                {
                    ef.Width = dc.method_323(this.TextRange, BookmarkStart.b("㨰", num)).Width;
                }
            }
            return(ef);
        }
 public override void Visit(Class196 c) { }
 public abstract void Visit(Class196 c);