Exemplo n.º 1
0
 private static void smethod_4(RowFormat A_0, Class252 A_1)
 {
     A_0.SetAttr(0x13f0, A_1.method_9());
     A_0.SetAttr(0x13f1, A_1.method_11());
     A_0.GridBeforeWidth.method_50((float)A_1.method_10());
     A_0.GridAfterWidth.method_50((float)A_1.method_12());
 }
Exemplo n.º 2
0
    internal static void smethod_2(RowFormat A_0)
    {
        object right = A_0.method_31(0x13ed);

        if (right == null)
        {
            return;
        }
        if (A_0.method_31(0xfaa) != null)
        {
            goto Label_0069;
        }
        if (A_0.Bidi)
        {
            switch (((RowAlignment)right))
            {
            case RowAlignment.Left:
                right = RowAlignment.Right;
                goto Label_005D;

            case RowAlignment.Right:
                right = RowAlignment.Left;
                goto Label_005D;
            }
            right = (RowAlignment)right;
        }
Label_005D:
        A_0.SetAttr(0xfaa, right);
Label_0069:
        A_0.Remove(0x13ed);
    }
Exemplo n.º 3
0
    private static void smethod_2(CellCollection A_0, RowFormat A_1, bool A_2)
    {
        Class732 class2 = new Class732();

        A_1.SetAttr(0x13ec, class2);
        foreach (TableCell cell in A_0)
        {
            class2.Add(A_2 ? cell.CellFormat.SysDirectAttrs : cell.CellFormat);
        }
    }
Exemplo n.º 4
0
    internal void method_2(RowFormat A_0, int A_1, NFibEnum A_2)
    {
        this.class732_0 = new Class732();
        A_0.SetAttr(0x13ec, this.class732_0);
        int position = (int)this.binaryReader_0.BaseStream.Position;
        int num2     = this.binaryReader_0.ReadByte();

        int[] numArray = new int[num2 + 1];
        for (int i = 0; i < numArray.Length; i++)
        {
            numArray[i] = this.binaryReader_0.ReadInt16();
        }
        A_0.SetAttr(0x13f2, numArray);
        A_0.SetAttr(0x13ee, numArray[0]);
        for (int j = 0; j < num2; j++)
        {
            CellFormat format = new CellFormat();
            int        num6   = ((int)this.binaryReader_0.BaseStream.Position) - position;
            if (num6 < A_1)
            {
                Class354.smethod_0(this.binaryReader_0, format);
            }
            int num5 = numArray[j + 1] - numArray[j];
            format.Cellx         = (short)numArray[j + 1];
            format.TwipCellWidth = num5;
            if (A_2 <= NFibEnum.Word97)
            {
                format.WidthUnit = FtsWidth.Point;
                format.CellWidth = ((float)num5) / 20f;
            }
            else if ((A_2 <= NFibEnum.Word2000) && (!format.method_6(0xbc6) || !format.method_6(0xbc4)))
            {
                format.WidthUnit = FtsWidth.Point;
                format.CellWidth = ((float)num5) / 20f;
            }
            this.class732_0.Add(format);
        }
    }
Exemplo n.º 5
0
 private void method_84(CellCollection A_0, RowFormat A_1)
 {
     if (A_1.HasFormatRevision)
     {
         RowFormat format = (RowFormat)A_1.FormatRevision.method_4();
         Class732  class3 = new Class732();
         format.SetAttr(0x13ec, class3);
         foreach (TableCell cell in A_0)
         {
             Class580 formatRevision = cell.CellFormat.FormatRevision;
             class3.Add((formatRevision != null) ? formatRevision.method_4() : this.cellFormat_0);
         }
     }
 }
Exemplo n.º 6
0
    internal void method_4(RowFormat A_0)
    {
        this.class732_0 = new Class732();
        A_0.SetAttr(0x13ec, this.class732_0);
        int num  = this.binaryReader_0.ReadByte();
        int num2 = this.binaryReader_0.ReadByte();
        int num3 = this.binaryReader_0.ReadInt16();

        for (int i = num; i < num2; i++)
        {
            CellFormat format = new CellFormat();
            format.SetAttr(0xbf4, VerticalAlignment.Top);
            format.SetAttr(0xc6c, true);
            format.TwipCellWidth = num3;
            this.class732_0.Add(format);
        }
    }
Exemplo n.º 7
0
 private void method_71()
 {
     if (base.binaryReader_0.ReadBoolean())
     {
         RowFormat format = (RowFormat)this.method_93().FormatRevision.method_4();
         if (!format.method_6(0x13ec))
         {
             Class732 class3 = new Class732();
             format.SetAttr(0x13ec, class3);
             Class732 class2 = (Class732)((RowFormat)base.wordAttrCollection_0).method_31(0x13ec);
             for (int i = 0; i < class2.Count; i++)
             {
                 CellFormat format2 = new CellFormat();
                 class3.Add(format2);
             }
         }
         base.wordAttrCollection_0 = format;
     }
 }
