Exemplo n.º 1
0
    internal static void smethod_0(Class421 A_0, FootnoteType A_1, AttrCollection A_2, bool A_3)
    {
        int    num  = 0;
        bool   flag = A_1 == FootnoteType.Endnote;
        object obj2 = A_2.method_31(2);
        object obj3 = A_2.method_31(1);
        object obj4 = A_2.method_31(4);
        object obj5 = A_2.method_31(3);

        if ((((obj2 != null) || (obj3 != null)) || ((obj4 != null) || (obj5 != null))) || A_3)
        {
            Class398 class2 = A_0.Interface52.imethod_1();
            class2.method_4(flag ? BookmarkStart.b("儥ሧ伩䈫䨭帯崱䀳匵样䠹", num) : BookmarkStart.b("儥ሧ䰩䌫䄭䐯就嬳䈵崷樹主", num));
            if (obj2 != null)
            {
                class2.method_24(BookmarkStart.b("儥ሧ娩䌫崭", num), Class339.smethod_7((FootnotePosition)obj2, false));
            }
            class2.method_24(BookmarkStart.b("儥ሧ䐩夫䌭瘯弱䀳", num), Class911.smethod_3(Class911.smethod_12((FootnoteNumberFormat)obj3)));
            if (obj4 != null)
            {
                class2.method_32(BookmarkStart.b("儥ሧ䐩夫䌭振䘱唳䐵䰷", num), (int)obj4, 1);
            }
            if (obj5 != null)
            {
                class2.method_24(BookmarkStart.b("儥ሧ䐩夫䌭戯圱䜳䈵夷䠹䠻", num), Class339.smethod_1((FootnoteRestartRule)obj5, false));
            }
            if (A_3)
            {
                smethod_1(A_0, flag, flag ? FootnoteSeparatorType.EndnoteSeparator : FootnoteSeparatorType.FootnoteSeparator);
                smethod_1(A_0, flag, flag ? FootnoteSeparatorType.EndnoteContinuation : FootnoteSeparatorType.FootnoteContinuation);
            }
            class2.method_5();
        }
    }
Exemplo n.º 2
0
        /// <summary>
        /// Creates a new GameController object with the given machine type and logging infrastructure
        /// </summary>
        /// <param name="machineType">Machine type to use (WPC, STERN, PDB etc)</param>
        /// <param name="logger">The logger interface to use</param>
        public GameController(MachineType machineType, ILogger logger, bool Simulated = false)
        {
            this.Logger       = logger;
            this._machineType = machineType;
            if (Simulated)
            {
                this._proc        = new FakePinProc(machineType);
                this._proc.Logger = logger;
                this._proc.Reset(1);
            }
            else
            {
                this._proc = new ProcDevice(machineType, Logger);
                this._proc.Reset(1);
            }
            this._modes       = new ModeQueue(this);
            this.BootTime     = Time.GetTime();
            this._coils       = new AttrCollection <ushort, string, IDriver>();
            this._switches    = new AttrCollection <ushort, string, Switch>();
            this._lamps       = new AttrCollection <ushort, string, IDriver>();
            this._leds        = new AttrCollection <ushort, string, LED>();
            this._gi          = new AttrCollection <ushort, string, IDriver>();
            this._old_players = new List <IPlayer>();
            this._players     = new List <IPlayer>();

            this.LampController = new LampController(this);

            testFrame = new byte[128 * 32];
            for (int i = 0; i < (128 * 32); i++)
            {
                testFrame[i] = 0;
            }
        }
Exemplo n.º 3
0
 private bool method_4(IRunAttrSource A_0, AttrCollection A_1, bool A_2)
 {
     this.class743_0 = new Class743();
     this.method_5(A_0, A_1, A_2);
     if (this.class743_0.class580_0 != null)
     {
         this.method_5(A_0, this.class743_0.class580_0.method_4(), A_2);
     }
     return(this.class743_0.int_0 > 0);
 }
Exemplo n.º 4
0
    private AttrCollection method_11(Interface46 A_0, AttrCollection A_1, bool A_2)
    {
        AttrCollection attrs = A_1;

        if (Class422.smethod_0(A_0, A_2))
        {
            attrs = new CharacterFormat();
            A_1.method_37(attrs);
        }
        return(attrs);
    }
