Beispiel #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;
     }
 }
Beispiel #2
0
        internal void method_35(bool A_0)
        {
            BodyRegion region = null;

            for (int i = 0; i < this.m_bodyItems.Count; i++)
            {
                region = this.m_bodyItems[i];
                if (!this.method_36(region, A_0, ref i))
                {
                    bool flag = this.method_39(region, A_0);
                    if (region is Table)
                    {
                        Table table = region as Table;
                        if (A_0)
                        {
                            table.xmlTableFormat_1 = null;
                            table.list_1           = null;
                        }
                        else if (table.xmlTableFormat_1 != null)
                        {
                            table.DocxTableFormat.Format.ClearFormatting();
                            table.DocxTableFormat = table.TrackTblFormat.method_0(table);
                            table.FirstRow.RowFormat.ClearFormatting();
                            table.FirstRow.RowFormat.ImportContainer(table.TrackTblFormat.Format);
                            table.xmlTableFormat_1 = null;
                        }
                        if (!A_0 && (table.list_1 != null))
                        {
                            table.TableGrid.Clear();
                            foreach (float num2 in table.TrackTableGrid)
                            {
                                table.TableGrid.Add(num2);
                            }
                            table.list_1 = null;
                        }
                    }
                    if (!A_0)
                    {
                        this.method_38(region);
                    }
                    if ((region.IsInsertRevision || region.IsDeleteRevision) || region.IsChangedCFormat)
                    {
                        region.AcceptCChanges();
                    }
                    if (region.IsChangedPFormat)
                    {
                        region.AcceptPChanges();
                    }
                    region.MakeChanges(A_0);
                    if (flag && this.method_40(region))
                    {
                        this.ChildObjects.RemoveAt(i);
                        i--;
                    }
                }
            }
        }
Beispiel #3
0
 private void method_38(BodyRegion A_0)
 {
     if (A_0.IsChangedCFormat)
     {
         A_0.RemoveCFormatChanges();
     }
     if (A_0.IsChangedPFormat)
     {
         A_0.RemovePFormatChanges();
     }
 }
Beispiel #4
0
        private bool method_39(BodyRegion A_0, bool A_1)
        {
            bool flag = false;

            if (!(A_0 is Paragraph) || !(A_0.NextSibling is Paragraph))
            {
                return(flag);
            }
            if ((!A_0.IsInsertRevision || A_1) && (!A_0.IsDeleteRevision || !A_1))
            {
                return(flag);
            }
            return(true);
        }
Beispiel #5
0
        private bool method_40(BodyRegion A_0)
        {
            Paragraph paragraph   = A_0 as Paragraph;
            int       num         = paragraph.Items.Count - 1;
            Paragraph nextSibling = A_0.NextSibling as Paragraph;

            if (nextSibling == null)
            {
                return(false);
            }
            for (int i = num; i >= 0; i--)
            {
                nextSibling.Items.Insert(0, paragraph.Items[i]);
            }
            return(true);
        }
Beispiel #6
0
        internal bool method_37()
        {
            bool flag;

            using (IEnumerator enumerator = this.m_bodyItems.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    BodyRegion current = (BodyRegion)enumerator.Current;
                    if (current.HasTrackedChanges())
                    {
                        goto Label_002D;
                    }
                }
                return(false);

Label_002D:
                flag = true;
            }
            return(flag);
        }
Beispiel #7
0
 private bool method_36(BodyRegion A_0, bool A_1, ref int A_2)
 {
     if ((A_0.IsInsertRevision && !A_1) || (A_0.IsDeleteRevision && A_1))
     {
         bool flag = true;
         if (A_0 is Table)
         {
             flag = (A_0 as Table).method_83();
         }
         else if (A_0 is Paragraph)
         {
             flag = (A_0 as Paragraph).method_92();
         }
         if (flag)
         {
             this.ChildObjects.RemoveAt(A_2);
             A_2--;
             return(true);
         }
     }
     return(false);
 }
Beispiel #8
0
        internal int method_25(Regex A_0, TextSelection A_1, bool A_2)
        {
            int num2;
            int num = 0;

            using (IEnumerator enumerator = this.Items.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    BodyRegion current = (BodyRegion)enumerator.Current;
                    num += current.Replace(A_0, A_1, A_2);
                    if (base.Document.ReplaceFirst && (num > 0))
                    {
                        goto Label_0044;
                    }
                }
                return(num);

Label_0044:
                num2 = num;
            }
            return(num2);
        }