Exemplo n.º 8
0
    internal static void smethod_1(Class857 A_0, Class103 A_1)
    {
        int       num    = 4;
        Class396  class2 = A_0.method_11();
        RowFormat format = new RowFormat();

        while (class2.method_19())
        {
            string str = class2.method_1();
            if (str != null)
            {
                if (str != BookmarkStart.b("䜩䔫䀭ᴯ䀱嬳䄵ᔷ刹夻圽✿⩁ぃ", num))
                {
                    if (!(str == BookmarkStart.b("堩䌫夭ᴯ娱儳張強刹䠻", num)))
                    {
                        if ((str == BookmarkStart.b("䄩䤫䬭䀯ἱ䀳夵強弹䠻嘽┿ぁ", num)) && (class2.method_3() == BookmarkStart.b("䬩䀫夭儯䬱䜳", num)))
                        {
                            format.SetAttr(0x1108, false);
                        }
                    }
                    else
                    {
                        format.Height     = ((float)Class576.smethod_36(class2.method_3())) / 20f;
                        format.HeightType = TableRowHeightType.Exactly;
                    }
                }
                else
                {
                    format.Height     = ((float)Class576.smethod_36(class2.method_3())) / 20f;
                    format.HeightType = TableRowHeightType.AtLeast;
                }
            }
        }
        if (format.Count > 0)
        {
            A_1.method_13(format);
        }
    }
Exemplo n.º 9
0
    internal static void smethod_1(Class394 A_0, RowFormat A_1)
    {
        int       num  = 11;
        ArrayList list = new ArrayList();

        A_1.SetAttr(0x13ef, list);
        while (A_0.method_9(BookmarkStart.b("䔰儲头瀶䬸刺夼", num)))
        {
            string str = A_0.method_1();
            if (str != null)
            {
                if (!(str == BookmarkStart.b("嘰䄲尴匶稸吺儼", num)))
                {
                    if (!(str == BookmarkStart.b("䔰儲头瀶䬸刺夼簾⥀≂⭄⁆ⱈ", num)))
                    {
                        goto Label_0097;
                    }
                    smethod_10(A_0, A_1);
                }
                else
                {
                    int num2 = 0;
                    while (A_0.method_19())
                    {
                        string str2;
                        if (((str2 = A_0.method_1()) != null) && (str2 == BookmarkStart.b("䘰", num)))
                        {
                            num2 = A_0.method_61();
                        }
                    }
                    list.Add(num2);
                }
                continue;
            }
Label_0097:
            A_0.vmethod_1();
        }
    }
Exemplo n.º 10
0
    private static void smethod_3(RowFormat A_0, Class581 A_1)
    {
        int      num    = 4;
        Class394 class2 = A_1.imethod_1();
        string   key    = class2.method_1();

        if (key != null)
        {
            int num2;
            if (Class1160.dictionary_153 == null)
            {
                Dictionary <string, int> dictionary1 = new Dictionary <string, int>(10);
                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);
                Class1160.dictionary_153 = dictionary1;
            }
            if (Class1160.dictionary_153.TryGetValue(key, out num2))
            {
                switch (num2)
                {
                case 0:
                    class2.method_46(A_0);
                    return;

                case 1:
                    A_0.HorizontalAlignment = Class859.smethod_0(class2.method_28());
                    return;

                case 2:
                    A_0.SetAttr(0x10c2, class2.method_42());
                    return;

                case 3:
                    A_0.SetAttr(0x10f4, class2.method_42());
                    return;

                case 4:
                    smethod_4(A_0, class2);
                    return;

                case 5:
                    A_0.SetAttr(0x10ea, class2.method_39());
                    return;

                case 6:
                    smethod_5(A_0, class2);
                    return;

                case 7:
                    smethod_6(A_0, class2);
                    return;

                case 8:
                    A_0.SetAttr(0x102c, Class531.smethod_2(Class114.smethod_8(class2.method_28())));
                    return;

                case 9:
                    Class519.smethod_10(A_1, A_0);
                    return;
                }
            }
        }
        class2.vmethod_1();
    }
Exemplo n.º 11
0
    internal static void smethod_0(RowFormat A_0, Class581 A_1, bool A_2)
    {
        int num = 1;

        if (!A_2)
        {
            A_0.LayoutType = LayoutType.AutoFit;
            A_0.SetAttr(0x102c, TableStyleOptions.Default2003);
        }
        Class394 class2 = A_1.imethod_1();

        class2.method_18();
        string str = class2.method_1();

        while (class2.method_9(str))
        {
            string key = class2.method_1();
            if (key != null)
            {
                int num3;
                if (Class1160.dictionary_151 == null)
                {
                    Dictionary <string, int> dictionary1 = new Dictionary <string, int>(7);
                    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);
                    Class1160.dictionary_151 = dictionary1;
                }
                if (Class1160.dictionary_151.TryGetValue(key, out num3))
                {
                    switch (num3)
                    {
                    case 0:
                    {
                        int num2 = A_1.Interface58.imethod_0(class2.method_28(), 11);
                        A_0.Istd = num2;
                        continue;
                    }

                    case 1:
                    {
                        smethod_1(A_0, class2);
                        continue;
                    }

                    case 2:
                    {
                        if (class2.method_28() == BookmarkStart.b("椦䰨崪䠬崮", num))
                        {
                            A_0.Positioning.TableOverlap = false;
                        }
                        continue;
                    }

                    case 3:
                    {
                        class2.vmethod_1();
                        continue;
                    }

                    case 4:
                    {
                        A_0.Bidi = class2.method_31();
                        continue;
                    }

                    case 5:
                    {
                        A_0.SetAttr(0x1194, class2.method_30());
                        continue;
                    }

                    case 6:
                    {
                        A_0.SetAttr(0x119e, class2.method_30());
                        continue;
                    }
                    }
                }
            }
            smethod_3(A_0, A_1);
        }
    }