Exemplo n.º 5
0
        static async Task Main(string[] args)
        {
            ProcDevice PROC = null;

            try
            {
                Console.WriteLine("Creating PROC");
                PROC = new ProcDevice(MachineType.PDB);
                await Task.Delay(100);

                PROC?.Reset(1);

                //load machine config.
                var config = MachineConfiguration.FromFile("machine.json");

                //create collections to pass into the setup.
                //The GameController does this for you in LoadConfig, but this is to test without a game
                _switches = new AttrCollection <ushort, string, Switch>();
                _leds     = new AttrCollection <ushort, string, LED>();
                _coils    = new AttrCollection <ushort, string, IDriver>();

                //setup machine items to be able to process events.
                (PROC as ProcDevice).SetupProcMachine(config, _switches: _switches, _leds: _leds, _coils: _coils);

                //listen for cancel keypress and end run loop
                Console.CancelKeyPress += (sender, eventArgs) =>
                {
                    Console.WriteLine("ctrl+C triggered");
                    source.Cancel();
                    eventArgs.Cancel = true;
                };



                //run game loop
                await RunLoop(PROC);

                //close console
                Console.WriteLine("netprocgame closing...");
                await Task.Delay(500);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }
Exemplo n.º 6
0
    private AttrCollection method_6(IRunAttrSource A_0, AttrCollection A_1, bool A_2)
    {
        AttrCollection attrs = A_1;

        if (Class422.smethod_0(A_0, A_2))
        {
            attrs = new CharacterFormat(this.class422_0.method_15());
            for (int i = attrs.Count - 1; i >= 0; i--)
            {
                if (smethod_0(attrs.method_18(i)))
                {
                    attrs.method_11(i);
                }
            }
            A_1.method_37(attrs);
        }
        return(attrs);
    }
Exemplo n.º 7
0
    internal Class650 method_3(AttrCollection A_0, int A_1)
    {
        int num = 13;

        switch (this.int_4)
        {
        case 0:
        case 1:
            return(this);

        case 0x80:
            return((Class650)A_0.method_32(A_1));

        case 0x81:
            return(((Class650)A_0.method_32(A_1)).method_2());
        }
        throw new InvalidOperationException(BookmarkStart.b("昲嬴尶圸吺䨼儾慀⅂⩄⡆╈⹊㕌潎❐㉒㥔≖㱘畚", num));
    }
Exemplo n.º 8
0
    private void method_5(IRunAttrSource A_0, AttrCollection A_1, bool A_2)
    {
        bool           flag;
        int            num        = 13;
        Paragraph      paragraph2 = (flag = (A_0 != null) && (A_0 is Paragraph)) ? ((Paragraph)A_0) : null;
        AttrCollection attrs      = this.method_6(A_0, A_1, A_2);

        for (int i = 0; i < attrs.Count; i++)
        {
            int    num2 = attrs.method_18(i);
            object obj2 = attrs.method_19(i);
            if (obj2 == null)
            {
                continue;
            }
            this.class743_0.int_0++;
            int num3 = num2;
            if (num3 <= 210)
            {
                if (num3 <= 120)
                {
                    if (num3 <= 80)
                    {
                        if (num3 <= 60)
                        {
                            if (num3 != 20)
                            {
                                if (num3 != 60)
                                {
                                    goto Label_085E;
                                }
                                this.class743_0.string_21 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("儲娴嬶崸", num), BookmarkStart.b("崲娴䔶吸娺儼", num));
                            }
                            else
                            {
                                this.class743_0.string_33 = Class576.smethod_74((Color)obj2, false);
                            }
                        }
                        else if (num3 != 70)
                        {
                            if (num3 != 80)
                            {
                                goto Label_085E;
                            }
                            this.class743_0.string_30 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("䀲娴嬶倸强", num), null);
                            if (this.class743_0.string_30 == null)
                            {
                                this.class743_0.string_30 = BookmarkStart.b("崲娴夶尸", num);
                            }
                        }
                        else
                        {
                            this.class743_0.string_25 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("娲䄴嘶唸刺帼", num), BookmarkStart.b("崲娴䔶吸娺儼", num));
                        }
                    }
                    else if (num3 <= 100)
                    {
                        if (num3 != 90)
                        {
                            if (num3 != 100)
                            {
                                goto Label_085E;
                            }
                            this.class743_0.string_35 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("Ȳ䔴䌶ᤸ਺䴼䬾", num), null);
                        }
                        else
                        {
                            this.class743_0.string_34 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("䜲䜴䈶尸", num), null);
                        }
                    }
                    else if (num3 != 110)
                    {
                        if (num3 != 120)
                        {
                            goto Label_085E;
                        }
                        this.class743_0.string_29 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("䘲䔴䜶尸䤺帼帾㉀♂", num), null);
                    }
                    else
                    {
                        this.class743_0.string_28 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("䀲場嘶唸场ြ尾⁀㍂㙄", num), null);
                    }
                }
                else if (num3 <= 160)
                {
                    if (num3 <= 140)
                    {
                        if (num3 != 130)
                        {
                            if (num3 != 140)
                            {
                                goto Label_085E;
                            }
                            UnderlineStyle style = (UnderlineStyle)obj2;
                            this.class743_0.string_15 = Class922.smethod_67(style);
                            this.class743_0.string_18 = Class922.smethod_66(style);
                            switch (style)
                            {
                            case UnderlineStyle.Double:
                            case UnderlineStyle.WavyDouble:
                                this.class743_0.string_16 = BookmarkStart.b("圲娴䈶嬸场堼", num);
                                break;
                            }
                            if (style == UnderlineStyle.Words)
                            {
                                this.class743_0.string_17 = BookmarkStart.b("䀲帴帶䤸ᘺ䨼圾⡀㝂⁄橆㩈㭊ⱌⱎ㑐", num);
                            }
                        }
                        else
                        {
                            this.class743_0.string_37 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("崲娴夶尸", num), BookmarkStart.b("䜲䜴䈶尸", num));
                        }
                    }
                    else if (num3 != 150)
                    {
                        if (num3 != 160)
                        {
                            goto Label_085E;
                        }
                        this.class743_0.string_20 = Class576.smethod_75((Color)obj2);
                    }
                    else
                    {
                        this.class743_0.string_40 = Class576.smethod_35(obj2);
                    }
                }
                else if (num3 <= 180)
                {
                    if (num3 != 170)
                    {
                        if (num3 != 180)
                        {
                            goto Label_085E;
                        }
                        this.class743_0.string_36 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("嘲嬴倶䬸娺䬼娾╀", num), null);
                    }
                    else
                    {
                        this.class743_0.string_36 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("嘲場唶嘸䠺丼娾╀", num), null);
                    }
                }
                else
                {
                    switch (num3)
                    {
                    case 190:
                    {
                        this.class743_0.string_3 = Class576.smethod_65(obj2);
                        continue;
                    }

                    case 200:
                    {
                        this.class743_0.string_32 = Class576.smethod_71(obj2, ((CharacterFormat)attrs).FontSize);
                        continue;
                    }
                    }
                    if (num3 != 210)
                    {
                        goto Label_085E;
                    }
                    this.class743_0.string_32 = Class922.smethod_74((SubSuperScript)obj2);
                }
                continue;
            }
            if (num3 <= 310)
            {
                if (num3 <= 250)
                {
                    if (num3 <= 230)
                    {
                        if (num3 != 220)
                        {
                            if (num3 != 230)
                            {
                                goto Label_085E;
                            }
                            this.class743_0.string_0 = (string)obj2;
                        }
                        else
                        {
                            this.class743_0.string_46 = BookmarkStart.b("䜲䜴䈶尸", num);
                            if (((float)obj2) == 0f)
                            {
                                this.class743_0.string_46 = BookmarkStart.b("唲吴嬶䨸帺", num);
                            }
                        }
                    }
                    else if (num3 != 0xeb)
                    {
                        if (num3 != 250)
                        {
                            goto Label_085E;
                        }
                        this.class743_0.string_23 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("儲娴嬶崸", num), BookmarkStart.b("崲娴䔶吸娺儼", num));
                    }
                    else
                    {
                        this.class743_0.string_2 = (string)obj2;
                    }
                }
                else if (num3 <= 270)
                {
                    if (num3 != 260)
                    {
                        if (num3 != 270)
                        {
                            goto Label_085E;
                        }
                        this.class743_0.string_1 = (string)obj2;
                    }
                    else
                    {
                        this.class743_0.string_27 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("娲䄴嘶唸刺帼", num), BookmarkStart.b("崲娴䔶吸娺儼", num));
                    }
                }
                else
                {
                    switch (num3)
                    {
                    case 290:
                    {
                        this.class743_0.string_39 = string.Format(BookmarkStart.b("䠲Դ䨶᰸", num), (short)obj2);
                        continue;
                    }

                    case 300:
                    {
                        this.class743_0.string_31 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("圲娴䈶嬸场堼", num), null);
                        if (this.class743_0.string_30 == null)
                        {
                            this.class743_0.string_30 = BookmarkStart.b("崲娴夶尸", num);
                        }
                        continue;
                    }
                    }
                    if (num3 != 310)
                    {
                        goto Label_085E;
                    }
                    if (((TextEffect)obj2) == TextEffect.None)
                    {
                        this.class743_0.int_0--;
                    }
                    else
                    {
                        this.class743_0.string_38 = BookmarkStart.b("䜲䜴䈶尸", num);
                    }
                }
                continue;
            }
            if (num3 <= 380)
            {
                if (num3 <= 350)
                {
                    if (num3 != 340)
                    {
                        if (num3 != 350)
                        {
                            goto Label_085E;
                        }
                        this.class743_0.string_5 = Class576.smethod_65(((CharacterFormat)attrs).FontSize);
                        this.class743_0.string_4 = Class576.smethod_65(obj2);
                    }
                    else
                    {
                        this.class743_0.string_11 = Class922.smethod_80(int.Parse(obj2.ToString()));
                        if (this.class743_0.string_11 == BookmarkStart.b("崲娴夶尸", num))
                        {
                            this.class743_0.int_0--;
                        }
                    }
                }
                else if (num3 != 370)
                {
                    if (num3 != 380)
                    {
                        goto Label_085E;
                    }
                    this.class743_0.string_9 = Class922.smethod_80((short)obj2);
                    if (this.class743_0.string_9 == BookmarkStart.b("崲娴夶尸", num))
                    {
                        this.class743_0.int_0--;
                    }
                }
                else
                {
                    this.class743_0.string_33 = Class576.smethod_83((Class16)obj2);
                }
                continue;
            }
            if (num3 <= 450)
            {
                if (num3 != 390)
                {
                    if (num3 != 450)
                    {
                        goto Label_085E;
                    }
                    this.class743_0.string_19 = Class576.smethod_74((Color)obj2, false);
                }
                else
                {
                    this.class743_0.string_10 = Class922.smethod_80((short)obj2);
                    if (this.class743_0.string_10 == BookmarkStart.b("崲娴夶尸", num))
                    {
                        this.class743_0.int_0--;
                    }
                }
                continue;
            }
            switch (num3)
            {
            case 770:
            {
                this.class743_0.string_47 = this.method_10((Emphasis)obj2);
                continue;
            }

            case 780:
            {
                Class340 class2 = (Class340)obj2;
                if (class2.method_6())
                {
                    this.class743_0.string_45 = BookmarkStart.b("弲尴夶尸ᘺ唼娾⡀⑂ⵄ㍆", num);
                }
                if (class2.method_0())
                {
                    this.class743_0.string_24 = BookmarkStart.b("ਲԴ", num);
                }
                continue;
            }

            case 0x271a:
            {
                this.class743_0.class580_0 = (Class580)obj2;
                continue;
            }
            }
