Пример #1
0
    internal static string smethod_23(TabJustification A_0, bool A_1)
    {
        int num = 12;

        switch (A_0)
        {
        case TabJustification.Left:
            return(BookmarkStart.b("帱儳倵䰷", num));

        case TabJustification.Centered:
            return(BookmarkStart.b("儱儳堵䰷弹主", num));

        case TabJustification.Right:
            return(BookmarkStart.b("䀱崳儵倷丹", num));

        case TabJustification.Decimal:
            return(BookmarkStart.b("嘱儳唵儷圹崻刽", num));

        case TabJustification.Bar:
            return(BookmarkStart.b("倱唳䐵", num));

        case TabJustification.List:
            if (!A_1)
            {
                return(BookmarkStart.b("帱崳䔵䰷", num));
            }
            return(BookmarkStart.b("就䄳嬵", num));

        case TabJustification.Clear:
            return(BookmarkStart.b("儱堳匵夷䠹", num));
        }
        return("");
    }
Пример #2
0
 internal Tab(IDocument A_0, float A_1, float A_2, TabJustification A_3, Spire.Doc.Documents.TabLeader A_4) : this(A_0)
 {
     this.float_0            = A_1;
     this.tabJustification_0 = A_3;
     this.tabLeader_0        = A_4;
     this.float_1            = A_2;
 }
Пример #3
0
        public Tab AddTab(float position, TabJustification justification, TabLeader leader)
        {
            Tab tab = new Tab(base.Document, this.method_8((double)position), justification, leader);

            this.method_6(tab);
            return(tab);
        }
Пример #4
0
 public void method_1(TabJustification A_0)
 {
     if (A_0 != this.tabJustification_0)
     {
         this.tabJustification_0 = A_0;
     }
 }
Пример #5
0
    public void method_24(float A_0, TabJustification A_1, TabLeader A_2)
    {
        Class215 class2 = new Class215(A_0, A_1, A_2);

        if (!this.method_26(class2))
        {
            this.list_1.Add(class2);
        }
    }
Пример #6
0
 internal bool method_7(float A_0, TabJustification A_1, TabLeader A_2)
 {
     foreach (object obj2 in base.InnerList)
     {
         if (((obj2 is Tab) && ((obj2 as Tab).Position == this.method_8((double)A_0))) && (((obj2 as Tab).Justification == A_1) && ((obj2 as Tab).TabLeader == A_2)))
         {
             return(true);
         }
     }
     return(false);
 }
Пример #7
0
 protected override void vmethod_9()
 {
     this.method_93(base.class375_1);
     if ((base.class375_1.method_73() is Paragraph) && (base.class375_1.method_73().imethod_0() is Class210))
     {
         Class210 class3 = base.class375_1.method_73().imethod_0() as Class210;
         if (class3.method_43() && (class3.method_91() != null))
         {
             TabJustification justification = class3.method_91().method_48();
             foreach (Class375 class2 in base.class375_1.method_74())
             {
                 if ((justification != TabJustification.Left) && (class2.method_48() == TabJustification.Left))
                 {
                     class2.method_49(justification);
                 }
                 class3.method_91().method_74().method_7(class2);
             }
             base.class375_1.method_74().Clear();
         }
     }
 }
Пример #8
0
        protected override void ReadXmlAttributes(IXDLSAttributeReader reader)
        {
            int num = 2;

            if (reader.HasAttribute(BookmarkStart.b("砧䔩弫䜭䐯嬱嬳堵", 2)))
            {
                this.float_0 = reader.ReadFloat(BookmarkStart.b("砧䔩弫䜭䐯嬱嬳堵", num));
            }
            if (reader.HasAttribute(BookmarkStart.b("戧弩弫娭夯吱崳唵夷丹唻儽⸿", num)))
            {
                this.tabJustification_0 = (TabJustification)reader.ReadEnum(BookmarkStart.b("戧弩弫娭夯吱崳唵夷丹唻儽⸿", num), typeof(TabJustification));
            }
            if (reader.HasAttribute(BookmarkStart.b("搧伩䴫䨭唯䀱", num)))
            {
                this.tabLeader_0 = (Spire.Doc.Documents.TabLeader)reader.ReadEnum(BookmarkStart.b("搧伩䴫䨭唯䀱", num), typeof(Spire.Doc.Documents.TabLeader));
            }
            if (reader.HasAttribute(BookmarkStart.b("氧伩䀫䬭䐯圱", num)))
            {
                this.float_1 = reader.ReadFloat(BookmarkStart.b("氧伩䀫䬭䐯圱", num));
            }
        }
Пример #9
0
    internal static void smethod_5(Class394 A_0, ParagraphFormat A_1)
    {
        int           num  = 0x10;
        TabCollection tabs = A_1.Tabs;

        while (A_0.method_9(BookmarkStart.b("䈵夷堹伻", num)))
        {
            string str2;
            if (((str2 = A_0.method_1()) == null) || !(str2 == BookmarkStart.b("䈵夷堹", num)))
            {
                continue;
            }
            Tab tab = null;
            TabJustification clear    = TabJustification.Clear;
            TabLeader        noLeader = TabLeader.NoLeader;
            while (A_0.method_19())
            {
                string str = A_0.method_1();
                if (str == null)
                {
                    continue;
                }
                if (str == BookmarkStart.b("䀵夷嘹", num))
                {
                    goto Label_013E;
                }
                if (str == BookmarkStart.b("娵崷嬹堻嬽㈿", num))
                {
                    goto Label_012F;
                }
                if (!(str == BookmarkStart.b("䘵圷䤹", num)))
                {
                    continue;
                }
                float num2 = A_0.method_62();
                if (num2 == float.MaxValue)
                {
                    continue;
                }
                using (IEnumerator enumerator = tabs.GetEnumerator())
                {
                    Tab current;
                    while (enumerator.MoveNext())
                    {
                        current = (Tab)enumerator.Current;
                        if (current.Position == num2)
                        {
                            goto Label_00DB;
                        }
                    }
                    goto Label_00F5;
Label_00DB:
                    tab = current;
                }
Label_00F5:
                if (tab == null)
                {
                    tab = tabs.AddTab();
                }
                if (clear == TabJustification.Clear)
                {
                    tab.Justification  = TabJustification.Left;
                    tab.DeletePosition = num2 * 20f;
                    tab.Position       = 0f;
                }
                else
                {
                    tab.Position = num2;
                }
                continue;
Label_012F:
                noLeader = Class248.smethod_20(A_0.method_3());
                continue;
Label_013E:
                A_0.method_3();
                clear = Class248.smethod_22(A_0.method_3());
            }
            if (clear != TabJustification.Clear)
            {
                tab.Justification = clear;
            }
            tab.TabLeader = noLeader;
        }
    }
Пример #10
0
 public void method_3(TabJustification A_0)
 {
     this.tabJustification_0 = A_0;
 }
Пример #11
0
 internal Tab(IDocument A_0, float A_1, TabJustification A_2, Spire.Doc.Documents.TabLeader A_3) : this(A_0, A_1, 0f, A_2, A_3)
 {
 }
Пример #12
0
 internal Class215(float A_0, TabJustification A_1, TabLeader A_2)
 {
     this.float_0            = A_0;
     this.tabJustification_0 = A_1;
     this.tabLeader_0        = A_2;
 }