internal void method_0(OwnerHolder A_0) { this.ownerHolder_0 = A_0; if (A_0 != null) { this.m_doc = A_0.Document; } }
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++; } }
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); }
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; } }
internal Section method_2() { OwnerHolder ownerBase = this.OwnerBase; while (ownerBase != null) { if (ownerBase is Section) { break; } ownerBase = ownerBase.OwnerBase; } return(ownerBase as Section); }
internal HeaderFooter method_1() { OwnerHolder ownerBase = this.OwnerBase; while (ownerBase != null) { if (ownerBase is HeaderFooter) { break; } ownerBase = ownerBase.OwnerBase; } return(ownerBase as HeaderFooter); }
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; }
public OwnerHolder(Spire.Doc.Document doc, OwnerHolder owner) { this.m_doc = doc; this.ownerHolder_0 = owner; }