Label_085E:
            this.class743_0.int_0--;
        }
        this.class743_0.string_6  = Class922.smethod_82(this.class743_0.string_9);
        this.class743_0.string_12 = Class922.smethod_83(this.class743_0.string_9);
        this.class743_0.string_7  = Class922.smethod_82(this.class743_0.string_10);
        this.class743_0.string_13 = Class922.smethod_83(this.class743_0.string_10);
        this.class743_0.string_8  = Class922.smethod_82(this.class743_0.string_11);
        this.class743_0.string_14 = Class922.smethod_83(this.class743_0.string_11);
        if (!flag && (A_0 is DocumentObject))
        {
            DocumentObject obj4 = (DocumentObject)A_0;
            if (obj4.ParentObject is Paragraph)
            {
                Paragraph parentObject = (Paragraph)obj4.ParentObject;
                object    obj5         = null;
                if (parentObject.IsInCell || (parentObject.IsInCell && (((TableCell)parentObject.OwnerTextBody).Paragraphs[0] == parentObject)))
                {
                    obj5 = ((TableCell)parentObject.OwnerTextBody).CellFormat.method_31(0xbea);
                }
                if (obj5 != null)
                {
                    this.class743_0.string_24 = Class922.smethod_69((TextOrientation)obj5);
                    if (this.class743_0.string_24 != null)
                    {
                        this.class743_0.int_0++;
                    }
                }
            }
        }
        if (paragraph2 != null)
        {
            object obj3 = paragraph2.Format.method_31(0x582);
            if ((obj3 != null) && ((bool)obj3))
            {
                this.class743_0.string_42 = BookmarkStart.b("唲吴嬶䨸帺", num);
                this.class743_0.string_43 = BookmarkStart.b("IJ", num);
                this.class743_0.string_44 = BookmarkStart.b("IJ", num);
                this.class743_0.int_0++;
            }
            else if (!((bool)obj3))
            {
                this.class743_0.string_42 = BookmarkStart.b("䜲䜴䈶尸", num);
                this.class743_0.int_0++;
            }
        }
        if (A_2)
        {
            this.class743_0.string_41 = BookmarkStart.b("䜲䜴䈶尸", num);
            this.class743_0.int_0++;
        }
    }
Exemplo n.º 9
0
 public void AddAttribute(WonkaRefAttr poNewAttribute)
 {
     AttrCollection.Add(poNewAttribute);
 }
Exemplo n.º 10
0
        /// <summary>
        /// Creates a new GameController object with the given machine type and logging infrastructure
        /// </summary>
        /// <param name="machineType">Machine type to use (WPC, STERN, PDB etc)</param>
        /// <param name="logger">The logger interface to use</param>
        public GameController(MachineType machineType, ILogger logger)
        {
            this.Logger = logger;
            this._machineType = machineType;
            this._proc = new ProcDevice(machineType, Logger);
            this._proc.reset(1);
            this._modes = new ModeQueue(this);
            this._bootTime = Time.GetTime();
            this._coils = new AttrCollection<ushort, string, Driver>();
            this._switches = new AttrCollection<ushort, string, Switch>();
            this._lamps = new AttrCollection<ushort, string, Driver>();
            this._gi = new AttrCollection<ushort, string, Driver>();
            this._old_players = new List<Player>();
            this._players = new List<Player>();

            testFrame = new byte[128 * 32];
            for (int i = 0; i < (128 * 32); i++)
            {
                testFrame[i] = 0;
            }
        }
Exemplo n.º 11
0
    internal void method_1(Interface46 A_0, AttrCollection A_1, bool A_2)
    {
        bool     flag2;
        int      num    = 14;
        Class400 class2 = this.class422_0.method_18();

        this.class972_0 = new Class972();
        this.method_5(A_0, A_1, A_2);
        if (this.class972_0.class580_0 != null)
        {
            this.method_5(A_0, this.class972_0.class580_0.method_4(), A_2);
        }
        bool flag = (this.class422_0.method_15().Settings.bool_67&& (A_0 is Style)) && ((A_0 as Style).StyleIdentifier == StyleIdentifier.Normal);

        if (flag2 = ((((this.class972_0.int_0 > 0) || this.method_14()) || (this.method_12() || this.class972_0.bool_2)) || flag) || A_2)
        {
            class2.method_4(BookmarkStart.b("䜳䈵䄷嘹夻н〿⍁㙃❅⽇㡉ⵋ㹍㡏网⑓⑕㝗⩙㥛ⱝᑟୡţᕥ", num));
            class2.method_40(BookmarkStart.b("䜳䈵䄷嘹夻н㐿❁㱃㉅敇⭉㥋㩍㽏⅑⑓㝕㭗㽙", num), this.class972_0.string_14);
            class2.method_40(BookmarkStart.b("刳夵ȷ丹夻䘽㐿潁╃⩅ⅇⵉ≋", num), this.class972_0.string_2);
            class2.method_40(BookmarkStart.b("刳夵ȷ丹夻䘽㐿潁╃⩅ⅇⵉ≋捍㱏㍑❓≕", num), this.class972_0.string_3);
            object obj2  = (A_0 is Paragraph) ? this.class422_0.method_16().SectPr.method_31(0x92e) : null;
            bool   flag3 = (obj2 != null) && (((int)obj2) > 0);
            if (!this.method_14() && (!this.method_12() || flag3))
            {
                if ((this.method_12() && flag3) && (this.class972_0.string_0 == null))
                {
                    this.class972_0.string_0 = BookmarkStart.b("圳夵吷伹儻倽", num);
                }
            }
            else
            {
                this.class972_0.string_0 = BookmarkStart.b("䐳圵強弹", num);
            }
            class2.method_40(BookmarkStart.b("刳夵ȷ堹主嬽ℿ⥁楃⑅ⵇⱉ⍋㱍㕏", num), this.class972_0.string_0);
            class2.method_40(BookmarkStart.b("刳夵ȷ堹崻崽⬿╁㙃⥅㵇⑉⡋捍㍏㵑㡓㥕⩗", num), this.class972_0.string_1);
            class2.method_40(BookmarkStart.b("刳夵ȷ丹夻䘽㐿潁ⵃ⡅ⱇ⽉≋㩍", num), this.class972_0.string_6);
            if (this.class972_0.lineSpacingRule_0 == LineSpacingRule.AtLeast)
            {
                class2.method_40(BookmarkStart.b("䜳䈵䄷嘹夻нⰿ⭁⩃⍅敇≉⥋❍㝏㩑⁓筕㥗⹙煛㉝՟͡ᝣብ", num), this.class972_0.string_7);
            }
            else
            {
                class2.method_40(BookmarkStart.b("刳夵ȷ嘹唻倽┿潁ⱃ⍅ⅇⵉ⑋㩍", num), this.class972_0.string_7);
            }
            this.class972_0.class1048_0.method_0(class2);
            class2.method_40(BookmarkStart.b("刳夵ȷ儹夻嬽〿潁㍃⽅㱇≉態⁍㕏⩑⁓", num), this.class972_0.string_8);
            class2.method_40(BookmarkStart.b("刳夵ȷ儹夻嬽〿潁ぃ⥅⽇⽉㡋♍㕏⁑", num), this.class972_0.string_9);
            if (this.class972_0.bool_2 && flag)
            {
                class2.method_40(BookmarkStart.b("刳夵ȷ唹主丽⠿⍁⩃㕅", num), BookmarkStart.b("س", num));
                class2.method_40(BookmarkStart.b("刳夵ȷ䴹唻娽⼿㕁㝃", num), BookmarkStart.b("س", num));
            }
            class2.method_40(BookmarkStart.b("䜳䈵䄷嘹夻н㜿ぁⵃ㉅ⅇ⑉⭋捍㵏㵑こ㍕", num), this.class972_0.string_10);
            class2.method_40(BookmarkStart.b("䀳匵䀷丹ػ倽㔿⽁♃⍅㩇杉⁋❍㹏㝑❓", num), this.class972_0.string_11);
            class2.method_40(BookmarkStart.b("䀳匵䀷丹ػ刽⤿ⱁ⅃歅♇㽉⅋ⱍ㕏⁑", num), this.class972_0.string_12);
            class2.method_40(BookmarkStart.b("䜳䈵䄷嘹夻н㌿ⱁ╃㙅敇㹉⍋捍㱏㍑ⵓ㥕ⵗ⹙煛㥝቟ୡc", num), this.class972_0.string_13);
            class2.method_40(BookmarkStart.b("䜳䈵䄷嘹夻н〿㝁⩃╅㱇㽉ⵋ㩍㥏㵑㩓筕⽗⡙㵛⹝", num), this.class972_0.string_15);
            class2.method_40(BookmarkStart.b("刳夵ȷ刹䔻丽⠿❁⩃❅㱇⍉⍋⁍絏㹑㕓㉕㱗㽙⹛獝͟ൡᅣࡥᱧ", num), this.class972_0.string_16);
            class2.method_40(BookmarkStart.b("䜳䈵䄷嘹夻н㘿❁㙃㉅ⅇ⥉ⵋ≍絏㍑㡓㽕㽗㑙", num), this.class972_0.string_17);
            if ((A_2 && (this.class422_0.method_15().Settings.float_0 != 0f)) && (this.class422_0.method_15().Settings.float_0 != 1134f))
            {
                class2.method_40(BookmarkStart.b("䜳䈵䄷嘹夻н㐿⍁♃歅㭇㹉⍋㹍絏㙑㵓╕ⱗ㭙㉛㵝՟", num), Class576.smethod_42((double)(this.class422_0.method_15().Settings.float_0 / 20f)));
            }
            if ((((this.class422_0.method_33() == 1) && (this.class422_0.method_16().PreviousSibling == null)) || this.class422_0.method_75()) && this.class422_0.method_16().SectPr.method_60())
            {
                this.class422_0.method_16().SectPr.method_86();
                class2.method_43(BookmarkStart.b("䜳䈵䄷嘹夻н〿⍁⍃⍅敇⑉㥋⍍㉏㝑♓", num), this.class422_0.method_16().SectPr.method_86());
            }
        }
        if (this.method_2(A_0, this.method_3(A_0, flag2) || flag2))
        {
            class2.method_6(BookmarkStart.b("䜳䈵䄷嘹夻н〿⍁㙃❅⽇㡉ⵋ㹍㡏网⑓⑕㝗⩙㥛ⱝᑟୡţᕥ", num));
        }
    }
