コード例 #1
0
 internal void method_0(OwnerHolder A_0)
 {
     this.ownerHolder_0 = A_0;
     if (A_0 != null)
     {
         this.m_doc = A_0.Document;
     }
 }
コード例 #2
0
        internal override void CloneRelationsTo(Document doc, OwnerHolder nextOwner)
        {
            int num   = 0;
            int count = this.ChildObjects.Count;

            while (num < count)
            {
                this.ChildObjects[num].CloneRelationsTo(doc, nextOwner);
                num++;
            }
        }
コード例 #3
0
 internal bool method_8(DocumentObject A_0)
 {
     for (OwnerHolder holder = A_0.OwnerBase; holder != null; holder = holder.OwnerBase)
     {
         if (holder == this)
         {
             return(true);
         }
     }
     return(false);
 }
コード例 #4
0
 internal void method_3(Spire.Doc.Document A_0, OwnerHolder A_1)
 {
     this.ownerHolder_0 = A_1;
     if (A_1 == null)
     {
         this.m_doc = A_0;
     }
     else
     {
         this.m_doc = A_1.Document;
     }
 }
コード例 #5
0
        internal Section method_2()
        {
            OwnerHolder ownerBase = this.OwnerBase;

            while (ownerBase != null)
            {
                if (ownerBase is Section)
                {
                    break;
                }
                ownerBase = ownerBase.OwnerBase;
            }
            return(ownerBase as Section);
        }
コード例 #6
0
        internal HeaderFooter method_1()
        {
            OwnerHolder ownerBase = this.OwnerBase;

            while (ownerBase != null)
            {
                if (ownerBase is HeaderFooter)
                {
                    break;
                }
                ownerBase = ownerBase.OwnerBase;
            }
            return(ownerBase as HeaderFooter);
        }
コード例 #7
0
        internal override void CloneRelationsTo(Document doc, OwnerHolder nextOwner)
        {
            doc.CurClonedSection = this;
            base.CloneRelationsTo(doc, nextOwner);
            this.Body.CloneRelationsTo(doc, nextOwner);
            ImportOptions importOption = doc.ImportOption;
            bool          importStyles = doc.ImportStyles;

            if (doc.ImportOption != ImportOptions.UseDestinationStyles)
            {
                doc.ImportOption = ImportOptions.UseDestinationStyles;
                doc.ImportStyles = false;
            }
            for (int i = 0; i <= 5; i++)
            {
                this.headersFooters_0[i].CloneRelationsTo(doc, nextOwner);
            }
            if (doc.ImportOption != importOption)
            {
                doc.ImportOption = importOption;
                doc.ImportStyles = importStyles;
            }
            doc.CurClonedSection = null;
        }
コード例 #8
0
 public OwnerHolder(Spire.Doc.Document doc, OwnerHolder owner)
 {
     this.m_doc         = doc;
     this.ownerHolder_0 = owner;
 }