Ejemplo n.º 1
0
        private bool method_46()
        {
            Section ownerBase = base.OwnerBase as Section;

            if (ownerBase == null)
            {
                return(false);
            }
            int num = ownerBase.method_5();

            if (num == 0)
            {
                this.bool_6 = false;
            }
            else if (num > 0)
            {
                if (base.Items.Count > 0)
                {
                    this.bool_6 = false;
                }
                else
                {
                    this.bool_6 = true;
                }
            }
            return(this.bool_6);
        }
Ejemplo n.º 2
0
        private bool method_8()
        {
            Section ownerBase = base.OwnerBase as Section;

            if (ownerBase == null)
            {
                return(false);
            }
            this.bool_1 = true;
            int num = ownerBase.method_5();

            if (num == 0)
            {
                this.bool_0 = false;
            }
            else if (num > 0)
            {
                for (int i = 0; i < 6; i++)
                {
                    if (this[i].Items.Count > 0)
                    {
                        this.bool_0 = false;
                        break;
                    }
                    this.bool_0 = true;
                }
            }
            return(this.bool_0);
        }
Ejemplo n.º 3
0
        internal void method_10()
        {
            Section ownerBase = base.OwnerBase as Section;

            if (ownerBase != null)
            {
                this.bool_1 = true;
                if (ownerBase.method_5() > 0)
                {
                    this.bool_0         = false;
                    this.headerFooter_2 = new HeaderFooter(ownerBase, HeaderFooterType.HeaderOdd);
                    this.headerFooter_1 = new HeaderFooter(ownerBase, HeaderFooterType.FooterOdd);
                    this.headerFooter_0 = new HeaderFooter(ownerBase, HeaderFooterType.HeaderEven);
                    this.headerFooter_3 = new HeaderFooter(ownerBase, HeaderFooterType.FooterEven);
                    this.headerFooter_4 = new HeaderFooter(ownerBase, HeaderFooterType.HeaderFirstPage);
                    this.headerFooter_5 = new HeaderFooter(ownerBase, HeaderFooterType.FooterFirstPage);
                }
            }
        }
Ejemplo n.º 4
0
        internal void method_9(bool A_0)
        {
            Section ownerBase = base.OwnerBase as Section;

            if (ownerBase != null)
            {
                this.bool_1 = true;
                int num = ownerBase.method_5();
                if (num == -1)
                {
                    this.bool_0 = A_0;
                    if (!A_0)
                    {
                        if ((this.headerFooter_2 != null) && (this.headerFooter_2.ChildObjects.Count <= 0))
                        {
                            this.headerFooter_2 = new HeaderFooter(ownerBase, HeaderFooterType.HeaderOdd);
                            this.headerFooter_2.AddParagraph().AppendText(string.Empty);
                        }
                        if ((this.headerFooter_1 != null) && (this.headerFooter_1.ChildObjects.Count <= 0))
                        {
                            this.headerFooter_1 = new HeaderFooter(ownerBase, HeaderFooterType.FooterOdd);
                            this.headerFooter_1.AddParagraph().AppendText(string.Empty);
                        }
                        if ((this.headerFooter_0 != null) && (this.headerFooter_0.ChildObjects.Count <= 0))
                        {
                            this.headerFooter_0 = new HeaderFooter(ownerBase, HeaderFooterType.HeaderEven);
                            this.headerFooter_0.AddParagraph().AppendText(string.Empty);
                        }
                        if ((this.headerFooter_3 != null) && (this.headerFooter_3.ChildObjects.Count <= 0))
                        {
                            this.headerFooter_3 = new HeaderFooter(ownerBase, HeaderFooterType.FooterEven);
                            this.headerFooter_3.AddParagraph().AppendText(string.Empty);
                        }
                        if ((this.headerFooter_4 != null) && (this.headerFooter_4.ChildObjects.Count <= 0))
                        {
                            this.headerFooter_4 = new HeaderFooter(ownerBase, HeaderFooterType.HeaderFirstPage);
                            this.headerFooter_4.AddParagraph().AppendText(string.Empty);
                        }
                        if ((this.headerFooter_5 != null) && (this.headerFooter_5.ChildObjects.Count <= 0))
                        {
                            this.headerFooter_5 = new HeaderFooter(ownerBase, HeaderFooterType.FooterFirstPage);
                            this.headerFooter_5.AddParagraph().AppendText(string.Empty);
                        }
                    }
                }
                else
                {
                    this.bool_0 = (num != 0) && A_0;
                    if (num != 0)
                    {
                        HeadersFooters footers = this.method_6();
                        if (A_0)
                        {
                            if (this.method_11(footers))
                            {
                                this.headerFooter_2 = footers.OddHeader;
                                this.headerFooter_1 = footers.OddFooter;
                                this.headerFooter_0 = footers.EvenHeader;
                                this.headerFooter_3 = footers.EvenFooter;
                                this.headerFooter_4 = footers.FirstPageHeader;
                                this.headerFooter_5 = footers.FirstPageFooter;
                            }
                        }
                        else
                        {
                            if ((this.headerFooter_2 == footers.OddHeader) || ((this.headerFooter_2 != null) && (this.headerFooter_2.ChildObjects.Count <= 0)))
                            {
                                this.headerFooter_2 = new HeaderFooter(ownerBase, HeaderFooterType.HeaderOdd);
                                this.headerFooter_2.AddParagraph().AppendText(string.Empty);
                            }
                            if ((this.headerFooter_1 == footers.OddFooter) || ((this.headerFooter_1 != null) && (this.headerFooter_1.ChildObjects.Count <= 0)))
                            {
                                this.headerFooter_1 = new HeaderFooter(ownerBase, HeaderFooterType.FooterOdd);
                                this.headerFooter_1.AddParagraph().AppendText(string.Empty);
                            }
                            if ((this.headerFooter_0 == footers.EvenHeader) || ((this.headerFooter_0 != null) && (this.headerFooter_0.ChildObjects.Count <= 0)))
                            {
                                this.headerFooter_0 = new HeaderFooter(ownerBase, HeaderFooterType.HeaderEven);
                                this.headerFooter_0.AddParagraph().AppendText(string.Empty);
                            }
                            if ((this.headerFooter_3 == footers.EvenFooter) || ((this.headerFooter_3 != null) && (this.headerFooter_3.ChildObjects.Count <= 0)))
                            {
                                this.headerFooter_3 = new HeaderFooter(ownerBase, HeaderFooterType.FooterEven);
                                this.headerFooter_3.AddParagraph().AppendText(string.Empty);
                            }
                            if ((this.headerFooter_4 == footers.FirstPageHeader) || ((this.headerFooter_4 != null) && (this.headerFooter_4.ChildObjects.Count <= 0)))
                            {
                                this.headerFooter_4 = new HeaderFooter(ownerBase, HeaderFooterType.HeaderFirstPage);
                                this.headerFooter_4.AddParagraph().AppendText(string.Empty);
                            }
                            if ((this.headerFooter_5 == footers.FirstPageFooter) || ((this.headerFooter_5 != null) && (this.headerFooter_5.ChildObjects.Count <= 0)))
                            {
                                this.headerFooter_5 = new HeaderFooter(ownerBase, HeaderFooterType.FooterFirstPage);
                                this.headerFooter_5.AddParagraph().AppendText(string.Empty);
                            }
                        }
                    }
                }
            }
        }