Exemplo n.º 12
0
    private void method_5(Interface46 A_0, AttrCollection A_1, bool A_2)
    {
        int            num   = 7;
        AttrCollection attrs = this.method_11(A_0, A_1, A_2);

        this.class972_0.class1048_0.bool_0 = false;
        ParagraphFormat paraPr = null;

        if (A_0 is Paragraph)
        {
            paraPr = (A_0 as Paragraph).Format;
        }
        else if (A_0 is Style)
        {
            paraPr = (A_0 as Style).ParaPr;
        }
        if (A_2)
        {
            this.class972_0.string_14 = BookmarkStart.b("䐬䬮吰尲刴䔶堸䬺唼ሾ⁀⽂㕄⽆⡈", num);
            this.class972_0.string_15 = BookmarkStart.b("䔬丮弰吲尴夶常", num);
        }
        HorizontalAlignment left = HorizontalAlignment.Left;
        bool flag = false;

        for (int i = 0; i < attrs.Count; i++)
        {
            int    num3;
            int    num5 = attrs.method_18(i);
            object obj2 = attrs.method_19(i);
            if (obj2 != null)
            {
                this.class972_0.int_0++;
                num3 = num5;
                if (num3 <= 0x4ba)
                {
                    if (num3 <= 0x442)
                    {
                        if (num3 <= 0x410)
                        {
                            switch (num3)
                            {
                            case 20:
                            {
                                Borders borders = obj2 as Borders;
                                if (!borders.Left.IsDefault)
                                {
                                    this.class972_0.class1048_0.class411_2.border_0 = borders.Left;
                                }
                                if (!borders.Right.IsDefault)
                                {
                                    this.class972_0.class1048_0.class411_3.border_0 = borders.Right;
                                }
                                if (!borders.Top.IsDefault)
                                {
                                    this.class972_0.class1048_0.class411_0.border_0 = borders.Top;
                                }
                                if (!borders.Bottom.IsDefault)
                                {
                                    this.class972_0.class1048_0.class411_1.border_0 = borders.Bottom;
                                }
                                if (borders.IsDefault || (borders == null))
                                {
                                    this.class972_0.int_0--;
                                }
                                continue;
                            }

                            case 0x3fc:
                            {
                                flag = true;
                                left = (HorizontalAlignment)obj2;
                                continue;
                            }
                            }
                            if (num3 != 0x410)
                            {
                                goto Label_09CD;
                            }
                            if ((bool)obj2)
                            {
                                this.class972_0.string_9 = BookmarkStart.b("䰬䌮䘰刲䰴䐶", num);
                            }
                            else
                            {
                                this.class972_0.int_0--;
                            }
                        }
                        else
                        {
                            switch (num3)
                            {
                            case 0x41a:
                            {
                                if ((bool)obj2)
                                {
                                    this.class972_0.string_8 = BookmarkStart.b("䰬䌮䘰刲䰴䐶", num);
                                }
                                else
                                {
                                    this.class972_0.int_0--;
                                }
                                continue;
                            }

                            case 0x424:
                            {
                                this.class972_0.string_0 = ((bool)obj2) ? BookmarkStart.b("崬丮嘰嘲", num) : BookmarkStart.b("䰬娮䔰尲", num);
                                continue;
                            }
                            }
                            if (num3 != 0x442)
                            {
                                goto Label_09CD;
                            }
                            if (!((bool)obj2))
                            {
                                this.class972_0.string_15 = BookmarkStart.b("帬䘮尰䌲头制", num);
                            }
                            else
                            {
                                this.class972_0.int_0--;
                            }
                        }
                    }
                    else if (num3 <= 0x47e)
                    {
                        switch (num3)
                        {
                        case 0x46a:
                        {
                            if (!((bool)obj2))
                            {
                                this.class972_0.string_11 = BookmarkStart.b("夬崮䐰嘲", num);
                            }
                            else
                            {
                                this.class972_0.int_0--;
                            }
                            continue;
                        }

                        case 0x474:
                        {
                            if ((obj2 != null) && (((TabCollection)obj2).Count != 0))
                            {
                                this.class972_0.tabCollection_0 = (TabCollection)obj2;
                            }
                            this.class972_0.int_0--;
                            continue;
                        }
                        }
                        if (num3 != 0x47e)
                        {
                            goto Label_09CD;
                        }
                        if (((A_0 is Paragraph) && ((Paragraph)A_0).IsList) && (((Paragraph)A_0).ListFormat.method_31(0x47e) != null))
                        {
                            this.class972_0.int_0--;
                        }
                        else
                        {
                            this.class972_0.class1048_0.class411_3.string_3 = Class576.smethod_42((double)((float)obj2));
                            this.method_7(A_0);
                        }
                    }
                    else if (num3 <= 0x492)
                    {
                        if (num3 == 0x488)
                        {
                            if (((A_0 is Paragraph) && ((Paragraph)A_0).IsList) && (((Paragraph)A_0).ListFormat.method_31(0x488) != null))
                            {
                                this.class972_0.int_0--;
                            }
                            else
                            {
                                this.class972_0.class1048_0.class411_2.string_3 = Class576.smethod_42((double)((float)obj2));
                                this.method_7(A_0);
                            }
                            this.class972_0.int_1 = (int)((float)obj2);
                        }
                        else
                        {
                            if (num3 != 0x492)
                            {
                                goto Label_09CD;
                            }
                            if ((A_0 is Paragraph) && (((float)obj2) < 0f))
                            {
                                if ((A_0 is Paragraph) && !(A_0 as Paragraph).IsList)
                                {
                                    this.class972_0.string_6 = Class576.smethod_42((double)((float)obj2));
                                }
                                else
                                {
                                    this.class972_0.int_0--;
                                }
                            }
                            else
                            {
                                this.class972_0.string_6 = Class576.smethod_42((double)((float)obj2));
                            }
                        }
                    }
                    else if (num3 != 0x4b0)
                    {
                        if (num3 != 0x4ba)
                        {
                            goto Label_09CD;
                        }
                        this.class972_0.bool_0 = (bool)obj2;
                        this.class972_0.int_0--;
                    }
                    else
                    {
                        this.class972_0.class1048_0.class411_0.string_3 = Class576.smethod_42((double)((float)obj2));
                    }
                }
                else
                {
                    if (num3 > 0x5aa)
                    {
                        goto Label_0837;
                    }
                    if (num3 > 0x4d8)
                    {
                        goto Label_073E;
                    }
                    switch (num3)
                    {
                    case 0x4c4:
                    {
                        if (!(A_0 is Paragraph))
                        {
                            goto Label_0717;
                        }
                        Paragraph paragraph = (Paragraph)A_0;
                        if ((paragraph.NextSibling == null) || !(paragraph.NextSibling is Paragraph))
                        {
                            goto Label_06E9;
                        }
                        Paragraph nextSibling = (Paragraph)paragraph.NextSibling;
                        object    obj3        = nextSibling.Format.method_31(0x4b0);
                        if ((obj3 != null) && nextSibling.Format.BeforeAutoSpacing)
                        {
                            obj3 = 280f;
                        }
                        if ((obj3 != null) && (((float)obj3) > ((float)obj2)))
                        {
                            this.class972_0.int_0--;
                        }
                        else
                        {
                            this.class972_0.class1048_0.class411_1.string_3 = Class576.smethod_42((double)((float)obj2));
                            this.method_7(A_0);
                        }
                        continue;
                    }

                    case 0x4ce:
                    {
                        this.class972_0.bool_1 = (bool)obj2;
                        this.class972_0.int_0--;
                        continue;
                    }
                    }
                    if (num3 != 0x4d8)
                    {
                        goto Label_09CD;
                    }
                    this.class972_0.string_14 = ((bool)obj2) ? BookmarkStart.b("䐬䬮吰尲刴䔶堸䬺唼ሾ⁀⽂㕄⽆⡈", num) : BookmarkStart.b("䌬䀮弰嘲", num);
                }
            }
            continue;
Label_06E9:
            this.class972_0.class1048_0.class411_1.string_3 = Class576.smethod_42((double)((float)obj2));
            this.method_7(A_0);
            continue;
Label_0717:
            this.class972_0.class1048_0.class411_1.string_3 = Class576.smethod_42((double)((float)obj2));
            continue;
Label_073E:
            if (num3 <= 0x500)
            {
                if (num3 != 0x4ec)
                {
                    if (num3 != 0x500)
                    {
                        goto Label_09CD;
                    }
                    this.class972_0.int_2 = (byte)obj2;
                }
                else if ((bool)obj2)
                {
                    this.class972_0.string_13 = BookmarkStart.b("夬崮䐰嘲", num);
                }
                else
                {
                    this.class972_0.int_0--;
                }
            }
            else if (num3 != 0x582)
            {
                if (num3 != 0x5aa)
                {
                    goto Label_09CD;
                }
                this.class972_0.string_4 = ((int)obj2).ToString();
                this.class972_0.int_0--;
            }
            else if ((bool)obj2)
            {
                this.class972_0.string_16 = BookmarkStart.b("䌬䀮ᰰ弲尴娶倸伺", num);
            }
            else
            {
                this.class972_0.int_0--;
            }
            continue;
Label_0837:
            if (num3 <= 0x5dc)
            {
                switch (num3)
                {
                case 0x5b4:
                {
                    this.class972_0.string_1 = Class576.smethod_83((Class16)obj2);
                    if (this.class972_0.string_1 == null)
                    {
                        this.class972_0.int_0--;
                    }
                    continue;
                }

                case 0x5be:
                {
                    if ((bool)obj2)
                    {
                        this.class972_0.bool_2 = true;
                    }
                    else
                    {
                        this.class972_0.bool_2 = false;
                        this.class972_0.int_0--;
                    }
                    continue;
                }
                }
                if (num3 != 0x5dc)
                {
                    goto Label_09CD;
                }
                if (attrs.HasValue(0x5aa))
                {
                    this.class972_0.string_5 = Class576.smethod_35(obj2);
                }
                this.class972_0.int_0--;
                continue;
            }
            if (num3 <= 0x618)
            {
                if (num3 == 0x5e6)
                {
                    this.class972_0.string_17 = Class922.smethod_42((BaselineAlignment)obj2);
                    if (this.class972_0.string_17 == null)
                    {
                        this.class972_0.int_0--;
                    }
                }
                else
                {
                    if (num3 != 0x618)
                    {
                        goto Label_09CD;
                    }
                    if ((bool)obj2)
                    {
                        this.class972_0.string_10 = BookmarkStart.b("弬䌮ᰰ䜲圴", num);
                    }
                    else
                    {
                        this.class972_0.string_10 = BookmarkStart.b("䄬崮ᰰ䜲圴", num);
                    }
                }
                continue;
            }
            switch (num3)
            {
            case 0x672:
            {
                float           num4 = Math.Abs((float)obj2);
                LineSpacingRule rule = (LineSpacingRule)attrs.method_31(0x677);
                this.class972_0.lineSpacingRule_0 = rule;
                if (((A_0 is Paragraph) && ((Paragraph)A_0).Format.HasKey(0x532)) || (!(A_0 is Paragraph) && !(A_0 is Style)))
                {
                    goto Label_0A84;
                }
                this.class972_0.string_7 = Class576.smethod_9(num4, rule);
                continue;
            }

            case 0x271a:
            {
                this.class972_0.class580_0 = (Class580)obj2;
                this.class972_0.int_0--;
                continue;
            }
            }
Label_09CD:
            this.class972_0.int_0--;
            continue;
Label_0A84:
            this.class972_0.int_0--;
        }
        this.method_8(A_0);
        this.method_9(A_0, paraPr, left, flag);
        if (this.class972_0.bool_0 && (this.class972_0.class1048_0.class411_0.string_3 != null))
        {
            if ((A_0 is Paragraph) && (((Paragraph)A_0).PreviousSibling == null))
            {
                this.class972_0.class1048_0.class411_0.string_3 = null;
                this.class972_0.int_0--;
            }
            else
            {
                this.class972_0.class1048_0.class411_0.string_3 = Class576.smethod_42(280.0);
            }
        }
        if (this.class972_0.bool_1 && (this.class972_0.class1048_0.class411_1.string_3 != null))
        {
            if ((A_0 is Paragraph) && (((Paragraph)A_0).NextSibling == null))
            {
                this.class972_0.class1048_0.class411_1.string_3 = null;
                this.class972_0.int_0--;
            }
            else
            {
                this.class972_0.class1048_0.class411_1.string_3 = Class576.smethod_42(280.0);
            }
        }
        this.method_6(A_0, paraPr);
    }
