internal override void CloneRelationsTo(Document doc, OwnerHolder nextOwner)
 {
     base.CloneRelationsTo(doc, nextOwner);
     if (doc.ImportOption != ImportOptions.UseDestinationStyles)
     {
         this.method_29(doc);
     }
     if ((((this.m_charFormat != null) && !string.IsNullOrEmpty(this.m_charFormat.CharStyleName)) && ((base.Document != null) && (base.Document.Styles != null))) && ((doc.ImportOption == ImportOptions.UseDestinationStyles) && doc.ImportStyles))
     {
         Class11 class2 = base.Document.Styles.FindByName(this.m_charFormat.CharStyleName, StyleType.CharacterStyle) as Class11;
         if (class2 != null)
         {
             IStyle style = doc.Styles.FindByName(class2.Name, StyleType.CharacterStyle);
             if (style == null)
             {
                 class2.method_18(doc);
             }
             else if (doc.CurClonedSection != null)
             {
                 class2 = (Class11)class2.method_20(doc, style);
                 this.m_charFormat.CharStyleName = class2.Name;
             }
         }
     }
 }
Exemple #2
0
 void ParagraphBase.CloneRelationsTo(Document A_0, OwnerHolder A_1)
 {
     base.CloneRelationsTo(A_0, A_1);
     if (this.method_40().Count > 0)
     {
         string[] array = new string[this.method_40().Count];
         this.method_40().Keys.CopyTo(array, 0);
         for (int i = 0; i < array.Length; i++)
         {
             Class517 class2 = this.method_40()[array[i]];
             if (class2.method_7())
             {
                 class2 = A_0.Images.method_6(class2.byte_1, true);
             }
             else
             {
                 class2 = A_0.Images.method_5(class2.method_3());
             }
             this.method_40()[array[i]] = class2;
         }
     }
     if ((A_0.DocxPackage == null) && (base.Document.DocxPackage != null))
     {
         A_0.DocxPackage = base.Document.DocxPackage.method_25();
     }
     else if ((A_0.DocxPackage != null) && (base.Document.DocxPackage != null))
     {
         this.method_47(A_0);
     }
 }
 internal override void CloneRelationsTo(Document doc, OwnerHolder nextOwner)
 {
     base.CloneRelationsTo(doc, nextOwner);
     if (this.body_0 != null)
     {
         this.body_0.CloneRelationsTo(doc, nextOwner);
     }
 }
Exemple #4
0
        IDocumentSerializable IXDLSSerializableCollection.AddNewItem(IXDLSContentReader reader)
        {
            OwnerHolder holder = this.CreateItem(reader);

            if (holder != null)
            {
                base.InnerList.Add(holder);
                holder.method_0(base.OwnerBase);
            }
            return(holder as IDocumentSerializable);
        }
Exemple #5
0
 internal override void CloneRelationsTo(Document doc, OwnerHolder nextOwner)
 {
     foreach (Spire.Doc.Fields.TextBox box in this.AutoShapeTextCollection)
     {
         foreach (DocumentObject obj2 in box.ChildObjects)
         {
             obj2.CloneRelationsTo(doc, nextOwner);
             obj2.method_0(doc);
         }
     }
     base.Document.method_157(doc, this);
     base.bool_4 = false;
 }
 internal override void CloneRelationsTo(Document doc, OwnerHolder nextOwner)
 {
     base.CloneRelationsTo(doc, nextOwner);
     if (doc.ObjectPool == null)
     {
         doc.ObjectPool = new byte[base.m_doc.ObjectPool.Length];
         base.m_doc.ObjectPool.CopyTo(doc.ObjectPool, 0);
     }
     else
     {
         byte[] objectPool = doc.ObjectPool;
         Class363.smethod_0(new MemoryStream(base.m_doc.ObjectPool), this.int_6, new MemoryStream(doc.ObjectPool), out objectPool);
     }
 }
 internal Class45(Document A_0, OwnerHolder A_1) : base(A_0, A_1)
 {
 }
Exemple #8
0
 internal override void CloneRelationsTo(Document doc, OwnerHolder nextOwner)
 {
     base.CloneRelationsTo(doc, nextOwner);
 }
 protected CollectionEx(Document doc, OwnerHolder owner) : base(doc, owner)
 {
     this.list_0 = new List <object>();
 }
Exemple #10
0
 protected DocumentSerializableCollection(Document doc, OwnerHolder owner) : base(doc, owner)
 {
 }
Exemple #11
0
 internal virtual void CloneRelationsTo(Document doc, OwnerHolder nextOwner)
 {
 }
Exemple #12
0
 internal override void CloneRelationsTo(Document doc, OwnerHolder nextOwner)
 {
     this.Body.CloneRelationsTo(doc, nextOwner);
     base.Document.method_157(doc, this);
     base.bool_4 = false;
 }