예제 #1
0
 internal void method_28()
 {
     if ((this.m_bodyItems != null) && (this.m_bodyItems.Count > 0))
     {
         BodyRegion region = null;
         for (int i = 0; i < this.m_bodyItems.Count; i++)
         {
             region = this.m_bodyItems[i];
             region.Close();
             region = null;
         }
         this.m_bodyItems.Clear();
         this.m_bodyItems = null;
     }
     if (this.paragraphCollection_0 != null)
     {
         this.paragraphCollection_0.Clear();
         this.paragraphCollection_0 = null;
     }
     if (this.tableCollection_0 != null)
     {
         this.tableCollection_0.Clear();
         this.tableCollection_0 = null;
     }
     if (this.formFieldCollection_0 != null)
     {
         this.formFieldCollection_0.InnerList.Clear();
         this.formFieldCollection_0 = null;
     }
 }
예제 #2
0
        internal BodyRegionCollection method_25()
        {
            BodyRegionCollection regions = new BodyRegionCollection(base.Document, this);

            this.UpdateDataBinding();
            for (int i = 0; i < this.ChildObjects.Count; i++)
            {
                DocumentObject obj2 = this.ChildObjects[i];
                if (obj2 is StructureDocumentTag)
                {
                    (obj2 as StructureDocumentTag).UpdateDataBinding();
                    BodyRegionCollection regions2 = (obj2 as StructureDocumentTag).method_25();
                    for (int j = 0; j < regions2.Count; j++)
                    {
                        DocumentObject obj3 = regions2[j];
                        regions.InnerList.Add(obj3);
                    }
                }
                else
                {
                    regions.InnerList.Add(obj2);
                }
            }
            return(regions);
        }
예제 #3
0
        internal IDocumentObjectCollection method_41()
        {
            BodyRegionCollection regions = new BodyRegionCollection(this);

            for (int i = 0; i < this.m_bodyItems.Count; i++)
            {
                if (this.m_bodyItems[i] is StructureDocumentTag)
                {
                    foreach (DocumentObject obj2 in (this.m_bodyItems[i] as StructureDocumentTag).method_25())
                    {
                        regions.InnerList.Add(obj2);
                    }
                }
                else
                {
                    regions.InnerList.Add(this.m_bodyItems[i]);
                }
            }
            return(regions);
        }
예제 #4
0
 internal Body(Document A_0, DocumentObject A_1) : base(A_0, A_1)
 {
     this.m_bodyItems           = new BodyRegionCollection(this);
     this.paragraphCollection_0 = new ParagraphCollection(this.m_bodyItems);
     this.tableCollection_0     = new TableCollection(this.m_bodyItems);
 }
예제 #5
0
        internal void method_0(bool A_0, bool A_1)
        {
            int num = 1;

            if (this.CurrentBookmark == null)
            {
                throw new InvalidOperationException();
            }
            BookmarkStart bookmarkStart = this.CurrentBookmark.BookmarkStart;
            BookmarkEnd   bookmarkEnd   = this.CurrentBookmark.BookmarkEnd;

            if (bookmarkEnd != null)
            {
                Paragraph ownerParagraph = bookmarkStart.OwnerParagraph;
                Paragraph paragraph      = bookmarkEnd.OwnerParagraph;
                if (ownerParagraph.Owner != paragraph.Owner)
                {
                    throw new NotSupportedException(BookmarkStart.b("椦䘨弪ബ尮䐰䌲䔴堶䬸伺堼嬾慀❂⁄⭆ⱈ㽊⑌ⅎ㙐獒㙔㡖㝘⽚㡜ㅞᕠ䍢ݤɦᵨᱪ࡬੮ὰ卲᝴ᡶᙸၺၼṾꞆ권ﺚ膠펢쒤햦좨첪\udfac\uceae솰\udbb2\uc6b4", num));
                }
                Body owner = (Body)ownerParagraph.Owner;
                BodyRegionCollection regions = owner.Items;
                int index = ownerParagraph.method_5() + 1;
                if (ownerParagraph != paragraph)
                {
                    while (regions.Count > index)
                    {
                        if (regions[index] == paragraph)
                        {
                            break;
                        }
                        regions.RemoveAt(index);
                    }
                }
                ParagraphItemCollection items = ownerParagraph.Items;
                int num4 = bookmarkStart.method_5() + 1;
                if (A_0 && (items.Count > num4))
                {
                    TextRange range = items[num4] as TextRange;
                    if (range != null)
                    {
                        range.Text = "";
                        num4++;
                    }
                }
                while (items.Count > num4)
                {
                    if (items[num4] == bookmarkEnd)
                    {
                        break;
                    }
                    items.RemoveAt(num4);
                    if (this.int_1 > 0)
                    {
                        this.int_1--;
                    }
                }
                if (ownerParagraph != paragraph)
                {
                    int num2 = bookmarkEnd.method_5();
                    if (num2 != 0)
                    {
                        while (num2 < paragraph.Items.Count)
                        {
                            DocumentObject entity = paragraph.Items[num2];
                            ownerParagraph.Items.Add(entity);
                        }
                        paragraph.RemoveSelf();
                    }
                    else if (A_1)
                    {
                        if (num4 == 1)
                        {
                            ownerParagraph.RemoveSelf();
                            paragraph.Items.RemoveAt(num2);
                        }
                        if ((num4 == 2) && (items[0] is BookmarkEnd))
                        {
                            paragraph.Items.RemoveAt(num2);
                            BookmarkEnd end2 = items[0] as BookmarkEnd;
                            ((Paragraph)regions[index]).Items.Insert(0, end2);
                            ownerParagraph.RemoveSelf();
                        }
                    }
                }
            }
            if (this.document_0.Bookmarks.InnerList.Contains(this.CurrentBookmark))
            {
                this.MoveToBookmark(this.CurrentBookmark.Name, this.bool_0, this.bool_1);
            }
        }