Exemplo n.º 13
0
 internal void method_0(Interface46 A_0, AttrCollection A_1)
 {
     this.method_1(A_0, A_1, false);
 }
Exemplo n.º 14
0
    private static void smethod_1(AttrCollection A_0, bool A_1, Interface52 A_2)
    {
        int              num     = 13;
        Class398         class2  = A_2.imethod_1();
        bool             flag    = A_2.imethod_2();
        string           str     = null;
        string           str2    = null;
        string           str3    = null;
        string           str4    = null;
        string           str5    = null;
        string           str6    = null;
        string           str7    = null;
        string           str8    = null;
        string           str9    = null;
        string           str10   = null;
        string           str11   = null;
        string           str12   = null;
        string           str13   = null;
        string           str14   = null;
        string           str15   = null;
        string           str16   = null;
        Border           top     = null;
        Border           left    = null;
        Border           bottom  = null;
        Border           right   = null;
        string           str17   = null;
        string           str18   = null;
        string           str19   = null;
        string           str20   = null;
        string           str21   = null;
        string           str22   = null;
        string           str23   = null;
        string           str24   = null;
        object           obj2    = null;
        string           str25   = null;
        string           str26   = null;
        object           obj3    = null;
        ColumnCollection columns = null;
        string           str27   = null;
        string           str28   = null;
        string           str29   = null;
        string           str30   = null;
        string           str31   = null;
        object           obj4    = null;
        object           obj5    = null;
        object           obj6    = null;
        object           obj7    = null;
        object           obj8    = null;
        object           obj9    = null;

        for (int i = 0; i < A_0.Count; i++)
        {
            int    num3  = A_0.method_18(i);
            object obj10 = A_0.method_19(i);
            int    num4  = num3;
            if (num4 <= 0x8a2)
            {
                if (num4 <= 0x820)
                {
                    if (num4 <= 0x7e4)
                    {
                        if (num4 <= 0x7d0)
                        {
                            if (num4 == 0x7c6)
                            {
                                bottom = (obj10 as Borders).Bottom;
                                left   = (obj10 as Borders).Left;
                                top    = (obj10 as Borders).Top;
                                right  = (obj10 as Borders).Right;
                            }
                            else if (num4 == 0x7d0)
                            {
                                MarginsF sf = (MarginsF)obj10;
                                str5  = A_2.imethod_1().method_23(sf.Top, 20f).ToString();
                                str8  = A_2.imethod_1().method_23(sf.Left, 20f).ToString();
                                str6  = A_2.imethod_1().method_23(sf.Right, 20f).ToString();
                                str7  = A_2.imethod_1().method_23(sf.Bottom, 20f).ToString();
                                str11 = A_2.imethod_1().method_23(sf.Gutter, 20f).ToString();
                            }
                        }
                        else if (num4 == 0x7da)
                        {
                            str21 = Class911.smethod_3((ListPatternType)obj10);
                        }
                        else if (num4 == 0x7e4)
                        {
                            str24 = Class339.smethod_11((PageSeparator)obj10, flag);
                        }
                    }
                    else if (num4 <= 0x7f8)
                    {
                        if (num4 == 0x7ee)
                        {
                            str30 = Class339.smethod_21((SectionBreakType)obj10, flag);
                        }
                        else if (num4 == 0x7f8)
                        {
                            obj6 = obj10;
                        }
                    }
                    else
                    {
                        switch (num4)
                        {
                        case 0x80c:
                        {
                            obj3 = obj10;
                            continue;
                        }

                        case 0x816:
                        {
                            str12 = Class1041.smethod_8((int)obj10);
                            continue;
                        }
                        }
                        if (num4 == 0x820)
                        {
                            str13 = Class1041.smethod_8((int)obj10);
                        }
                    }
                }
                else if (num4 <= 0x848)
                {
                    if (num4 <= 0x834)
                    {
                        if (num4 == 0x82a)
                        {
                            str4 = Class1041.smethod_8((int)obj10);
                        }
                        else if (num4 == 0x834)
                        {
                            obj8 = obj10;
                        }
                    }
                    else if (num4 == 0x83e)
                    {
                        str20 = Class339.smethod_13((LineNumberingRestartMode)obj10, flag);
                    }
                    else if (num4 == 0x848)
                    {
                        str17 = Class1041.smethod_8((int)obj10);
                    }
                }
                else if (num4 <= 0x884)
                {
                    if (num4 == 0x87a)
                    {
                        str28 = A_2.imethod_1().method_23(obj10, 20f).ToString();
                    }
                    else if (num4 == 0x884)
                    {
                        str18 = Class1041.smethod_8(((int)obj10) - 1);
                    }
                }
                else
                {
                    switch (num4)
                    {
                    case 0x88e:
                    {
                        str23 = Class1041.smethod_8((int)obj10);
                        continue;
                    }

                    case 0x898:
                    {
                        if ((bool)A_0.method_32(0x802))
                        {
                            str22 = Class1041.smethod_8((int)obj10);
                        }
                        continue;
                    }
                    }
                    if (num4 == 0x8a2)
                    {
                        str3 = Class339.smethod_19((PageOrientation)obj10);
                    }
                }
            }
            else if (num4 <= 0x92e)
            {
                if (num4 <= 0x8d4)
                {
                    if (num4 <= 0x8b6)
                    {
                        if (num4 == 0x8ac)
                        {
                            str15 = Class339.smethod_17((PageBordersApplyType)obj10, flag);
                        }
                        else if (num4 == 0x8b6)
                        {
                            if ((bool)obj10)
                            {
                                str14 = BookmarkStart.b("唲䜴堶圸伺", num);
                            }
                            else
                            {
                                str14 = BookmarkStart.b("儲吴吶券", num);
                            }
                        }
                    }
                    else if (num4 == 0x8c0)
                    {
                        str16 = Class339.smethod_15((PageBorderOffsetFrom)obj10);
                    }
                    else if (num4 == 0x8d4)
                    {
                        str = A_2.imethod_1().method_23(obj10, 20f).ToString();
                    }
                }
                else if (num4 <= 0x910)
                {
                    if (num4 == 0x8de)
                    {
                        str2 = A_2.imethod_1().method_23(obj10, 20f).ToString();
                    }
                    else if (num4 == 0x910)
                    {
                        str9 = A_2.imethod_1().method_23(obj10, 20f).ToString();
                    }
                }
                else
                {
                    switch (num4)
                    {
                    case 0x91a:
                    {
                        str10 = A_2.imethod_1().method_23(obj10, 20f).ToString();
                        continue;
                    }

                    case 0x924:
                    {
                        str31 = Class339.smethod_9((PageAlignment)obj10);
                        continue;
                    }
                    }
                    if (num4 == 0x92e)
                    {
                        str26 = Class1041.smethod_8((int)obj10);
                    }
                }
            }
            else if (num4 <= 0x960)
            {
                if (num4 <= 0x942)
                {
                    if (num4 == 0x938)
                    {
                        obj2 = obj10;
                    }
                    else if (num4 == 0x942)
                    {
                        str25 = Class1041.smethod_8((int)obj10);
                    }
                }
                else
                {
                    switch (num4)
                    {
                    case 0x94c:
                    {
                        columns = (ColumnCollection)obj10;
                        str26   = columns.Count.ToString();
                        continue;
                    }

                    case 0x956:
                    {
                        obj7 = !((bool)obj10);
                        continue;
                    }
                    }
                    if (num4 == 0x960)
                    {
                        str19 = Class1041.smethod_10(Convert.ToUInt32(obj10));
                    }
                }
            }
            else
            {
                switch (num4)
                {
                case 0x96a:
                    obj5 = obj10;
                    break;

                case 0x974:
                    str29 = Class1041.smethod_8((int)obj10);
                    break;

                case 0x97e:
                    str27 = Class339.smethod_3((GridPitchType)obj10, flag);
                    break;

                case 0x988:
                    obj9 = Class911.smethod_5((TextDirection)obj10);
                    break;

                case 0x992:
                    obj4 = obj10;
                    break;
                }
            }
        }
        if (!A_1)
        {
            if (str9 == null)
            {
                str9 = A_2.imethod_1().method_23((float)A_0.method_32(0x910), 20f).ToString();
            }
            if (str10 == null)
            {
                str10 = A_2.imethod_1().method_23((float)A_0.method_32(0x91a), 20f).ToString();
            }
            if (((str25 == null) && (columns != null)) && (columns.Count > 0))
            {
                str25 = (columns[0].Space * 20f).ToString();
            }
        }
        A_2.imethod_8(A_0, false);
        class2.method_24(BookmarkStart.b("䐲༴䌶䀸䬺堼", num), str30);
        bool   flag2 = ((PageOrientation)A_0[0x8a2]) == PageOrientation.Landscape;
        string str32 = str;
        string str33 = str2;
        float  num7  = (A_0 as Class17).method_96() * 20f;
        float  num8  = (A_0 as Class17).method_98() * 20f;

        if (flag2 && (num7 < num8))
        {
            str32 = num8.ToString();
            str33 = num7.ToString();
        }
        class2.method_33(BookmarkStart.b("䐲༴䜶常栺䜼", num), new object[] { BookmarkStart.b("䐲༴䀶", num), str32, BookmarkStart.b("䐲༴弶", num), str33, BookmarkStart.b("䐲༴堶䬸刺堼儾㕀", num), str3, BookmarkStart.b("䐲༴吶嘸强堼", num), str4 });
        class2.method_33(BookmarkStart.b("䐲༴䜶常瘺尼䴾", num), new object[] { BookmarkStart.b("䐲༴䌶嘸䬺", num), str5, BookmarkStart.b("䐲༴䔶倸尺唼䬾", num), str6, BookmarkStart.b("䐲༴唶嘸伺䤼倾ⱀ", num), str7, BookmarkStart.b("䐲༴嬶尸崺䤼", num), str8, BookmarkStart.b("䐲༴弶尸娺夼娾㍀", num), str9, BookmarkStart.b("䐲༴儶嘸吺䤼娾㍀", num), str10, BookmarkStart.b("䐲༴倶䰸伺䤼娾㍀", num), str11 });
        class2.method_33(BookmarkStart.b("䐲༴䜶堸䬺堼䴾ቀㅂ♄", num), new object[] { BookmarkStart.b("䐲༴儶倸䤺丼䬾", num), str12, BookmarkStart.b("䐲༴堶䴸区堼䴾", num), str13 });
        if (((top != null) || (left != null)) || ((bottom != null) || (right != null)))
        {
            class2.method_4(BookmarkStart.b("䐲༴䜶常示刼䴾╀♂㝄㑆", num));
            class2.method_40(flag ? BookmarkStart.b("䐲༴䴶瘸䤺夼娾㍀", num) : BookmarkStart.b("䐲༴䴶ᐸ吺似嬾⑀ㅂ", num), str14);
            class2.method_40(BookmarkStart.b("䐲༴匶倸䠺䴼匾⁀㩂", num), str15);
            class2.method_40(flag ? BookmarkStart.b("䐲༴堶弸崺丼娾㕀Ղ㝄⡆⑈", num) : BookmarkStart.b("䐲༴堶弸崺丼娾㕀湂⍄㕆♈♊", num), str16);
            class2.method_47(BookmarkStart.b("䐲༴䌶嘸䬺", num), top, flag);
            class2.method_47(BookmarkStart.b("䐲༴嬶尸崺䤼", num), left, flag);
            class2.method_47(BookmarkStart.b("䐲༴唶嘸伺䤼倾ⱀ", num), bottom, flag);
            class2.method_47(BookmarkStart.b("䐲༴䔶倸尺唼䬾", num), right, flag);
            class2.method_5();
        }
        class2.method_33(BookmarkStart.b("䐲༴嬶圸町䠼刾ᕀ㩂㕄≆", num), new object[] { flag?BookmarkStart.b("䐲༴吶嘸为匼䬾̀㩂", num) : BookmarkStart.b("䐲༴吶嘸为匼䬾汀⅂㱄", num), str17, BookmarkStart.b("䐲༴䐶䴸娺似䬾", num), str18, BookmarkStart.b("䐲༴匶倸䠺䤼帾⽀⁂⁄", num), str19, BookmarkStart.b("䐲༴䔶尸䠺䤼帾㍀㝂", num), str20 });
        class2.method_33(BookmarkStart.b("䐲༴䜶常町䠼刾ᕀ㩂㕄≆", num), new object[] { BookmarkStart.b("䐲༴儶吸伺", num), str21, BookmarkStart.b("䐲༴䐶䴸娺似䬾", num), str22, flag ? BookmarkStart.b("䐲༴吶儸娺䴼氾㕀㩂⥄≆", num) : BookmarkStart.b("䐲༴吶儸娺䴼ሾ㉀㝂㱄⭆ⱈ", num), str23, flag ? BookmarkStart.b("䐲༴吶儸娺䴼氾⑀㍂", num) : BookmarkStart.b("䐲༴吶儸娺䴼ሾ㉀♂㕄", num), str24 });
        if (class2.method_34(BookmarkStart.b("䐲༴吶嘸场丼", num), new object[] { BookmarkStart.b("䐲༴夶䰸嘺", num), str26, BookmarkStart.b("䐲༴䐶尸䬺", num), obj3, BookmarkStart.b("䐲༴䐶䤸娺帼娾", num), str25, BookmarkStart.b("䐲༴制䠸为尼匾ᙀ⩂⅄㍆ⅈ", num), obj2 }))
        {
            if (columns != null)
            {
                for (int j = 0; j < columns.Count; j++)
                {
                    class2.method_33(BookmarkStart.b("䐲༴吶嘸场", num), new object[] { BookmarkStart.b("䐲༴䀶", num), (columns[j].Width > 0f) ? ((object)(columns[j].Width * 20f)) : null, BookmarkStart.b("䐲༴䐶䤸娺帼娾", num), (columns[j].Space > 0f) ? ((object)(columns[j].Space * 20f)) : null });
                }
            }
            class2.method_5();
        }
        class2.method_22(BookmarkStart.b("䐲༴儶嘸䤺值漾㍀ⱂㅄ", num), obj7);
        class2.method_24(BookmarkStart.b("䐲༴䄶砸场吼堾⽀", num), str31);
        class2.method_22(BookmarkStart.b("䐲༴夶嘸縺匼嬾⽀ⱂㅄ≆", num), obj8);
        class2.method_22(BookmarkStart.b("䐲༴䌶倸伺儼娾ᅀ⑂", num), obj6);
        class2.method_22(flag ? BookmarkStart.b("䐲༴䌶尸䌺䤼笾⡀ㅂ⁄⑆㵈≊≌ⅎ", num) : BookmarkStart.b("䐲༴䌶尸䌺䤼社ⵀⱂ㉄", num), obj9);
        class2.method_22(BookmarkStart.b("䐲༴唶倸强吼", num), obj4);
        class2.method_22(BookmarkStart.b("䐲༴䔶䴸场稼䨾㕀㝂⁄㕆", num), obj5);
        class2.method_33(BookmarkStart.b("䐲༴匶嘸堺稼䴾⡀❂", num), new object[] { BookmarkStart.b("䐲༴䌶䀸䬺堼", num), str27, flag ? BookmarkStart.b("䐲༴嬶倸唺堼漾⡀㝂♄⽆", num) : BookmarkStart.b("䐲༴嬶倸唺堼ሾㅀ⩂ㅄ⑆ⅈ", num), str28, flag ? BookmarkStart.b("䐲༴吶儸娺似氾ㅀ≂♄≆", num) : BookmarkStart.b("䐲༴吶儸娺似ሾ㉀㍂⑄⑆ⱈ", num), str29 });
    }
