Beispiel #1
0
 private bool method_11(HeadersFooters A_0)
 {
     for (int i = 0; i < 6; i++)
     {
         if (!this.method_12(A_0[i]))
         {
             return(false);
         }
     }
     return(true);
 }
Beispiel #2
0
        protected override object CloneImpl()
        {
            HeadersFooters footers = (HeadersFooters)base.CloneImpl();

            footers.headerFooter_0 = (HeaderFooter)this.headerFooter_0.Clone();
            footers.headerFooter_2 = (HeaderFooter)this.headerFooter_2.Clone();
            footers.headerFooter_3 = (HeaderFooter)this.headerFooter_3.Clone();
            footers.headerFooter_1 = (HeaderFooter)this.headerFooter_1.Clone();
            footers.headerFooter_5 = (HeaderFooter)this.headerFooter_5.Clone();
            footers.headerFooter_4 = (HeaderFooter)this.headerFooter_4.Clone();
            footers.bool_0         = this.LinkToPrevious;
            return(footers);
        }
Beispiel #3
0
        private HeadersFooters method_6()
        {
            Section previousSibling = (base.OwnerBase as Section).PreviousSibling as Section;

            while (previousSibling != null)
            {
                HeadersFooters headersFooters = previousSibling.HeadersFooters;
                if (!headersFooters.LinkToPrevious)
                {
                    return(headersFooters);
                }
                previousSibling = previousSibling.PreviousSibling as Section;
                if (previousSibling == null)
                {
                    return(headersFooters);
                }
            }
            if (previousSibling == null)
            {
                return((base.OwnerBase as Section).HeadersFooters);
            }
            return(previousSibling.HeadersFooters);
        }
Beispiel #4
0
 internal Class53(HeadersFooters A_0)
 {
     this.headersFooters_0 = A_0;
 }
Beispiel #5
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);
                            }
                        }
                    }
                }
            }
        }