Exemplo n.º 15
0
    private static void smethod_1(AttrCollection A_0, Interface52 A_1)
    {
        int      num          = 14;
        bool     flag         = A_1.imethod_2();
        Class398 class2       = A_1.imethod_1();
        Class15  class3       = null;
        object   obj2         = null;
        object   obj3         = null;
        object   obj4         = null;
        string   str          = null;
        string   str2         = null;
        Border   top          = null;
        Border   left         = null;
        Border   bottom       = null;
        Border   right        = null;
        Border   diagonalDown = null;
        Border   diagonalUp   = null;
        Border   horizontal   = null;
        Border   vertical     = null;
        Class16  class4       = null;
        object   obj5         = null;
        string   str3         = null;
        string   str4         = null;
        string   str5         = null;
        string   str6         = null;
        string   str7         = null;
        object   obj6         = null;
        string   str8         = null;
        object   obj7         = null;
        object   obj8         = null;

        for (int i = 0; i < A_0.Count; i++)
        {
            int    num3 = A_0.method_18(i);
            object obj9 = A_0.method_19(i);
            int    num4 = num3;
            if (num4 <= 0xbea)
            {
                if (num4 <= 0xbc6)
                {
                    switch (num4)
                    {
                    case 1:
                        top          = (obj9 as Borders).Top;
                        left         = (obj9 as Borders).Left;
                        bottom       = (obj9 as Borders).Bottom;
                        right        = (obj9 as Borders).Right;
                        diagonalDown = (obj9 as Borders).DiagonalDown;
                        diagonalUp   = (obj9 as Borders).DiagonalUp;
                        horizontal   = (obj9 as Borders).Horizontal;
                        vertical     = (obj9 as Borders).Vertical;
                        break;

                    case 2:
                        str3 = ((obj9 as Paddings).Top >= 0f) ? A_1.imethod_1().method_23((obj9 as Paddings).Top, 20f).ToString() : BookmarkStart.b("г", num);
                        str4 = ((obj9 as Paddings).Left >= 0f) ? A_1.imethod_1().method_23((obj9 as Paddings).Left, 20f).ToString() : BookmarkStart.b("Գص7", num);
                        str5 = ((obj9 as Paddings).Bottom >= 0f) ? A_1.imethod_1().method_23((obj9 as Paddings).Bottom, 20f).ToString() : BookmarkStart.b("г", num);
                        str6 = ((obj9 as Paddings).Right >= 0f) ? A_1.imethod_1().method_23((obj9 as Paddings).Right, 20f).ToString() : BookmarkStart.b("Գص7", num);
                        break;

                    case 6:
                        obj4 = class2.method_23(obj9, 50f);
                        break;

                    case 0xbc4:
                        obj3 = class2.method_23(obj9, 20f);
                        break;

                    case 0xbc6:
                        obj2 = (FtsWidth)obj9;
                        break;
                    }
                }
                else if (num4 <= 0xbd6)
                {
                    switch (num4)
                    {
                    case 0xbcc:
                        class3 = (Class15)obj9;
                        break;

                    case 0xbd6:
                        str2 = Class859.smethod_5((CellMerge)obj9);
                        break;
                    }
                }
                else if (num4 != 0xbe0)
                {
                    if ((num4 == 0xbea) && (((TextDirection)obj9) != TextDirection.TopToBottom))
                    {
                        str7 = Class417.smethod_39((TextDirection)obj9, flag);
                    }
                }
                else
                {
                    str = Class859.smethod_5((CellMerge)obj9);
                }
            }
            else if (num4 <= 0xc6c)
            {
                switch (num4)
                {
                case 0xbf4:
                {
                    if (((VerticalAlignment)obj9) != VerticalAlignment.Top)
                    {
                        str8 = Class859.smethod_7((VerticalAlignment)obj9);
                    }
                    continue;
                }

                case 0xc62:
                {
                    class4 = (Class16)obj9;
                    continue;
                }
                }
                if ((num4 == 0xc6c) && !((bool)obj9))
                {
                    obj5 = true;
                }
            }
            else if (num4 <= 0xc94)
            {
                if (num4 == 0xc76)
                {
                    if ((bool)obj9)
                    {
                        obj6 = true;
                    }
                }
                else if ((num4 == 0xc94) && ((bool)obj9))
                {
                    obj7 = true;
                }
            }
            else
            {
                switch (num4)
                {
                case 0xf3c:
                    obj8 = (short)obj9;
                    break;
                }
            }
        }
        if (((obj3 != null) || (obj4 != null)) && (obj2 != null))
        {
            if (((WidthType)obj2) == WidthType.Percentage)
            {
                class3 = new Class15((FtsWidth)obj2, (short)((int)obj4));
                class2.method_53(BookmarkStart.b("䌳వ䰷夹欻", num), class3);
            }
            else if (((WidthType)obj2) == WidthType.Twip)
            {
                class3 = new Class15((FtsWidth)obj2, (short)((int)obj3));
                class2.method_53(BookmarkStart.b("䌳వ䰷夹欻", num), class3);
            }
        }
        else if (class3 != null)
        {
            class2.method_53(BookmarkStart.b("䌳వ䰷夹欻", num), class3);
        }
        if (((str != BookmarkStart.b("䘳匵䬷丹崻䰽㐿", num)) && (obj8 != null)) && (((short)obj8) > 1))
        {
            class2.method_22(BookmarkStart.b("䌳వ強䠹唻娽ጿ㉁╃⡅", num), obj8);
        }
        string str9 = flag ? BookmarkStart.b("䌳వ倷眹夻䰽✿❁", num) : BookmarkStart.b("䌳వ倷圹夻䰽✿❁", num);

        if (str == BookmarkStart.b("圳夵嘷丹唻倽㔿❁", num))
        {
            class2.method_10(str9);
        }
        else
        {
            class2.method_24(str9, str);
        }
        string str10 = flag ? BookmarkStart.b("䌳వ丷眹夻䰽✿❁", num) : BookmarkStart.b("䌳వ丷圹夻䰽✿❁", num);

        if (str2 == BookmarkStart.b("圳夵嘷丹唻倽㔿❁", num))
        {
            class2.method_10(str10);
        }
        else
        {
            class2.method_24(str10, str2);
        }
        class2.method_46(BookmarkStart.b("䌳వ䰷夹縻儽㈿♁⅃㑅㭇", num), flag, new object[] { BookmarkStart.b("䌳వ䰷唹䰻", num), top, BookmarkStart.b("䌳వ吷弹娻䨽", num), left, BookmarkStart.b("䌳వ娷唹䠻䨽⼿⽁", num), bottom, BookmarkStart.b("䌳వ䨷匹嬻嘽㐿", num), right, BookmarkStart.b("䌳వ儷吹伻圽␿❁ృ", num), horizontal, BookmarkStart.b("䌳వ儷吹伻圽␿❁ቃ", num), vertical, BookmarkStart.b("䌳వ䰷嘹฻尽㈿", num), diagonalDown, BookmarkStart.b("䌳వ䰷䠹฻尽ⰿ", num), diagonalUp });
        class2.vmethod_4(class4);
        class2.method_22(BookmarkStart.b("䌳వ嘷唹欻䰽ℿ㉁", num), obj5);
        if (!(A_0.OwnerBase is TableCell) || !(A_0.OwnerBase as TableCell).CellFormat.SamePaddingsAsTable)
        {
            class2.method_50(BookmarkStart.b("䌳వ䰷夹焻弽㈿", num), str3, str4, str5, str6);
        }
        class2.method_24(flag ? BookmarkStart.b("䌳వ䰷弹䐻䨽п⭁㙃⍅⭇㹉╋⅍㹏", num) : BookmarkStart.b("䌳వ䰷弹䐻䨽ؿ⹁⭃ㅅ", num), str7);
        class2.method_22(BookmarkStart.b("䌳వ䰷夹稻圽㐿ᙁ⅃㹅㱇", num), obj6);
        class2.method_24(BookmarkStart.b("䌳వ丷笹倻圽✿ⱁ", num), str8);
        class2.method_22(BookmarkStart.b("䌳వ倷匹堻嬽ി⍁㙃ⵅ", num), obj7);
    }